120 lines
2.0 KiB
CSS

* {
margin: 0;
padding: 0;
position: relative;
box-sizing: border-box;
}
body {
display: grid;
grid-template-rows: auto 1fr auto;
height: 100vh;
padding: 2rem;
font-family:"Myriad Pro", "Lucida Grande", "Trebuchet MS", sans-serif;
color: #202020;
background:
url(../images/square_bg.png) repeat top left,
url(../images/logo_transparent.png) no-repeat calc(100vw - 200px) 30px;
background-size: auto, 150px 150px;
}
h1, h2 {
padding-bottom: .5rem;
}
main ul {
display: grid;
margin: 2rem 0;
height: calc(100% - 4rem);
grid-template-rows: repeat(4, 1fr);
grid-template-columns: repeat(3, 1fr);
grid-gap: 4px;
list-style: none;
}
main ul li a {
--baseHue: 213;
--altHue: 199;
--hue: var(--baseHue);
--sat: 100%;
--lum: 67%;
--alpha: .4;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
padding: 1.5rem;
background-color: hsla(var(--hue), var(--sat), var(--lum), var(--alpha));
transition: background-color .2s ease-in-out;
}
main ul li:nth-of-type(2n) a {
--hue: var(--altHue);
}
main ul li a:hover {
--alpha: .2;
}
main a:link,
main a:visited,
main a:active,
main a:hover {
text-decoration: none;
}
a:link,
a:visited,
a:active,
a:hover {
color: rgb(15, 15, 15);
transition: color .2s;
}
.without-english-version {
display: none;
}
@media screen and (max-width: 850px) {
body {
background: url(../images/square_bg.png) repeat top left;
}
main ul {
grid-template-columns: repeat(2, 1fr);
}
main ul li:nth-of-type(2n) a {
--hue: var(--baseHue)
}
main ul li:nth-of-type(4n + 1) a,
main ul li:nth-of-type(4n + 4) a {
--hue: var(--altHue)
}
}
@media screen and (max-width: 530px) {
body {
padding: 1rem;
}
main ul {
grid-template-columns: 1fr;
}
main ul li:nth-of-type(4n + 1) a,
main ul li:nth-of-type(4n + 4) a {
--hue: var(--baseHue)
}
main ul li:nth-of-type(2n) a {
--hue: var(--altHue)
}
main ul li a {
padding: 1rem;
}
}