omegaupload/web/src/main.scss

144 lines
2.3 KiB
SCSS
Raw Normal View History

2021-10-31 21:01:27 +00:00
// OmegaUpload Web Frontend
// Copyright (C) 2021 Edward Shen
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
2022-01-18 09:39:56 +00:00
@use 'node_modules/highlight.js/styles/github-dark.css';
2021-10-23 17:10:55 +00:00
$padding: 1em;
2021-10-23 02:15:23 +00:00
@font-face {
font-family: "Mplus Code";
2022-01-18 09:39:56 +00:00
src: url("../vendor/MPLUS_FONTS/fonts/ttf/MPLUSCodeLatin[wdth,wght].ttf") format("truetype");
2021-10-23 02:15:23 +00:00
}
body {
background-color: #404040;
margin: 0;
}
2021-10-23 17:10:55 +00:00
.unselectable {
2022-07-28 02:53:32 +00:00
user-select: none;
2021-10-23 02:15:23 +00:00
}
hr {
2021-10-23 17:10:55 +00:00
@extend .hljs;
margin: $padding 0;
2021-10-23 02:15:23 +00:00
}
main {
display: inline-flex;
min-width: 100%;
2022-08-02 09:10:58 +00:00
max-width: 100%;
2021-10-23 02:15:23 +00:00
justify-content: center;
}
2022-01-18 10:46:07 +00:00
th {
font-weight: normal;
}
2021-10-23 02:15:23 +00:00
.paste {
2021-10-23 17:10:55 +00:00
@extend .hljs;
border-radius: $padding;
margin: $padding;
padding: 2 * $padding;
box-shadow: 0 0 $padding black;
2021-10-23 02:15:23 +00:00
min-width: 120ch;
}
.hljs {
font-family: 'Mplus Code', sans-serif;
}
2021-10-27 08:49:06 +00:00
.align-right {
2021-10-23 02:15:23 +00:00
text-align: right;
2021-10-27 08:49:06 +00:00
}
.hljs-ln td.hljs-ln-numbers {
@extend .align-right;
2021-10-23 17:10:55 +00:00
padding-right: $padding;
2021-10-23 02:15:23 +00:00
}
.centered {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
2021-10-23 17:10:55 +00:00
.fullscreen {
min-height: 100vh;
min-width: 100vw;
margin: 0;
}
2021-10-23 02:15:23 +00:00
.display-anyways {
2021-10-24 09:25:42 +00:00
margin-top: 4em;
2021-10-23 02:15:23 +00:00
text-decoration: underline;
2021-10-24 09:25:42 +00:00
cursor: pointer;
2021-10-23 02:15:23 +00:00
}
2022-07-28 02:53:32 +00:00
img,
audio,
video {
2021-10-24 18:40:19 +00:00
border-radius: $padding;
margin-bottom: $padding;
2021-10-23 17:10:55 +00:00
max-height: 75vh;
max-width: 75vw;
2021-10-23 02:15:23 +00:00
}
textarea {
2022-07-28 02:53:32 +00:00
@extend .paste;
height: 75vh;
border-color: white;
}
2021-10-23 02:15:23 +00:00
.primary {
2021-10-23 17:10:55 +00:00
@extend .hljs;
2021-10-27 08:49:06 +00:00
}
.archive {
&-table {
width: 100%;
}
&-file-size {
@extend .align-right;
padding-left: $padding;
}
}
2022-07-28 02:53:32 +00:00
.button {
@extend .hljs;
font-size: 16px;
2022-08-02 09:10:58 +00:00
text-decoration: underline;
border: none;
2022-07-28 02:53:32 +00:00
&:hover {
cursor: pointer;
}
}
.file-upload {
@extend .button;
input {
display: none;
}
}
.text-upload {
@extend .button;
}