bitburner-src/css/styles.scss

529 lines
8.3 KiB
SCSS
Raw Normal View History

@import "mixins";
@import "theme";
@import "reset";
:root {
2021-09-05 01:09:30 +02:00
--my-font-color: #6f3;
--my-background-color: #000;
--my-highlight-color: #fff;
--my-prompt-color: #f92672;
2017-06-07 03:23:51 +02:00
}
2017-08-20 03:36:19 +02:00
2017-09-01 16:12:40 +02:00
body {
2021-09-05 01:09:30 +02:00
background-color: var(--my-background-color);
2021-09-11 18:42:41 +02:00
-ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */
}
body::-webkit-scrollbar {
display: none; /* for Chrome, Safari, and Opera */
2016-10-16 01:23:04 +02:00
}
p,
pre,
h2,
h3,
h4,
.text,
td {
2021-09-05 01:09:30 +02:00
color: var(--my-font-color);
2016-10-16 01:23:04 +02:00
}
h1 {
2021-09-05 01:09:30 +02:00
font-size: $defaultFontSize * 1.375;
color: var(--my-font-color);
}
2016-11-24 23:30:33 +01:00
ul {
2021-09-05 01:09:30 +02:00
padding: 2px;
list-style-type: none;
}
li {
2021-09-05 01:09:30 +02:00
list-style-type: none;
}
2021-08-15 20:09:58 +02:00
br {
2021-09-05 01:09:30 +02:00
@extend .noselect;
2021-08-15 20:09:58 +02:00
}
2017-09-01 16:12:40 +02:00
#entire-game-container {
2021-09-05 01:09:30 +02:00
background-color: transparent;
2017-09-01 16:12:40 +02:00
}
/* Disable border highlight on elements */
input:focus,
textarea:focus,
button:focus,
td:focus,
tr:focus {
2021-09-05 01:09:30 +02:00
outline: none;
}
/* Make html links ("a" elements) nice looking buttons with this class */
a:link,
a:visited {
2021-09-05 01:09:30 +02:00
color: #fff;
}
.dropdown {
2021-09-05 01:09:30 +02:00
color: #fff;
background-color: #000;
}
.text-input {
2021-09-05 01:09:30 +02:00
color: #fff;
background-color: #000;
border-style: solid;
border-width: 1px;
border-color: white;
}
/* Notification icon (for create program right now only) */
2017-07-22 00:54:55 +02:00
#create-program-tab {
2021-09-05 01:09:30 +02:00
position: relative;
}
#create-program-notification {
2021-09-05 01:09:30 +02:00
font-size: $defaultFontSize * 0.625;
position: absolute; /* Position the badge within the relatively positioned button */
top: 0;
right: 0;
}
#factions-tab {
2021-09-05 01:09:30 +02:00
position: relative;
}
#factions-notification {
2021-09-05 01:09:30 +02:00
font-size: $defaultFontSize * 0.625;
position: absolute; /* Position the badge within the relatively positioned button */
top: 0;
right: 0;
}
#augmentations-tab {
2021-09-05 01:09:30 +02:00
position: relative;
}
#augmentations-notification {
2021-09-05 01:09:30 +02:00
font-size: $defaultFontSize * 0.625;
position: absolute; /* Position the badge within the relatively positioned button */
top: 0;
right: 0;
}
.notification-on {
2021-09-05 01:09:30 +02:00
background-color: #fa3e3e;
color: #fff;
border-radius: 2px;
padding: 1px 3px;
2021-09-11 07:54:19 +02:00
font-size: $defaultFontSize * 0.625;
top: 0;
right: 0;
2021-09-11 08:11:41 +02:00
position: absolute;
}
.notification-off {
2021-09-05 01:09:30 +02:00
background-color: #333;
color: #333;
border-radius: 0;
padding: 0;
2021-09-11 07:54:19 +02:00
display: "none";
}
2021-09-11 08:11:41 +02:00
.notification {
position: relative;
display: inline-block;
}
.notification .badge {
position: absolute;
top: 0;
right: 0;
padding: 2px;
background: red;
color: white;
}
2018-03-12 20:39:04 +01:00
/* help tip. Question mark that opens popup with info/details */
.help-tip {
2021-09-05 01:09:30 +02:00
background-color: black;
border: 1px solid #fff;
border-radius: 5px;
color: #fff;
content: "?";
display: inline-block;
margin-left: 3px;
padding: 1px;
2018-03-12 20:39:04 +01:00
}
.help-tip-big {
2021-09-05 01:09:30 +02:00
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 {
2021-09-05 01:09:30 +02:00
background-color: #888;
2018-03-12 20:39:04 +01:00
}
.help-tip:active,
.help-tip-big:active {
2021-09-05 01:09:30 +02:00
@include boxShadow(inset 0 1px 4px rgba(0, 0, 0, 0.6));
2018-03-12 20:39:04 +01:00
}
/* Flashing button (Red) */
2017-05-15 07:09:14 +02:00
@-webkit-keyframes glowing {
2021-09-05 01:09:30 +02:00
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;
}
2017-05-15 07:09:14 +02:00
}
@-moz-keyframes glowing {
2021-09-05 01:09:30 +02:00
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;
}
2017-05-15 07:09:14 +02:00
}
@-o-keyframes glowing {
2021-09-05 01:09:30 +02:00
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;
}
2017-05-15 07:09:14 +02:00
}
@keyframes glowing {
2021-09-05 01:09:30 +02:00
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;
}
2017-05-15 07:09:14 +02:00
}
.flashing-button {
2021-09-05 01:09:30 +02:00
-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 {
2021-09-05 01:09:30 +02:00
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;
}
2021-09-05 01:09:30 +02:00
@-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2021-09-05 01:09:30 +02:00
@-webkit-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2021-09-05 01:09:30 +02:00
@-moz-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2021-09-05 01:09:30 +02:00
@-ms-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2021-09-05 01:09:30 +02:00
@-o-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Status text */
@-webkit-keyframes status-text {
2021-09-05 01:09:30 +02:00
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.status-text {
2021-09-05 01:09:30 +02:00
z-index: 2;
-webkit-animation: status-text 3s 1;
}
#status-text-container {
2021-09-05 01:09:30 +02:00
background-color: transparent;
position: absolute;
top: 0;
left: 50%;
}
#status-text {
2021-09-05 01:09:30 +02:00
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;
}
2017-05-20 09:33:33 +02:00
/* Scan analyze links from AutoLink */
.scan-analyze-link {
2021-09-05 01:09:30 +02:00
cursor: pointer;
color: #fff;
text-decoration: underline;
2021-09-05 01:09:30 +02:00
&:hover {
text-decoration: none;
}
}
/* Accordion menus (Header with collapsible panel) */
.accordion-header {
2021-09-05 01:09:30 +02:00
background-color: #444;
color: #fff;
font-size: $defaultFontSize * 1.25;
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 {
2021-09-05 01:09:30 +02:00
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;
2021-09-05 01:09:30 +02:00
}
}
/* override the global <span> styling */
#active-scripts-total-production-active,
#active-scripts-total-prod-aug-total,
#active-scripts-total-prod-aug-avg {
2021-09-05 01:09:30 +02:00
margin: 0;
padding: 0;
}
/* Helper Classes */
.hacker-green {
2021-09-05 01:09:30 +02:00
color: $hacker-green;
}
.money-gold {
2021-09-05 01:09:30 +02:00
color: $money-gold;
}
.light-yellow {
2021-09-05 01:09:30 +02:00
color: $light-yellow;
}
.unbuyable {
2021-09-05 01:09:30 +02:00
color: #66cfbc;
}
.failure {
2021-09-05 01:09:30 +02:00
color: $alert-red;
text-shadow: 0 0 0 $alert-red;
}
.success {
2021-09-05 01:09:30 +02:00
color: $success-green;
text-shadow: 0 0 0 $success-green;
}
.physical-yellow {
2021-09-05 01:09:30 +02:00
color: $my-stat-physical;
}
.charisma-purple {
2021-09-05 01:09:30 +02:00
color: $my-stat-cha-color;
}
.reputation {
2021-09-05 01:09:30 +02:00
color: $light-yellow;
}
.smallfont {
2021-09-05 01:09:30 +02:00
font-size: $defaultFontSize * 0.8125;
}
.samefont {
2021-09-05 01:09:30 +02:00
font-size: inherit;
}
.noscrollbar {
2021-09-05 01:09:30 +02:00
-ms-overflow-style: none; /* IE and Edge */
/* stylelint-disable-next-line property-no-unknown */
scrollbar-width: none; /* Firefox https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width */
}
.noscrollbar::-webkit-scrollbar {
2021-09-05 01:09:30 +02:00
display: none;
}
2021-05-29 20:48:56 +02:00
input[type="checkbox"] {
2021-09-05 01:09:30 +02:00
filter: invert(1) sepia(1) hue-rotate(41deg) brightness(100%) saturate(10);
2021-03-12 20:09:35 +01:00
}
.optionCheckbox {
2021-09-05 01:09:30 +02:00
margin: 5px;
float: right;
}
.optionRange {
2021-09-05 01:09:30 +02:00
-webkit-appearance: none;
background: #777;
outline: none;
opacity: 0.7;
height: 10px;
-webkit-transition: 0.2s;
transition: opacity 0.2s;
margin: 3px;
}
.optionRange::-webkit-slider-thumb {
2021-09-05 01:09:30 +02:00
-webkit-appearance: none;
appearance: none;
width: 10px;
height: 10px;
background: var(--my-font-color);
cursor: pointer;
}
.optionRange::-moz-range-thumb {
2021-09-05 01:09:30 +02:00
width: 10px;
height: 10px;
background: var(--my-font-color);
cursor: pointer;
}
.noselect {
2021-09-05 01:09:30 +02:00
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
2021-04-30 05:59:43 +02:00
}