Skip to content

Commit

Permalink
Styling changes for home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Deep Maheshwari committed Feb 12, 2023
1 parent 1c79a83 commit e9f5a28
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 24 deletions.
1 change: 0 additions & 1 deletion blocks/cards/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@
margin-bottom: 14px;
margin-left: 0px;
margin-right: 0px;
height: 32px;
}
.cards.large .cards-body > p {
font-size: 20px;
Expand Down
1 change: 0 additions & 1 deletion blocks/cards/cards.less
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ autocomment();
margin-bottom: 14px;
margin-left: 0px;
margin-right: 0px;
height: 32px;
}

>p {
Expand Down
5 changes: 3 additions & 2 deletions blocks/hero-home/hero-home.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ main .hero-home > div > div > h1 {
}
}
@media (min-width: 1025px) {
main main .hero-home img {
main .hero-home img {
width: 100vw;
min-height: 500px;
height: 500px;
object-fit: cover;
}
main .hero-home > div > div > h1 {
padding: 98px 0 0 105px;
Expand Down
13 changes: 5 additions & 8 deletions blocks/hero-home/hero-home.less
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,13 @@ main {
}

@media (@width_1025) {
main {
.hero-home {
img {
width: 100vw;
min-height: 500px;
}
.hero-home {
img {
width: 100vw;
height: 500px;
object-fit: cover;
}
}

.hero-home {
>div {
>div {
>h1 {
Expand Down
12 changes: 6 additions & 6 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ h3,
h4,
h5,
h6 {
font-weight: 600;
line-height: 1.25;
font-weight: 500;
line-height: 1.2;
margin-top: 1em;
margin-bottom: 0.5em;
scroll-margin: calc(var(--nav-height) + 1em);
Expand Down Expand Up @@ -433,7 +433,7 @@ main .home-banner.section p {
}
main .home-banner.section .default-content-wrapper {
margin: 0 22px;
top: -97px;
top: -60px;
position: relative;
padding: 64px 22px;
}
Expand Down Expand Up @@ -482,13 +482,13 @@ main .home-banner.section p {
}
@media (min-width: 1281px) {
main .section.narrow {
padding-left: 250px;
padding-right: 250px;
max-width: 1228px;
margin: auto;
}
main .section.switchcard {
background-color: var(--highlight-background-color);
display: grid;
grid-template-columns: 0.25fr 1fr 1fr 0.25fr 1fr 0.25fr;
grid-template-columns: 0.7fr 1fr 1fr 0.25fr 1fr 0.7fr;
grid-template-areas: ". a a a a ." ". b b . d .";
}
main .section.switchcard > .text-wrapper {
Expand Down
14 changes: 8 additions & 6 deletions styles/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ h3,
h4,
h5,
h6 {
font-weight: 600;
line-height: 1.25;
font-weight: 500;
line-height: 1.2;
margin-top: 1em;
margin-bottom: 0.5em;
scroll-margin: calc(var(--nav-height) + 1em);
Expand Down Expand Up @@ -165,6 +165,7 @@ pre {

strong {
font-family: var(--strong-font-family);

a.button {
&:any-link {
font-family: var(--strong-font-family);
Expand Down Expand Up @@ -464,6 +465,7 @@ main {
>.text-wrapper,
.default-content-wrapper {
padding-bottom: 50px;

:where(h1, h2, h3, p) {
color: @color_6;
text-align: center;
Expand Down Expand Up @@ -568,7 +570,7 @@ main .home-banner.section {

.default-content-wrapper {
margin: 0 22px;
top: -97px;
top: -60px;
position: relative;
padding: 64px 22px;
}
Expand Down Expand Up @@ -636,15 +638,15 @@ main .home-banner.section {
.section {

&.narrow {
padding-left: 250px;
padding-right: 250px;
max-width: 1228px;
margin: auto;
}


&.switchcard {
background-color: var(--highlight-background-color);
display: grid;
grid-template-columns: 0.25fr 1fr 1fr 0.25fr 1fr 0.25fr;
grid-template-columns: 0.7fr 1fr 1fr 0.25fr 1fr 0.7fr;
grid-template-areas:
". a a a a ."
". b b . d .";
Expand Down

0 comments on commit e9f5a28

Please sign in to comment.