This repository was archived by the owner on Apr 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.css
More file actions
119 lines (100 loc) · 1.6 KB
/
header.css
File metadata and controls
119 lines (100 loc) · 1.6 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
header {
border-top: 10px solid #479ed7;
background: #222;
}
header * {
color: #ccc;
}
header nav {
height: 15vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
nav a {
text-decoration: none;
color: #ccc;
margin: 0 30px;
text-transform: uppercase;
font-weight: bolder;
font-size: 1.2rem;
transition: color 0.3s ease;
}
nav a:hover {
color: #479ed7;
}
@keyframes spin {
70% {
/* transform: rotate(50deg) scale(1.4); */
transform: rotate(50deg);
}
95% {
transform: rotate(-10deg);
}
100% {
transform: rotate(0deg) scale(1);
}
}
nav img {
height: 7vh;
width: auto;
cursor: pointer;
margin: 0 30px;
}
nav img:hover {
animation: spin 0.7s 1 0s ease-out;
}
header .hero {
height: 85vh;
width: 100%;
display: flex;
}
header .hero > div {
display: flex;
width: 50%;
height: 100%;
align-items: center;
justify-content: center;
}
header .hero .right img {
width: 50vw;
height: auto;
}
header .hero .left div {
width: 35vw;
}
header .hero .left div h1 {
font-size: 3rem;
font-family: "IBM Plex Serif";
}
header .hero .left p {
text-align: justify;
}
/* Responsiveness */
@media (max-width: 950px) {
header .hero {
flex-direction: column-reverse;
align-items: center;
}
header .hero .left,
header .hero .right {
max-width: 700px;
width: 100%;
}
header .hero .left > div {
width: 100%;
padding: 40px;
}
header .hero .right img {
width: 90%;
}
header .hero .left p {
text-align: left;
}
}
@media (max-width: 800px) {
nav a {
display: none;
}
}