mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-16 03:39:00 +08:00
48 lines
851 B
SCSS
48 lines
851 B
SCSS
|
.menububble {
|
||
|
position: absolute;
|
||
|
display: flex;
|
||
|
z-index: 20;
|
||
|
background: $color-black;
|
||
|
border-radius: 5px;
|
||
|
padding: 0.3rem;
|
||
|
margin-bottom: 0.5rem;
|
||
|
transform: translateX(-50%);
|
||
|
visibility: hidden;
|
||
|
opacity: 0;
|
||
|
transition: opacity 0.2s, visibility 0.2s;
|
||
|
|
||
|
&__button {
|
||
|
display: inline-flex;
|
||
|
background: transparent;
|
||
|
border: 0;
|
||
|
color: $color-white;
|
||
|
padding: 0.2rem 0.5rem;
|
||
|
margin-right: 0.2rem;
|
||
|
border-radius: 3px;
|
||
|
cursor: pointer;
|
||
|
|
||
|
&:last-child {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
&:hover {
|
||
|
background-color: rgba($color-white, 0.1);
|
||
|
}
|
||
|
|
||
|
&.is-active {
|
||
|
background-color: rgba($color-white, 0.2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&__form {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
&__input {
|
||
|
font: inherit;
|
||
|
border: none;
|
||
|
background: transparent;
|
||
|
color: $color-white;
|
||
|
}
|
||
|
}
|