nomilo/assets/styles/main.css
2025-06-10 12:48:08 +01:00

245 lines
3.5 KiB
CSS

@font-face {
font-family: 'Lexend';
font-weight: 100 900;
font-style: normal;
font-display: swap;
src: url("/assets/fonts/lexend/Lexend-VariableFont_wght.woff2") format("woff2"),
url("/assets/fonts/lexend/Lexend-VariableFont_wght.ttf") format("truetype");
}
html, body {
margin: 0;
font-family: 'Lexend', 'sans';
font-size: 18px;
font-weight: 300;
}
*, *::after, *::before {
box-sizing: border-box;
}
main {
max-width: 55rem;
margin: auto;
padding: .5rem
}
h1 {
font-weight: 200;
}
h2 {
font-weight: 300;
}
article.domain {
margin-bottom: 2em;
header {
display: flex;
align-items: center;
height: 3em;
h3.folder-tab {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 1rem;
border-top-left-radius: .3rem;
background-color: #f2e0fd;
margin: 0;
font-weight: inherit;
font-size: 1.3rem;
~ .sep {
content: '';
width: 3em;
background-color: #f2e0fd;
height: 100%;
clip-path: url("#corner-folder-tab-right");
flex-shrink: 0;
}
}
}
}
.records {
background: #f2e0fd;
padding: 1rem;
border-radius: 0 .3rem .3rem .3rem;
button,
a.button {
background-color: #f2e0fd;
}
h4 {
margin: 0;
}
> ul {
margin: 0;
padding: 0;
list-style: none;
}
.rrset {
.rtype {
display: flex;
align-items: baseline;
gap: .5em;
}
ul {
padding: 1rem 0 1rem 2rem;
display: flex;
flex-direction: column;
gap: .5rem;
}
li {
align-items: baseline;
position: relative;
display: flex;
gap: .5rem;
}
.rdata {
display: flex;
gap: .2rem;
flex-wrap: wrap;
}
.rdata-main {
display: flex;
gap: .3rem;
margin-right: .1rem;
.pill {
background-color: white;
}
}
.rdata-complementary {
font-size: .9em;
gap: .2rem;
display: flex;
}
.action {
display: flex;
gap: .5rem;
position: relative;
top: .15rem;
}
}
}
.pill {
border: .1rem solid #bd79bd;
border-radius: .3rem;
padding: 0 .2em;
}
button,
a.button {
border: .2rem solid #850085;
border-radius: 1.4em;
padding: .2em .8em;
color: #850085;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
gap: .3em;
background-color: white;
font-size: 1rem;
cursor: pointer;
transition: background-color .2s, color .2s;
svg {
height: 1em;
width: 1em;
}
&.icon {
padding: 0;
width: 2em;
height: 2em;
}
&:hover,
&:focus-visible {
color: white;
background-color: #850085;
}
}
form h3 {
margin: 0;
margin-top: 1rem;
}
fieldset {
margin: 0;
padding: 0;
border: none;
margin-top: 1rem;
legend {
padding: 0;
font-size: 1.1rem;
}
}
input[type="text"] {
font-size: 1rem;
}
textarea {
resize: vertical;
}
.form-input {
display: flex;
flex-direction: column;
gap: .5rem;
flex-grow: 1;
margin-top: 1rem;
}
.form-row {
display: flex;
width: 100%;
gap: 1rem;
flex-wrap: wrap;
margin-top: 1rem;
.form-input {
margin-top: 0;
}
}
.form-action {
margin-top: 1rem;
}
button.form-new-item {
background: none;
border: none;
padding: 0;
text-decoration: underline;
border-radius: 0;
color: #850085;
margin-top: .5rem;
&:hover,
&:focus-visible {
background: none;
text-decoration: none;
color: #850085;
}
}