2022-06-09 11:51:19 +01:00
|
|
|
/*
|
2022-06-21 09:48:42 +01:00
|
|
|
GoToSocial
|
2023-01-05 11:43:00 +00:00
|
|
|
Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org
|
2022-06-09 11:51:19 +01:00
|
|
|
|
2022-06-21 09:48:42 +01: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 11:51:19 +01:00
|
|
|
|
2022-06-21 09:48:42 +01: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 11:51:19 +01:00
|
|
|
|
2022-06-21 09:48:42 +01: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 11:51:19 +01:00
|
|
|
*/
|
|
|
|
|
2022-08-08 09:40:51 +01:00
|
|
|
@import "modern-normalize/modern-normalize.css";
|
|
|
|
|
2022-07-04 15:23:59 +01: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-11-02 15:31:43 +00:00
|
|
|
/* standard border radius for nice squircles */
|
2022-06-21 09:48:42 +01:00
|
|
|
$br: 0.4rem;
|
2022-11-02 15:31:43 +00:00
|
|
|
/* border radius for items that are framed/bordered
|
|
|
|
inside something with $br, eg avatar, header img */
|
2022-09-29 11:02:41 +01:00
|
|
|
$br-inner: 0.2rem;
|
2022-06-21 09:48:42 +01:00
|
|
|
|
2021-06-21 18:46:10 +01:00
|
|
|
html, body {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2022-07-04 15:23:59 +01:00
|
|
|
background: $bg;
|
2021-06-21 18:46:10 +01:00
|
|
|
color: $fg;
|
2022-07-04 15:23:59 +01:00
|
|
|
font-family: "Noto Sans", sans-serif;
|
2022-09-29 11:02:41 +01:00
|
|
|
scrollbar-color: $orange1 $gray3;
|
2021-06-21 18:46:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2022-06-09 11:51:19 +01:00
|
|
|
line-height: 1.5em;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-08-08 09:40:51 +01:00
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-06-09 11:51:19 +01:00
|
|
|
.page {
|
2021-06-21 18:46:10 +01:00
|
|
|
display: grid;
|
2023-02-14 10:58:57 +00:00
|
|
|
min-height: 100vh;
|
2021-06-21 18:46:10 +01:00
|
|
|
|
2023-01-05 08:38:01 +00:00
|
|
|
grid-template-columns: auto minmax(auto, 50rem) auto;
|
|
|
|
grid-template-columns: auto min(92%, 50rem) auto;
|
2022-07-04 15:23:59 +01:00
|
|
|
grid-template-rows: auto 1fr auto;
|
|
|
|
}
|
2021-06-21 18:46:10 +01:00
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
h1 {
|
|
|
|
margin: 0;
|
|
|
|
line-height: 2.4rem;
|
|
|
|
}
|
2021-09-13 13:45:33 +01:00
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
a {
|
2022-09-29 11:02:41 +01:00
|
|
|
color: $link-fg;
|
2022-07-04 15:23:59 +01:00
|
|
|
}
|
2021-09-13 13:45:33 +01:00
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
header, footer {
|
|
|
|
grid-column: 1 / span 3;
|
2021-06-21 18:46:10 +01:00
|
|
|
}
|
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
.content {
|
|
|
|
grid-column: 2;
|
|
|
|
align-self: start;
|
|
|
|
}
|
|
|
|
|
2022-09-29 11:02:41 +01:00
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
header a {
|
|
|
|
margin: 2rem;
|
2021-09-13 13:45:33 +01:00
|
|
|
display: flex;
|
2022-07-04 15:23:59 +01:00
|
|
|
flex-direction: column;
|
2021-09-13 13:45:33 +01:00
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
img {
|
2022-07-04 15:23:59 +01:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
align-self: center;
|
|
|
|
height: 6rem;
|
2021-09-13 13:45:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
flex-grow: 1;
|
|
|
|
align-self: center;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
h1 {
|
2022-07-06 13:33:01 +01:00
|
|
|
word-wrap: anywhere;
|
2021-09-13 13:45:33 +01:00
|
|
|
align-self: center;
|
2022-06-08 01:22:52 +01:00
|
|
|
color: $fg;
|
2021-09-13 13:45:33 +01:00
|
|
|
}
|
|
|
|
}
|
2021-06-21 18:46:10 +01:00
|
|
|
}
|
|
|
|
|
2022-09-29 11:02:41 +01:00
|
|
|
.excerpt-top {
|
2022-07-04 15:23:59 +01:00
|
|
|
margin-top: -1rem;
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
font-style: italic;
|
|
|
|
font-weight: normal;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
|
|
|
.count {
|
|
|
|
font-weight: bold;
|
2022-09-29 11:02:41 +01:00
|
|
|
color: $fg-accent;
|
2022-07-04 15:23:59 +01:00
|
|
|
}
|
2021-06-21 18:46:10 +01:00
|
|
|
}
|
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
main {
|
|
|
|
section {
|
2022-09-29 11:02:41 +01:00
|
|
|
background: $bg-accent;
|
2022-07-04 15:23:59 +01:00
|
|
|
box-shadow: $boxshadow;
|
2022-09-29 11:02:41 +01:00
|
|
|
border: $boxshadow-border;
|
2022-07-04 15:23:59 +01:00
|
|
|
border-radius: $br;
|
|
|
|
padding: 2rem;
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
p:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2021-06-21 18:46:10 +01:00
|
|
|
}
|
|
|
|
|
2021-07-09 09:44:10 +01:00
|
|
|
.button, button {
|
2021-06-21 18:46:10 +01:00
|
|
|
border-radius: 0.2rem;
|
2022-09-29 11:02:41 +01:00
|
|
|
color: $button-fg;
|
|
|
|
background: $button-bg;
|
2022-07-04 15:23:59 +01:00
|
|
|
box-shadow: $boxshadow;
|
2022-09-29 11:02:41 +01:00
|
|
|
border: $button-border;
|
2021-06-21 18:46:10 +01:00
|
|
|
text-decoration: none;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 0.5rem;
|
2021-07-09 09:44:10 +01:00
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
2022-07-08 09:01:00 +01:00
|
|
|
text-align: center;
|
|
|
|
font-family: 'Noto Sans', sans-serif;
|
2021-06-21 18:46:10 +01:00
|
|
|
|
2022-09-29 11:02:41 +01:00
|
|
|
&.danger {
|
|
|
|
color: $button-danger-fg;
|
|
|
|
background: $button-danger-bg;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $button-danger-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-25 14:49:48 +00:00
|
|
|
&:disabled {
|
|
|
|
color: $white2;
|
|
|
|
background: $gray2;
|
|
|
|
cursor: auto;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $gray3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-21 18:46:10 +01:00
|
|
|
&:hover {
|
2022-09-29 11:02:41 +01:00
|
|
|
background: $button-hover-bg;
|
2021-06-21 18:46:10 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nounderline {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.accent {
|
|
|
|
color: $acc1;
|
|
|
|
}
|
|
|
|
|
2021-07-13 17:40:47 +01:00
|
|
|
.logo {
|
2021-06-21 18:46:10 +01: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 15:23:59 +01:00
|
|
|
grid-template-columns: 25% 1fr;
|
|
|
|
gap: 1.5rem;
|
2021-06-21 18:46:10 +01:00
|
|
|
padding: 0.5rem;
|
2022-09-29 11:02:41 +01:00
|
|
|
background: $bg-accent;
|
2021-06-21 18:46:10 +01: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 15:23:59 +01:00
|
|
|
a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2021-06-21 18:46:10 +01:00
|
|
|
div {
|
2022-09-29 11:02:41 +01:00
|
|
|
padding: 0;
|
2021-06-21 18:46:10 +01:00
|
|
|
h3 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
section.login {
|
|
|
|
form {
|
2022-08-08 09:40:51 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
padding-bottom: 1rem;
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
|
|
|
label, input {
|
|
|
|
padding-left: 0.2rem;
|
|
|
|
}
|
2021-06-21 18:46:10 +01:00
|
|
|
|
2022-08-08 09:40:51 +01:00
|
|
|
.labelinput {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 0.4rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin-top: 1rem;
|
2021-06-21 18:46:10 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-07 11:04:31 +00:00
|
|
|
section.error {
|
2022-11-08 16:51:44 +00:00
|
|
|
word-break: break-word;
|
2022-02-07 11:04:31 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2022-11-08 16:51:44 +00:00
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
span {
|
|
|
|
font-size: 2em;
|
|
|
|
}
|
2022-11-08 16:51:44 +00:00
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-09-29 11:02:41 +01:00
|
|
|
.error-text {
|
|
|
|
color: $error1;
|
|
|
|
background: $error2;
|
|
|
|
border-radius: 0.1rem;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2022-11-16 16:05:49 +00:00
|
|
|
input, select, textarea, .input {
|
2022-08-08 09:40:51 +01:00
|
|
|
box-sizing: border-box;
|
2022-09-29 11:02:41 +01:00
|
|
|
border: 0.15rem solid $input-border;
|
2022-08-08 09:40:51 +01:00
|
|
|
border-radius: 0.1rem;
|
2021-07-08 17:00:23 +01:00
|
|
|
color: $fg;
|
2022-09-29 11:02:41 +01:00
|
|
|
background: $input-bg;
|
2021-07-08 17:00:23 +01:00
|
|
|
width: 100%;
|
2022-07-08 09:01:00 +01:00
|
|
|
font-family: 'Noto Sans', sans-serif;
|
2022-08-08 09:40:51 +01:00
|
|
|
font-size: 1rem;
|
|
|
|
padding: 0.3rem;
|
|
|
|
|
2023-01-18 13:45:14 +00:00
|
|
|
&:focus, &:active {
|
2022-09-29 11:02:41 +01:00
|
|
|
border-color: $input-focus-border;
|
|
|
|
}
|
|
|
|
|
2023-02-03 11:07:40 +00:00
|
|
|
&:invalid, .invalid & {
|
2023-01-18 13:45:14 +00:00
|
|
|
border-color: $input-error-border;
|
|
|
|
}
|
|
|
|
|
2022-09-29 11:02:41 +01:00
|
|
|
&:disabled {
|
2023-01-18 13:45:14 +00:00
|
|
|
background: transparent;
|
2022-08-08 09:40:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-29 11:02:41 +01:00
|
|
|
::placeholder {
|
|
|
|
opacity: 1;
|
|
|
|
color: $fg-reduced
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
color: transparent;
|
|
|
|
width: 100%;
|
|
|
|
border-bottom: 0.02rem solid $border-accent;
|
2021-07-08 17:00:23 +01:00
|
|
|
}
|
|
|
|
|
2021-06-21 18:46:10 +01:00
|
|
|
footer {
|
|
|
|
align-self: end;
|
2022-07-15 12:23:15 +01:00
|
|
|
padding: 2rem 0 1rem 0;
|
2021-06-21 18:46:10 +01:00
|
|
|
|
2022-07-04 15:23:59 +01:00
|
|
|
display: flex;
|
2022-07-05 15:44:58 +01:00
|
|
|
flex-wrap: wrap;
|
2022-07-04 15:23:59 +01:00
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
div {
|
2022-07-15 12:23:15 +01:00
|
|
|
text-align: center;
|
2022-07-04 15:23:59 +01:00
|
|
|
padding: 1rem;
|
2022-07-15 12:23:15 +01:00
|
|
|
flex-grow: 1;
|
2022-07-04 15:23:59 +01:00
|
|
|
}
|
2021-06-21 18:46:10 +01:00
|
|
|
|
|
|
|
a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 12:23:15 +01:00
|
|
|
@media screen and (max-width: 600px) {
|
2021-06-21 18:46:10 +01:00
|
|
|
header {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
|
|
div {
|
2022-07-15 12:23:15 +01:00
|
|
|
text-align: initial;
|
|
|
|
width: 100%;
|
2021-06-21 18:46:10 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
section.apps .applist {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
}
|
2022-05-28 12:18:35 +01:00
|
|
|
}
|
2022-09-02 10:54:32 +01:00
|
|
|
|
|
|
|
.emoji {
|
2022-10-06 10:36:07 +01:00
|
|
|
width: 1.45em;
|
|
|
|
height: 1.45em;
|
|
|
|
margin: -0.2em 0.02em 0;
|
2022-09-02 10:54:32 +01:00
|
|
|
object-fit: contain;
|
|
|
|
vertical-align: middle;
|
2022-09-29 11:02:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.monospace {
|
|
|
|
font-family: monospace;
|
2022-12-06 13:15:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.callout {
|
|
|
|
margin: 1.5rem 0;
|
|
|
|
border: .05rem solid $border-accent;
|
|
|
|
border-radius: .2rem;
|
|
|
|
padding: 0 .6rem .6rem;
|
|
|
|
.callout-title {
|
|
|
|
margin: 0 -.6rem;
|
|
|
|
padding: .6rem;
|
|
|
|
font-weight: bold;
|
|
|
|
background-color: $border-accent;
|
|
|
|
color: $gray1;
|
|
|
|
}
|
|
|
|
}
|
2022-12-11 15:00:23 +00:00
|
|
|
|
|
|
|
label {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
.fa-spin {
|
|
|
|
animation: none;
|
|
|
|
}
|
2023-01-25 08:47:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.text-cutoff {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2023-01-25 17:06:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.list {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.header, .entry {
|
|
|
|
padding: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
border: 0.1rem solid transparent !important; /* for alignment with .entry border padding */
|
|
|
|
background: $gray1 !important;
|
|
|
|
display: flex;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2023-01-27 08:09:26 +00:00
|
|
|
.entries {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
&.scrolling {
|
|
|
|
height: 20rem;
|
|
|
|
max-height: 20rem;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-25 17:06:41 +00:00
|
|
|
input[type=checkbox] {
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.entry {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
background: $list-entry-bg;
|
|
|
|
border: 0.1rem solid transparent;
|
|
|
|
|
|
|
|
&:nth-child(even) {
|
|
|
|
background: $list-entry-alternate-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $list-entry-hover-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active, &:focus, &:hover, &:target {
|
|
|
|
border-color: $fg-accent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.domain-blocklist {
|
|
|
|
box-shadow: $boxshadow;
|
|
|
|
|
|
|
|
.entry {
|
|
|
|
display: grid;
|
2023-02-07 09:00:13 +00:00
|
|
|
grid-template-columns: max(30%, 10rem) 1fr;
|
2023-01-25 17:06:41 +00:00
|
|
|
gap: 0.5rem;
|
|
|
|
align-items: start;
|
|
|
|
border: $boxshadow-border;
|
|
|
|
border-top-color: transparent;
|
|
|
|
|
|
|
|
& > div {
|
|
|
|
display: flex;
|
|
|
|
align-items: center
|
|
|
|
}
|
|
|
|
|
|
|
|
.domain a {
|
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
|
|
|
display: inline-block; /* so it wraps properly */
|
|
|
|
}
|
|
|
|
|
|
|
|
.public_comment p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header .domain {
|
|
|
|
color: $fg;
|
|
|
|
}
|
2023-02-07 09:00:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 30rem) {
|
|
|
|
.domain-blocklist .entry {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
gap: 0;
|
|
|
|
}
|
2022-12-11 15:00:23 +00:00
|
|
|
}
|