Skip to content

Commit

Permalink
Merge pull request #73 from kevin9092/v1/dev
Browse files Browse the repository at this point in the history
fix: additional styling to match Umbraco.BlockGrid.ExampleWebsite
  • Loading branch information
rickbutterfield authored Oct 3, 2024
2 parents cb00ba2 + 3b1f6f1 commit 0ce5b62
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 24 deletions.
33 changes: 21 additions & 12 deletions src/Umbraco.Cms.11.x/wwwroot/css/myblockgridlayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
}
}

.blockelement__draggable-element {
height: 100%;
}

.blockelement__draggable-element > div:first-of-type {
height: 100%;
}

section {
padding: var(--section-padding, 60px 0);
}
Expand Down Expand Up @@ -128,20 +136,20 @@ h2 {

/**umb_name:H3*/
h3 {
font-size: 30px;
font-weight: 300;
line-height: 1.2;
margin:0;
color: inherit;
font-size: 30px;
font-weight: 300;
line-height: 1.2;
margin:0;
color: inherit;
}

/**umb_name:H4*/
h4 {
font-size: 21px;
font-weight: 300;
line-height: 1.2;
margin:0;
color: inherit;
font-size: 21px;
font-weight: 300;
line-height: 1.2;
margin:0;
color: inherit;
}


Expand Down Expand Up @@ -184,7 +192,7 @@ p.lead-paragraph {

/** Hero */

.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__area-container,
.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__area-container,
.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__block--view::part(area-container) {
padding: 0;
}
Expand Down Expand Up @@ -264,7 +272,7 @@ p.lead-paragraph {
padding: var(--my-container-padding);
margin-left: auto;
margin-right: auto;

display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-auto-flow: row;
Expand Down Expand Up @@ -312,6 +320,7 @@ p.lead-paragraph {
height: 100%;
color: black;
background-color: white;
position: relative;
}

.card .card-media {
Expand Down
33 changes: 21 additions & 12 deletions src/Umbraco.Cms.12.x/wwwroot/css/myblockgridlayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
}
}

.blockelement__draggable-element {
height: 100%;
}

.blockelement__draggable-element > div:first-of-type {
height: 100%;
}

section {
padding: var(--section-padding, 60px 0);
}
Expand Down Expand Up @@ -128,20 +136,20 @@ h2 {

/**umb_name:H3*/
h3 {
font-size: 30px;
font-weight: 300;
line-height: 1.2;
margin:0;
color: inherit;
font-size: 30px;
font-weight: 300;
line-height: 1.2;
margin:0;
color: inherit;
}

/**umb_name:H4*/
h4 {
font-size: 21px;
font-weight: 300;
line-height: 1.2;
margin:0;
color: inherit;
font-size: 21px;
font-weight: 300;
line-height: 1.2;
margin:0;
color: inherit;
}


Expand Down Expand Up @@ -184,7 +192,7 @@ p.lead-paragraph {

/** Hero */

.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__area-container,
.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__area-container,
.umb-block-grid__layout-item[data-content-element-type-alias="heroBlock"] .umb-block-grid__block--view::part(area-container) {
padding: 0;
}
Expand Down Expand Up @@ -264,7 +272,7 @@ p.lead-paragraph {
padding: var(--my-container-padding);
margin-left: auto;
margin-right: auto;

display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-auto-flow: row;
Expand Down Expand Up @@ -312,6 +320,7 @@ p.lead-paragraph {
height: 100%;
color: black;
background-color: white;
position: relative;
}

.card .card-media {
Expand Down
9 changes: 9 additions & 0 deletions src/Umbraco.Cms.13.x/wwwroot/css/myblockgridlayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
}
}

.blockelement__draggable-element {
height: 100%;
}

.blockelement__draggable-element > div:first-of-type {
height: 100%;
}

section {
padding: var(--section-padding, 60px 0);
}
Expand Down Expand Up @@ -312,6 +320,7 @@ p.lead-paragraph {
height: 100%;
color: black;
background-color: white;
position: relative;
}

.card .card-media {
Expand Down

0 comments on commit 0ce5b62

Please sign in to comment.