Skip to content

Commit

Permalink
Move block alignment styles back to default page css.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Jan 25, 2024
1 parent f763a85 commit 86bed05
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 114 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.

2 changes: 1 addition & 1 deletion application/asset/css/page-grid.css

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

115 changes: 114 additions & 1 deletion application/asset/sass/page-blocks.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,117 @@
@import "base";


.block-layout-background-position-y-top {
background-position-y: top;
}

.block-layout-background-position-y-center {
background-position-y: center;
}

.block-layout-background-position-y-bottom {
background-position-y: bottom;
}

.block-layout-background-position-x-left {
background-position-x: left;
}

.block-layout-background-position-x-center {
background-position-x: center;
}

.block-layout-background-position-x-right {
background-position-x: right;
}

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

.block-layout-alignment-left .item.resource,
.block-layout-alignment-right .item.resource {
margin: 0 0 1rem 0;

&:first-of-type {
padding-top: calc(1rem - 1px);
margin-top: 0;
}

&:last-of-type {
padding-bottom: -1px;
}

.media-render a {
display: block;
}

audio,
canvas,
video,
progress,
img {
max-width: 100%;
vertical-align: bottom;
margin-bottom: .5rem;
}
}

.block-layout-alignment-left {
float: left;
clear: left;
margin: 0 1rem 1rem 0;
}

.block-layout-alignment-right {
float: right;
clear: right;
margin: 0 0 1rem 1rem;
}

.block-layout-alignment-center {
display: flex;
justify-content: center;
flex-wrap: wrap;
text-align: center;

.item {
width: 100%;
}
}

.block-layout-alignment-left .item.resource > a:first-child,
.block-layout-alignment-right .item.resource > a:first-child {
vertical-align: top;
}



.block-layout-alignment-left .item.resource > h3,
.block-layout-alignment-right .item.resource > h3 {
margin: 0;
}

.block-layout-alignment-left .item.resource + p,
.block-layout-alignment-right .item.resource + p {
margin-top: 0;
}

.block-layout-background-size-cover,
.block-layout-background-size-contain {
background-repeat: no-repeat;
}

.block-layout-background-size-cover {
background-size: cover;
}

.block-layout-background-size-contain {
background-size: contain;
}

.item-showcase {
margin: 1rem 0;
border-top: 1px solid $border-gray;
Expand Down Expand Up @@ -193,4 +305,5 @@
.page-date-time .value {
display: inline-block;
margin: 0;
}
}

111 changes: 0 additions & 111 deletions application/asset/sass/page-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,114 +11,3 @@
display: block;
}
}

.block-layout-background-position-y-top {
background-position-y: top;
}

.block-layout-background-position-y-center {
background-position-y: center;
}

.block-layout-background-position-y-bottom {
background-position-y: bottom;
}

.block-layout-background-position-x-left {
background-position-x: left;
}

.block-layout-background-position-x-center {
background-position-x: center;
}

.block-layout-background-position-x-right {
background-position-x: right;
}

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

.block-layout-alignment-left .item.resource,
.block-layout-alignment-right .item.resource {
margin: 0 0 1rem 0;

&:first-of-type {
padding-top: calc(1rem - 1px);
margin-top: 0;
}

&:last-of-type {
padding-bottom: -1px;
}

.media-render a {
display: block;
}

audio,
canvas,
video,
progress,
img {
max-width: 100%;
vertical-align: bottom;
margin-bottom: .5rem;
}
}

.block-layout-alignment-left {
float: left;
clear: left;
margin: 0 1rem 1rem 0;
}

.block-layout-alignment-right {
float: right;
clear: right;
margin: 0 0 1rem 1rem;
}

.block-layout-alignment-center {
display: flex;
justify-content: center;
flex-wrap: wrap;
text-align: center;

.item {
width: 100%;
}
}

.block-layout-alignment-left .item.resource > a:first-child,
.block-layout-alignment-right .item.resource > a:first-child {
vertical-align: top;
}



.block-layout-alignment-left .item.resource > h3,
.block-layout-alignment-right .item.resource > h3 {
margin: 0;
}

.block-layout-alignment-left .item.resource + p,
.block-layout-alignment-right .item.resource + p {
margin-top: 0;
}

.block-layout-background-size-cover,
.block-layout-background-size-contain {
background-repeat: no-repeat;
}

.block-layout-background-size-cover {
background-size: cover;
}

.block-layout-background-size-contain {
background-size: contain;
}

0 comments on commit 86bed05

Please sign in to comment.