Skip to content

Commit

Permalink
Clean up wporg-google-map.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw committed Dec 11, 2023
1 parent 0f004b8 commit 7dfb6fd
Showing 1 changed file with 11 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
grid-template-columns: 60% 1fr 1fr;
}

&: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);
}

Expand Down Expand Up @@ -70,31 +75,19 @@

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

@media (--medium) {
.wporg-google-map__date {
display: block;
}
}

@media (--huge) {
justify-content: flex-end;
white-space: nowrap;

.wporg-google-map__date {
display: inline-block;
}
align-items: center;
}
}

.wporg-google-map__date {
position: relative;
@media (--wide) {
display: flex;
}
}

.wporg-marker-list-item__location::after,
.wporg-google-map__date::after {
content: '';
content: "";
margin-top: -1px; /* vertical-middle doesn't subtract the size of the element */
margin-left: 10px;
margin-right: 10px;
Expand All @@ -116,27 +109,6 @@
display: none;
}
}

@media (--wide) {
.wporg-marker-list-item__date-time {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
}

.wporg-google-map__date:after {
display: inline-block;
}
}

&:first-child {
border-radius: 2px 2px 0 0;
}

&:last-child {
border-radius: 0 0 2px 2px;
}
}

.wporg-map-marker__title {
Expand Down

0 comments on commit 7dfb6fd

Please sign in to comment.