scss: regroup cell css under %cell selector (#85767)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Thomas Jund 2024-01-17 14:41:07 +01:00 committed by Thomas Jund
parent 8f0b251fb8
commit 96e2944669
13 changed files with 22 additions and 57 deletions

View File

@ -140,9 +140,7 @@ div#rub_service > h2:first-child,
}
}
.column div.a2-block,
.gru-content div.cell,
div.block {
%cell {
padding: 0;
& h2 + div {

View File

@ -198,10 +198,11 @@ div#main-content-wrapper {
}
// Cells
.column div.a2-block,
.gru-content div.cell,
.block {
%cell {
margin-bottom: $columns-gutter;
input, input[type="search"], textarea, select {
background: $widget-background-in-cell;
}
}
div.gru-content .cell.trackingcodeinputcell button {
color: white;
@ -210,14 +211,6 @@ div.gru-content .cell.text-cell > div {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
div.a2-continue,
div.a2-block,
.gru-content .cell,
.block {
input, input[type="search"], textarea, select {
background: $widget-background-in-cell;
}
}
.a2-block {
padding: 1rem;
}

View File

@ -73,9 +73,7 @@
margin-top: 4rem;
}
.column div.a2-block,
.gru-content div.cell,
.block {
%cell {
margin-bottom: 1.8rem;
}

View File

@ -19,10 +19,7 @@
}
}
div.a2-continue,
div.a2-block,
.gru-content .cell,
.block {
%cell {
border-bottom: 4px solid $blue-france-500;
}

View File

@ -80,18 +80,6 @@ div#sidebar + div#columns {
color: $cell-color;
border: $cell-border;
border-radius: $cell-border-radius;
}
div.a2-continue,
div.a2-block,
.gru-content .cell,
.block {
@extend %cell;
}
.a2-block,
.gru-content div.cell,
.block {
margin-top: 0;
margin-bottom: 10px;
& h2 + div,
@ -107,6 +95,13 @@ div.a2-block,
}
}
div.a2-continue,
.a2-block,
.gru-content .cell,
.block {
@extend %cell;
}
.gru-content .cell.wcsformsofcategorycell {
h2 ~ div.intro {
padding: 1rem;

View File

@ -151,9 +151,7 @@ div#main-content-wrapper {
}
// cells vertical gutters
.column div.a2-block,
.gru-content div.cell,
.block {
%cell {
margin-bottom: $columns-gutter;
}

View File

@ -245,9 +245,7 @@ main {
//
// ajust cell padding on $title-padding
.column div.a2-block,
.gru-content div.cell,
.block {
%cell {
& h2 + div,
.cell--body {
padding: $title-padding;

View File

@ -313,9 +313,7 @@ body {
// Cells
//
.column div.a2-block,
.gru-content div.cell,
.block {
%cell {
margin-bottom: 1.5rem;
& h2 + div,
.cell--body {

View File

@ -366,9 +366,7 @@ div.gru-nav {
}
}
}
.column div.a2-block,
.gru-content div.cell,
.block {
%cell {
margin-bottom: 0.5em;
}
.top-column div.cell {

View File

@ -151,9 +151,7 @@ main {
margin-top: 2em;
}
.columns div.a2-block,
.gru-content div.cell,
.block {
%cell {
margin-bottom: 30px;
}

View File

@ -847,9 +847,7 @@ div#title-section {
}
}
div.a2-block,
.gru-content div.cell,
.column div.block {
%cell {
background: transparent;
h2 ~ * {
background: white;

View File

@ -301,9 +301,7 @@ main {
//
// cell--body
.column div.a2-block,
.gru-content div.cell,
.block {
%cell {
margin-bottom: $columns-gutter;
& h2 ~ div,
.cell--body,

View File

@ -198,9 +198,7 @@ div.timetable-widget {
line-height: 1.2;
}
// vertical space
.column div.a2-block,
.gru-content div.cell,
.block {
%cell {
margin-bottom: $columns-gutter / 2;
}
// Add box-shadow to cells