Skip to content

Commit

Permalink
Updates for the announcement bar compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
minimaluminium committed Apr 21, 2023
1 parent c7ab2bf commit fc120ad
Show file tree
Hide file tree
Showing 94 changed files with 193 additions and 161 deletions.
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v1/components/article.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
width: 100%;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-article-excerpt {
font-size: 1.9rem;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v1/components/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ is the very first element in the post content */
margin-top: 0.8rem;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-content {
margin-top: 3.2rem;
font-size: 1.7rem;
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v1/components/cta.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
color: var(--color-darker-gray);
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-cta-actions {
column-gap: 0.8rem;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v1/components/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
opacity: 1;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-foot {
padding-top: 6.4rem;
padding-bottom: 12rem;
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v1/components/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ iframe {
border: 0;
}

@media (max-width: 767px) {
@media (width <= 767px) {
h2 {
font-size: 2.4rem;
}
Expand Down
25 changes: 18 additions & 7 deletions packages/_shared/assets/css/v1/components/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
margin-right: 8px;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-head-members {
flex-direction: column-reverse;
gap: 16px;
Expand All @@ -123,7 +123,7 @@
}
}

@media (min-width: 768px) {
@media (width >= 768px) {
.gh-head-brand .gh-search {
display: none;
}
Expand All @@ -146,7 +146,7 @@ LOGO Home About Collection Author Portal Login Subscribe
grid-template-columns: auto 1fr auto;
}

@media (min-width: 992px) {
@media (width >= 992px) {
.is-head-left-logo .gh-head-menu {
margin-right: 64px;
margin-left: 16px;
Expand All @@ -171,7 +171,7 @@ Home About Collection LOGO Login Subscribe
gap: 28px;
}

@media (min-width: 992px) {
@media (width >= 992px) {
.is-head-middle-logo .gh-head-menu {
margin-right: 64px;
}
Expand All @@ -185,6 +185,7 @@ Search LOGO Login Subscribe
*/

.is-head-stacked .gh-head {
position: relative;
height: auto;
}

Expand All @@ -199,13 +200,13 @@ Search LOGO Login Subscribe
min-height: 80px;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.is-head-stacked .gh-head-brand {
min-height: unset;
}
}

@media (min-width: 992px) {
@media (width >= 992px) {
.is-head-stacked .gh-head-inner {
padding: 0;
}
Expand Down Expand Up @@ -283,6 +284,16 @@ Search LOGO Login Subscribe
background-color: rgba(255, 255, 255, 0.2);
}

.is-head-transparent #announcement-bar-root {
position: absolute;
right: 0;
left: 0;
}

.is-head-transparent #announcement-bar-root + :is(.site, .gh-site) .gh-head {
margin-top: 48px;
}

/* Dark header
/* ---------------------------------------------------------- */

Expand Down Expand Up @@ -445,7 +456,7 @@ Search LOGO Login Subscribe
transform: rotate(-45deg);
}

@media (max-width: 767px) {
@media (width <= 767px) {
#gh-head {
height: 64px;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v1/components/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ use it for applying any other styles. */
width: 100%;
}

@media (max-width: 767px) {
@media (width <= 767px) {
#gh-main {
padding-top: 4.8rem;
padding-bottom: 4.8rem;
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v1/components/navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
margin-left: 0.4rem;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-navigation-hide {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v1/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
--gap: 3.6rem;
}

@media (max-width: 767px) {
@media (width <= 767px) {
:root {
--h1-size: 3.2rem !important;
--gap: 2rem;
Expand Down
4 changes: 2 additions & 2 deletions packages/_shared/assets/css/v1/vendor/pswp.css
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
background-size: 264px 88px;
}

@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {
@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (resolution >= 105dpi), (resolution >= 1.1dppx) {
.pswp--svg .pswp__button,
.pswp--svg .pswp__button--arrow--left::before,
.pswp--svg .pswp__button--arrow--right::before {
Expand Down Expand Up @@ -398,7 +398,7 @@
border-radius: 50%;
}

@media screen and (max-width: 1024px) {
@media screen and (width <= 1024px) {
.pswp__preloader {
position: relative;
top: auto;
Expand Down
8 changes: 4 additions & 4 deletions packages/_shared/assets/css/v2/components/list.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@

/* Media queries */

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-list.grid .gh-list-feed {
display: flex;
flex-direction: column;
Expand All @@ -186,19 +186,19 @@
}
}

@media (min-width: 768px) {
@media (width >= 768px) {
.gh-list.grid .gh-list-feed {
grid-template-columns: repeat(2, 1fr);
}
}

@media (min-width: 992px) {
@media (width >= 992px) {
.gh-list.grid .gh-list-feed {
grid-template-columns: repeat(3, 1fr);
}
}

@media (min-width: 1200px) {
@media (width >= 1200px) {
.gh-list.grid .gh-list-feed {
grid-template-columns: repeat(4, 1fr);
}
Expand Down
13 changes: 7 additions & 6 deletions packages/_shared/assets/css/v2/components/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
margin-right: 8px;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-head-members {
flex-direction: column-reverse;
gap: 16px;
Expand All @@ -133,7 +133,7 @@
}
}

@media (min-width: 768px) {
@media (width >= 768px) {
.gh-head-brand .gh-search {
display: none;
}
Expand All @@ -156,7 +156,7 @@ LOGO Home About Collection Author Portal Login Subscribe
grid-template-columns: auto 1fr auto;
}

@media (min-width: 992px) {
@media (width >= 992px) {
.is-head-left-logo .gh-head-menu {
margin-right: 64px;
margin-left: 16px;
Expand All @@ -181,7 +181,7 @@ Home About Collection LOGO Login Subscribe
gap: 28px;
}

@media (min-width: 992px) {
@media (width >= 992px) {
.is-head-middle-logo .gh-head-menu {
margin-right: 64px;
}
Expand All @@ -195,6 +195,7 @@ Search LOGO Login Subscribe
*/

.is-head-stacked.gh-head {
position: relative;
height: auto;
}

Expand All @@ -209,7 +210,7 @@ Search LOGO Login Subscribe
min-height: 80px;
}

@media (min-width: 992px) {
@media (width >= 992px) {
.is-head-stacked .gh-head-inner {
padding: 0;
}
Expand Down Expand Up @@ -446,7 +447,7 @@ Search LOGO Login Subscribe
transform: rotate(-45deg);
}

@media (max-width: 767px) {
@media (width <= 767px) {
#gh-head {
height: 64px;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v2/general/archive.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
font-size: 0;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-archive-inner {
grid-template-columns: 1fr;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/_shared/assets/css/v2/general/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ is the very first element in the post content */
border: 0;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.gh-content {
margin-top: 3.2rem;
font-size: 1.7rem;
Expand Down
4 changes: 2 additions & 2 deletions packages/_shared/assets/css/v2/general/lightbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
background-size: 264px 88px;
}

@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {
@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (resolution >= 105dpi), (resolution >= 1.1dppx) {
.pswp--svg .pswp__button,
.pswp--svg .pswp__button--arrow--left::before,
.pswp--svg .pswp__button--arrow--right::before {
Expand Down Expand Up @@ -398,7 +398,7 @@
border-radius: 50%;
}

@media screen and (max-width: 1024px) {
@media screen and (width <= 1024px) {
.pswp__preloader {
position: relative;
top: auto;
Expand Down
2 changes: 1 addition & 1 deletion packages/alto/assets/built/screen.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/alto/assets/built/screen.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/alto/assets/css/blog/featured.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
line-height: 1.2;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.featured-posts {
margin-top: 24px;
margin-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/alto/assets/css/blog/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
font-family: var(--font-serif);
}

@media (max-width: 767px) {
@media (width <= 767px) {
.post-media.large {
margin-bottom: 30px;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/alto/assets/css/blog/single.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
font-size: 17px;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.single-post .post-header {
margin-top: -30px;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/alto/assets/css/misc/owl.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
transition: height 500ms ease-in-out;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.owl .owl-prev {
left: 10px;
}
Expand Down
12 changes: 6 additions & 6 deletions packages/alto/assets/css/misc/utilities.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,37 +30,37 @@
padding-bottom: 100%;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.u-placeholder.horizontal::before {
padding-bottom: 62.5%;
}
}

@media (max-width: 575px) {
@media (width <= 575px) {
.hidden-xs {
display: none !important;
}
}

@media (min-width: 576px) and (max-width: 767px) {
@media (width >= 576px) and (width <= 767px) {
.hidden-sm {
display: none !important;
}
}

@media (min-width: 768px) and (max-width: 991px) {
@media (width >= 768px) and (width <= 991px) {
.hidden-md {
display: none !important;
}
}

@media (min-width: 992px) and (max-width: 1199px) {
@media (width >= 992px) and (width <= 1199px) {
.hidden-lg {
display: none !important;
}
}

@media (min-width: 1200px) {
@media (width >= 1200px) {
.hidden-xl {
display: none !important;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/alto/assets/css/site/term.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
line-height: 1.5;
}

@media (max-width: 767px) {
@media (width <= 767px) {
.term {
margin-top: -30px;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bulletin/assets/built/screen.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/bulletin/assets/built/screen.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit fc120ad

Please sign in to comment.