Removed grid layout. Use column instead.

This commit is contained in:
Alexander Andreev 2022-10-25 06:19:46 +04:00
parent 58f090368f
commit 558ebf4431
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -66,36 +66,37 @@ h1 {
h1, h1,
h2 { font-variant: small-caps; } h2 { font-variant: small-caps; }
h2 { font-size: 1.4rem; }
h2, h2,
h3 { h3 {
text-align: center; text-align: center;
margin: 1rem; } margin: 1rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; } h3 { font-size: 1.05rem; }
h3.service-up::after { content: '●'; }
h3.service-down::after { content: '○'; }
h3:is(.service-up, .service-down)::after { h3:is(.service-up, .service-down)::after {
font-size: 1rem; font-size: 1rem;
margin-right: -.9rem; margin-right: -.9rem;
vertical-align: text-top; vertical-align: text-top;
padding-left: .2rem; } padding-left: .2rem; }
.service-up::after { content: '●'; }
.service-down::after { content: '○'; }
.highlighted { color: var(--primary-color); }
small, small,
figure figcaption { font-size: .8rem; } figure figcaption { font-size: .8rem; }
figure.center { text-align: center; } figure.center,
figure figcaption { text-align: center; }
figure img { width: 100%; } figure img { width: 100%; }
figure.center img { width: 60%; } figure.center img { width: 60%; }
figure figcaption { text-align: center; }
table { table {
border-collapse: collapse; border-collapse: collapse;
margin-bottom: .5rem; } margin-bottom: .5rem; }
@ -106,20 +107,21 @@ tr :is(th, td) {
tr :is(th, td):not(:last-child) { padding-right: .5rem; } tr :is(th, td):not(:last-child) { padding-right: .5rem; }
#banners figure img { width: auto; } .columns {
column-count: 3;
column-fill: balance-all;
column-gap: 1rem;
column-span: none; }
.highlighted { color: var(--primary-color); } .columns.figs { column-count: 2; }
.grid { .columns > div {
display: grid; display: inline-block;
grid-template-columns: 1fr 1fr 1fr; width: 100%; }
grid-gap: 1rem; }
.grid h3 { color: var(--primary-color); } .columns h3 { color: var(--primary-color); }
.grid.figs { grid-template-columns: 1fr 1fr; } .banners {
.grid.banners {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; } justify-content: center; }
@ -202,5 +204,5 @@ footer {
body > header nav { text-align: center; } body > header nav { text-align: center; }
.grid, .columns,
.grid.figs { grid-template-columns: 1fr; } } .columns.figs { column-count: 1; } }