mirror of
https://github.com/AngelJumbo/gruvbox-wallpapers.git
synced 2026-10-15 21:56:18 +00:00
@@ -2,18 +2,17 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
|
|
||||||
/* Base colors */
|
|
||||||
--bg-color: light-dark(#fbf1c7, #282828);
|
--bg-color: light-dark(#fbf1c7, #282828);
|
||||||
--fg-color: light-dark(#3c3836, #ebdbb2);
|
--fg-color: light-dark(#3c3836, #ebdbb2);
|
||||||
|
|
||||||
--bg-color-reverse: light-dark(#3c3836, #ebdbb2);
|
--bg-color-reverse: light-dark(#3c3836, #ebdbb2);
|
||||||
--fg-color-reverse: light-dark(#fbf1c7, #282828);
|
--fg-color-reverse: light-dark(#fbf1c7, #282828);
|
||||||
|
|
||||||
--bg-color-3: light-dark(#bdae93, #665c54);
|
--bg-color-3: light-dark(#bdae93, #665c54);
|
||||||
--bg-color-3-switch: light-dark(#665c54, #bdae93);
|
--bg-color-3-switch: light-dark(#665c54, #bdae93);
|
||||||
--bg-color-hard: light-dark(#f9f5d7, #1d2021);
|
--bg-color-hard: light-dark(#f9f5d7, #1d2021);
|
||||||
--gray: light-dark(#7c6f64, #a89984);
|
--gray: light-dark(#7c6f64, #a89984);
|
||||||
|
|
||||||
/* Theme colors */
|
|
||||||
--orange: #d65d0e;
|
--orange: #d65d0e;
|
||||||
--red: #cc241d;
|
--red: #cc241d;
|
||||||
--green: #98971a;
|
--green: #98971a;
|
||||||
@@ -22,7 +21,6 @@
|
|||||||
--purple: #b16286;
|
--purple: #b16286;
|
||||||
--aqua: #689d6a;
|
--aqua: #689d6a;
|
||||||
|
|
||||||
/* Dim variants */
|
|
||||||
--orange-dim: light-dark(#af3a03, #fe8019);
|
--orange-dim: light-dark(#af3a03, #fe8019);
|
||||||
--red-dim: light-dark(#9d0006, #fb4934);
|
--red-dim: light-dark(#9d0006, #fb4934);
|
||||||
--green-dim: light-dark(#79740e, #b8bb26);
|
--green-dim: light-dark(#79740e, #b8bb26);
|
||||||
@@ -30,146 +28,73 @@
|
|||||||
--blue-dim: light-dark(#076678, #83a598);
|
--blue-dim: light-dark(#076678, #83a598);
|
||||||
--purple-dim: light-dark(#8f3f71, #d3869d);
|
--purple-dim: light-dark(#8f3f71, #d3869d);
|
||||||
--aqua-dim: light-dark(#427b58, #8ec07c);
|
--aqua-dim: light-dark(#427b58, #8ec07c);
|
||||||
|
|
||||||
/* Transition durations */
|
|
||||||
--transition-fast: 0.2s;
|
|
||||||
--transition-medium: 0.4s;
|
|
||||||
--transition-slow: 0.7s;
|
|
||||||
|
|
||||||
/* Common values */
|
|
||||||
--border-radius: 4px;
|
|
||||||
--box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
||||||
--spacing-xs: 0.25rem;
|
|
||||||
--spacing-sm: 0.5rem;
|
|
||||||
--spacing-md: 1rem;
|
|
||||||
--spacing-lg: 1.5rem;
|
|
||||||
--spacing-xl: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Reset and base styles */
|
|
||||||
*,
|
|
||||||
*::before,
|
|
||||||
*::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
border: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: var(--bg-color);
|
background-color: var(--bg-color);
|
||||||
color: var(--fg-color);
|
/*container-type: inline-size;*/
|
||||||
font-family: "Courier New", monospace; /* Fixed typo */
|
font-family: "Curier New", monospace;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-height: 100svh;
|
min-height: 100svh;
|
||||||
display: flex; /* Added missing display property */
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
line-height: 1.6; /* Improved readability */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Typography */
|
* {
|
||||||
|
color: var(--fg-color);
|
||||||
|
border: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2 {
|
h2 {
|
||||||
background-color: var(--bg-color-reverse);
|
background-color: var(--bg-color-reverse);
|
||||||
color: var(--fg-color-reverse);
|
color: var(--fg-color-reverse);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin: 0; /* Reset default margins */
|
|
||||||
padding: var(--spacing-md);
|
|
||||||
border-radius: var(--border-radius);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Section colors - consolidated with better naming */
|
.s1, .s2, .s3, .s4, .s5, .s6, .s7 {
|
||||||
.section-color {
|
transition: background 0.7s ease-in-out;
|
||||||
transition: background-color var(--transition-slow) ease-in-out;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
border-radius: var(--border-radius);
|
&:hover { background-color: var(--dim-color); }
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: var(--dim-color);
|
|
||||||
transform: translateY(-1px); /* Subtle lift effect */
|
|
||||||
box-shadow: var(--box-shadow);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.s1 {
|
.s1 { background-color: var(--orange); --dim-color: var(--orange-dim); }
|
||||||
@extend .section-color;
|
.s2 { background-color: var(--red); --dim-color: var(--red-dim); }
|
||||||
background-color: var(--orange);
|
.s3 { background-color: var(--green); --dim-color: var(--green-dim); }
|
||||||
--dim-color: var(--orange-dim);
|
.s4 { background-color: var(--yellow); --dim-color: var(--yellow-dim); }
|
||||||
}
|
.s5 { background-color: var(--blue); --dim-color: var(--blue-dim); }
|
||||||
|
.s6 { background-color: var(--purple); --dim-color: var(--purple-dim); }
|
||||||
|
.s7 { background-color: var(--aqua); --dim-color: var(--aqua-dim); }
|
||||||
|
|
||||||
.s2 {
|
|
||||||
@extend .section-color;
|
|
||||||
background-color: var(--red);
|
|
||||||
--dim-color: var(--red-dim);
|
|
||||||
}
|
|
||||||
|
|
||||||
.s3 {
|
|
||||||
@extend .section-color;
|
|
||||||
background-color: var(--green);
|
|
||||||
--dim-color: var(--green-dim);
|
|
||||||
}
|
|
||||||
|
|
||||||
.s4 {
|
|
||||||
@extend .section-color;
|
|
||||||
background-color: var(--yellow);
|
|
||||||
--dim-color: var(--yellow-dim);
|
|
||||||
}
|
|
||||||
|
|
||||||
.s5 {
|
|
||||||
@extend .section-color;
|
|
||||||
background-color: var(--blue);
|
|
||||||
--dim-color: var(--blue-dim);
|
|
||||||
}
|
|
||||||
|
|
||||||
.s6 {
|
|
||||||
@extend .section-color;
|
|
||||||
background-color: var(--purple);
|
|
||||||
--dim-color: var(--purple-dim);
|
|
||||||
}
|
|
||||||
|
|
||||||
.s7 {
|
|
||||||
@extend .section-color;
|
|
||||||
background-color: var(--aqua);
|
|
||||||
--dim-color: var(--aqua-dim);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Content section */
|
|
||||||
.c {
|
.c {
|
||||||
padding: var(--spacing-md);
|
padding: 1em;
|
||||||
background-color: var(--bg-color-3);
|
background-color: var(--bg-color-3);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: var(--border-radius);
|
|
||||||
margin: var(--spacing-sm) 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Images */
|
|
||||||
img {
|
img {
|
||||||
transition: transform var(--transition-fast) ease-in-out,
|
transition: all 0.2s ease-in-out;
|
||||||
box-shadow var(--transition-fast) ease-in-out;
|
}
|
||||||
border-radius: var(--border-radius);
|
|
||||||
max-width: 100%;
|
img:hover {
|
||||||
height: auto;
|
transform: scale(1.3);
|
||||||
|
border: none;
|
||||||
&:hover {
|
box-shadow: 5px 4px 10px black;
|
||||||
transform: scale(1.1); /* Reduced from 1.3 for better UX */
|
|
||||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pager */
|
|
||||||
.pager {
|
.pager {
|
||||||
margin: var(--spacing-sm) 0 var(--spacing-md);
|
margin-top: 5px;
|
||||||
padding: var(--spacing-sm);
|
margin-bottom: 10px;
|
||||||
|
padding: 5px;
|
||||||
color: var(--fg-color-reverse);
|
color: var(--fg-color-reverse);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: var(--bg-color-reverse);
|
|
||||||
border-radius: var(--border-radius);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Button base styles */
|
|
||||||
.btn {
|
.btn {
|
||||||
transition: background-color var(--transition-medium) ease-in-out,
|
transition: background 0.4s ease-in-out;
|
||||||
transform var(--transition-fast) ease-in-out;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: var(--bg-color-reverse);
|
background-color: var(--bg-color-reverse);
|
||||||
color: var(--fg-color-reverse);
|
color: var(--fg-color-reverse);
|
||||||
@@ -177,43 +102,28 @@ img {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: var(--border-radius);
|
|
||||||
text-decoration: none;
|
|
||||||
font-family: inherit;
|
|
||||||
border: 2px solid transparent;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--bg-color-3-switch);
|
background-color: var(--bg-color-3-switch);
|
||||||
transform: translateY(-1px);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active {
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:focus-visible {
|
|
||||||
outline: 2px solid var(--blue);
|
|
||||||
outline-offset: 2px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pager buttons */
|
|
||||||
.btn.pager-btn {
|
.btn.pager-btn {
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
font-size: 1rem;
|
font-size: 16px;
|
||||||
font-weight: 700; /* Reduced from 900 */
|
font-weight: 900;
|
||||||
margin: 4px 2px;
|
margin: 4px 2px;
|
||||||
|
|
||||||
&.selected {
|
&.selected {
|
||||||
background-color: var(--bg-color);
|
background-color: var(--bg-color);
|
||||||
color: var(--fg-color);
|
color: var(--fg-color);
|
||||||
|
|
||||||
border-color: var(--fg-color);
|
border-color: var(--fg-color);
|
||||||
border-width: 2px;
|
border-width: thick;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Utility classes */
|
|
||||||
.clickable {
|
.clickable {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@@ -226,39 +136,28 @@ img {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Float buttons */
|
|
||||||
.float-btns {
|
.float-btns {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: var(--spacing-md);
|
bottom: 0;
|
||||||
right: var(--spacing-md);
|
right: 0;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
margin-right: 1rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--spacing-sm);
|
gap: 0.5rem;
|
||||||
z-index: 1000; /* Ensure buttons stay on top */
|
justify-content: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn.float-btn {
|
.btn.float-btn {
|
||||||
height: 2.5rem;
|
height: 2.5rem;
|
||||||
width: 2.5rem;
|
width: 2.5rem;
|
||||||
font-size: 1.25rem; /* Slightly smaller for better proportion */
|
font-size: 1.5rem;
|
||||||
border-radius: 50%; /* Make them circular */
|
|
||||||
box-shadow: var(--box-shadow);
|
|
||||||
|
|
||||||
& i {
|
& i {
|
||||||
color: var(--fg-color-reverse);
|
color: var(--fg-color-reverse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
/* Reduced motion preference */
|
display: none !important;
|
||||||
@media (prefers-reduced-motion: reduce) {
|
|
||||||
* {
|
|
||||||
animation-duration: 0.01ms !important;
|
|
||||||
animation-iteration-count: 1 !important;
|
|
||||||
transition-duration: 0.01ms !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user