-
Notifications
You must be signed in to change notification settings - Fork 0
/
modal.css
128 lines (112 loc) · 2.27 KB
/
modal.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
128
:root {
/* Variables */
--color-primary: #ff5544;
--font-default: 'Roboto', Arial, Helvetica, sans-serif;
--font-slab: 'Roboto Slab', var(--font-default);
font-family: var(--font-default);
font-size: 18px;
}
body {
margin: 0;
display: flex;
flex-direction: column;
}
nav {
color: #444;
background-color: white;
font-family: var(--font-slab);
text-transform: uppercase;
font-size: 90%;
padding: 0 10vw;
display: flex;
box-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.5);
z-index: 1;
}
nav a {
color: inherit;
font-family: inherit;
text-decoration: none;
padding: 1rem 2rem;
display: block;
transition: all 0.05s linear;
}
nav a span {
position: relative;
}
nav a span::after {
content: '';
display: block;
width: 0;
height: 0.1rem;
background-color: var(--color-primary);
position: absolute;
transition: all 0.15s ease-in-out;
}
nav a:hover span::after {
width: 100%;
}
nav a:hover {
background-color: rgba(0, 0, 0, 0.05);
color: var(--color-primary);
}
main {
font-size: 140%;
background-color: var(--color-primary);
color: white;
padding: 10vw;
display: flex;
flex-direction: column;
background-image: url('background.png');
align-items: flex-start;
}
main button {
color: var(--color-primary);
font-family: var(--font-slab);
background-color: white;
border: 0;
padding: 0.75rem 2.5rem;
font-size: inherit;
border-radius: 5rem;
border: 0.1em solid white;
cursor: pointer;
transition: 0.075s all ease-out;
}
main button:hover {
background-color: transparent;
color: white;
}
/*
Modal styles
*/
.modal.open {
display: flex;
}
.modal {
display: none;
position: fixed;
justify-content: center;
align-items: flex-start;
background-color: rgba(0, 0, 0, 0.6);
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 2;
padding: 10vh 0;
}
.modal .container {
background-color: white;
border-radius: 0.25rem;
width: 50vw;
padding: 2rem;
position: relative;
}
.modal .close-button {
font-size: 150%;
background-color: transparent;
border: 0;
cursor: pointer;
position: absolute;
top: 0.3rem;
right: 0.5rem;
}