TeaWeb/shared/css/static/context_menu.scss

153 lines
2.4 KiB
SCSS
Raw Normal View History

2018-09-30 21:50:59 +02:00
.context-menu {
overflow: visible;
display: none;
z-index: 120000;
2018-09-30 21:50:59 +02:00
position: absolute;
Implemented the Material Design and fixed some bugs (#33) * cleaned up some files * Fundamental style update * Redesigned some style * fixed hostbanner popup * Removed old identity stuff * fixed close listener * Fixed changelog date * fixed release chat icons * fixed url * Fixed hostbanner * Uploaded missing images * Improved update handling * Improved script files * Fixed loading error and icon error * fixed Yes/No modal * Fixed loader issues with MS Edge * fixed modal style bug * Fixed control bar overflow for small devices * Improved error handling on identity creation * Logging generate error to terminal * fixed possible php error * fixed some possible loading errors when other files have'nt been already loaded. * removed debug message * Changed emsrcypten flags * Improved codec error handling * removed webassembly as required dependency * Improved and fixed channel tree issues * Improved the sliders * Removed unneeded files * fixed loader versions cache * second slight performance improved (dont animate elements anymore if they are not shown) * Fixed query visibility setting * not showing useless client infos for query clients * Added an auto reconnect system * Added a canceled message and increased reconnect interval * removed implemented todo * fixed repetitive channel names * Reworked the channel tree selected lines * Fixed channel tree names * Fixed name alignment * fixed the native client * added min width to the server select groups to avoid a disappearing effect on shrink * fixed bugged downloaded icons
2019-02-17 16:08:10 +01:00
2019-03-25 20:04:04 +01:00
.context-menu-container {
border: 1px solid #CCC;
white-space: nowrap;
font-family: sans-serif;
background: #FFF;
color: #333;
padding: 3px;
&.left {
margin-left: -100%;
width: 100%;
}
2018-09-30 21:50:59 +02:00
2019-03-25 20:04:04 +01:00
* {
font-family: Arial, serif;
font-size: 12px;
white-space: pre;
line-height: 1;
vertical-align: middle;
2018-09-30 21:50:59 +02:00
}
2019-03-25 20:04:04 +01:00
hr {
margin-top: 8px;
margin-bottom: 8px;
2018-09-30 21:50:59 +02:00
}
2019-03-25 20:04:04 +01:00
.entry {
/*padding: 8px 12px;*/
padding-right: 12px;
cursor: pointer;
list-style-type: none;
transition: all .3s ease;
user-select: none;
align-items: center;
2018-09-30 21:50:59 +02:00
2019-03-25 20:04:04 +01:00
display: flex;
2018-09-30 21:50:59 +02:00
2019-03-25 20:04:04 +01:00
&.disabled {
2019-09-19 01:25:57 +02:00
pointer-events: none;
2019-03-25 20:04:04 +01:00
background-color: lightgray;
cursor: not-allowed;
}
2018-09-30 21:50:59 +02:00
2019-03-25 20:04:04 +01:00
&:hover:not(.disabled) {
background-color: #DEF;
2018-09-30 21:50:59 +02:00
}
}
2019-03-25 20:04:04 +01:00
.icon_empty, .icon {
margin-right: 4px;
}
2018-09-30 21:50:59 +02:00
2019-03-25 20:04:04 +01:00
.arrow {
2018-09-30 21:50:59 +02:00
cursor: pointer;
2019-03-25 20:04:04 +01:00
pointer-events: all;
width: 7px;
height: 7px;
padding: 0;
margin-right: 5px;
margin-left: 5px;
position: absolute;
right: 3px;
2018-09-30 21:50:59 +02:00
}
2019-03-25 20:04:04 +01:00
.sub-container {
margin-right: -3px;
padding-right: 24px;
2019-03-25 20:04:04 +01:00
position: relative;
&:hover {
.sub-menu {
display: block;
}
}
}
.sub-menu {
display: none;
left: 100%;
top: -4px;
2018-09-30 21:50:59 +02:00
position: absolute;
margin-left: 0;
2019-03-25 20:04:04 +01:00
}
2019-08-21 10:00:01 +02:00
}
}
/* we call it "ccheckbox" else it will be messed up the the global checkbox */
.ccheckbox {
margin-top: 1px;
margin-left: 1px;
display: block;
position: relative;
padding-left: 14px;
margin-bottom: 12px;
cursor: pointer;
font-size: 22px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Hide the browser's default checkbox */
input {
position: absolute;
opacity: 0;
cursor: pointer;
display: none;
}
2019-03-25 20:04:04 +01:00
2019-08-21 10:00:01 +02:00
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 11px;
width: 11px;
background-color: #eee;
2019-03-25 20:04:04 +01:00
2019-08-21 10:00:01 +02:00
&:after {
content: "";
position: absolute;
display: none;
2018-09-30 21:50:59 +02:00
2019-08-21 10:00:01 +02:00
left: 4px;
top: 1px;
width: 3px;
height: 7px;
border: solid white;
border-width: 0 2px 2px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
}
2018-09-30 21:50:59 +02:00
2019-08-21 10:00:01 +02:00
&:hover input ~ .checkmark {
background-color: #ccc;
}
2018-09-30 21:50:59 +02:00
2019-08-21 10:00:01 +02:00
input:checked ~ .checkmark {
background-color: #2196F3;
}
2018-09-30 21:50:59 +02:00
2019-08-21 10:00:01 +02:00
input:checked ~ .checkmark:after {
display: block;
2018-09-30 21:50:59 +02:00
}
}