Fix issues with startpage

inky
Elnu 2 years ago
parent bda6b363a1
commit a20389ae85

@ -43,27 +43,30 @@
--outline: var(--blue); --outline: var(--blue);
} }
body { html {
background: var(--bg1); background: var(--bg1) !important;
color: var(--fg0); color: var(--fg0);
font-size: 1.5em; font-size: 1.5em;
display: flex; min-height: 100vh;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
} }
#content { body {
width: 40em; background: transparent;
max-height: 100vh; min-height: 100vh;
margin: 1em; margin: 1em;
display: flex;
}
#content {
width: min(40em, 100%);
height: 100%;
margin: auto;
} }
#cards { #cards {
display: grid; display: grid;
gap: 1rem; gap: 0.75rem;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
grid-auto-rows: 1fr; grid-auto-rows: 1fr;
} }
@ -75,12 +78,12 @@ body {
grid-column: 1 / 1; grid-column: 1 / 1;
} }
#cards > *:first-child{ #cards > :first-child{
grid-row: 1 / 1; grid-row: 1 / 1;
grid-column: 1 / 1; grid-column: 1 / 1;
} }
#cards > * { #cards > a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
display: flex; display: flex;
@ -94,22 +97,22 @@ body {
transition: 0.25s transform; transition: 0.25s transform;
} }
#cards > * > * { #cards > a > * {
color: white; color: white;
display: inline; display: inline;
height: 1em; height: 1em;
} }
#cards > :hover, #cards > :focus { #cards > a:hover, #cards > a:focus {
outline-width: 2px; outline-width: 2px;
outline-color: var(--outline); outline-color: var(--outline);
} }
#cards > :focus { #cards > a:focus {
background: var(--highlight); background: var(--highlight);
transform: translateY(-0.25rem); transform: translateY(-0.25rem);
} }
#cards > :hover *, #cards > :focus * { #cards > a:hover *, #cards > a:focus * {
font-size: 1.0625em; font-size: 1.0625em;
} }

Loading…
Cancel
Save