Skip to content

Commit 837abd3

Browse files
authored
Refactor sun icon styles in styles.css
Updated sun icon styles for improved design and consistency.
1 parent 111f83a commit 837abd3

1 file changed

Lines changed: 10 additions & 27 deletions

File tree

css/styles.css

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -170,37 +170,24 @@ body::before {
170170

171171
/* ☀️ sun */
172172
.icon.sun {
173+
position: relative;
174+
width: 24px;
175+
height: 24px;
173176
border-radius: 50%;
174-
width: 20px;
175-
height: 20px;
176-
position: absolute;
177-
178-
/* core */
179-
background: radial-gradient(circle, #fff 0%, var(--accent) 60%, var(--accent-deep) 100%);
180-
181-
/* soft glow */
182-
box-shadow:
183-
0 0 10px rgba(43, 187, 216, 0.4),
184-
0 0 20px rgba(43, 187, 216, 0.25);
177+
background: var(--accent);
185178
}
186179

187-
/* rays */
180+
/* Rays */
188181
.icon.sun::before {
189182
content: "";
190183
position: absolute;
191184
inset: -6px;
192185
border-radius: 50%;
193-
194-
background:
195-
repeating-conic-gradient(
196-
rgba(43, 187, 216, 0.6) 0deg 8deg,
197-
transparent 8deg 22deg
198-
);
199-
200-
mask: radial-gradient(circle, transparent 55%, black 56%);
201-
-webkit-mask: radial-gradient(circle, transparent 55%, black 56%);
202-
203-
opacity: 0.7;
186+
background: repeating-conic-gradient(
187+
var(--accent) 0deg 10deg,
188+
transparent 10deg 30deg
189+
);
190+
mask: radial-gradient(circle, transparent 45%, black 46%);
204191
}
205192

206193
/* 🌙 moon */
@@ -419,10 +406,6 @@ body.dark-theme .nav a:hover {
419406
min-width: 0;
420407
}
421408

422-
.brand-text small {
423-
display: none;
424-
}
425-
426409
body.menu-open::before {
427410
content: "";
428411
position: fixed;

0 commit comments

Comments
 (0)