Skip to content

Commit

Permalink
Events: Breakpoint change for a cleaner cover (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw authored Dec 11, 2023
1 parent 5ce4b04 commit 0f004b8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* wporg-parent-2021
* @link https://github.com/WordPress/wporg-parent-2021/blob/trunk/source/wp-content/themes/wporg-parent-2021/sass/base/_breakpoints.scss
*/
@custom-media --small-only (max-width: 559px);
@custom-media --small-only (max-width: 599px);
@custom-media --giant (min-width: 2000px);

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
list-style: none;
font-size: var(--wp--preset--font-size--small);

@media (--medium) {
@media (--large) {
display: grid;
align-items: start;
gap: var(--wp--preset--spacing--20);
grid-template-columns: 45% 1fr 1fr;
grid-template-columns: 45% 1fr 2fr;
}

@media (--xlarge) {
grid-template-columns: 50% 1fr 1fr;
font-size: var(--wp--preset--font-size--normal);
}

Expand Down Expand Up @@ -54,18 +53,27 @@
text-decoration: none;
}

@media (--medium-small) {
.wporg-marker-list-item__location {

.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 (--medium) {
display: block;
text-align: right;

@media (--small) {
display: inline-flex;
justify-content: right;
}

@media (--medium) {
.wporg-google-map__date {
display: block;
}
Expand All @@ -84,7 +92,8 @@
position: relative;
}

.wporg-google-map__date:after {
.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;
Expand All @@ -97,8 +106,13 @@
vertical-align: middle;
}

@media (--medium) {
.wporg-google-map__date:after {
.wporg-marker-list-item__location::after {

@media (--small-only) {
display: none;
}

@media (--large) {
display: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@
}

@media (--medium) {
.wp-block-columns {
flex-wrap: wrap !important;

.wp-block-column {
flex-grow: 1 !important;
}
}
}

@media (--large) {
padding-left: var(--wp--preset--spacing--edge-space);
padding-right: var(--wp--preset--spacing--edge-space);

.wp-block-columns {
flex-wrap: nowrap !important;
}

.wp-block-columns .wp-block-column:first-child {
padding-left: 0;
Expand All @@ -23,9 +38,6 @@
}

@media (--huge) {

padding-right: var(--wp--preset--spacing--edge-space);

.wp-block-columns .wp-block-column:first-child {
flex-basis: 33% !important;
}
Expand Down

0 comments on commit 0f004b8

Please sign in to comment.