-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstylesheet.css
More file actions
153 lines (141 loc) Β· 3.47 KB
/
stylesheet.css
File metadata and controls
153 lines (141 loc) Β· 3.47 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
* {
box-sizing: border-box;
}
:root {
font-size: 20px;
font-family: 'Cousine', monospace;
line-height: 1.25;
--a:#F8F8F8;
--b:#DFDEDD;
--c:#CCC1B6;
--d:#817675;
--e:#615958;
--f:#423e3d;
--g:#302C2C;
--h:#0c0b0b;
}
body {
margin: 0;
}
nav {position: fixed; display: flex;}
nav a {
font-size: 1.5rem;
margin: .5rem;
border: 1px solid transparent;
padding: .75rem 0.5rem 0;
text-decoration: none;
border-radius: 5px;
box-shadow: 2px 2px 4px black, inset 1px 1px 2px whitesmoke;
}
section {
min-height: 100vh;
display: flex;
flex-direction: column;
place-content: center;
padding: 1rem;
}
section > * {
margin-top: 1rem;
margin-bottom: 1rem;
}
section > :first-child:not(.center) {
margin-top: 0;
}
section > :last-child:not(.center) {
margin-bottom: 0;
}
.center {
margin-top: auto;
margin-bottom: auto;
}
#π { background: linear-gradient( to bottom, var(--a),var(--b) ); }
#β { background: linear-gradient( to bottom, var(--b),var(--c) ); }
#πΊ { background: linear-gradient( to bottom, var(--c),var(--d) ); }
#π
{ background: linear-gradient( to bottom, var(--d),var(--e) ); color: var(--a); }
#π₯ { background: linear-gradient(to bottom, var(--e),var(--f)); color: var(--a);}
#π { background: linear-gradient(to bottom, var(--f),var(--g)); color: var(--a);}
#π { background: linear-gradient(to bottom, var(--g),var(--h)); color: var(--a);}
#π { background: var(--h); color: var(--a); }
a {color: aquamarine; transition: all 500ms ease-in-out;}
a:hover, a:focus { color: orangered;}
#π a, #β a { color: darkcyan;}
/*** EXAMPLE LINK STYLES π***/
a.example-link {
margin: 0 auto;
color: aquamarine;
}
a.example-link:hover, a.example-link:focus { color: orangered;}
/*** EXAMPLE BUTTON STYLES π***/
a.button {
margin: 0 auto;
padding: 1rem;
background: linear-gradient(135deg, var(--a), var(--c), var(--b));
color: var(--f);
text-decoration: none;
}
.glowy {
box-shadow: inset 0 0 20px transparent, 0 0 20px transparent;
text-shadow: 1px 1px 2px transparent;
transition: all 1250ms 100ms cubic-bezier(0.19, 1, 0.22, 1);
}
.glowy:hover {
box-shadow: inset 0 0 20px var(--a), 0 0 20px #ffef34;
text-shadow: 1px 1px 2px #ffef34;
}
.shiny {
position: relative;
overflow: hidden;
}
.shiny::after {
content: "";
position: absolute;
left: -75%;
top: -50px;
width: 60px;
height: 175px;
background: rgba(255,255,255,.75);
opacity: .5;
transform: rotate(35deg);
transition: all 600ms cubic-bezier(0.19, 1, 0.22, 1);
}
.shiny:hover::after {
left: 120%;
}
nav a {
animation: 1s ease-in-out 100ms fade-slide-down;
}
nav a:nth-child(2) {
animation: 1s ease-in-out 200ms fade-slide-down;
}
nav a:nth-child(3) {
animation: 1s ease-in-out 300ms fade-slide-down;
}
nav a:nth-child(4) {
animation: 1s ease-in-out 400ms fade-slide-down;
}
nav a:nth-child(5) {
animation: 1s ease-in-out 500ms fade-slide-down;
}
nav a:nth-child(6) {
animation: 1s ease-in-out 600ms fade-slide-down;
}
nav a:nth-child(7) {
animation: 1s ease-in-out 700ms fade-slide-down;
}
nav a:nth-child(8) {
animation: 1s ease-in-out 800ms fade-slide-down;
}
@keyframes fade-slide-down {
0% {
transform: translateY(-5rem);
opacity: 0;
}
50% {
transform: translateY(5rem);
opacity: 0.25;
}
100% {
opacity: 1;
transform: none;
}
}