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

175 lines
2.7 KiB
SCSS

/*!
* @source: https://codeberg.org/kytta/toot/src/branch/main/src/scss/style.scss
*
* share2fedi - Instance-agnostic share page for the Fediverse.
* Copyright (c) 2020-2022 Nikita Karamov <me@kytta.dev>
*
* SPDX-License-Identifier: ISC
*/
@use "sass:color";
@import "fonts";
@import "variables";
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
background-color: $color-bg-light;
color: $color-text-light;
font-family: $font-family-sans;
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 {
padding: 1.5rem 0;
margin-bottom: 1.5rem;
text-align: center;
width: 100%;
h1 {
display: inline-block;
margin: 0 1rem 0 0;
vertical-align: middle;
}
}
main {
width: 100%;
max-width: 600px;
margin: 0 auto 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;
accent-color: $color-accent-rgb;
}
&[type="submit"] {
display: inline-block;
text-align: center;
background-color: $color-accent;
color: $color-text-dark;
font-weight: 500;
font-family: inherit;
height: 2.5rem;
padding: 0 1rem;
line-height: 36px;
border: 0;
cursor: pointer;
&:hover {
background-color: $color-accent-lighter;
}
}
transition: background-color 300ms ease, border 300ms ease;
}
textarea,
input[type="url"] {
color: inherit;
width: 100%;
outline: 0;
font-family: inherit;
resize: vertical;
background-color: $color-textarea-bg-light;
border: 1px solid $color-textarea-border-light;
padding: 10px;
&:focus,
&:active {
border: 1px solid $color-accent;
}
&::placeholder {
color: inherit;
opacity: 0.3;
}
}
}
}
footer {
border-top: 1px solid $color-border;
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;
}
}
}
}
@media (prefers-color-scheme: dark) {
html,
body {
background-color: $color-bg-dark;
color: $color-text-dark;
}
main {
form {
textarea,
input[type="url"] {
background-color: $color-textarea-bg-dark;
border: 1px solid $color-textarea-border-dark;
}
}
}
}