Skip to content

Commit

Permalink
🐛(site) Fix announcement banner styling (chromeos#618)
Browse files Browse the repository at this point in the history
* Fix announcement banner colors

* Marquees!

* Fix logo color

---------

Co-authored-by: Sam Richard <[email protected]>
  • Loading branch information
Snugug and Sam Richard authored Apr 28, 2023
1 parent 184e372 commit 91182b7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions site/sass/themes/phosphor/components/_announcement.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.announcement {
color: var(--white);

@media (prefers-reduced-motion: no-preference) {
p {
animation: phmarquee 20s linear infinite;
margin: 0;
transform: translateX(100vw);
width: max-content;
}
}

a {
color: var(--white);
}
}

@keyframes phmarquee {
0% {
transform: translateX(100vw);
}

100% {
transform: translateX(calc(-1 * (100% + $wrapper-inline-spacing-r)));
}
}
5 changes: 5 additions & 0 deletions site/sass/themes/phosphor/components/_logo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.logo {
.cls-6 {
fill: var(--phosphor-white);
}
}
2 changes: 2 additions & 0 deletions site/sass/themes/phosphor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
@import './components/toc';
@import './components/type';
@import './components/cta';
@import './components/announcement';
@import './components/logo';
}

/* stylelint-enable no-invalid-position-at-import-rule */

0 comments on commit 91182b7

Please sign in to comment.