hikan.ru/assets/css/styles.css

92 lines
1.6 KiB
CSS

/* Design idea from here https://mo.rijndael.cc/ */
body {
display: flex;
flex-wrap: wrap;
margin: 0;
align-items: flex-start;
padding: 10px;
background-color: #E6E6FA;
}
header, main, footer {
margin: 5px;
display: flex;
flex-direction: column;
gap: 10px;
}
header, footer {
flex: 2;
}
main {
flex: 3;
}
div {
text-align: left;
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
box-sizing: border-box;
border: 1px solid;
border-radius: 10px;
width: 100%;
padding: 0 20px;
overflow: hidden;
}
h1 {
text-align: center;
padding: 30px;
position: relative;
}
h1::before, h1::after {
content: "";
position: absolute;
left: 0;
right: 0;
height: 10px;
background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 10" xmlns="http://www.w3.org/2000/svg"><path d="M0,5 Q25,10 50,5 T100,5" fill="none" stroke="%236a8498" stroke-width="2"/></svg>');
}
h1::before { top: 0; }
h1::after { bottom: 0; }
@keyframes wave {
from { background-position-x: 0; }
to { background-position-x: 100px; }
}
a {
background-color: #cdae98;
color: black;
text-decoration: none;
}
pre {
padding: 10px;
background: #E6E6FA;
border: 1px solid #e8e8e8;
overflow-x: auto;
white-space: pre;
word-wrap: normal;
width: 0;
min-width: calc(100% - 20px);
}
.count {
display: flex;
justify-content: center;
}
.count img {
height: 75px;
}
@media (max-width: 800px) {
header, footer, main {
flex: 1 100%;
}
}