Skip to content

Commit

Permalink
Use spacing presets and add comments to CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Jan 25, 2023
1 parent 75634c2 commit d5e8a00
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions source/wp-content/themes/wporg-main-2022/src/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,24 +199,28 @@ html[dir="rtl"] :where([style*="border-right-color"]) {

@media (min-width: 1200px) {
.wporg-about-cover-title {
margin-block-end: -42px !important;
// move the intro text up to align with the bottom of the title
margin-block-end: calc((var(--wp--custom--body--typography--line-height) * var(--wp--preset--font-size--normal) + var(--wp--preset--spacing--10)) * -1) !important // ~ -42px;
}
}

@media (min-width: 782px) {
.wporg-about-section-heading {
// move the section heading up to align with the top of the right column
margin-block-start: -10px !important;
}

[class*="wporg-about-section-freedom-"] {
// move the numbered freedom sections up to overlap the previous one
margin-block-end: -30px !important;
position: relative;
}
}

@media (min-width: 600px) {
.wporg-about-cover-title {
margin-block-start: -30px !important;
// move the pretext down to align with the top of the title
margin-block-start: calc((var(--wp--custom--body--typography--line-height) * var(--wp--preset--font-size--normal)) * -1) !important;
}
}

Expand Down Expand Up @@ -312,8 +316,8 @@ html[dir="rtl"] :where([style*="border-right-color"]) {
}

[class*="wporg-about-section-freedom-"] {
padding-top: 40px !important;
padding-bottom: 40px !important;
padding-top: var(--wp--preset--spacing--40) !important;
padding-bottom: var(--wp--preset--spacing--40) !important;

h3 {
font-size: 120px !important;
Expand Down

0 comments on commit d5e8a00

Please sign in to comment.