mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-05 15:28:29 +08:00
273 lines
5.8 KiB
CSS
273 lines
5.8 KiB
CSS
:root {
|
|
/* Basic view variables */
|
|
|
|
--bg-color: hsl(0, 0%, 15%);
|
|
--text-color: hsl(0, 0%, 80%);
|
|
--text-color-disabled: hsl(0, 0%, 55%);
|
|
--font-family: Verdana, Geneva, sans-serif;
|
|
--border-color: hsl(0, 0%, 25%);
|
|
--border-color-focus: hsl(0, 0%, 35%);
|
|
--border: solid 1px var(--border-color);
|
|
--border-focus: solid 1px var(--border-color-focus);
|
|
|
|
/* Scrollbars */
|
|
|
|
--scrollbar-color: hsl(0, 0%, 13%);
|
|
--scrollbar-thumb-color: hsl(0, 0%, 17%);
|
|
|
|
/* Controls */
|
|
|
|
--control-bg-color: hsl(0, 0%, 20%);
|
|
--control-bg-color-hover: hsl(0, 0%, 25%);
|
|
--control-text-color: hsl(0, 0%, 80%);
|
|
--control-text-color-hover: hsl(0, 0%, 90%);
|
|
--control-border: solid 1px hsl(0, 0%, 10%);
|
|
|
|
--control-inner-border: solid 1px hsl(0, 0%, 35%);
|
|
--control-inner-border-focus: solid 1px hsl(0, 0%, 50%);
|
|
|
|
/* Inputs */
|
|
|
|
--input-bg-color: hsl(0, 0%, 12%);
|
|
--input-bg-color-disabled: hsl(0, 0%, 15%);
|
|
--input-text-color: hsl(0, 0%, 75%);
|
|
--input-text-color-disabled: var(--text-color-disabled);
|
|
--input-border: solid 1px hsl(0, 0%, 25%);
|
|
--input-border-hover: solid 1px hsl(0, 0%, 30%);
|
|
--input-border-focus: solid 1px hsl(0, 0%, 40%);
|
|
--input-border-disabled: solid 1px hsl(0, 0%, 20%);
|
|
|
|
--input-inner-border: solid 1px hsl(0, 0%, 5%);
|
|
}
|
|
|
|
* {
|
|
scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-color);
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
background-color: var(--scrollbar-color);
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background-color: var(--scrollbar-color);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: var(--scrollbar-thumb-color);
|
|
}
|
|
|
|
::-webkit-scrollbar-corner {
|
|
background-color: var(--scrollbar-color);
|
|
}
|
|
|
|
body {
|
|
cursor: default;
|
|
user-select: none;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
font-size: 13px;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.1em;
|
|
margin: 0.5em 0;
|
|
}
|
|
|
|
#root *[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.application_ApplicationView {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.application_NavigationView {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
background-color: hsl(0, 0%, 10%);
|
|
border-bottom: solid 2px var(--bg-color);
|
|
}
|
|
|
|
.application_NavigationView_spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.application_NavigationView_server {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.application_NavigationView_server > * {
|
|
margin: 0 2px;
|
|
}
|
|
|
|
.application_NavigationView_time {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.application_NavigationView_github {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
font-size: 16px;
|
|
color: var(--control-text-color);
|
|
}
|
|
|
|
.application_NavigationView_github:hover {
|
|
color: var(--control-text-color-hover);
|
|
}
|
|
|
|
.application_NavigationButton input {
|
|
display: none;
|
|
}
|
|
|
|
.application_NavigationButton label {
|
|
box-sizing: border-box;
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
font-size: 13px;
|
|
height: 100%;
|
|
padding: 0 20px;
|
|
color: hsl(0, 0%, 65%);
|
|
}
|
|
|
|
.application_NavigationButton label:hover {
|
|
color: hsl(0, 0%, 85%);
|
|
background-color: hsl(0, 0%, 12%);
|
|
}
|
|
|
|
.application_NavigationButton input:checked + label {
|
|
color: hsl(0, 0%, 85%);
|
|
background-color: var(--bg-color);
|
|
}
|
|
|
|
.core_Label.disabled {
|
|
color: var(--text-color-disabled);
|
|
}
|
|
|
|
.core_Select {
|
|
position: relative;
|
|
display: inline-flex;
|
|
width: 160px;
|
|
}
|
|
|
|
.core_Select .core_Button {
|
|
flex: 1;
|
|
}
|
|
|
|
.core_Select .core_Menu {
|
|
top: 25px;
|
|
left: 0;
|
|
min-width: 100%;
|
|
}
|
|
|
|
.core_Button {
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
align-content: stretch;
|
|
box-sizing: border-box;
|
|
height: 26px;
|
|
padding: 0;
|
|
border: var(--control-border);
|
|
color: var(--control-text-color);
|
|
outline: none;
|
|
font-size: 13px;
|
|
font-family: var(--font-family);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.core_Button .core_Button_inner {
|
|
flex: 1;
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
background-color: var(--control-bg-color);
|
|
height: 24px;
|
|
padding: 3px 5px;
|
|
border: var(--control-inner-border);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.core_Button:hover .core_Button_inner {
|
|
background-color: var(--control-bg-color-hover);
|
|
border-color: hsl(0, 0%, 40%);
|
|
color: var(--control-text-color-hover);
|
|
}
|
|
|
|
.core_Button:active .core_Button_inner {
|
|
background-color: hsl(0, 0%, 20%);
|
|
border-color: hsl(0, 0%, 30%);
|
|
color: hsl(0, 0%, 75%);
|
|
}
|
|
|
|
.core_Button:focus-within .core_Button_inner {
|
|
border: var(--control-inner-border-focus);
|
|
}
|
|
|
|
.core_Button:disabled .core_Button_inner {
|
|
background-color: hsl(0, 0%, 15%);
|
|
border-color: hsl(0, 0%, 25%);
|
|
color: hsl(0, 0%, 55%);
|
|
}
|
|
|
|
.core_Button_inner > * {
|
|
display: inline-block;
|
|
margin: 0 3px;
|
|
}
|
|
|
|
.core_Button_center {
|
|
flex: 1;
|
|
text-align: left;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.core_Button_left,
|
|
.core_Button_right {
|
|
display: inline-flex;
|
|
align-content: center;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.core_Menu {
|
|
z-index: 1000;
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
border: var(--control-border);
|
|
--scrollbar-color: hsl(0, 0%, 18%);
|
|
--scrollbar-thumb-color: hsl(0, 0%, 22%);
|
|
}
|
|
|
|
.core_Menu > .core_Menu_inner {
|
|
overflow: auto;
|
|
background-color: var(--control-bg-color);
|
|
max-height: 500px;
|
|
border: var(--control-inner-border);
|
|
}
|
|
|
|
.core_Menu > .core_Menu_inner > * {
|
|
padding: 4px 8px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.core_Menu > .core_Menu_inner > .core_Menu_hovered {
|
|
background-color: var(--control-bg-color-hover);
|
|
color: var(--control-text-color-hover);
|
|
}
|
|
|