summaryrefslogtreecommitdiffhomepage
path: root/css/header.css
diff options
context:
space:
mode:
authorYour Name <[email protected]>2025-11-14 20:45:04 -0500
committerYour Name <[email protected]>2025-11-14 20:45:04 -0500
commite3aa629c7f8f8827dd540d5582e50b67dc53de07 (patch)
tree9f9555e0d3c8ea96335685c645bb478a163338be /css/header.css
parent1743bc1b52f390e3942158fa7e911417bc869ee3 (diff)
downloadmalcz-wordpress-theme-e3aa629c7f8f8827dd540d5582e50b67dc53de07.tar.gz
malcz-wordpress-theme-e3aa629c7f8f8827dd540d5582e50b67dc53de07.zip
progress
Diffstat (limited to 'css/header.css')
-rw-r--r--css/header.css139
1 files changed, 139 insertions, 0 deletions
diff --git a/css/header.css b/css/header.css
new file mode 100644
index 0000000..484aeb5
--- /dev/null
+++ b/css/header.css
@@ -0,0 +1,139 @@
+
+
+:root {
+ --heading-height: 15em;
+}
+header {
+ position: fixed;
+ width: 100%;
+ height: var(--heading-height);
+}
+
+/* Light color scheme (Default) */
+[data-theme="light"],
+:root:not([data-theme="dark"]) {
+ --header-border-color: black; /* Light mode border color */
+ --header-border-thickness: 0.3em; /* Light mode thickness */
+}
+
+/* Dark color scheme (Auto) */
+@media only screen and (prefers-color-scheme: dark) {
+ :root:not([data-theme]) {
+ --header-border-color: white; /* Dark mode border color */
+ --header-border-thickness: 0.2em; /* Dark mode thickness */
+ }
+}
+
+/* Dark color scheme (Forced) */
+[data-theme="dark"] {
+ --header-border-color: white;
+ --header-border-thickness: 0.2em;
+}
+
+/* Header styling */
+header::before {
+ content: "";
+ display: block;
+ position: absolute;
+ left: 0;
+ bottom: 6em;
+ width: 100%;
+ height: calc(var(--heading-height) + 10em);
+ z-index: -1;
+ transform: skewY(-3.5deg);
+ background:
+ linear-gradient(225deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.65) 100%),
+ var(--banner-url) no-repeat center var(--scroll-percent);
+ background-size: cover;
+ border-bottom: var(--header-border-thickness) solid var(--header-border-color);
+}
+
+
+
+h1 {
+ font-size: calc(0.8em + 2.6vw);
+ font-weight: 700;
+ letter-spacing: .01em;
+ text-shadow: .022em .022em .022em #111;
+ color: #fff;
+}
+
+
+body {
+ min-height: 100vh;
+}
+
+body > main {
+ padding: var(--heading-height) 4em 0;
+}
+
+.site-title {
+ margin: 0;
+}
+
+.nav-list {
+ list-style: none;
+ display: flex;
+ gap: 1.5rem;
+ padding: 0;
+ margin: 0;
+}
+
+.header-aside {
+ margin-left: auto;
+ position: absolute;
+ top: 0;
+ right: 0;
+}
+
+.theme-dropdown summary {
+ cursor: pointer;
+}
+
+.header-inner {
+ display: flex;
+ justify-content: space-between;
+ align-items: top;
+ position: relative;
+
+}
+
+.header-main {
+ display: flex;
+ flex-direction: column;
+}
+
+.main-nav {
+ margin-top: 0.5rem;
+}
+
+.dropdown-menu {
+ display: flex;
+ flex-direction: column;
+}
+
+.dropdown summary {
+ border: none;
+}
+
+nav.theme-selector {
+ position: absolute;
+ top: 0;
+ right: 0;
+ z-index: 1000;
+}
+
+.theme-selector details summary {
+ border-width: 2px;
+}
+
+.theme-selector {
+ margin-top: 1em;
+}
+
+@media (max-width: var(--breakpoint-sm)) {
+ .theme-selector {
+ margin-top: 0.5em;
+ }
+}
+