103 lines
1.6 KiB
CSS
103 lines
1.6 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;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
label {
|
|
color: #757575;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
#input {
|
|
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;
|
|
}
|
|
|
|
#input:hover {
|
|
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
#input:focus {
|
|
outline: none;
|
|
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
#input.valid {
|
|
background-color: #C8E6C9;
|
|
}
|
|
|
|
#input.invalid {
|
|
background-color: #FFCDD2;
|
|
}
|
|
|
|
main {
|
|
background-color: white;
|
|
border: 1px solid #BDBDBD;
|
|
padding: 1rem 2rem;
|
|
margin-top: 2rem;
|
|
color: #424242;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
a {
|
|
color: #039BE5;
|
|
}
|
|
|
|
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;
|
|
}
|