fediglam/static/site.css

265 lines
4.4 KiB
CSS
Raw Permalink 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');
* {
2022-12-15 14:32:11 +00:00
--theme-accent: #713c8c;
--theme-accent-highlight: #9b52bf;
--theme-accent-contrast: #fff;
--theme-fg-color: #000;
--theme-bg-color: #fff;
--fa-inverse: var(--theme-accent);
2022-12-09 12:31:23 +00:00
}
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-15 14:32:11 +00:00
outline: solid 2px var(--theme-accent);
2022-12-09 12:31:23 +00:00
}
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;
2022-12-15 14:32:11 +00:00
background-color: var(--theme-accent);
2022-12-09 12:31:23 +00:00
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 {
2022-12-15 14:32:11 +00:00
background-color: var(--theme-accent-highlight);
2022-12-09 12:31:23 +00:00
}
2022-12-10 10:45:16 +00:00
2022-12-13 08:40:04 +00:00
.user-profile img.banner {
width: 100%;
height: 24em;
object-fit: cover;
/* TODO: Center this on the image focus */
}
.user-profile {
--avatar-size: 12em;
}
.user-profile .avatar {
margin-top: calc(var(--avatar-size) * -3/5);
margin-left: calc(var(--avatar-size) / 20);
}
.user-profile .avatar img {
width: var(--avatar-size);
height: var(--avatar-size);
}
.user-profile header > div {
display: flex;
position: relative;
z-index: 1;
flex-wrap: wrap;
}
.user-profile header .names {
margin: 1em;
}
.user-profile > div {
margin-left: calc(var(--avatar-size) * 3/5);
}
.user-profile .profile-fields .field {
display: grid;
grid-template-columns: 1fr 3fr;
text-align: center;
}
.user-profile .profile-fields .field .field-name { grid-column: 1; }
.user-profile .profile-fields .field .field-value { grid-column: 2; }
@media (max-width: 720px) {
.user-profile img.banner {
height: 18em;
}
.user-profile {
--avatar-size: 10em;
}
.user-profile .profile-fields .field {
grid-template-columns: 1fr 2fr;
}
}
@media (max-width: 480px) {
.user-profile img.banner {
height: 12em;
}
.user-profile header div {
}
.user-profile header div * {
flex-basis: 100%;
text-align: center;
}
.user-profile {
--avatar-size: 8em;
}
.user-profile .avatar {
margin-left: 0px;
}
.user-profile > div {
margin-left: 0px;
}
.user-profile .bio {
text-align: center;
}
.user-profile .profile-fields .field {
grid-template-columns: 2fr 3fr;
}
}
2022-12-14 11:13:09 +00:00
.drive .breadcrumbs {
list-style: none;
display: flex;
}
2022-12-14 10:57:53 +00:00
.drive .icons {
display: flex;
justify-content: flex-end;
vertical-align: bottom;
}
2022-12-15 14:32:11 +00:00
.drive .buttons a[href="#mkdir"] span.fa-stack {
font-size: 8pt;
vertical-align: bottom;
}
.drive .buttons a[href="#mkdir"] .fa-plus {
position: relative;
bottom: -1px;
}
.popup :is(.popup-close, .popup-dialog) {
display: none;
}
.popup:target .popup-open {
display: none;
}
.popup:target :is(.popup-close, .popup-dialog) {
display: unset;
}
.popup:target .popup-dialog {
position: absolute;
color: var(--theme-fg-color);
background-color: var(--theme-bg-color);
border: 1px solid var(--theme-accent);
}