forget-cancellare-vecchi-toot/assets/styles.css

342 lines
5.0 KiB
CSS
Raw Normal View History

2017-08-03 16:05:28 +02:00
body {
margin: 0;
font-family: sans-serif;
}
*, *::before, *::after {
box-sizing: border-box;
line-height: 1.5em;
2017-08-03 16:05:28 +02:00
}
2017-08-09 11:43:16 +02:00
body > section, body > header, body > footer {
max-width: 45rem;
2017-08-03 16:05:28 +02:00
margin-left: auto;
margin-right: auto;
2017-08-03 16:28:27 +02:00
}
header > h1 {
margin: 0;
2017-08-07 21:35:46 +02:00
padding: 0;
2017-08-03 16:28:27 +02:00
}
2017-08-07 21:35:46 +02:00
h1 img {
margin-left: 2.5rem;
}
2017-08-03 16:28:27 +02:00
body > section {
2017-08-03 16:05:28 +02:00
margin-bottom: 3rem;
}
section > * {
padding-left: 5rem;
padding-right: 5rem;
}
2017-08-31 18:59:09 +02:00
section > .container {
padding: 0;
}
2017-08-03 16:05:28 +02:00
section > ul {
padding-left: 7rem;
}
h2 {
font-size: 1.4em;
font-weight: normal;
padding-left: 2rem;
padding-right: 2rem;
2017-08-03 16:05:28 +02:00
}
h3 {
font-size: inherit;
font-weight: bold;
padding-left: 5rem;
padding-right: 5rem;
2017-08-03 16:05:28 +02:00
}
input[type=number]{
max-width: 8ch;
}
img.avatar {
2017-08-03 16:05:28 +02:00
height: 1.5em;
width: 1.5em;
background-color: #ccc;
border-radius:100%;
transform:translateY(25%);
}
img.avatar.mastodon {
border-radius: 20%;
}
2017-08-03 16:05:28 +02:00
.banner {
border-left-width: .7rem;
border-left-style: solid;
padding-top: .6rem;
padding-bottom: .6rem;
margin-bottom: 1rem;
padding-left: 1rem;
padding-right: 1rem;
}
.banner p {
margin: .3rem 0;
}
.banner p ~ p {
margin-top: 1.3rem;
2017-08-03 16:05:28 +02:00
}
2017-08-31 18:59:09 +02:00
body > section > .banner,
body > section > .container > .banner {
2017-08-03 16:05:28 +02:00
padding-left: 4.3rem;
2017-08-31 21:56:17 +02:00
padding-right: 4.3rem;
2017-08-03 16:05:28 +02:00
}
.banner.enabled {
border-left-color: transparent;
2017-08-31 21:56:17 +02:00
background: #cde;
2017-08-03 16:05:28 +02:00
}
.banner.disabled {
border-left-color: transparent;
background: #eee;
}
2017-08-12 01:04:22 +02:00
.success {
border-color: #4a2;
2017-08-03 16:05:28 +02:00
background: #dec;
}
2017-08-12 01:04:22 +02:00
.error {
2017-08-03 16:05:28 +02:00
border-color: #a24;
background: #ecd;
}
2017-08-12 01:04:22 +02:00
.warning {
2017-08-03 16:05:28 +02:00
border-color: #dc4;
background: #eec;
}
form {
margin: 1em auto;
}
2017-08-03 16:05:28 +02:00
.banner form {
display: inline;
}
2017-08-03 21:37:00 +02:00
label {
display: inline-block;
}
2017-08-09 11:43:16 +02:00
footer {
font-size: 0.9rem;
margin-top: 5rem;
2017-08-09 14:39:51 +02:00
margin-bottom: 3rem;
2017-09-01 00:09:05 +02:00
text-align: center;
2017-08-09 11:43:16 +02:00
}
footer a {
color: inherit;
}
2017-08-09 14:39:51 +02:00
2017-08-12 01:04:22 +02:00
.status-display {
font-size: 0.8rem;
display: inline-block;
margin-left: 1ch;
padding: 0 0.4em;
vertical-align: top;
position: sticky;
top: 0;
float: right;
2017-08-12 01:04:22 +02:00
}
.status-display.hidden {
display: none;
}
.status-display.error {
background: #ecd;
}
.status-display.success {
background: #dec;
animation: fade-background 2s forwards;
}
@keyframes fade-background {
to {
background: transparent;
}
}
.status-display::before {
content: "";
display: inline-block;
border-radius: 50%;
width: 0.8em;
height: 0.8em;
border-color: inherit;
border-style: solid;
border-width: 0.4em;
margin-right: 0.3em;
}
.status-display.saving::before {
border-color: #666;
border-width: 2px;
animation: blink infinite 0.6s steps(1) normal;
}
@keyframes blink {
50% {
opacity: 0;
}
}
form aside {
font-style: italic;
font-size: 0.8em;
}
2017-08-23 15:14:24 +02:00
2017-09-17 13:20:30 +02:00
button {
font-size: inherit;
}
.btn {
2017-08-23 15:14:24 +02:00
text-decoration: none;
2017-09-17 13:20:30 +02:00
border-radius: .2rem;
2017-08-23 15:14:24 +02:00
overflow: hidden;
display: inline-block;
2017-09-17 13:20:30 +02:00
padding: 0.4em 0.8em;
border: none;
2017-08-23 15:14:24 +02:00
2017-09-17 13:35:26 +02:00
cursor: pointer;
}
.btn-small {
font-size: 0.8em;
padding: 0.2em 0.5em;
2017-08-23 15:14:24 +02:00
}
2017-09-17 13:20:30 +02:00
.btn.primary {
color: white;
background-color: #37d;
2017-08-23 15:14:24 +02:00
}
.btn.primary.twitter-colored {
background-color: #1da1f2;
}
.btn.primary.mastodon-colored {
background-color: #282c37;
}
2021-11-09 10:08:30 +01:00
.btn.primary.misskey-colored {
background-color: #66b300;
}
2017-09-17 13:20:30 +02:00
.btn.secondary {
background-color: rgba(255,255,255,0.5);
box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3);
2017-09-17 13:20:30 +02:00
color: inherit;
2017-08-23 15:14:24 +02:00
}
2017-09-17 13:20:30 +02:00
.btn:hover {
opacity: 0.9;
2017-08-23 15:14:24 +02:00
}
2017-09-17 13:20:30 +02:00
.btn img {
height: 1.1em;
transform: translatey(.2em);
margin: 0 .3em;
}
2017-09-17 13:20:30 +02:00
.btn img:first-child,
.btn picture:first-child img {
margin-left: 0;
}
2017-09-17 13:35:26 +02:00
.btn-group.inline {
display: inline-block;
transform: translatey(20%);
}
.btn-group.right {
float: right;
margin-left: 1em;
}
form.btn-group {
margin-top: 0; margin-bottom: 0;
}
.clearfix {
clear: both;
}
2017-09-10 13:20:53 +02:00
section > pre.error-log {
overflow: auto;
padding-top: 2em;
padding-bottom: 2em;
opacity: 0.7;
}
.radiostrip {
display: inline-flex;
flex-direction: row;
flex-wrap: wrap;
2018-04-25 15:04:08 +02:00
}
.radiostrip .choice {
position: relative;
}
.radiostrip input[type=radio] {
position: absolute;
top: 0; left: 0;
2018-04-25 15:04:08 +02:00
width: 100%; height: 100%;
margin: 0;
opacity: 0;
cursor: pointer;
}
2018-04-25 15:04:08 +02:00
.radiostrip label {
padding: .3em .5em;
user-select: none;
background-color: transparent;
border: 1px solid rgba(0,0,0,0.3);
}
2018-04-25 15:04:08 +02:00
.radiostrip span.choice:first-child label {
border-radius: .2rem 0 0 .2rem;
}
2018-04-25 15:04:08 +02:00
.radiostrip span.choice:last-child label {
border-radius: 0 .2rem .2rem 0;
}
2018-04-25 15:04:08 +02:00
.radiostrip span.choice:not(:first-child) label {
border-left-color: transparent;
}
2018-04-25 15:04:08 +02:00
.radiostrip span.choice:not(:last-child) label {
border-right-color: transparent;
}
.radiostrip input[type=radio]:focus + label {
box-shadow: 0 0 5px #38f;
}
.radiostrip input[type=radio]:checked + label {
background: #37d;
color: white;
border-color: transparent;
}