mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 04:35:46 +01:00
339 lines
6.4 KiB
SCSS
339 lines
6.4 KiB
SCSS
@import "mixins";
|
|
@import "theme";
|
|
|
|
@import "reset";
|
|
|
|
:root {
|
|
--my-font-color: #6f3;
|
|
--my-background-color: #000;
|
|
--my-highlight-color: #fff;
|
|
--my-prompt-color: #f92672;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--my-background-color);
|
|
}
|
|
|
|
p,
|
|
pre,
|
|
h2,
|
|
.text {
|
|
color: var(--my-font-color);
|
|
}
|
|
|
|
h1 {
|
|
font-size: $defaultFontSize * 1.375;
|
|
color: var(--my-font-color);
|
|
}
|
|
|
|
ul {
|
|
padding: 2px;
|
|
list-style-type: none;
|
|
}
|
|
|
|
li {
|
|
list-style-type: none;
|
|
}
|
|
|
|
#entire-game-container {
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Disable border highlight on elements */
|
|
input:focus,
|
|
textarea:focus,
|
|
button:focus,
|
|
td:focus,
|
|
tr:focus {
|
|
outline: none;
|
|
}
|
|
|
|
/* Make html links ("a" elements) nice looking buttons with this class */
|
|
a:link,
|
|
a:visited {
|
|
color: #fff;
|
|
}
|
|
|
|
.dropdown {
|
|
color: #fff;
|
|
background-color: #000;
|
|
}
|
|
|
|
.text-input {
|
|
color: #fff;
|
|
background-color: #000;
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
border-color: white;
|
|
}
|
|
|
|
/* Notification icon (for create program right now only) */
|
|
#create-program-tab {
|
|
position: relative;
|
|
}
|
|
|
|
#create-program-notification {
|
|
font-size: $defaultFontSize * 0.625;
|
|
position: absolute; /* Position the badge within the relatively positioned button */
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.notification-on {
|
|
background-color: #fa3e3e;
|
|
color: #fff;
|
|
border-radius: 2px;
|
|
padding: 1px 3px;
|
|
}
|
|
|
|
.notification-off {
|
|
background-color: #333;
|
|
color: #333;
|
|
border-radius: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* help tip. Question mark that opens popup with info/details */
|
|
.help-tip {
|
|
background-color: black;
|
|
border: 1px solid #fff;
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
content: '?';
|
|
display: inline-block;
|
|
margin-left: 3px;
|
|
padding: 1px;
|
|
}
|
|
|
|
.help-tip-big {
|
|
content: '?';
|
|
padding: 3px;
|
|
margin-left: 3px;
|
|
color: #fff;
|
|
border: 1px solid #fff;
|
|
border-radius: 8px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.help-tip:hover,
|
|
.help-tip-big:hover {
|
|
background-color: #888;
|
|
}
|
|
|
|
.help-tip:active,
|
|
.help-tip-big:active {
|
|
@include boxShadow(inset 0 1px 4px rgba(0, 0, 0, 0.6));
|
|
}
|
|
|
|
/* Flashing button (Red) */
|
|
@-webkit-keyframes glowing {
|
|
0% { background-color: #b20000; -webkit-box-shadow: 0 0 3px #b20000; }
|
|
50% { background-color: #f00; -webkit-box-shadow: 0 0 40px #f00; }
|
|
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: #f00; -moz-box-shadow: 0 0 40px #f00; }
|
|
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: #f00; box-shadow: 0 0 40px #f00; }
|
|
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: #f00; box-shadow: 0 0 40px #f00; }
|
|
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;
|
|
}
|
|
|
|
/* Blinking Cursor */
|
|
/* ----- blinking cursor animation ----- */
|
|
.typed-cursor {
|
|
opacity: 1;
|
|
-webkit-animation: blink 0.95s infinite;
|
|
-moz-animation: blink 0.95s infinite;
|
|
-ms-animation: blink 0.95s infinite;
|
|
-o-animation: blink 0.95s infinite;
|
|
animation: blink 0.95s infinite;
|
|
}
|
|
|
|
@-keyframes blink{
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0; }
|
|
100% { opacity: 1; }
|
|
}
|
|
@-webkit-keyframes blink{
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0; }
|
|
100% { opacity: 1; }
|
|
}
|
|
@-moz-keyframes blink{
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0; }
|
|
100% { opacity: 1; }
|
|
}
|
|
@-ms-keyframes blink{
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0; }
|
|
100% { opacity: 1; }
|
|
}
|
|
@-o-keyframes blink{
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0; }
|
|
100% { opacity: 1; }
|
|
}
|
|
|
|
/* Status text */
|
|
@-webkit-keyframes status-text {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.status-text {
|
|
display: inline-block;
|
|
position: fixed;
|
|
z-index: 2;
|
|
-webkit-animation: status-text 3s 1;
|
|
}
|
|
|
|
#status-text-container {
|
|
background-color: transparent;
|
|
}
|
|
|
|
#status-text {
|
|
background-color: transparent;
|
|
bottom: 0;
|
|
color: #fff;
|
|
display: none;
|
|
font-size: $defaultFontSize * 1.25;
|
|
margin-right: 14px;
|
|
opacity: 0;
|
|
padding: 4px;
|
|
right: 0;
|
|
top: 0;
|
|
width: auto;
|
|
}
|
|
|
|
/* Scan analyze links from AutoLink */
|
|
.scan-analyze-link {
|
|
cursor: pointer;
|
|
color: #fff;
|
|
text-decoration: underline;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
/* Accordion menus (Header with collapsible panel) */
|
|
.accordion-header {
|
|
background-color: #444;
|
|
font-size: $defaultFontSize * 1.25;
|
|
color: #fff;
|
|
margin: 6px 6px 0 6px;
|
|
padding: 4px 6px;
|
|
cursor: pointer;
|
|
width: 80%;
|
|
text-align: left;
|
|
border: none;
|
|
outline: none;
|
|
position: relative;
|
|
|
|
&.active,
|
|
&:hover {
|
|
background-color: #555;
|
|
}
|
|
|
|
&.active:hover {
|
|
background-color: #666;
|
|
}
|
|
|
|
&:after {
|
|
content: '\02795'; /* "plus" sign (+) */
|
|
font-size: $defaultFontSize * 0.875;
|
|
float: right;
|
|
color: transparent;
|
|
text-shadow: 0 0 0 #fff;
|
|
position: absolute;
|
|
bottom: 5px;
|
|
right: 6px;
|
|
}
|
|
|
|
&.active:after {
|
|
content: "\2796"; /* "minus" sign (-) */
|
|
}
|
|
}
|
|
|
|
.accordion-panel {
|
|
margin: 0 6px 6px 6px;
|
|
padding: 0 6px 6px 6px;
|
|
width: 75%;
|
|
margin-left: 5%;
|
|
display: none;
|
|
background-color: #555;
|
|
overflow-y: auto;
|
|
overflow-x: none;
|
|
|
|
div, ul, p, ul > li {
|
|
background-color: #555;
|
|
}
|
|
}
|
|
|
|
/* override the global <span> styling */
|
|
#active-scripts-total-production-active,
|
|
#active-scripts-total-prod-aug-total,
|
|
#active-scripts-total-prod-aug-avg {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Helper Classes */
|
|
.hacker-green {
|
|
color: $hacker-green;
|
|
}
|
|
|
|
.money-gold {
|
|
color: $money-gold;
|
|
}
|
|
|
|
.light-yellow {
|
|
color: $light-yellow;
|
|
}
|
|
|
|
.failure {
|
|
color: $alert-red;
|
|
text-shadow: 0 0 0 $alert-red;
|
|
}
|
|
|
|
.success {
|
|
color: $success-green;
|
|
text-shadow: 0 0 0 $success-green;
|
|
}
|
|
|
|
.physical-yellow {
|
|
color: $my-stat-physical;
|
|
}
|
|
|
|
.charisma-purple {
|
|
color: $my-stat-cha-color;
|
|
}
|
|
|
|
.smallfont {
|
|
font-size: $defaultFontSize * 0.8125;
|
|
}
|