You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
1.9 KiB
120 lines
1.9 KiB
2 years ago
|
:root {
|
||
2 years ago
|
--red: #e67e80; --red-bg: #4c3743;
|
||
2 years ago
|
--orange: #e69875;
|
||
|
--orange-bg: #493b40;
|
||
|
--yellow: #dbbc7f;
|
||
|
--yellow-bg: #45443c;
|
||
|
--green: #a7c080;
|
||
|
--green-bg: #3c4841;
|
||
|
--aqua: #83c092;
|
||
|
--aqua-bg: var(--green-bg);
|
||
|
--blue: #7fbbb3;
|
||
|
--blue-bg: #384b55;
|
||
|
}
|
||
|
|
||
|
.red {
|
||
|
--highlight: var(--red-bg);
|
||
|
--outline: var(--red);
|
||
|
}
|
||
|
|
||
|
.orange {
|
||
|
--highlight: var(--orange-bg);
|
||
2 years ago
|
--outline: var(--orange); }
|
||
2 years ago
|
|
||
|
.yellow {
|
||
|
--highlight: var(--yellow-bg);
|
||
|
--outline: var(--yellow);
|
||
|
}
|
||
|
|
||
|
.green {
|
||
|
--highlight: var(--green-bg);
|
||
|
--outline: var(--green);
|
||
|
}
|
||
|
|
||
|
.aqua {
|
||
|
--highlight: var(--aqua-bg);
|
||
|
--outline: var(--aqua);
|
||
|
}
|
||
|
|
||
|
.blue {
|
||
|
--highlight: var(--blue-bg);
|
||
|
--outline: var(--blue);
|
||
|
}
|
||
|
|
||
2 years ago
|
html {
|
||
|
background: var(--bg1) !important;
|
||
2 years ago
|
color: var(--fg0);
|
||
|
font-size: 1.5em;
|
||
2 years ago
|
min-height: 100vh;
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
body {
|
||
|
background: transparent;
|
||
|
min-height: 100vh;
|
||
2 years ago
|
margin: 1em;
|
||
2 years ago
|
margin-top: 0;
|
||
|
margin-bottom: 0;
|
||
2 years ago
|
display: flex;
|
||
|
}
|
||
|
|
||
|
#content {
|
||
|
width: min(40em, 100%);
|
||
|
height: 100%;
|
||
|
margin: auto;
|
||
2 years ago
|
}
|
||
|
|
||
|
#cards {
|
||
|
display: grid;
|
||
2 years ago
|
gap: 0.75rem;
|
||
|
grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
|
||
2 years ago
|
grid-auto-rows: 1fr;
|
||
|
}
|
||
|
|
||
|
#cards::before {
|
||
|
content: '';
|
||
|
width: 0;
|
||
|
padding-bottom: 100%;
|
||
|
grid-row: 1 / 1;
|
||
|
grid-column: 1 / 1;
|
||
|
}
|
||
|
|
||
2 years ago
|
#cards > :first-child{
|
||
2 years ago
|
grid-row: 1 / 1;
|
||
|
grid-column: 1 / 1;
|
||
|
}
|
||
|
|
||
2 years ago
|
#cards > a {
|
||
2 years ago
|
color: inherit;
|
||
|
text-decoration: none;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
background: linear-gradient(var(--bg2), var(--bg2), var(--highlight, var(--bg2)));
|
||
|
font-size: 2em;
|
||
|
outline: 1px solid var(--outline, var(--bg0));
|
||
|
border-radius: 2px;
|
||
|
transition: 0.25s transform;
|
||
2 years ago
|
user-select: none;
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
#cards > a > * {
|
||
2 years ago
|
color: white;
|
||
|
display: inline;
|
||
|
height: 1em;
|
||
|
}
|
||
|
|
||
2 years ago
|
#cards > a:hover, #cards > a:focus {
|
||
2 years ago
|
outline-width: 2px;
|
||
|
outline-color: var(--outline);
|
||
|
}
|
||
|
|
||
2 years ago
|
#cards > a:focus {
|
||
2 years ago
|
background: var(--highlight);
|
||
|
transform: translateY(-0.25rem);
|
||
|
}
|
||
|
|
||
2 years ago
|
#cards > a:hover *, #cards > a:focus * {
|
||
2 years ago
|
font-size: 1.0625em;
|
||
|
}
|