-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
127 lines (122 loc) · 2.64 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
119
120
121
122
123
124
125
126
127
html {
box-sizing: border-box;
font-family: "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
margin: 0;
min-height: 100vh;
background: linear-gradient(45deg, rgba(250,250,250,1) 0%, rgba(235,235,235,1) 100%);
}
h2 {
margin-top: 0;
padding-top: .8em;
}
nav {
position: relative;
perspective: 600px;
}
.cool > li > a {
color: #fff;
text-decoration: none;
font-size: 20px;
padding: 10px 20px;
display: inline-block;
margin: 20px;
border-radius: 5px;
background: linear-gradient(230deg, rgba(100,84,240,0.8) 0%, rgba(149,36,200,0.8) 100%);
transition: all 0.2s ease-in-out;
}
.cool > li:hover > a {
box-shadow: 0 50px 100px rgba(50,50,93,.1), 0 15px 35px rgba(50,50,93,.15), 0 5px 15px rgba(0,0,0,.1);
transform: scale(1.1);
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
}
.cool > li {
position: relative;
display: flex;
justify-content: center;
}
.dropdown {
opacity: 0;
position: absolute;
overflow: hidden;
padding: 20px;
top: -20px;
border-radius: 2px;
transition: all 0.5s;
transform: translateY(100px);
will-change: opacity;
display: none;
}
.trigger-enter .dropdown {
display: block;
}
.trigger-enter-active .dropdown {
opacity: 1;
}
.dropdownBackground {
width: 100px;
height: 100px;
position: absolute;
background: #fff;
border-radius: 4px;
box-shadow: 0 50px 100px rgba(50,50,93,.1), 0 15px 35px rgba(50,50,93,.15), 0 5px 15px rgba(0,0,0,.1);
transition: all 0.3s, opacity 0.1s, transform 0.2s;
transform-origin: 50% 0;
display: flex;
justify-content: center;
opacity:0;
}
.dropdownBackground.open {
opacity: 1;
}
.arrow {
position: absolute;
width: 20px;
height: 20px;
display: block;
background: white;
transform: translateY(-50%) rotate(45deg);
}
.bio {
min-width: 500px;
display: flex;
justify-content: center;
align-items: center;
line-height: 1.7;
}
.bio img {
float: left;
margin-right: 20px;
}
.courses {
min-width: 300px;
}
.courses li {
padding: 10px 0;
display: block;
border-bottom: 1px solid rgba(0,0,0,0.2);
}
.dropdown a {
text-decoration: none;
color: #7624c8;
}
a.button {
background: black;
display: block;
padding: 10px;
color: white;
margin-bottom: 10px;
}
.button[href*=twitter] { background: #019FE9; }
.button[href*=facebook] { background: #3B5998; }
.button[href*=courses] { background: linear-gradient(230deg, rgba(100,84,240,0.8) 0%, rgba(149,36,200,0.8) 100%); }