Skip to content

Commit

Permalink
fix: layout fixes (post-Zakra 3) (#75)
Browse files Browse the repository at this point in the history
* fix: add spacing between headings on contact form
* fix: add spacing below button on 404 page
* chore: stylelint formatting
  • Loading branch information
paulschreiber authored Aug 7, 2023
1 parent d63fcf0 commit 05022e9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion assets/css/main.min.css

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions assets/css/main.src.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ html body .zak-icon {

/*
* Colors
*/ /****************************************************************
*/
/****************************************************************
* Buttons
*/
.wp-block-buttons.wp-block-buttons .wp-block-button__link {
Expand Down Expand Up @@ -296,7 +297,7 @@ body .zak-scroll-to-top {
background-color: #076b8e;
}
body .zak-scroll-to-top:hover {
background-color: #358EAE;
background-color: #358eae;
}

.zak-icon-arrow-up::after {
Expand Down Expand Up @@ -393,7 +394,8 @@ main {
border-radius: 4px;
}

.slug-faq .entry-content h2, .slug-faq .entry-content h3,
.slug-faq .entry-content h2,
.slug-faq .entry-content h3,
.slug-preguntas-frecuentes .entry-content h2,
.slug-preguntas-frecuentes .entry-content h3,
.slug-perguntas-frequentes .entry-content h2,
Expand Down Expand Up @@ -737,9 +739,6 @@ main {
.wp-block-group.mobile-header .wp-block-group__inner-container {
padding: 0;
}
.wp-block-group.contact-form h3 {
margin: 0;
}
.wp-block-group.contact-form h3 + p {
-webkit-margin-before: 0;
margin-block-start: 0;
Expand All @@ -764,6 +763,7 @@ main {

.zak-error-404 {
font-size: 2em;
margin-bottom: 2em;
}
.zak-error-404 .zak-search-form .zak-search-field-label {
border-radius: 1em;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/main.src.css.map

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

2 changes: 1 addition & 1 deletion assets/css/src/parts/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $link-hover: #00344d;

// blue button hover (up arrow in footer)
$button: $link;
$button-hover: #358EAE;
$button-hover: #358eae;

// footer
$dark-brown: #3f3933;
Expand Down
25 changes: 11 additions & 14 deletions assets/css/src/parts/terraso.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@
max-width: 1200px;
margin: 0 auto;

@media screen and (max-width:992px) {
@media screen and (max-width: 992px) {
max-width: 100%;
}
}


/****************************************************************
* Header
*/
Expand Down Expand Up @@ -170,7 +169,6 @@ header {
font-size: 15px;
}


/****************************************************************
* Footer
*/
Expand Down Expand Up @@ -351,7 +349,7 @@ main {
.slug-toolkit, // en fr
.slug-kit-de-herramientas, // es
.slug-kit-de-ferramentas { // pt
img[src$='.png'] {
img[src$=".png"] {
border: 1px solid v.$border;
}
}
Expand All @@ -361,11 +359,10 @@ main {
.slug-kit-de-ferramentas, // pt
.slug-project, // en
.slug-programme, // fr
.slug-programa, // es pt
{
.slug-programa, {
.entry-content {
img[src$='.png'],
img[src$='.jpg'] {
img[src$=".png"],
img[src$=".jpg"] {
border-radius: 4px;
}
}
Expand All @@ -378,7 +375,8 @@ main {
.slug-kit-de-herramientas, // es
.slug-kit-de-ferramentas { // pt
.entry-content {
h2, h3 {
h2,
h3 {
scroll-margin-top: 102px;
}

Expand All @@ -391,7 +389,7 @@ main {
.simpletoc-list {
list-style: none;
margin-left: 0;
font-size: 2.0rem;
font-size: 2rem;

li {
line-height: 2;
Expand Down Expand Up @@ -699,8 +697,8 @@ main {
@media screen and (max-width: 768px) {
/* the important ooverrides inline styles from the block editor */
> div {
grid-template-columns: 1fr 1fr ! important;
margin-left: 0 ! important;
grid-template-columns: 1fr 1fr !important;
margin-left: 0 !important;

figure {
width: 224px;
Expand Down Expand Up @@ -744,8 +742,6 @@ main {

&.contact-form {
h3 {
margin: 0;

+ p {
margin-block-start: 0;
}
Expand All @@ -771,6 +767,7 @@ main {

.zak-error-404 {
font-size: 2em;
margin-bottom: 2em;

.zak-search-form {
.zak-search-field-label {
Expand Down

0 comments on commit 05022e9

Please sign in to comment.