-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathstyle.css
126 lines (110 loc) · 2.01 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 10px;
}
body {
width: 100%;
background: #eeeeee;
font-family: 'helvetica neue', sans-serif;
font-size: 2rem;
font-weight: 1.5;
}
header {
text-align: center;
width: 100%;
padding: 0 1rem;
height: 50vh;
background: repeating-linear-gradient(
45deg,
teal,
seagreen 50px,
yellowgreen 30px
);
display: flex;
align-items: center;
justify-content: center;
}
h1 {
color: white;
font-size: 7vw;
text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.2);
}
nav {
background: black;
width: 100%;
transition: all 0.5s;
position: relative;
z-index: 1;
}
body.fixed-nav nav {
position: fixed;
box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
top: 0;
left: 0;
right: 0;
}
nav ul {
width: 100%;
min-height: 5rem;
list-style: none;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
}
nav ul li {
flex: 1;
text-align: center;
height: 5rem;
display: grid;
place-items: center;
}
nav ul li a {
text-decoration: none;
display: inline-block;
padding: 1rem;
color: white;
transition: all 0.5s;
text-transform: uppercase;
border-radius: 0.5rem;
}
nav ul li a:hover {
background: linear-gradient(45deg, seagreen, yellowgreen);
}
li.logo {
max-width: 0;
overflow: hidden;
background: white;
transition: all 0.5s;
font-weight: 600;
font-size: 3rem;
border-radius: 0 0 2.5rem 0;
}
.fixed-nav li.logo {
max-width: 500px;
overflow: visible;
}
li.logo a {
color: black;
}
.site-wrap {
max-width: 70rem;
width: 90%;
margin: 7rem auto;
background: white;
padding: 3rem;
text-align: justify;
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.05);
transform: scale(0.98);
transition: transform 0.5s;
}
body.fixed-nav .site-wrap {
transform: scale(1);
}
.site-wrap p {
margin: 1.5rem 0;
}