This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
style.css
118 lines (106 loc) · 2.84 KB
/
style.css
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
@import url('https://fonts.googleapis.com/css?family=Permanent+Marker|Playfair+Display:900|Open+Sans');
body {
background: #e9e9e9;
background-image: url('background.jpg');
background-size: cover;
padding: 100px;
font-family: 'Open Sans', sans-serif;
color: #000;
display: grid;
align-items: center;
grid-template-columns: 300px auto;
background-repeat: no-repeat;
}
body:after {
content: "Thanks to Unsplash (background image)";
position: fixed;
left: 0;
bottom: 0;
width: 100%;
padding: 10px;
color: #919191;
font-size: 10pt;
}
h1 {
grid-row-start: 1;
grid-column-start: 1;
grid-column-end: 3;
color: rgb(104, 85, 57);
font-size: 48pt;
font-family: 'Playfair Display', sans-serif;
background-image: linear-gradient(120deg, rgb(30,77,53) 0%, rgb(245, 233, 149) 50%, rgb(28, 33, 104) 100%);
background-repeat: no-repeat;
background-size: 100% 0.2em;
background-position: 0 100%;
transition: background-size 0.25s ease-in;
}
img {
grid-row-start: 2;
grid-column-start: 1;
max-width: 200px;
max-height: 200px;
border-radius: 10px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin: 50px;
}
ul {
list-style-type: none;
grid-row-start: 2;
grid-column-start: 2;
width: 200px;
font-size: 14pt;
}
ul:before {
content: 'Quick links';
font-family: 'Permanent Marker', cursive;
color: rgb(28, 33, 104);
background-color: rgba(245, 233, 149, 0.5);
font-size: 18pt;
}
li {
padding-top: 10px;
}
a {
color: rgb(28, 33, 104);
display: inline-block;
overflow: hidden;
position: relative;
text-decoration: none;
vertical-align: bottom;
}
a:after {
background: linear-gradient(to bottom, rgb(245, 233, 149), rgb(245, 233, 149)) center 1.08em/100% 2px no-repeat;
content: "";
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 400%;
will-change: transform;
z-index: -1;
}
a:hover:after {
-webkit-animation: underline-gradient 6s linear infinite;
animation: underline-gradient 6s linear infinite;
background-image: linear-gradient(90deg, rgba(122, 95, 255, 0.8) 15%, rgba(1, 255, 137, 0.6) 35%, rgba(122, 95, 255, 0.8) 85%);
}
@-webkit-keyframes underline-gradient {
0% {
-webkit-transform: translate3d(0%, 0%, 0);
transform: translate3d(0%, 0%, 0);
}
100% {
-webkit-transform: translate3d(-75%, 0%, 0);
transform: translate3d(-75%, 0%, 0);
}
}
@keyframes underline-gradient {
0% {
-webkit-transform: translate3d(0%, 0%, 0);
transform: translate3d(0%, 0%, 0);
}
100% {
-webkit-transform: translate3d(-75%, 0%, 0);
transform: translate3d(-75%, 0%, 0);
}
}