tghandbook/style/main.scss

210 lines
3.6 KiB
SCSS
Raw Normal View History

2020-06-17 08:33:49 +00:00
@import "vars.scss";
2020-06-16 15:08:44 +00:00
2020-06-16 09:32:48 +00:00
html,
body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
2020-06-16 10:51:24 +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;
}
}
body {
background: linear-gradient(to bottom, darken($nanotrasen, 20%), darken($nanotrasen, 10%));
2020-06-16 09:32:48 +00:00
background-size: 100% 100%;
background-attachment: fixed;
color: #fff;
font-family: "Iosevka Aile Web", sans-serif;
font-size: 9pt;
line-height: 1.6em;
}
#app {
height: 100%;
display: grid;
2020-06-16 09:32:48 +00:00
}
2020-06-16 15:08:44 +00:00
::-webkit-scrollbar {
width: 14pt;
}
::-webkit-scrollbar-track {
background: linear-gradient(to bottom, darken($nanotrasen, 0%), darken($nanotrasen, 10%), darken($nanotrasen, 0%));
2020-06-16 15:08:44 +00:00
border: 1px solid lighten($nanotrasen, 10%);
}
::-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-16 09:32:48 +00:00
#tabs {
2020-06-19 18:26:43 +00:00
grid-row: 3;
2020-06-16 10:51:24 +00:00
z-index: 1;
2020-06-16 16:00:29 +00:00
display: grid;
overflow: hidden;
2020-06-16 09:32:48 +00:00
.page {
2020-06-17 09:43:21 +00:00
visibility: hidden;
2020-06-16 16:00:29 +00:00
overflow-y: scroll;
grid-row: 1;
grid-column: 1;
2020-06-17 09:43:21 +00:00
&.active {
visibility: visible;
}
2020-06-16 15:08:44 +00:00
&.waiting {
2020-06-17 09:43:21 +00:00
user-select: none;
2020-06-17 00:43:10 +00:00
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
2020-06-16 15:08:44 +00:00
display: flex;
flex-direction: column;
height: 100%;
.speen {
flex: 1;
display: flex;
2020-06-17 00:43:10 +00:00
flex-direction: column;
2020-06-16 15:08:44 +00:00
justify-content: center;
align-items: center;
img {
2020-06-17 00:43:10 +00:00
width: 60vmin;
2020-06-16 15:08:44 +00:00
opacity: 0.9;
}
}
}
2020-06-19 18:26:43 +00:00
h1.pageheader {
margin-top: 0;
padding: 15pt 10pt;
}
2020-06-16 15:08:44 +00:00
p,
h2,
h3,
h4 {
padding-left: 10pt;
padding-right: 10pt;
}
2020-06-16 09:32:48 +00:00
a[href] {
color: white;
}
h1,
h2,
h3 {
position: sticky;
2020-06-19 18:26:43 +00:00
top: 0;
2020-06-16 10:51:24 +00:00
background: $nanotrasen;
2020-06-19 18:26:43 +00:00
padding: 10pt;
2020-06-16 10:51:24 +00:00
z-index: 999;
2020-06-16 09:32:48 +00:00
}
.mw-headline {
display: flex;
align-items: center;
}
}
}
2020-06-19 18:26:43 +00:00
$section-active: darken($nanotrasen, 5%);
2020-06-16 15:08:44 +00:00
$tab-active: lighten($nanotrasen, 10%);
2020-06-19 18:26:43 +00:00
#section-list {
2020-06-17 09:43:21 +00:00
z-index: 2;
2020-06-16 09:32:48 +00:00
grid-row: 1;
2020-06-19 18:26:43 +00:00
border-bottom: 2px solid $section-active;
display: flex;
.section {
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;
}
&:not(.active) {
cursor: pointer;
&:hover {
background-color: darken($section-active, 10%);
}
}
}
}
#tab-list {
z-index: 2;
grid-row: 2;
2020-06-16 15:08:44 +00:00
display: flex;
2020-06-19 18:26:43 +00:00
background-color: $section-active;
border-bottom: 4px solid $tab-active;
2020-06-16 15:08:44 +00:00
.tab {
display: flex;
2020-06-19 18:26:43 +00:00
flex-direction: column;
2020-06-16 15:08:44 +00:00
align-items: center;
justify-content: center;
2020-06-16 16:00:29 +00:00
user-select: none;
2020-06-19 18:26:43 +00:00
font-size: 7pt;
padding: 2px 4px;
padding-bottom: 0;
text-transform: uppercase;
2020-06-16 15:08:44 +00:00
2020-06-19 18:26:43 +00:00
img {
height: 80%;
max-height: 24px;
margin: 0;
}
2020-06-16 15:08:44 +00:00
&.active {
background-color: $tab-active;
}
2020-06-17 09:43:21 +00:00
&:not(.active) {
2020-06-16 16:00:29 +00:00
cursor: pointer;
2020-06-19 18:26:43 +00:00
&:hover {
background-color: darken($tab-active, 8%);
}
}
&.hidden {
display: none;
2020-06-16 16:00:29 +00:00
}
2020-06-16 15:08:44 +00:00
}
2020-06-16 09:32:48 +00:00
}
2020-06-18 11:15:41 +00:00
noscript {
position: fixed;
top: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: transparent;
width: 100%;
}