-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Single Site: Update site meta list (#144)
* Site Meta block: Update list of meta and display to match design * Update look of site meta block
- Loading branch information
Showing
3 changed files
with
89 additions
and
117 deletions.
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
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
56 changes: 24 additions & 32 deletions
56
source/wp-content/themes/wporg-showcase-2022/src/site-meta-list/style.scss
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,39 +1,31 @@ | ||
.wp-block-wporg-site-meta-list dl { | ||
margin: 0; | ||
} | ||
|
||
.wp-block-wporg-site-meta-list dl > div { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
.wp-block-wporg-site-meta-list { | ||
margin-block-start: 0; | ||
|
||
.wp-block-wporg-site-meta-list dd { | ||
word-break: break-word; | ||
margin: 0 0 var(--wp--preset--spacing--10); | ||
} | ||
|
||
.wp-block-wporg-site-meta-list dl > div:last-child dd:last-child { | ||
margin-bottom: 0; | ||
} | ||
ul { | ||
margin: 0; | ||
padding: 0; | ||
list-style-type: none; | ||
} | ||
|
||
.wp-block-wporg-site-meta-list dt { | ||
white-space: nowrap; | ||
padding-right: 1rem; | ||
} | ||
li { | ||
display: flex; | ||
gap: var(--wp--preset--spacing--10); | ||
padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20); | ||
border-bottom: 1px solid var(--wp--preset--color--light-grey-1); | ||
|
||
@media (min-width: 390px) { | ||
.wp-block-wporg-site-meta-list dl > div { | ||
grid-template-columns: 0.6fr 1fr; | ||
} | ||
} | ||
&:last-of-type { | ||
border-bottom: none; | ||
} | ||
|
||
@media (min-width: 641px) { | ||
.wp-block-wporg-site-meta-list dl { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
strong { | ||
flex-shrink: 0; | ||
font-weight: 400; | ||
} | ||
|
||
.wp-block-wporg-site-meta-list dd:last-child { | ||
margin-bottom: 0; | ||
span { | ||
margin-inline-start: auto; | ||
text-align: right; | ||
color: var(--wp--preset--color--charcoal-3); | ||
} | ||
} | ||
} |