-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.scss
More file actions
67 lines (55 loc) · 1.66 KB
/
styles.scss
File metadata and controls
67 lines (55 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*-- scss:rules --*/
.quarto-title-banner {
background-color: $brand-white;
}
.sourceCode {
border-radius: 0 !important;
border-color: $brand-blue;
}
$navbar-transparent-width: 10%;
$navbar-stripe-widths: (10%, 25%, 55%);
$navbar-stripe-colors: ($brand-red, $brand-blue, $brand-yellow);
$navbar-stripe-angle: 80deg;
$navbar-stripe-epsilon: 1px;
@keyframes Animation {
0%, 100% { transform: scaleX(1); }
50% { transform: scaleX(1.05); }
}
.navbar {
position: relative;
overflow: hidden;
background-color: $brand-grey;
z-index: 1;
// Ensure content stays on top
> * {
position: relative;
z-index: 2;
}
&::before {
content: "";
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 50%;
transform-origin: right center;
will-change: transform;
animation: Animation 15s ease-in-out infinite;
z-index: -1;
$gradient-stops: ();
$current-position: 0%;
$gradient-stops: join($gradient-stops, (transparent 0%, transparent #{$navbar-transparent-width}), comma);
$current-position: $navbar-transparent-width;
@for $i from 1 through length($navbar-stripe-colors) {
$color: nth($navbar-stripe-colors, $i);
$width: nth($navbar-stripe-widths, $i);
$start-position: $current-position;
$end-position: $start-position + $width;
$gradient-stops: join($gradient-stops, ($color calc(#{$start-position} + #{$navbar-stripe-epsilon}), $color #{$end-position}), comma);
$current-position: $end-position;
}
background-image: linear-gradient($navbar-stripe-angle, $gradient-stops);
background-repeat: no-repeat;
background-size: 100% 100%;
}
}