akkoma-fe/src/components/popper/popper.scss

158 lines
3.8 KiB
SCSS
Raw Normal View History

2019-02-18 14:49:32 +00:00
@import '../../_variables.scss';
2019-07-11 15:01:12 +00:00
.tooltip.popover {
2019-02-18 14:49:32 +00:00
z-index: 8;
2019-07-11 15:01:12 +00:00
.popover-inner {
box-shadow: 1px 1px 4px rgba(0,0,0,.6);
box-shadow: var(--panelShadow);
border-radius: $fallback--btnRadius;
border-radius: var(--btnRadius, $fallback--btnRadius);
background-color: $fallback--bg;
2020-01-23 22:02:16 +00:00
background-color: var(--popover, $fallback--bg);
color: $fallback--text;
color: var(--popoverText, $fallback--text);
--faint: var(--popoverFaintText, $fallback--faint);
--faintLink: var(--popoverFaintLink, $fallback--faint);
2020-01-23 22:36:32 +00:00
--lightText: var(--popoverLightText, $fallback--lightText);
2020-01-23 22:02:16 +00:00
--icon: var(--popoverIcon, $fallback--icon);
2019-07-11 15:01:12 +00:00
}
2019-02-18 14:49:32 +00:00
2019-07-11 15:01:12 +00:00
.popover-arrow {
width: 0;
height: 0;
border-style: solid;
position: absolute;
margin: 5px;
border-color: $fallback--bg;
border-color: var(--bg, $fallback--bg);
}
2019-02-18 14:49:32 +00:00
2019-07-11 15:01:12 +00:00
&[x-placement^="top"] {
margin-bottom: 5px;
.popover-arrow {
border-width: 5px 5px 0 5px;
border-left-color: transparent !important;
border-right-color: transparent !important;
border-bottom-color: transparent !important;
2019-07-17 16:50:49 +00:00
bottom: -4px;
2019-07-11 15:01:12 +00:00
left: calc(50% - 5px);
margin-top: 0;
margin-bottom: 0;
}
}
2019-02-18 14:49:32 +00:00
2019-07-11 15:01:12 +00:00
&[x-placement^="bottom"] {
margin-top: 5px;
.popover-arrow {
border-width: 0 5px 5px 5px;
border-left-color: transparent !important;
border-right-color: transparent !important;
border-top-color: transparent !important;
2019-07-17 16:50:49 +00:00
top: -4px;
2019-07-11 15:01:12 +00:00
left: calc(50% - 5px);
margin-top: 0;
margin-bottom: 0;
}
}
2019-02-18 14:49:32 +00:00
2019-07-11 15:01:12 +00:00
&[x-placement^="right"] {
margin-left: 5px;
.popover-arrow {
border-width: 5px 5px 5px 0;
border-left-color: transparent !important;
border-top-color: transparent !important;
border-bottom-color: transparent !important;
2019-07-17 16:50:49 +00:00
left: -4px;
2019-07-11 15:01:12 +00:00
top: calc(50% - 5px);
margin-left: 0;
margin-right: 0;
}
}
2019-02-18 14:49:32 +00:00
2019-07-11 15:01:12 +00:00
&[x-placement^="left"] {
margin-right: 5px;
2019-02-18 14:49:32 +00:00
2019-07-11 15:01:12 +00:00
.popover-arrow {
border-width: 5px 0 5px 5px;
border-top-color: transparent !important;
border-right-color: transparent !important;
border-bottom-color: transparent !important;
2019-07-17 16:50:49 +00:00
right: -4px;
2019-07-11 15:01:12 +00:00
top: calc(50% - 5px);
margin-left: 0;
margin-right: 0;
}
}
2019-02-18 14:49:32 +00:00
2019-07-11 15:01:12 +00:00
&[aria-hidden='true'] {
visibility: hidden;
opacity: 0;
transition: opacity .15s, visibility .15s;
}
2019-02-18 14:49:32 +00:00
2019-07-11 15:01:12 +00:00
&[aria-hidden='false'] {
visibility: visible;
opacity: 1;
transition: opacity .15s;
}
2019-02-18 14:49:32 +00:00
}
2019-05-26 21:13:08 +00:00
.dropdown-menu {
display: block;
padding: .5rem 0;
font-size: 1rem;
text-align: left;
list-style: none;
max-width: 100vw;
z-index: 10;
.dropdown-divider {
height: 0;
margin: .5rem 0;
overflow: hidden;
border-top: 1px solid $fallback--border;
border-top: 1px solid var(--border, $fallback--border);
}
.dropdown-item {
line-height: 21px;
margin-right: 5px;
overflow: auto;
display: block;
padding: .25rem 1.0rem .25rem 1.5rem;
clear: both;
font-weight: 400;
text-align: inherit;
white-space: normal;
border: none;
border-radius: 0px;
background-color: transparent;
box-shadow: none;
width: 100%;
height: 100%;
&-icon {
padding-left: 0.5rem;
i {
margin-right: 0.25rem;
}
}
2020-01-23 20:42:59 +00:00
&:active, &:hover {
background-color: $fallback--lightBg;
2020-01-23 22:36:32 +00:00
background-color: var(--selectedMenuPopover, $fallback--lightBg);
2020-01-23 20:42:59 +00:00
color: $fallback--link;
2020-01-23 22:36:32 +00:00
color: var(--selectedMenuPopoverText, $fallback--link);
--faint: var(--selectedMenuPopoverFaintText, $fallback--faint);
--faintLink: var(--selectedMenuPopoverFaintLink, $fallback--faint);
--lightText: var(--selectedMenuPopoverLightText, $fallback--lightText);
--icon: var(--selectedMenuPopoverIcon, $fallback--icon);
2019-05-26 21:13:08 +00:00
}
}
}