toot-script-condivisione-su.../lib/scss/style.scss

208 lines
3.9 KiB
SCSS

/*!
* @source: https://github.com/kytta/share2fedi/blob/main/lib/scss/style.scss
*
* share2fedi - Instance-agnostic share page for the Fediverse.
* Copyright (C) 2020-2023 Nikita Karamov <me@kytta.dev>
*
* 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
*/
@use "sass:color";
@import "fonts";
@import "variables";
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--s2f-bg-color: #eff3f5;
--s2f-text-color: #282c37;
--s2f-border-color: #ccd7e0;
--s2f-input-bg-color: #ffffff;
--s2f-input-text-color: #000000;
--s2f-input-placeholder-color: #444b5d;
--s2f-input-border-color: #c0cdd9;
--s2f-button-bg-color: #6d6eff;
--s2f-button-hover-bg-color: #6364ff;
--s2f-button-text-color: #ffffff;
accent-color: var(--s2f-button-bg-color);
}
@media (prefers-color-scheme: dark) {
:root {
--s2f-bg-color: #191b22;
--s2f-text-color: #9caec8;
--s2f-border-color: #313543;
--s2f-input-text-color: #282c37;
--s2f-input-placeholder-color: #606984;
--s2f-input-border-color: transparent;
--s2f-button-bg-color: #595aff;
--s2f-button-hover-bg-color: #6364ff;
}
}
html,
body {
background-color: var(--s2f-bg-color);
color: var(--s2f-text-color);
font-family: $text-font;
font-size: 16px;
font-weight: 400;
line-height: 1;
height: 100%;
width: 100%;
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
header {
border-bottom: 1px solid var(--s2f-border-color);
padding: 1.5rem 0 0.5rem;
text-align: center;
width: 100%;
h1 {
display: inline-block;
margin: 0 1rem 0 0;
vertical-align: middle;
}
p {
display: inline-block;
line-height: 1.2rem;
margin: 0;
text-align: left;
vertical-align: middle;
img {
vertical-align: middle;
}
}
}
main {
width: 100%;
max-width: 600px;
margin: auto;
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;
&[type="checkbox"] {
margin-right: 8px;
}
&[type="submit"] {
display: inline-block;
text-align: center;
background-color: var(--s2f-button-bg-color);
color: var(--s2f-button-text-color);
font-weight: 500;
font-family: inherit;
height: 2.5rem;
padding: 0 1rem;
line-height: 36px;
border: 0;
cursor: pointer;
&:hover {
background-color: var(--s2f-button-hover-bg-color);
}
}
transition: background-color 300ms ease, border 300ms ease;
}
textarea,
input[type="url"] {
color: var(--s2f-input-text-color);
width: 100%;
font-family: inherit;
resize: vertical;
background-color: var(--s2f-input-bg-color);
border: 1px solid var(--s2f-input-border-color);
padding: 10px;
&::placeholder {
color: var(--s2f-input-placeholder-color);
}
}
}
}
footer {
border-top: 1px solid var(--s2f-border-color);
padding: 1rem 0;
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
flex-wrap: wrap;
section {
margin: 0.5rem 1rem;
a {
color: inherit;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
}