-
Notifications
You must be signed in to change notification settings - Fork 79
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
Events: Clean up stylesheet #1172
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3f48a00
Clean up wporg-google-map.pcss.
renintw 17700ce
Break out the css that isn't related to the map to event-list.pcss.
renintw b1c2ee1
Clean up contributors.pcss.
renintw 9f3d513
Clean up cover.pcss.
renintw 50b8392
Clean up misc.pcss.
renintw 20e6a3d
Clean up the rest.
renintw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
public_html/wp-content/themes/wporg-events-2023/postcss/blocks/event-list.pcss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
.wporg-marker-list__container { | ||
padding-left: 0; | ||
|
||
.wporg-marker-list-item { | ||
border: 1px solid var(--wp--preset--color--light-grey-1); | ||
border-bottom: none; | ||
padding: var(--wp--preset--spacing--20); | ||
list-style: none; | ||
font-size: var(--wp--preset--font-size--small); | ||
|
||
&:first-child { | ||
border-radius: 2px 2px 0 0; | ||
} | ||
|
||
&:last-child { | ||
border-radius: 0 0 2px 2px; | ||
border-bottom: 1px solid var(--wp--preset--color--light-grey-1); | ||
} | ||
|
||
@media (--large) { | ||
display: grid; | ||
align-items: start; | ||
gap: var(--wp--preset--spacing--20); | ||
grid-template-columns: 45% 1fr 2fr; | ||
} | ||
|
||
@media (--xlarge) { | ||
font-size: var(--wp--preset--font-size--normal); | ||
} | ||
|
||
@media (--wide) { | ||
grid-template-columns: 45% 1fr 1.5fr; | ||
} | ||
|
||
@media (--huge) { | ||
grid-template-columns: 55% 1fr 1fr; | ||
} | ||
|
||
@media (--xhuge) { | ||
grid-template-columns: 60% 1fr 1fr; | ||
} | ||
|
||
.wporg-marker-list-item__title { | ||
margin: 0; | ||
font-family: var(--wp--preset--font-family--inter); | ||
font-size: var(--wp--preset--font-size--small); | ||
line-height: var(--wp--custom--body--typography--line-height); | ||
--wp--preset--spacing--30: 0; | ||
|
||
&.a { | ||
renintw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
text-decoration: none; | ||
} | ||
|
||
@media (--xlarge) { | ||
font-size: var(--wp--preset--font-size--normal); | ||
} | ||
} | ||
|
||
.wporg-marker-list-item__location { | ||
|
||
@media (--medium-small) { | ||
margin-top: 2px; | ||
margin-bottom: -2px; | ||
} | ||
|
||
@media (--small) { | ||
display: inline; | ||
} | ||
} | ||
|
||
.wporg-marker-list-item__date-time { | ||
|
||
@media (--small) { | ||
display: inline-flex; | ||
justify-content: flex-end; | ||
white-space: nowrap; | ||
align-items: center; | ||
} | ||
|
||
@media (--wide) { | ||
display: flex; | ||
} | ||
} | ||
|
||
.wporg-marker-list-item__location::after, | ||
.wporg-google-map__date::after { | ||
content: ""; | ||
margin-top: -1px; /* vertical-middle doesn't subtract the size of the element */ | ||
margin-left: 10px; | ||
margin-right: 10px; | ||
height: 3px; | ||
width: 3px; | ||
border-radius: 3px; | ||
background: var(--wp--preset--color--charcoal-5); | ||
display: inline-block; | ||
vertical-align: middle; | ||
} | ||
|
||
.wporg-marker-list-item__location::after { | ||
|
||
@media (--small-only), (--large) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TIL you can apply a rule to multiple queries, nice! |
||
display: none; | ||
} | ||
} | ||
} | ||
} |
141 changes: 0 additions & 141 deletions
141
public_html/wp-content/themes/wporg-events-2023/postcss/blocks/wporg-google-map.pcss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
public_html/wp-content/themes/wporg-events-2023/postcss/blocks/wporg-query-filter.pcss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
|
||
/* Until we move to multi-select we should show the count so users know there is a filter applied. */ | ||
.wporg-query-filter__toggle.has-no-filter-applied span, | ||
.wporg-query-filter__toggle.has-no-filter-applied span, | ||
.wporg-query-filter__toggle.is-single-select span { | ||
display: inline-block; | ||
display: inline-block; | ||
} | ||
|
||
@media(max-width: 889px) { | ||
.wporg-query-filters { | ||
max-width:100%; | ||
overflow-x: scroll | ||
} | ||
.wporg-query-filters { | ||
|
||
@media (max-width: 889px) { | ||
max-width: 100%; | ||
overflow-x: scroll; | ||
} | ||
} |
27 changes: 15 additions & 12 deletions
27
public_html/wp-content/themes/wporg-events-2023/postcss/page/front-page/contributors.pcss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Moving the list rules into their own file is great for organization, thanks!