This repository has been archived on 2022-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
tghandbook/style/ui.scss

242 lines
4.2 KiB
SCSS
Raw Permalink Normal View History

2020-06-27 12:31:30 +00:00
html,
body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
2020-06-27 12:31:30 +00:00
}
.bgimage {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 0;
img {
opacity: 0.4;
width: 80vmin;
}
2020-06-27 12:31:30 +00:00
}
body {
background: linear-gradient(
to bottom,
darken($nanotrasen, 20%),
darken($nanotrasen, 10%)
);
background-size: 100% 100%;
background-attachment: fixed;
color: #fff;
font-family: "Iosevka Aile Web", sans-serif;
font-size: 9pt;
line-height: 1.6em;
2020-06-27 12:31:30 +00:00
}
#app {
height: 100%;
display: flex;
flex-direction: column;
&.waiting {
#tab-list,
#section-list {
display: none;
2020-06-27 12:31:30 +00:00
}
}
2020-06-27 12:31:30 +00:00
}
::-webkit-scrollbar {
width: 14pt;
2020-06-27 12:31:30 +00:00
}
::-webkit-scrollbar-track {
background: linear-gradient(
to bottom,
darken($nanotrasen, 0%),
darken($nanotrasen, 10%),
darken($nanotrasen, 0%)
);
border: 1px solid lighten($nanotrasen, 10%);
2020-06-27 12:31:30 +00:00
}
::-webkit-scrollbar-thumb {
border-radius: 2px;
background: linear-gradient(
to bottom,
lighten($nanotrasen, 20%),
lighten($nanotrasen, 30%),
lighten($nanotrasen, 20%)
);
border: 1px solid lighten($nanotrasen, 10%);
2020-06-27 12:31:30 +00:00
}
.speen {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 12pt;
img {
width: 60vmin;
max-height: 100%;
opacity: 0.9;
padding-bottom: 1em;
}
2020-06-27 12:31:30 +00:00
}
#tabs {
flex: 1;
z-index: 1;
display: grid;
overflow: hidden;
.page {
//visibility: hidden;
will-change: display;
&:not(.active) {
display: none;
}
2020-06-30 11:48:47 +00:00
overflow: auto;
grid-row: 1;
grid-column: 1;
&.active {
//visibility: visible;
&.waiting {
user-select: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
height: 100%;
}
2020-06-27 12:31:30 +00:00
}
}
2020-06-27 12:31:30 +00:00
}
$section-active: darken($nanotrasen, 5%);
$tab-active: lighten($nanotrasen, 10%);
#section-list {
z-index: 2;
border-bottom: 2px solid $section-active;
display: flex;
.section {
2020-06-27 12:31:30 +00:00
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
user-select: none;
font-size: 9pt;
padding: 3pt 7pt;
text-transform: uppercase;
color: lighten($nanotrasen, 60%);
flex: 1;
&.active {
background-color: $section-active;
color: white;
2020-06-27 12:31:30 +00:00
}
&:not(.active) {
cursor: pointer;
&:hover {
background-color: darken($section-active, 10%);
}
}
}
2020-06-27 12:31:30 +00:00
}
#tab-list {
z-index: 2;
display: flex;
background-color: $section-active;
border-bottom: 4px solid $tab-active;
.tab {
2020-06-27 12:31:30 +00:00
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
user-select: none;
font-size: 7pt;
padding: 2px 4px;
padding-bottom: 0;
text-transform: uppercase;
flex: 1;
max-width: 100px;
2020-06-27 12:31:30 +00:00
img {
height: 80%;
max-height: 24px;
margin: 0;
}
&.active {
background-color: $tab-active;
}
&:not(.active) {
cursor: pointer;
&:hover {
background-color: darken($tab-active, 8%);
}
}
&.hidden {
display: none;
2020-06-27 12:31:30 +00:00
}
}
2020-06-27 12:31:30 +00:00
}
noscript {
position: fixed;
top: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: transparent;
width: 100%;
2020-06-27 12:31:30 +00:00
}
.loading-icons {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
user-select: none;
font-size: 9pt;
padding: 3pt 7pt;
text-transform: uppercase;
flex-wrap: wrap;
div {
border: 1px solid red;
2020-06-27 12:31:30 +00:00
display: flex;
flex-direction: column;
2020-06-27 12:31:30 +00:00
align-items: center;
}
img {
max-width: 32px;
}
2020-06-27 12:31:30 +00:00
}
2020-07-02 10:46:41 +00:00
.pretty-button {
font-family: "Iosevka Aile Web", sans-serif;
background-color: darken($nanotrasen, 10%);
border: 1px solid lighten($nanotrasen, 30%);
color: white;
padding: 6pt 10pt;
border-radius: 3px;
cursor: pointer;
transition: all 100ms;
&:hover {
background-color: $nanotrasen;
border: 1px solid lighten($nanotrasen, 50%);
}
margin: 10px;
2020-07-02 10:46:41 +00:00
}