2022-06-09 10:51:19 +00:00
|
|
|
/*
|
2022-06-21 08:48:42 +00:00
|
|
|
GoToSocial
|
|
|
|
Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org
|
2022-06-09 10:51:19 +00:00
|
|
|
|
2022-06-21 08:48:42 +00:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2022-06-09 10:51:19 +00:00
|
|
|
|
2022-06-21 08:48:42 +00:00
|
|
|
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 Affero General Public License for more details.
|
2022-06-09 10:51:19 +00:00
|
|
|
|
2022-06-21 08:48:42 +00:00
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2022-06-09 10:51:19 +00:00
|
|
|
*/
|
|
|
|
|
2022-08-08 08:40:51 +00:00
|
|
|
@import "modern-normalize/modern-normalize.css";
|
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
@font-face {
|
|
|
|
font-family: "Noto Sans";
|
|
|
|
font-weight: 400;
|
|
|
|
src: url(../NotoSans-Regular.ttf) format('truetype');
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: "Noto Sans";
|
|
|
|
font-weight: bold;
|
|
|
|
src: url(../NotoSans-Bold.ttf) format('truetype');
|
|
|
|
}
|
|
|
|
|
2022-07-18 07:44:32 +00:00
|
|
|
// standard border radius for nice squircles
|
2022-06-21 08:48:42 +00:00
|
|
|
$br: 0.4rem;
|
2022-07-18 07:44:32 +00:00
|
|
|
// border radius for items that are framed/bordered
|
|
|
|
// inside something with $br, eg avatar, header img
|
|
|
|
$br_inner: 0.2rem;
|
2022-06-21 08:48:42 +00:00
|
|
|
|
2021-06-21 17:46:10 +00:00
|
|
|
html, body {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2022-07-04 14:23:59 +00:00
|
|
|
background: $bg;
|
2021-06-21 17:46:10 +00:00
|
|
|
color: $fg;
|
2022-07-04 14:23:59 +00:00
|
|
|
font-family: "Noto Sans", sans-serif;
|
2022-08-12 11:11:43 +00:00
|
|
|
scrollbar-color: $sloth_orange1 $sloth_gray2_darker3;
|
2021-06-21 17:46:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2022-06-09 10:51:19 +00:00
|
|
|
line-height: 1.5em;
|
|
|
|
min-height: 100vh;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-08-08 08:40:51 +00:00
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-06-09 10:51:19 +00:00
|
|
|
.page {
|
|
|
|
position: absolute;
|
2021-06-21 17:46:10 +00:00
|
|
|
display: grid;
|
2022-06-09 10:51:19 +00:00
|
|
|
min-height: 100%;
|
|
|
|
min-width: 100%;
|
2021-06-21 17:46:10 +00:00
|
|
|
|
2021-09-13 12:45:33 +00:00
|
|
|
grid-template-columns: auto min(92%, 90ch) auto;
|
2022-07-04 14:23:59 +00:00
|
|
|
grid-template-rows: auto 1fr auto;
|
|
|
|
}
|
2021-06-21 17:46:10 +00:00
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
h1 {
|
|
|
|
margin: 0;
|
|
|
|
line-height: 2.4rem;
|
|
|
|
}
|
2021-09-13 12:45:33 +00:00
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
a {
|
|
|
|
color: $link_fg;
|
|
|
|
}
|
2021-09-13 12:45:33 +00:00
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
header, footer {
|
|
|
|
grid-column: 1 / span 3;
|
2021-06-21 17:46:10 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
.content {
|
|
|
|
grid-column: 2;
|
|
|
|
align-self: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
header a {
|
|
|
|
margin: 2rem;
|
|
|
|
/* background: $header_bg; */
|
2021-09-13 12:45:33 +00:00
|
|
|
display: flex;
|
2022-07-04 14:23:59 +00:00
|
|
|
flex-direction: column;
|
2021-09-13 12:45:33 +00:00
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
img {
|
2022-07-04 14:23:59 +00:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
align-self: center;
|
|
|
|
height: 6rem;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
flex-grow: 1;
|
|
|
|
align-self: center;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
h1 {
|
2022-07-06 12:33:01 +00:00
|
|
|
word-wrap: anywhere;
|
2021-09-13 12:45:33 +00:00
|
|
|
align-self: center;
|
2022-06-08 00:22:52 +00:00
|
|
|
color: $fg;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-21 17:46:10 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
.excerpt_top {
|
|
|
|
margin-top: -1rem;
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
font-style: italic;
|
|
|
|
font-weight: normal;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
|
|
|
.count {
|
|
|
|
font-weight: bold;
|
|
|
|
color: $fg_accent;
|
|
|
|
}
|
2021-06-21 17:46:10 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
main {
|
|
|
|
section {
|
|
|
|
background: $bg_accent;
|
|
|
|
box-shadow: $boxshadow;
|
|
|
|
border: $boxshadow_border;
|
|
|
|
border-radius: $br;
|
|
|
|
padding: 2rem;
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
p:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2021-06-21 17:46:10 +00:00
|
|
|
}
|
|
|
|
|
2021-07-09 08:44:10 +00:00
|
|
|
.button, button {
|
2021-06-21 17:46:10 +00:00
|
|
|
border-radius: 0.2rem;
|
2022-07-04 14:23:59 +00:00
|
|
|
color: $button_fg;
|
|
|
|
background: $button_bg;
|
|
|
|
box-shadow: $boxshadow;
|
|
|
|
border: $button_border;
|
2021-06-21 17:46:10 +00:00
|
|
|
text-decoration: none;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 0.5rem;
|
2021-07-09 08:44:10 +00:00
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
2022-07-08 08:01:00 +00:00
|
|
|
text-align: center;
|
|
|
|
font-family: 'Noto Sans', sans-serif;
|
2021-06-21 17:46:10 +00:00
|
|
|
|
|
|
|
&:hover {
|
2022-07-04 14:23:59 +00:00
|
|
|
background: $button_hover_bg;
|
2021-06-21 17:46:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nounderline {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.accent {
|
|
|
|
color: $acc1;
|
|
|
|
}
|
|
|
|
|
2021-07-13 16:40:47 +00:00
|
|
|
.logo {
|
2021-06-21 17:46:10 +00:00
|
|
|
justify-self: center;
|
|
|
|
img {
|
|
|
|
height: 30vh;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
section.apps {
|
|
|
|
align-self: start;
|
|
|
|
|
|
|
|
.applist {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
grid-gap: 0.5rem;
|
|
|
|
align-content: start;
|
|
|
|
|
|
|
|
.entry {
|
|
|
|
display: grid;
|
2022-07-04 14:23:59 +00:00
|
|
|
grid-template-columns: 25% 1fr;
|
|
|
|
gap: 1.5rem;
|
2021-06-21 17:46:10 +00:00
|
|
|
padding: 0.5rem;
|
2022-07-04 14:23:59 +00:00
|
|
|
background: $bg_accent;
|
2021-06-21 17:46:10 +00:00
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
align-self: center;
|
|
|
|
width: 100%;
|
|
|
|
object-fit: contain;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo.redraw {
|
|
|
|
fill: $fg;
|
|
|
|
stroke: $fg;
|
|
|
|
}
|
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2021-06-21 17:46:10 +00:00
|
|
|
div {
|
|
|
|
padding: 1rem 0;
|
|
|
|
h3 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
section.login {
|
|
|
|
form {
|
2022-08-08 08:40:51 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
padding-bottom: 1rem;
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
|
|
|
label, input {
|
|
|
|
padding-left: 0.2rem;
|
|
|
|
}
|
2021-06-21 17:46:10 +00:00
|
|
|
|
2022-08-08 08:40:51 +00:00
|
|
|
.labelinput {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 0.4rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin-top: 1rem;
|
2021-06-21 17:46:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-07 11:04:31 +00:00
|
|
|
section.error {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2022-07-04 14:23:59 +00:00
|
|
|
span {
|
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
pre {
|
|
|
|
border: 1px solid #ff000080;
|
|
|
|
margin-left: 1em;
|
|
|
|
padding: 0 0.7em;
|
|
|
|
border-radius: 0.5em;
|
|
|
|
background-color: #ff000010;
|
|
|
|
font-size: 1.3em;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2022-02-07 11:04:31 +00:00
|
|
|
}
|
|
|
|
|
2021-07-08 16:00:23 +00:00
|
|
|
input, select, textarea {
|
2022-08-08 08:40:51 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
border: 0.15rem solid $border_accent;
|
|
|
|
border-radius: 0.1rem;
|
2021-07-08 16:00:23 +00:00
|
|
|
color: $fg;
|
2022-08-08 08:40:51 +00:00
|
|
|
/* background: $input_bg; */
|
|
|
|
background: $bg_accent;
|
2021-07-08 16:00:23 +00:00
|
|
|
width: 100%;
|
2022-07-08 08:01:00 +00:00
|
|
|
font-family: 'Noto Sans', sans-serif;
|
2022-08-08 08:40:51 +00:00
|
|
|
font-size: 1rem;
|
|
|
|
padding: 0.3rem;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: $fg_accent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input, textarea {
|
|
|
|
padding-top: 0.1rem;
|
|
|
|
padding-bottom: 0.1rem;
|
2021-07-08 16:00:23 +00:00
|
|
|
}
|
|
|
|
|
2021-06-21 17:46:10 +00:00
|
|
|
footer {
|
|
|
|
align-self: end;
|
2022-07-15 11:23:15 +00:00
|
|
|
padding: 2rem 0 1rem 0;
|
2021-06-21 17:46:10 +00:00
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
display: flex;
|
2022-07-05 14:44:58 +00:00
|
|
|
flex-wrap: wrap;
|
2022-07-04 14:23:59 +00:00
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
div {
|
2022-07-15 11:23:15 +00:00
|
|
|
text-align: center;
|
2022-07-04 14:23:59 +00:00
|
|
|
padding: 1rem;
|
2022-07-15 11:23:15 +00:00
|
|
|
flex-grow: 1;
|
2022-07-04 14:23:59 +00:00
|
|
|
}
|
2021-06-21 17:46:10 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 11:23:15 +00:00
|
|
|
@media screen and (max-width: 600px) {
|
2021-06-21 17:46:10 +00:00
|
|
|
header {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
|
|
div {
|
2022-07-15 11:23:15 +00:00
|
|
|
text-align: initial;
|
|
|
|
width: 100%;
|
2021-06-21 17:46:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
section.apps .applist {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
}
|
2022-05-28 11:18:35 +00:00
|
|
|
}
|