email-dns-tools/assets/styles/main.css
2026-01-19 12:41:02 +01:00

194 lines
3.1 KiB
CSS

@font-face {
font-family: "JetBrains Mono";
src:
url("/assets/fonts/JetBrainsMono-Medium.woff2") format("woff2"),
url("/assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
}
@font-face {
font-family: "Open Sans";
font-weight: normal;
src: url("/assets/fonts/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
font-family: "Open Sans";
font-weight: bold;
src: url("/assets/fonts/OpenSans-Bold.ttf") format("truetype");
}
body {
background-image: url("/assets/images/background.png");
background-repeat: repeat;
background-color: #EEE;
font-family: "Open Sans", sans-serif;
max-width: 800px;
margin: auto;
padding: 1rem;
}
h1, h2 {
text-align: center;
}
body > label {
color: #757575;
font-size: 0.8rem;
}
#record {
font-family: "JetBrains Mono", monospace;
border: 2px solid black;
font-size: 1rem;
padding: 1rem 1.5rem;
width: 100%;
box-sizing: border-box;
transition: all 200ms;
}
#record:hover {
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}
#record:focus {
outline: none;
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1) !important;
}
#record.valid {
background-color: #C8E6C9;
}
#record.invalid {
background-color: #FFCDD2;
}
main {
background-color: white;
border: 1px solid #BDBDBD;
padding: 1rem 2rem;
margin: 2rem auto;
color: #424242;
font-size: 0.8rem;
}
a {
color: #039BE5;
}
code {
font-family: "JetBrains Mono", monospace;
background-color: #EEE;
border-radius: 3px;
padding: 0 0.25rem;
}
blockquote {
color: #757575;
padding-left: 1rem;
margin-left: 1rem;
border-left: 2px solid #EEE;
}
hr {
border: none;
border-bottom: 1px solid #BDBDBD;
margin: 2rem auto;
}
li:not(:first-of-type) {
margin-top: 0.75rem;
}
.validation-result {
font-size: 1rem;
display: none;
gap: 0.5rem;
justify-content: center;
height: 1.4rem;
margin: 2rem auto;
font-weight: bold;
}
#error {
color: #E53935;
}
#success {
color: #43A047;
}
#result-placeholder {
display: flex;
}
form > label, details > label {
color: black;
font-weight: bold;
display: block;
margin-top: 1.5rem;
margin-bottom: 0.2rem;
}
form input {
border: 1px solid #BDBDBD;
padding: 0.5rem 1rem;
transition: border 200ms;
accent-color: black;
}
form input:focus {
border-color: black;
outline: none;
}
form select {
appearance: none;
padding: 0.5rem 2rem 0.5rem 1rem;
background-color: #F9F9F9;
border: 1px solid #BDBDBD;
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"/></svg>');
background-repeat: no-repeat;
background-position: right 6px center;
}
form .description {
margin: 0 0 0.5rem 0;
}
summary {
padding-top: 1rem;
transition: color 200ms;
cursor: pointer;
}
summary:hover {
color: black;
}
.field-container {
display: flex;
flex-direction: column;
align-items: start;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.input-container {
display: flex;
gap: 0.5rem;
width: 100%;
}
.text-button {
background: none;
border: none;
cursor: pointer;
color: #757575;
transition: color 200ms;
}
.text-button:hover {
color: black;
}