Skip to content

Commit

Permalink
Consolidate clearfixes, add standard block margin.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Feb 22, 2024
1 parent 2969042 commit 53abcaa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion application/asset/css/page-blocks.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions application/asset/sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
font-family: "Font Awesome 5 Free";
font-weight: 900;
}

@mixin clearfix {
&:after {
content: "";
display: block;
clear: both;
}
}
17 changes: 8 additions & 9 deletions application/asset/sass/page-blocks.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "base";
@import "mixins";

.block-layout-background-image-position-y-top {
background-position-y: top;
Expand Down Expand Up @@ -26,8 +27,8 @@

.page-layout-normal .block-layout-alignment-block-right,
.page-layout-normal .block-layout-alignment-block-left {
overflow: hidden;
max-width: 33.33%;
@include clearfix;
}

.block-layout-alignment-block-left .item.resource,
Expand Down Expand Up @@ -244,9 +245,7 @@
}

.item-with-metadata {
width: 100%;
overflow: hidden;
margin: 1rem 0;
@include clearfix;
}

.item-with-metadata .show.resource {
Expand All @@ -256,7 +255,7 @@
.list-of-sites .site-list {
.site {
margin-bottom: .5rem;
overflow: auto;
@include clearfix;
}

.site-link {
Expand Down Expand Up @@ -293,12 +292,12 @@
font-weight: bold;
}

.block-pageTitle.has-background h2 {
margin: 0;
.page-layout-normal .block {
margin: 1rem 0;
}

.page-date-time {
margin: 1rem 0;
.block-pageTitle.has-background h2 {
margin: 0;
}

.page-date-time .property {
Expand Down

0 comments on commit 53abcaa

Please sign in to comment.