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/main.scss

213 lines
3.7 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%;
2020-06-21 15:13:12 +00:00
display: flex;
flex-direction: column;
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-21 15:13:12 +00:00
flex: 1;
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-21 11:12:40 +00:00
//visibility: hidden;
display: none;
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 {
2020-06-21 11:12:40 +00:00
//visibility: visible;
display: inherit;
&.waiting {
user-select: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
2020-06-16 15:08:44 +00:00
display: flex;
2020-06-17 00:43:10 +00:00
flex-direction: column;
2020-06-21 11:12:40 +00:00
height: 100%;
.speen {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
img {
width: 60vmin;
opacity: 0.9;
}
2020-06-16 15:08:44 +00:00
}
}
}
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-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;
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-19 18:43:58 +00:00
flex: 1;
max-width: 100px;
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%;
}