change to context menu css
- easier targets for touch screen devices, while also being shorter - changed hover
This commit is contained in:
parent
4f93124416
commit
e19df51838
1 changed files with 242 additions and 208 deletions
|
@ -64,8 +64,7 @@
|
||||||
overflow-y: overlay;
|
overflow-y: overlay;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-footer {
|
.modal-footer {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,28 +319,55 @@
|
||||||
overflow : hidden;
|
overflow : hidden;
|
||||||
font-size : 13px;
|
font-size : 13px;
|
||||||
|
|
||||||
|
|
||||||
.menu-option {
|
.menu-option {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
display : flex;
|
display : flex;
|
||||||
width: calc(100% - 4px);
|
|
||||||
padding: 8px 10px;
|
|
||||||
appearance: none;
|
appearance: none;
|
||||||
border : 0px;
|
border : 0px;
|
||||||
font : inherit;
|
font : inherit;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color : inherit;
|
color : inherit;
|
||||||
margin : 0 auto;
|
margin : 0 auto;
|
||||||
border-radius: 5px;
|
position : relative;
|
||||||
|
width : 100%;
|
||||||
|
padding : 9px 14px;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
background : var(--hover);
|
||||||
|
border-radius: 6px;
|
||||||
|
content : "";
|
||||||
|
--sizeY : 3px;
|
||||||
|
--sizeX : 4px;
|
||||||
|
top : var(--sizeY);
|
||||||
|
left : var(--sizeX);
|
||||||
|
bottom : var(--sizeY);
|
||||||
|
right : var(--sizeX);
|
||||||
|
position : absolute;
|
||||||
|
opacity : 0;
|
||||||
|
transform : scale(0.98);
|
||||||
|
z-index : -1;
|
||||||
|
transition : transform .25s ease-out, opacity .25s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--selected);
|
&::before {
|
||||||
|
transition: transform .1s ease-in, opacity .1s ease-in;
|
||||||
|
opacity : 1;
|
||||||
|
transform : scale(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
|
&::before {
|
||||||
|
transition: transform .1s ease-in-out, opacity .1s ease-in-out;
|
||||||
|
opacity : 1;
|
||||||
|
transform : scale(0.98);
|
||||||
background: var(--selected-click);
|
background: var(--selected-click);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.menu-header-text {
|
.menu-header-text {
|
||||||
|
@ -372,8 +398,9 @@
|
||||||
height : 100%;
|
height : 100%;
|
||||||
display : flex;
|
display : flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
gap: 4px;
|
gap : 0px;
|
||||||
padding: 6px 4px;
|
padding : 0px;
|
||||||
|
position : relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-footer {
|
.menu-footer {
|
||||||
|
@ -429,21 +456,28 @@
|
||||||
overflow : hidden;
|
overflow : hidden;
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
padding : 1em;
|
padding : 1em;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
|
||||||
br {
|
br {
|
||||||
display: block; /* makes it have a width */
|
display : block;
|
||||||
content: ""; /* clears default height */
|
/* makes it have a width */
|
||||||
|
content : "";
|
||||||
|
/* clears default height */
|
||||||
margin : 2em;
|
margin : 2em;
|
||||||
margin-bottom: -0.6rem;
|
margin-bottom: -0.6rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-header {
|
.modal-header {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.modal-title {
|
.modal-title {
|
||||||
text-align: unset !important;
|
text-align: unset !important;
|
||||||
width : 100%;
|
width : 100%;
|
||||||
|
|
||||||
&:not(.modal-subtitle) {
|
&:not(.modal-subtitle) {
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue