mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
296 lines
6.0 KiB
CSS
296 lines
6.0 KiB
CSS
/** This removes all padding and margins as well as
|
|
setting a default font size and family for the page **/
|
|
|
|
|
|
:root{
|
|
--my-font-color: #66ff33;
|
|
--my-background-color: #000000;
|
|
--my-highlight-color: #ffffff;
|
|
}
|
|
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 16px;
|
|
font-family: 'Lucida Console', 'Lucida Sans Unicode', 'Fira Mono', 'Consolas', 'Courier New', Courier, monospace, 'Times New Roman';
|
|
/*background-color: #252527;*/
|
|
background-color: var(--my-background-color);
|
|
}
|
|
|
|
p {
|
|
color: var(--my-font-color);
|
|
}
|
|
|
|
h1 {
|
|
font-size: 22px;
|
|
color: var(--my-font-color);
|
|
}
|
|
|
|
h2 {
|
|
color: var(--my-font-color);
|
|
}
|
|
|
|
ul {
|
|
padding: 6px;
|
|
list-style-type: none;
|
|
}
|
|
|
|
li {
|
|
list-style-type: none;
|
|
}
|
|
|
|
span {
|
|
margin: 4px;
|
|
padding: 4px;
|
|
}
|
|
|
|
/* Disable border highlight on elements */
|
|
input:focus,
|
|
textarea:focus,
|
|
button:focus,
|
|
td:focus,
|
|
tr:focus {
|
|
outline:none;
|
|
}
|
|
|
|
/* Main menu */
|
|
.mainmenu {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 10%;
|
|
position: fixed;
|
|
height: 100%;
|
|
overflow: auto;
|
|
|
|
border: 0;
|
|
border-bottom: 1px solid #000000;
|
|
border-radius: 0;
|
|
background-color: #333;
|
|
}
|
|
|
|
.mainmenu>li a {
|
|
display: block;
|
|
color: #e6e6e6;
|
|
background-color: #333;
|
|
padding: 16px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.mainmenu>li a:hover:not(.active) {
|
|
background-color: #555;
|
|
color: white;
|
|
}
|
|
|
|
.mainmenu>li a:focus {
|
|
background-color: #555;
|
|
}
|
|
|
|
.mainmenu>li a.active {
|
|
background-color: #555;
|
|
color: white;
|
|
|
|
}
|
|
|
|
/* Make html links ("a" elements) nice looking buttons with this class */
|
|
.a-link-button {
|
|
text-decoration: none;
|
|
background-color: #555;
|
|
color: #FFFFFF;
|
|
padding: 5px;
|
|
margin: 5px;
|
|
border: 1px solid #333333;
|
|
/*width: 30%;*/
|
|
}
|
|
|
|
.a-link-button:hover {
|
|
background-color: #666;
|
|
}
|
|
|
|
/* Make anchor tags ("a" elements) inactive (not clickable) */
|
|
.a-link-button-inactive {
|
|
text-decoration: none;
|
|
background-color: #333;
|
|
color: #FFFFFF;
|
|
padding: 5px;
|
|
margin: 5px;
|
|
border-top: 1px solid #333333;
|
|
border-right: 1px solid #333333;
|
|
border-bottom: 1px solid #333333;
|
|
border-left: 1px solid #333333;
|
|
pointer-events: none;
|
|
cursor: default;
|
|
/*width: 50%;*/
|
|
}
|
|
|
|
|
|
/* Notification icon (for create program right now only) */
|
|
.create-program-tab {
|
|
position:relative;
|
|
}
|
|
#create-program-notification {
|
|
font-size: 10px;
|
|
|
|
position: absolute; /* Position the badge within the relatively positioned button */
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.notification-on {
|
|
background-color: #fa3e3e;
|
|
color: white;
|
|
border-radius: 2px;
|
|
padding: 1px 3px;
|
|
}
|
|
|
|
.notification-off {
|
|
background-color: #333;
|
|
color: #333;
|
|
border-radius: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
/* Tool tips (when hovering over an element */
|
|
.tooltip {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.tooltip .tooltiptext {
|
|
visibility: hidden;
|
|
width: 300px;
|
|
background-color: var(--my-background-color);
|
|
border: 2px solid var(--my-highlight-color);;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 4px;
|
|
left: 101%;
|
|
|
|
position: absolute;
|
|
z-index: 3;
|
|
}
|
|
|
|
.tooltip:hover .tooltiptext {
|
|
visibility: visible;
|
|
}
|
|
|
|
/* Flashing button (Red) */
|
|
@-webkit-keyframes glowing {
|
|
0% { background-color: #B20000; -webkit-box-shadow: 0 0 3px #B20000; }
|
|
50% { background-color: #FF0000; -webkit-box-shadow: 0 0 40px #FF0000; }
|
|
100% { background-color: #B20000; -webkit-box-shadow: 0 0 3px #B20000; }
|
|
}
|
|
|
|
@-moz-keyframes glowing {
|
|
0% { background-color: #B20000; -moz-box-shadow: 0 0 3px #B20000; }
|
|
50% { background-color: #FF0000; -moz-box-shadow: 0 0 40px #FF0000; }
|
|
100% { background-color: #B20000; -moz-box-shadow: 0 0 3px #B20000; }
|
|
}
|
|
|
|
@-o-keyframes glowing {
|
|
0% { background-color: #B20000; box-shadow: 0 0 3px #B20000; }
|
|
50% { background-color: #FF0000; box-shadow: 0 0 40px #FF0000; }
|
|
100% { background-color: #B20000; box-shadow: 0 0 3px #B20000; }
|
|
}
|
|
|
|
@keyframes glowing {
|
|
0% { background-color: #B20000; box-shadow: 0 0 3px #B20000; }
|
|
50% { background-color: #FF0000; box-shadow: 0 0 40px #FF0000; }
|
|
100% { background-color: #B20000; box-shadow: 0 0 3px #B20000; }
|
|
}
|
|
|
|
.flashing-button {
|
|
-webkit-animation: glowing 1500ms infinite;
|
|
-moz-animation: glowing 1500ms infinite;
|
|
-o-animation: glowing 1500ms infinite;
|
|
animation: glowing 1500ms infinite;
|
|
}
|
|
|
|
/* Status text */
|
|
@-webkit-keyframes status-text{
|
|
from{
|
|
opacity:1;
|
|
top:0px;
|
|
}
|
|
to{
|
|
opacity:0;
|
|
top:0px;
|
|
}
|
|
}
|
|
|
|
.status-text{
|
|
display:inline;
|
|
position:fixed;
|
|
top:0px;
|
|
-webkit-animation:status-text 3s 1;
|
|
background-color: transparent;
|
|
}
|
|
|
|
#status-text-container {
|
|
background-color: transparent;
|
|
}
|
|
|
|
#status-text {
|
|
font-size: 20px;
|
|
color: #FFFFFF;
|
|
right: 0;
|
|
bottom: 0;
|
|
padding: 4px;
|
|
margin-right: 14px;
|
|
background-color: transparent;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Character Overview */
|
|
#character-overview-wrapper {
|
|
position: relative;
|
|
}
|
|
#character-overview-container {
|
|
display: none;
|
|
position: absolute; /* Stay in place */
|
|
right: 0;
|
|
top: 0;
|
|
height: 185px; /* Full height */
|
|
/*margin: 50% auto;*/
|
|
padding: 5px;
|
|
border: 2px solid var(--my-highlight-color);
|
|
width: 18%;
|
|
overflow: auto; /* Enable scroll if needed */
|
|
background-color: #444; /* Fallback color */
|
|
z-index: 1;
|
|
}
|
|
|
|
#character-overview-text {
|
|
padding: 4px;
|
|
margin: 10px;
|
|
color: white;
|
|
background-color: #444;
|
|
}
|
|
|
|
#character-overview-save-button,
|
|
#character-overview-options-button {
|
|
color: #aaa;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
-webkit-border-radius: 12px;
|
|
-moz-border-radius: 12px;
|
|
border-radius: 12px;
|
|
-moz-box-shadow: 1px 1px 3px #000;
|
|
-webkit-box-shadow: 1px 1px 3px #000;
|
|
box-shadow: 1px 1px 3px #000;
|
|
}
|
|
|
|
#character-overview-save-button:hover,
|
|
#character-overview-save-button:focus,
|
|
#character-overview-options-button:hover,
|
|
#character-overview-options-button:focus {
|
|
color: white;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#character-overview-options-button {
|
|
display: inline-block;
|
|
}
|