128 lines
2.3 KiB
CSS
128 lines
2.3 KiB
CSS
@font-face {
|
|
font-family: "heonian";
|
|
src: url("./font.otf");
|
|
}
|
|
|
|
@keyframes clearly-cheating {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
:root {
|
|
--font: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
--font-h: "heonian", "Helvatica Neue", Helvetica, Arial, sans-serif;
|
|
--nice-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
|
|
--grey: rgb(226, 226, 226);
|
|
--darkgrey: rgb(150, 150, 150);
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: var(--font);
|
|
}
|
|
|
|
a {
|
|
color: rgb(119, 205, 233);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.heonian {
|
|
font-family: "heonian";
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
flex-flow: row wrap;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--grey);
|
|
}
|
|
|
|
header * {
|
|
margin: 8px;
|
|
}
|
|
|
|
header #search {
|
|
flex-grow: 1;
|
|
white-space: nowrap;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
header #search button {
|
|
all: unset;
|
|
position: relative;
|
|
left: -64px;
|
|
top: -2px;
|
|
width: 48px;
|
|
text-align: center;
|
|
height: 2rem;
|
|
border-left: 1px solid var(--grey);
|
|
}
|
|
|
|
header input {
|
|
height: 2rem;
|
|
font-size: 1.5rem;
|
|
font-family: var(--font-h);
|
|
padding: 4px;
|
|
padding-right: calc(4px + 48px); /* space for heonian ime button */
|
|
border: 1px solid var(--grey);
|
|
border-radius: 4px;
|
|
font-weight: 100;
|
|
transition: border-color 0.3s;
|
|
width: calc(100% - 52px - 24px);
|
|
}
|
|
|
|
header input:focus {
|
|
outline: none;
|
|
border: 1px solid var(--darkgrey);
|
|
}
|
|
|
|
header span.heonian {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
header.fullscreen {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
flex-flow: column;
|
|
justify-content: center;
|
|
padding-bottom: 0px;
|
|
border-bottom: none;
|
|
}
|
|
|
|
header.fullscreen span.heonian {
|
|
font-size: 8rem;
|
|
}
|
|
|
|
header.fullscreen #search {
|
|
flex-grow: 0;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.header-animation {
|
|
animation: clearly-cheating 1s ease-in-out;
|
|
}
|
|
|
|
.header-animation-reverse {
|
|
animation: clearly-cheating 1s ease-in-out reverse;
|
|
} |