Skip to content

Commit

Permalink
fix: add institution name margin-top on mobile only
Browse files Browse the repository at this point in the history
  • Loading branch information
michelmany committed Aug 20, 2024
1 parent c4cb29d commit febb9d6
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 23 deletions.
2 changes: 1 addition & 1 deletion assets/css/editor-style.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -7089,6 +7089,9 @@ article.type-post {
.vendor_information_block_container_column_two {
grid-column-start: 5;
grid-column-end: 13; }
@media (max-width: 767px) {
.vendor_information_block_container_column_two_institution_name {
margin-top: 20px; } }
.vendor_information_block_container_column_two_title {
color: #000;
font-size: 16px;
Expand Down
46 changes: 26 additions & 20 deletions assets/scss/blocks/vendor-information-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
gap: 0 20px;
}
}

img{
width: 100%;
}
Expand All @@ -55,6 +55,12 @@
grid-column-start: 5;
grid-column-end: 13;

&_institution_name {
@include media("<tablet") {
margin-top: 20px;
}
}

&_title {
color: #000;
font-size: 16px;
Expand Down Expand Up @@ -210,7 +216,7 @@
text-align: center;
flex-wrap: wrap;
gap: 0 20px;

@include media("<tablet") {
flex-direction: row;
border-bottom: 1px solid #D9D9D9;
Expand All @@ -221,7 +227,7 @@
&-image{
margin-bottom: 25px;
}

&-read-review a {
color: #000;
text-align: center;
Expand Down Expand Up @@ -254,11 +260,11 @@
}
}
}

&-column-two {
grid-column-start: 5;
grid-column-end: 13;

&-title {
color: #000;
font-size: 16px;
Expand All @@ -267,7 +273,7 @@
line-height: 24px; // 150%
margin: 0 0 15px;
}

&-link {
@include media(">desktop") {
display: flex;
Expand All @@ -278,7 +284,7 @@
display: grid;
grid-template-columns: auto auto;
}

&.btn {
width: 100%;
display: flex;
Expand Down Expand Up @@ -316,20 +322,20 @@
color: var(--WCAG-Green, #547C2D);
cursor: pointer;
}

span {
display: inline-flex;
transform: rotate(0deg);
}

&.active-btn {
span {
transform: rotate(180deg);
}
}

}

.subtext {
color: #000;
text-align: center;
Expand All @@ -339,7 +345,7 @@
line-height: 20px;
}
}

&-text-repeater ul {
color: var(--Black, #000);
font-size: 14px;
Expand All @@ -348,13 +354,13 @@
line-height: 24px; // 171.429%
padding: 0 0 0 20px;
margin: 0 0 30px;

li {
padding: 0;
}
}
}

&-more-info {
grid-column-start: 1;
grid-column-end: 13;
Expand All @@ -366,11 +372,11 @@
border-top: 1px solid #D9D9D9;
padding: 32px 0 0;
margin: 40px 0 0;

div {
margin: 20px 0 0;
}

a {
color: var(--WCAG-Green, #547C2D);
font-size: 14px;
Expand All @@ -383,9 +389,9 @@
p{
margin-bottom: 0;
}

}

.cover {
background: white;
height: 100%;
Expand All @@ -397,7 +403,7 @@
bottom: 0;
display: flex;
}

.rating-stars {
position: relative;
gap: 10px;
Expand All @@ -410,4 +416,4 @@
}
}
}
}
}
6 changes: 4 additions & 2 deletions template-parts/blocks/featured-institution/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@
</div>

<div class="vendor_information_block_container_column_two">
<h3><?php echo esc_html( $institution_name ); ?></h3>

<h3 class="vendor_information_block_container_column_two_institution_name">
<?php echo esc_html( $institution_name ); ?>
</h3>

<?php if ( $show_about ) : ?>
<h4 class="vendor_information_block_container_column_two_title">About:</h4>
<div class="vendor_information_block_container_column_two_text_repeater">
Expand Down

0 comments on commit febb9d6

Please sign in to comment.