Improved styling

This commit is contained in:
Edgar P. Burkhart 2022-01-28 09:39:50 +01:00
parent fc7098cd52
commit 21c6b4606c
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 71 additions and 13 deletions

View file

@ -5,52 +5,70 @@ body {
grid-template-rows: grid-template-rows:
auto auto
1fr; 1fr;
column-gap: 2rem;
} }
body > h1 { body > h1 {
grid-row: 1; grid-row: 1;
grid-column: 1 / span 2; grid-column: 1 / span 2;
margin: 3rem 3rem 1rem 3rem;
} }
body > * { body > #events {
margin: 2rem; margin: 2rem;
} }
@media (max-width: 672px) {
body > h1 {
margin: 1rem;
}
body > #events {
margin: 0;
}
}
.event { .event {
margin: 1rem; margin: 1rem;
display: grid; display: grid;
grid-template-columns: grid-template-columns:
6rem 6rem
1fr; 1fr;
row-gap: .5rem; gap: 1rem;
column-gap: 1rem;
background: var(--ui-01); background: var(--ui-01);
padding: 1rem; padding: 1rem;
} }
.event * {
overflow-x: hidden;
text-overflow: ellipsis;
}
.event > .summary { .event > .summary {
font-weight: 400; font-size: 1.75rem;
font-size: 1.5rem; line-height: 2.25rem;
grid-row: 1; grid-row: 1;
grid-column: 1 / span 2; grid-column: 1 / span 2;
} }
.event > .date { .event > .date {
grid-column: 1; grid-column: 1;
font-size: 1.1rem; font-size: 1.25rem;
line-height: 1.75rem;
display: grid; display: grid;
grid-template-columns: auto; grid-template-columns: auto;
grid-template-rows: auto auto;
gap: 1rem; gap: 1rem;
text-align: center; text-align: center;
} }
.event > .date > div { .event > .date > div > span {
display: grid; display: block;
grid-template-columns: auto;
} }
.date .day { .date .day {
font-size: 3em; font-size: 2.625rem;
line-height: 3.25rem;
font-weight: 300;
font-variant: tabular-nums;
} }
.date .time { .date .time {
font-size: 1.5em; font-size: 1.75rem;
line-height: 2.25rem;
font-variant: tabular-nums;
} }
.event .end-date, .event .end-date,
.event .other { .event .other {
@ -65,3 +83,11 @@ body > * {
auto; auto;
gap: 1rem; gap: 1rem;
} }
.event .description {
font-size: 1rem;
line-height: 1.5rem;
}
.event .other {
font-size: 1rem;
line-height: 1.375rem;
}

View file

@ -3,20 +3,52 @@
--ui-01: var(--gray-10); --ui-01: var(--gray-10);
--text-01: var(--gray-100); --text-01: var(--gray-100);
--text-02: var(--gray-70); --text-02: var(--gray-70);
--link-01: var(--blue-60);
--hover-primary-text: var(--blue-70);
--focus: var(--blue-60);
--visited-link: var(--purple-60);
--gray-10: #f4f4f4; --gray-10: #f4f4f4;
--gray-70: #525252; --gray-70: #525252;
--gray-100: #161616; --gray-100: #161616;
--blue-60: #0f62fe;
--blue-70: #0043ce;
--purple-60: #8a3ffc;
} }
body { body {
margin: 0; margin: 0;
font-family: Inter, sans-serif; font-family: Inter, sans-serif;
font-size: .875rem;
font-weight: 400;
line-height: 1.125rem;
background: var(--ui-background); background: var(--ui-background);
color: var(--text-01); color: var(--text-01);
font-feature-settings: 'ss01', 'ss03';
} }
h1 { h1 {
font-weight: 300; font-weight: 300;
font-size: 3rem; font-size: 3.375rem;
line-height: 4rem;
font-feature-settings: 'ss01', 'ss02', 'ss03', 'cv11';
}
a {
color: var(--link-01);
}
a:hover {
color: var(--hover-primary-text);
}
a:active {
color: var(--text-01);
}
a:focus {
outline: 1px solid var(--focus);
}
a:visited {
color: var(--visited-link);
} }