fediglam/static/site.css

137 lines
2.1 KiB
CSS
Raw Normal View History

2022-12-09 12:31:23 +00:00
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
* {
--theme-color: #713c8c;
--theme-color-highlight: #9b52bf;
}
body {
margin: 0px;
font-family: "Quicksand", sans-serif;
}
nav {
padding: 5px;
border-bottom: solid 1px black;
width: 100%;
box-sizing: border-box;
display: flex;
align-items: center;
}
h1 {
margin: 0px;
}
h1 > a {
color: #000;
text-decoration: none;
}
nav > ul {
margin: 0px;
padding: 0px;
flex-grow: 1;
display: flex;
list-style: none;
justify-content: flex-end;
}
nav > ul > li > * {
padding: 5px;
margin: 0px 5px;
}
nav > ul > li.title > a {
border: none;
justify-self: start;
}
main {
padding: 1em;
2022-12-10 10:23:40 +00:00
overflow: scroll;
2022-12-09 12:31:23 +00:00
}
2022-12-10 10:23:40 +00:00
.user-mini {
2022-12-09 12:31:23 +00:00
display: flex;
2022-12-10 10:23:40 +00:00
margin: 0.5em 0px;
2022-12-09 12:31:23 +00:00
}
2022-12-10 10:23:40 +00:00
.user-mini .avatar {
max-width: 3em;
}
.user-mini .details {
margin: 5px;
}
.user-mini .handle {
font-size: small;
2022-12-09 12:31:23 +00:00
}
form {
2022-12-10 10:23:40 +00:00
display: flex;
flex-direction: column;
max-width: 400px;
2022-12-09 12:31:23 +00:00
padding: 1em;
}
form > * {
margin: 5px 0px;
}
2022-12-10 10:23:40 +00:00
form .textinput {
2022-12-09 12:31:23 +00:00
display: flex;
2022-12-10 10:23:40 +00:00
padding: 6px;
border: solid 1px black;
border-radius: 8px;
2022-12-09 12:31:23 +00:00
outline: solid 2px transparent;
transition: outline 0.2s;
2022-12-10 10:45:16 +00:00
cursor: text;
2022-12-09 12:31:23 +00:00
}
2022-12-10 10:23:40 +00:00
form .textinput input {
2022-12-09 12:31:23 +00:00
flex-grow: 1;
2022-12-10 10:23:40 +00:00
flex-basis: 3em;
width: 10px;
appearance: none;
border: none;
}
form .textinput input:focus-visible{
outline: none;
2022-12-09 12:31:23 +00:00
}
2022-12-10 10:23:40 +00:00
form .textinput:focus-within {
2022-12-09 12:31:23 +00:00
outline: solid 2px var(--theme-color);
}
2022-12-10 10:23:40 +00:00
form .textinput span.prefix {
2022-12-09 12:31:23 +00:00
user-select: none;
flex-basis: 1.5em;
text-align: center;
}
2022-12-10 10:23:40 +00:00
form .textinput span.suffix {
user-select: none;
flex-basis: 3em;
flex-grow: 1;
max-width: min-content;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
2022-12-09 12:31:23 +00:00
}
2022-12-10 10:23:40 +00:00
@media (max-width: 360px) {
form .textinput span.suffix {
display: none;
}
2022-12-09 12:31:23 +00:00
}
2022-12-10 10:23:40 +00:00
form .form-helpinfo {
2022-12-10 09:42:07 +00:00
font-size: small;
}
2022-12-09 12:31:23 +00:00
button, a.button {
padding: 5px;
border-radius: 10px;
border: none;
color: #fff;
background-color: var(--theme-color);
font-weight: bold;
2022-12-10 10:45:16 +00:00
transition: background-color 0.2s;
cursor: pointer;
2022-12-09 12:31:23 +00:00
}
button:hover, a.button:hover {
background-color: var(--theme-color-highlight);
}
2022-12-10 10:45:16 +00:00