-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor homepage cat CSS and reduce nesting #1464
Refactor homepage cat CSS and reduce nesting #1464
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+wc, would just like to see non-abbreviated class names. Thanks!
padding-bottom: 100%; | ||
} | ||
} | ||
.HomePage-cat-li { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the extra characters make the HTML longer but can we make this .HomePage-category-li
? The abbreviations always trip me up and I'd like to discourage their use 😄
} | ||
} | ||
.HomePage-cat-li { | ||
background-color: #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use $base-color
from ~core/css/inc/vars
here instead, just in case we ever want to change these colours.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
@@ -103,49 +92,50 @@ | |||
} | |||
|
|||
.HomePage-block-ads { | |||
background: url('../img/home/block-ads.svg') no-repeat 50% 35%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 👍
Before:
After: