bitburner-src/css/mainmenu.scss

136 lines
2.5 KiB
SCSS
Raw Normal View History

@import "mixins";
@import "theme";
/**
* Styling for the main navigation menu on the left-hand-side
*/
.mainmenu {
2021-09-05 01:09:30 +02:00
list-style-type: none;
margin: 0;
padding: 0;
width: 10%;
position: fixed;
height: 100%;
overflow: auto;
border: 0;
border-bottom: 1px solid #000;
border-radius: 0;
background-color: #333;
}
/* Default buttons */
.mainmenu > li a,
.mainmenu > li button {
2021-09-05 01:09:30 +02:00
display: block;
color: #e6e6e6;
background-color: #555;
padding: 12px 8px;
text-decoration: none;
cursor: pointer;
width: 100%;
text-align: left;
}
.mainmenu.classic > li a,
.mainmenu.classic > li button {
2021-09-05 01:09:30 +02:00
padding: 16px;
}
.mainmenu.compact > li a,
.mainmenu.compact > li button {
2021-09-05 01:09:30 +02:00
display: block;
color: #e6e6e6;
background-color: #555;
text-decoration: none;
cursor: pointer;
width: 100%;
text-align: left;
padding: 4px;
}
/* Hovering makes them lighter */
.mainmenu > li a:hover,
.mainmenu > li a:hover:not(.active),
.mainmenu > li a:focus {
2021-09-05 01:09:30 +02:00
background-color: #777;
color: #fff;
}
.mainmenu > li button:hover,
.mainmenu > li button:hover:not(.active) {
2021-09-05 01:09:30 +02:00
background-color: #777;
color: #fff;
}
/* Panel headers can become active, and they are "lighter" than the rest */
.mainmenu > li a.active,
.mainmenu > li button.active {
2021-09-05 01:09:30 +02:00
background-color: #777;
color: #fff;
}
.mainmenu > li a.active:hover,
.mainmenu > li button.active:hover {
2021-09-05 01:09:30 +02:00
background-color: #aaa;
}
#hacking-menu-header-li,
#character-menu-header-li,
#world-menu-header-li,
#help-menu-header-li {
2021-09-05 01:09:30 +02:00
position: relative;
}
/* Accordion Outline */
.mainmenu-accordion-header,
.mainmenu-accordion-header-compact {
2021-09-05 01:09:30 +02:00
outline: 2px solid #fff !important;
}
.mainmenu-accordion-header-classic {
2021-09-05 01:09:30 +02:00
border: 2px solid #fff;
padding: 16px !important;
}
/* Plus and minus signs */
.mainmenu-accordion-header:after,
.mainmenu-accordion-header-compact:after {
2021-09-05 01:09:30 +02:00
content: "\02795";
float: right;
font-size: $defaultFontSize * 0.8125;
position: absolute;
bottom: 25%;
right: 3px;
color: transparent;
text-shadow: 0 0 0 #fff;
}
.mainmenu-accordion-header-classic:after {
2021-09-05 01:09:30 +02:00
content: "\02795";
float: right;
font-size: $defaultFontSize * 0.8125;
color: #fff;
margin-left: 5px;
}
.mainmenu-accordion-header.opened,
.mainmenu-accordion-header-classic.opened,
.mainmenu-accordion-header-compact.opened {
2021-09-05 01:09:30 +02:00
background-color: #222 !important;
2021-09-05 01:09:30 +02:00
&:after {
content: "\2796";
}
}
/* Slide down transition */
.mainmenu-accordion-panel {
2021-09-05 01:09:30 +02:00
max-height: 0;
opacity: 1;
transition: max-height 0.2s ease-out;
}