Skip to content

Commit 150d463

Browse files
committed
Change static text color to gradient animation
Signed-off-by: Nicolas Hernan Silva <koppeks.contactos@gmail.com>
1 parent 4b64523 commit 150d463

File tree

1 file changed

+89
-73
lines changed

1 file changed

+89
-73
lines changed

assets/scss/_styles_project.scss

Lines changed: 89 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@
4141
.nav-link.active {
4242
border-width: 1px;
4343
border-style: solid;
44-
border-image: linear-gradient(to bottom,
44+
border-image: linear-gradient(
45+
to bottom,
4546
rgba($dark, 0.2) 30%,
4647
rgba($primary, 0.3) 60%,
47-
$primary 90% 100%) 1;
48+
$primary 90% 100%
49+
)
50+
1;
4851
padding-bottom: 0.3rem;
4952
align-items: center;
5053
justify-content: center;
@@ -92,7 +95,7 @@ body {
9295

9396
// Inline code
9497
p code,
95-
li>code,
98+
li > code,
9699
table code {
97100
color: inherit;
98101
padding: 0.2em 0.4em;
@@ -113,7 +116,7 @@ body {
113116
background-color: $gray-900;
114117
padding: $spacer;
115118

116-
>code {
119+
> code {
117120
background-color: inherit !important;
118121
padding: 0;
119122
margin: 0;
@@ -167,7 +170,6 @@ a:not([href]):not([class]):hover {
167170
// .taxonomy-terms-cloud
168171

169172
.taxonomy-term {
170-
171173
border-width: 0;
172174
border-radius: 0 3px 3px 0;
173175
display: inline-block;
@@ -182,13 +184,10 @@ a:not([href]):not([class]):hover {
182184
transition: color 0.2s;
183185
clip-path: polygon(100% 0, 100% 100%, 0.8em 100%, 0 50%, 0.8em 0);
184186

185-
186187
&:hover {
187188
background-color: $primary;
188189
color: $white;
189-
190190
}
191-
192191
}
193192

194193
.article-teaser {
@@ -217,12 +216,14 @@ a:not([href]):not([class]):hover {
217216
}
218217

219218
.td-sidebar {
220-
background-image: linear-gradient(to top,
221-
#1e2117,
222-
#1d1912,
223-
#18120e,
224-
#0f0a09,
225-
#000000);
219+
background-image: linear-gradient(
220+
to top,
221+
#1e2117,
222+
#1d1912,
223+
#18120e,
224+
#0f0a09,
225+
#000000
226+
);
226227
position: sticky;
227228
height: calc(100vh - 5.5rem);
228229
top: 5.5rem;
@@ -268,18 +269,9 @@ a:not([href]):not([class]):hover {
268269

269270
&__section {
270271
margin-top: 1rem;
271-
font-family:
272-
"Qanelas Soft",
273-
sans-serif,
274-
-apple-system,
275-
BlinkMacSystemFont,
276-
"Segoe UI",
277-
Roboto,
278-
"Helvetica Neue",
279-
Arial,
280-
"Apple Color Emoji",
281-
"Segoe UI Emoji",
282-
"Segoe UI Symbol";
272+
font-family: "Qanelas Soft", sans-serif, -apple-system, BlinkMacSystemFont,
273+
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji",
274+
"Segoe UI Emoji", "Segoe UI Symbol";
283275
}
284276
}
285277

@@ -292,14 +284,20 @@ a:not([href]):not([class]):hover {
292284
&.active:not(.tree-root) {
293285
border-width: 1px;
294286
border-style: solid;
295-
border-image: linear-gradient(to left,
287+
border-image: linear-gradient(
288+
to left,
296289
rgba($dark, 0) 30%,
297290
rgba($primary, 0.3) 60%,
298-
$primary 90% 100%) 1;
299-
background-image: linear-gradient(to left,
291+
$primary 90% 100%
292+
)
293+
1;
294+
background-image: linear-gradient(
295+
to left,
300296
rgba($dark, 0.2) 30%,
301297
rgba($primary, 0.3) 60%,
302-
$primary 90% 100%) 1;
298+
$primary 90% 100%
299+
)
300+
1;
303301
padding: 0.25rem;
304302
padding-left: 0.5rem !important;
305303
// background-image: linear-gradient(to left, rgba($dark,.33),rgba($dark,.5),rgba($dark,.75),#1e2117, #31412b, #3b6447, #378b6d, #00b39f);
@@ -321,12 +319,14 @@ a:not([href]):not([class]):hover {
321319
.td-sidebar-toc {
322320
line-height: 1.25rem;
323321
border-left: 1px solid $border-color;
324-
background-image: linear-gradient(to top,
325-
#1e2117,
326-
#1d1912,
327-
#18120e,
328-
#0f0a09,
329-
#000000);
322+
background-image: linear-gradient(
323+
to top,
324+
#1e2117,
325+
#1d1912,
326+
#18120e,
327+
#0f0a09,
328+
#000000
329+
);
330330

331331
@supports (position: sticky) {
332332
position: sticky;
@@ -403,13 +403,13 @@ a:not([href]):not([class]):hover {
403403
}
404404

405405
.matterinfo .plan-support {
406-
padding: .5rem;
407-
border: .5px solid $border-color;
406+
padding: 0.5rem;
407+
border: 0.5px solid $border-color;
408408
display: flex;
409409
align-items: center;
410410
color: $casper;
411411
&:hover {
412-
background-color: rgba($primary, 0.3)
412+
background-color: rgba($primary, 0.3);
413413
}
414414
}
415415

@@ -429,7 +429,6 @@ a:not([href]):not([class]):hover {
429429
color: $casper;
430430
}
431431

432-
433432
// Style alert boxes.
434433

435434
.alert {
@@ -456,12 +455,12 @@ a:not([href]):not([class]):hover {
456455
transition: color 0.8s;
457456
transition: background-color 0.8s;
458457

459-
>img {
458+
> img {
460459
width: 2rem;
461460
margin-right: 0.5rem;
462461
}
463462

464-
>img:hover {
463+
> img:hover {
465464
filter: brightness(0) invert(1);
466465
}
467466

@@ -484,7 +483,7 @@ a:not([href]):not([class]):hover {
484483
.td-content figure > img {
485484
width: auto;
486485
max-width: 100%;
487-
border-radius: .5rem .5rem 0 0;
486+
border-radius: 0.5rem 0.5rem 0 0;
488487
box-shadow: 0 0 0.5rem rgba(0, 179, 159, 0.4);
489488
transition: box-shadow 0.2s;
490489
}
@@ -495,7 +494,7 @@ a:not([href]):not([class]):hover {
495494
padding: 0.5rem 1rem;
496495
background-color: rgba($lightslategray, 1);
497496
color: $dark;
498-
border-radius: 0 0 .5rem .5rem;
497+
border-radius: 0 0 0.5rem 0.5rem;
499498
box-sizing: border-box;
500499
}
501500

@@ -504,23 +503,24 @@ a:not([href]):not([class]):hover {
504503
margin-bottom: 4rem;
505504
font-size: 5rem;
506505
text-align: left;
507-
background: linear-gradient(217deg,
508-
rgba(249, 245, 13, 0.26),
509-
rgba(223, 255, 219, 0.57) 9.03%),
510-
linear-gradient(127deg,
511-
rgba(249, 245, 13, 0.7),
512-
rgba(223, 225, 199, 0.1) 41.12%),
513-
linear-gradient(336deg,
514-
rgba(249, 245, 13, 0.1),
515-
rgba(239, 239, 251, 0.81) 0%);
516-
background-position:
517-
0% 0%,
518-
0% 0%;
506+
background-image: linear-gradient(
507+
135deg,
508+
rgb(224, 242, 157),
509+
rgb(218, 237, 192),
510+
rgb(211, 227, 212),
511+
rgb(213, 232, 213),
512+
rgb(211, 227, 212),
513+
rgb(218, 237, 192),
514+
rgb(224, 242, 157),
515+
);
516+
background-size: 200%;
519517
box-sizing: auto;
520-
color: rgba(0, 0, 0, 0);
518+
color: transparent;
521519
display: block;
522520
text-rendering: optimizelegibility;
523-
background-clip: text, text;
521+
background-clip: text;
522+
-webkit-background-clip: text;
523+
animation: color-shift 8s linear infinite;
524524

525525
@media (max-width: 768px) {
526526
font-size: 3.5rem;
@@ -531,15 +531,23 @@ a:not([href]):not([class]):hover {
531531
// }
532532
}
533533

534+
@keyframes color-shift {
535+
to {
536+
background-position: -200%;
537+
}
538+
}
539+
534540
.dash-tangle {
535541
width: 78.14231rem;
536542
height: 74.72rem;
537543
transform: rotate(-55.68deg);
538544
flex-shrink: 0;
539545
overflow: hidden;
540-
background-image: linear-gradient(180deg,
541-
rgba(0, 179, 115, 0) 0%,
542-
rgba(0, 179, 159, 0.3) 100%);
546+
background-image: linear-gradient(
547+
180deg,
548+
rgba(0, 179, 115, 0) 0%,
549+
rgba(0, 179, 159, 0.3) 100%
550+
);
543551
position: absolute;
544552
top: -18rem;
545553
right: -32rem;
@@ -568,13 +576,15 @@ a:not([href]):not([class]):hover {
568576
left: -24rem;
569577
overflow: hidden;
570578

571-
>.dash-ircle {
579+
> .dash-ircle {
572580
width: 74.125rem;
573581
height: 74.125rem;
574582
flex-shrink: 0;
575-
background: radial-gradient(50% 50% at 50% 50%,
576-
rgba(0, 179, 159, 0.2) 0%,
577-
rgba(0, 179, 159, 0) 100%);
583+
background: radial-gradient(
584+
50% 50% at 50% 50%,
585+
rgba(0, 179, 159, 0.2) 0%,
586+
rgba(0, 179, 159, 0) 100%
587+
);
578588
position: absolute;
579589
overflow: hidden;
580590
background-clip: border-box;
@@ -605,9 +615,7 @@ a:not([href]):not([class]):hover {
605615

606616
a.dash-sign {
607617
color: #fffbf1;
608-
text-shadow:
609-
0 20px 25px #2e2e31,
610-
0 40px 60px #2e2e31;
618+
text-shadow: 0 20px 25px #2e2e31, 0 40px 60px #2e2e31;
611619
font-size: 28px;
612620
font-weight: 600;
613621
text-decoration: none;
@@ -711,7 +719,7 @@ a:not([href]):not([class]):hover {
711719
gap: 1rem;
712720
}
713721

714-
.tab-content>.active {
722+
.tab-content > .active {
715723
display: flex;
716724
}
717725

@@ -727,14 +735,17 @@ a:not([href]):not([class]):hover {
727735
[id^="tabs-"] {
728736
border: 1px solid rgba($light, 0.1);
729737
border-radius: 0.5rem;
730-
padding: .5rem;
738+
padding: 0.5rem;
731739
margin-bottom: 1rem;
732740
background-color: rgba($light, 0.02);
733741
box-shadow: 0 0 8px rgba($dark, 0.2);
734742

735743
.nav-link {
736744
color: $light;
737-
background-color: rgba($light, 0.3); // 🆕 consistent visible bg for inactive tabs
745+
background-color: rgba(
746+
$light,
747+
0.3
748+
); // 🆕 consistent visible bg for inactive tabs
738749
border: 2px solid rgba($light, 0.15);
739750
border-radius: 0.5rem 0.5rem 0 0;
740751
margin: 2px;
@@ -762,7 +773,7 @@ a:not([href]):not([class]):hover {
762773
}
763774
}
764775

765-
.nav-link.disabled {
776+
.nav-link.disabled {
766777
background: transparent;
767778
border: none;
768779
color: rgba($light, 0.5);
@@ -783,6 +794,11 @@ html {
783794
scroll-behavior: smooth;
784795
}
785796

786-
h1, h2, h3, h4, h5, h6 {
797+
h1,
798+
h2,
799+
h3,
800+
h4,
801+
h5,
802+
h6 {
787803
scroll-margin-top: 1rem;
788804
}

0 commit comments

Comments
 (0)