Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Update patterns to use spacing presets, not arbitrary values #203

Closed
richtabor opened this issue Sep 5, 2023 · 4 comments · Fixed by #427
Closed

Update patterns to use spacing presets, not arbitrary values #203

richtabor opened this issue Sep 5, 2023 · 4 comments · Fixed by #427
Assignees
Labels

Comments

@richtabor
Copy link
Member

We should use spacing presets nearly exclusively throughout the theme. Any arbitrary value should be replaced with the closest spacing preset.

CleanShot 2023-09-05 at 15 21 38
@colorful-tones
Copy link
Member

I'm working through an audit for this right now. I'll report back shortly.

@colorful-tones
Copy link
Member

colorful-tones commented Sep 13, 2023

I've begun inspecting the patterns for spacing preset usage. I'm solely focusing on margin, padding, top, bottom, right, left, blockGap usage and ignoring the following:

✅ means they're using spacing presets
🚀 incoming PR for this #362
⚠️ needs addressing (ran out of time)

  • about-2.php
  • about.php
  • centered-statement.php
  • clients.php
  • columns.php
  • cta.php
  • faq.php
  • feature-grid.php
  • features-with-images.php
  • footer-portfolio.php
  • footer-writer.php
  • footer.php
  • hero.php
  • hidden-404.php
  • 🚀 hidden-comments.php
  • hidden-full-screen-image.php
  • hidden-hidden-intro-text-left.php
  • hidden-no-results-content.php
  • ⚠️ hidden-sidebar-writer.php (no longer)
  • hidden-sidebar.php
  • left-aligned-cta-image.php
  • offset-grid-image-posts.php
  • page-01-business-home.php
  • page-02-business-about.php
  • page-03-portfolio-overview.php
  • page-04-newsletter-landing.php
  • page-05-portfolio-home.php
  • ⚠️ posts.php posts-featured.php
  • ⚠️ pricing.php
  • project-description.php
  • project-details.php
  • ⚠️ project-layout.php
  • rsvp.php
  • services-cta.php
  • team.php
  • template-home-portfolio.php
  • ⚠️ testimonial.php

@colorful-tones colorful-tones removed their assignment Sep 13, 2023
@colorful-tones
Copy link
Member

One thing to clarify here. In @richtabor screenshot for this issue there are lots of 0 values, like padding-left: 0. I think the zeroing is fine in this case, and it is only non-zero values, like padding-left: 7vh we’re worried about in replacing with variables.

@richtabor
Copy link
Member Author

Yea, 0 is fine. Even some of the smaller values are ok (like between post meta; small areas). But the vast majority should be presets.

@colorful-tones colorful-tones self-assigned this Sep 19, 2023
@colorful-tones colorful-tones linked a pull request Sep 19, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants