Files
redash/client/app/components/HelpTrigger.less
Rafael Wendel 0560e2410e Improve css and add focus styles (#5420)
* Add styles for focused ant menus

* Add disabled styles to clickable button

* Improved dashboard header syntax and added focus

* Improved CSS syntax

* Add interactive styles

* Improved anchor dependent styles

* Improved styles of widget (gray more/delete btns)

* Add interactive style for favorite star

* Improved style of delete btn

* Make table content fill all space

* Added focus and active styles

* Scoped query snippets list

* Fixed behavior for all major browsers

* Replaced button styles with plain button

* Scoped items list styles

* Added focus styles to ant table

* Add plain button (#5419)

* Minor syntax improvements

* Refactor of Link component (#5418)
2021-03-17 14:26:08 -03:00

93 lines
1.8 KiB
Plaintext

@import (reference, less) "~@/assets/less/ant";
@help-doc-bg: #f7f7f7; // according to https://github.com/getredash/website/blob/13daff2d8b570956565f482236f6245042e8477f/src/scss/_components/_variables.scss#L15
.help-trigger {
font-size: 15px;
&:hover {
cursor: pointer;
}
}
.help-drawer {
.ant-drawer-body {
padding: 0;
height: 100%; // to allow iframe full dimensions
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.drawer-wrapper {
flex: 1;
display: flex;
align-items: center;
width: 100%;
justify-content: center;
}
.drawer-menu {
position: fixed;
z-index: 1;
top: 13px;
right: 13px;
border-radius: 3px;
background: rgba(@help-doc-bg, 0.75); // makes it dissolve over help doc bg
border: 2px solid @help-doc-bg;
display: flex;
a,
.plain-button {
height: 26px;
width: 26px;
display: flex;
align-items: center;
justify-content: center;
color: @text-color-secondary;
transition: color @animation-duration-slow;
position: relative;
cursor: pointer;
&:hover {
color: @icon-color-hover;
text-decoration: none;
}
.anticon {
font-size: 15px;
}
.fa-external-link {
position: relative;
top: 1px;
font-size: 14px;
}
// divider
&:not(:first-child):before {
content: "";
position: absolute;
width: 1px;
height: 9px;
left: 0;
top: 9px;
border-left: 1px dotted rgba(0, 0, 0, 0.12);
}
}
}
iframe {
width: 0;
visibility: hidden;
}
iframe.ready {
border: 0;
width: 100%;
height: 100%;
visibility: visible;
}
}