migrate popper css
This commit is contained in:
parent
4f74392641
commit
c4789a348f
|
@ -2,10 +2,12 @@
|
||||||
<v-popover
|
<v-popover
|
||||||
v-if="enabled"
|
v-if="enabled"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
|
placement="top"
|
||||||
class="extra-button-popover"
|
class="extra-button-popover"
|
||||||
|
:offset="5"
|
||||||
:container="false"
|
:container="false"
|
||||||
>
|
>
|
||||||
<div class="popper-wrapper" slot="popover">
|
<div slot="popover">
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<button
|
<button
|
||||||
v-if="!status.pinned && canPin"
|
v-if="!status.pinned && canPin"
|
||||||
|
|
|
@ -4,10 +4,12 @@
|
||||||
trigger="click"
|
trigger="click"
|
||||||
class="moderation-tools-popover"
|
class="moderation-tools-popover"
|
||||||
:container="false"
|
:container="false"
|
||||||
|
placement="bottom-end"
|
||||||
|
:offset="5"
|
||||||
@show="showDropDown = true"
|
@show="showDropDown = true"
|
||||||
@hide="showDropDown = false"
|
@hide="showDropDown = false"
|
||||||
>
|
>
|
||||||
<div class="popper-wrapper" slot="popover">
|
<div slot="popover">
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<span v-if="user.is_local">
|
<span v-if="user.is_local">
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -1,71 +1,99 @@
|
||||||
@import '../../_variables.scss';
|
@import '../../_variables.scss';
|
||||||
|
|
||||||
.popper-wrapper {
|
.tooltip.popover {
|
||||||
z-index: 8;
|
z-index: 8;
|
||||||
}
|
|
||||||
|
|
||||||
.popper-wrapper .popper__arrow {
|
.popover-inner {
|
||||||
width: 0;
|
box-shadow: 1px 1px 4px rgba(0,0,0,.6);
|
||||||
height: 0;
|
box-shadow: var(--panelShadow);
|
||||||
border-style: solid;
|
border-radius: $fallback--btnRadius;
|
||||||
position: absolute;
|
border-radius: var(--btnRadius, $fallback--btnRadius);
|
||||||
margin: 5px;
|
background-color: $fallback--bg;
|
||||||
}
|
background-color: var(--bg, $fallback--bg);
|
||||||
|
}
|
||||||
|
|
||||||
.popper-wrapper[x-placement^="top"] {
|
.popover-arrow {
|
||||||
margin-bottom: 5px;
|
width: 0;
|
||||||
}
|
height: 0;
|
||||||
|
border-style: solid;
|
||||||
|
position: absolute;
|
||||||
|
margin: 5px;
|
||||||
|
border-color: $fallback--bg;
|
||||||
|
border-color: var(--bg, $fallback--bg);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.popper-wrapper[x-placement^="top"] .popper__arrow {
|
&[x-placement^="top"] {
|
||||||
border-width: 5px 5px 0 5px;
|
margin-bottom: 5px;
|
||||||
border-color: $fallback--bg transparent transparent transparent;
|
|
||||||
border-color: var(--bg, $fallback--bg) transparent transparent transparent;
|
|
||||||
bottom: -5px;
|
|
||||||
left: calc(50% - 5px);
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.popper-wrapper[x-placement^="bottom"] {
|
.popover-arrow {
|
||||||
margin-top: 5px;
|
border-width: 5px 5px 0 5px;
|
||||||
}
|
border-left-color: transparent !important;
|
||||||
|
border-right-color: transparent !important;
|
||||||
|
border-bottom-color: transparent !important;
|
||||||
|
bottom: -5px;
|
||||||
|
left: calc(50% - 5px);
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.popper-wrapper[x-placement^="bottom"] .popper__arrow {
|
&[x-placement^="bottom"] {
|
||||||
border-width: 0 5px 5px 5px;
|
margin-top: 5px;
|
||||||
border-color: transparent transparent $fallback--bg transparent;
|
|
||||||
border-color: transparent transparent var(--bg, $fallback--bg) transparent;
|
|
||||||
top: -5px;
|
|
||||||
left: calc(50% - 5px);
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.popper-wrapper[x-placement^="right"] {
|
.popover-arrow {
|
||||||
margin-left: 5px;
|
border-width: 0 5px 5px 5px;
|
||||||
}
|
border-left-color: transparent !important;
|
||||||
|
border-right-color: transparent !important;
|
||||||
|
border-top-color: transparent !important;
|
||||||
|
top: -5px;
|
||||||
|
left: calc(50% - 5px);
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.popper-wrapper[x-placement^="right"] .popper__arrow {
|
&[x-placement^="right"] {
|
||||||
border-width: 5px 5px 5px 0;
|
margin-left: 5px;
|
||||||
border-color: transparent $fallback--bg transparent transparent;
|
|
||||||
border-color: transparent var(--bg, $fallback--bg) transparent transparent;
|
|
||||||
left: -5px;
|
|
||||||
top: calc(50% - 5px);
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.popper-wrapper[x-placement^="left"] {
|
.popover-arrow {
|
||||||
margin-right: 5px;
|
border-width: 5px 5px 5px 0;
|
||||||
}
|
border-left-color: transparent !important;
|
||||||
|
border-top-color: transparent !important;
|
||||||
|
border-bottom-color: transparent !important;
|
||||||
|
left: -5px;
|
||||||
|
top: calc(50% - 5px);
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.popper-wrapper[x-placement^="left"] .popper__arrow {
|
&[x-placement^="left"] {
|
||||||
border-width: 5px 0 5px 5px;
|
margin-right: 5px;
|
||||||
border-color: transparent transparent transparent $fallback--bg;
|
|
||||||
border-color: transparent transparent transparent var(--bg, $fallback--bg);
|
.popover-arrow {
|
||||||
right: -5px;
|
border-width: 5px 0 5px 5px;
|
||||||
top: calc(50% - 5px);
|
border-top-color: transparent !important;
|
||||||
margin-left: 0;
|
border-right-color: transparent !important;
|
||||||
margin-right: 0;
|
border-bottom-color: transparent !important;
|
||||||
|
right: -5px;
|
||||||
|
top: calc(50% - 5px);
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&[aria-hidden='true'] {
|
||||||
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity .15s, visibility .15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
&[aria-hidden='false'] {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity .15s;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
|
@ -76,13 +104,6 @@
|
||||||
list-style: none;
|
list-style: none;
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
box-shadow: 1px 1px 4px rgba(0,0,0,.6);
|
|
||||||
box-shadow: var(--panelShadow);
|
|
||||||
border: none;
|
|
||||||
border-radius: $fallback--btnRadius;
|
|
||||||
border-radius: var(--btnRadius, $fallback--btnRadius);
|
|
||||||
background-color: $fallback--bg;
|
|
||||||
background-color: var(--bg, $fallback--bg);
|
|
||||||
|
|
||||||
.dropdown-divider {
|
.dropdown-divider {
|
||||||
height: 0;
|
height: 0;
|
||||||
|
|
|
@ -503,6 +503,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.user-interactions {
|
.user-interactions {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
Loading…
Reference in New Issue