2021-08-14 18:49:32 +02:00
|
|
|
/*!
|
2022-02-12 12:35:53 +01:00
|
|
|
* @source: https://codeberg.org/kytta/toot/src/branch/main/src/scss/style.scss
|
2021-08-29 13:54:07 +02:00
|
|
|
*
|
|
|
|
* toot - Cross-instance share page for Mastodon
|
2022-02-12 12:36:08 +01:00
|
|
|
* Copyright (C) 2020-2022 Nikita Karamov <me@kytta.dev>
|
2021-08-29 13:54:07 +02: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.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/
|
2021-01-30 00:48:40 +01:00
|
|
|
|
2020-09-23 16:08:38 +02:00
|
|
|
@use "sass:color";
|
2022-03-16 13:44:00 +01:00
|
|
|
@import "fonts";
|
2020-09-23 16:08:38 +02:00
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
* {
|
2021-01-29 22:56:37 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
box-sizing: border-box;
|
2020-09-23 16:08:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
2021-01-29 22:56:37 +01:00
|
|
|
background-color: $bg;
|
|
|
|
color: $text;
|
|
|
|
font-family: $text-font;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 1;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2020-09-23 16:08:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2021-01-29 22:56:37 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2020-09-23 16:08:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
2021-03-12 21:08:53 +01:00
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
padding: 1.5rem 0;
|
2021-01-29 22:56:37 +01:00
|
|
|
text-align: center;
|
2021-03-12 21:08:53 +01:00
|
|
|
width: 100%;
|
2021-01-29 22:56:37 +01:00
|
|
|
|
|
|
|
h1 {
|
2021-03-12 21:08:53 +01:00
|
|
|
display: inline-block;
|
|
|
|
margin: 0 1rem 0 0;
|
|
|
|
vertical-align: middle;
|
2021-01-29 22:56:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
2021-03-12 21:08:53 +01:00
|
|
|
display: inline-block;
|
|
|
|
line-height: 1.2rem;
|
|
|
|
margin: 0;
|
|
|
|
text-align: left;
|
|
|
|
vertical-align: middle;
|
2021-01-30 14:56:17 +01:00
|
|
|
|
|
|
|
img {
|
2021-03-12 21:08:53 +01:00
|
|
|
vertical-align: middle;
|
2021-01-30 14:56:17 +01:00
|
|
|
}
|
2021-01-29 22:56:37 +01:00
|
|
|
}
|
2020-09-23 16:08:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
2021-01-29 22:56:37 +01:00
|
|
|
width: 100%;
|
|
|
|
max-width: 600px;
|
2021-03-17 08:50:28 +01:00
|
|
|
margin: auto;
|
2021-01-29 22:56:37 +01:00
|
|
|
padding: 0 0.75rem;
|
|
|
|
|
|
|
|
form {
|
|
|
|
section {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
&.remember,
|
|
|
|
&.submit {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.submit {
|
|
|
|
margin-top: 2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
font-size: 14px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea,
|
|
|
|
input {
|
|
|
|
font-size: 1rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
|
2021-08-14 19:12:42 +02:00
|
|
|
&[type="checkbox"] {
|
2021-01-29 22:56:37 +01:00
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
2021-08-14 19:12:42 +02:00
|
|
|
&[type="submit"] {
|
2021-01-29 22:56:37 +01:00
|
|
|
display: inline-block;
|
|
|
|
text-align: center;
|
|
|
|
background-color: $button-bg;
|
|
|
|
color: $button-text;
|
|
|
|
font-weight: 500;
|
|
|
|
font-family: inherit;
|
2021-03-12 21:20:25 +01:00
|
|
|
height: 2.5rem;
|
|
|
|
padding: 0 1rem;
|
2021-01-29 22:56:37 +01:00
|
|
|
line-height: 36px;
|
|
|
|
border: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $button-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
transition: background-color 300ms ease, border 300ms ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea,
|
2021-08-14 19:12:42 +02:00
|
|
|
input[type="url"] {
|
2021-01-29 22:56:37 +01:00
|
|
|
color: inherit;
|
|
|
|
width: 100%;
|
|
|
|
outline: 0;
|
|
|
|
font-family: inherit;
|
|
|
|
resize: vertical;
|
|
|
|
background-color: $input-bg;
|
|
|
|
border: 1px solid color.scale($input-bg, $lightness: -25%);
|
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
border: 1px solid $button-bg;
|
|
|
|
background-color: color.scale($input-bg, $lightness: +5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
color: inherit;
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-23 16:08:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
2021-03-12 21:16:02 +01:00
|
|
|
border-top: 1px solid $border-color;
|
|
|
|
padding: 1rem 0;
|
2021-01-29 22:56:37 +01:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
section {
|
2021-08-14 19:12:42 +02:00
|
|
|
margin: 0.5rem 1rem;
|
2021-01-29 22:56:37 +01:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: inherit;
|
2021-03-12 21:16:02 +01:00
|
|
|
text-decoration: none;
|
2021-01-29 22:56:37 +01:00
|
|
|
|
|
|
|
&:hover {
|
2021-03-12 21:16:02 +01:00
|
|
|
text-decoration: underline;
|
2021-01-29 22:56:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-23 16:08:38 +02:00
|
|
|
}
|