summaryrefslogtreecommitdiffstats
path: root/apps/web-shared/src/styles/components/pre-header.scss
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web-shared/src/styles/components/pre-header.scss')
-rw-r--r--apps/web-shared/src/styles/components/pre-header.scss46
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/web-shared/src/styles/components/pre-header.scss b/apps/web-shared/src/styles/components/pre-header.scss
new file mode 100644
index 0000000..1e803e7
--- /dev/null
+++ b/apps/web-shared/src/styles/components/pre-header.scss
@@ -0,0 +1,46 @@
+@use '../base' as *;
+
+/* --------------------------------
+
+File#: _1_pre-header
+Title: Pre-header
+Descr: Pre-header (top) banner
+Usage: codyhouse.co/license
+
+-------------------------------- */
+
+.pre-header {
+ display: block;
+ background-color: var(--color-contrast-higher);
+ color: var(--color-bg);
+ @include fontSmooth;
+}
+
+.pre-header--is-hidden {
+ display: none;
+}
+
+.pre-header__close-btn {
+ position: absolute;
+ right: 0;
+ top: calc(50% - 0.5em);
+ will-change: transform;
+
+ &:hover {
+ transform: scale(1.1);
+ }
+
+ .icon {
+ display: block;
+ }
+}
+
+// --link
+a.pre-header {
+ text-decoration: none;
+
+ &:hover {
+ text-decoration: underline;
+ background-color: var(--color-contrast-high);
+ }
+}