-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathstyle.css
165 lines (145 loc) · 3.03 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/* =Type
----------------------------------------------- */
body {
font: 100%/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
}
main {
padding: 1.5em 1.5em 6em;
max-width: 33em;
}
h1 {
font-size: 2em;
font-weight: normal;
margin-bottom: 0;
}
h2 {
/* @h2 */
font-size: 1.5em;
font-weight: normal;
}
/* OPTIONAL: Move the main headline and date closer together */
h1 {
margin-bottom: 0;
}
h1 + p {
margin-top: 0;
}
section {
margin-bottom: 3em;
}
/* =Color
----------------------------------------------- */
body {
background: rgb(242, 242, 242);
color: rgb(51, 51, 51);
}
a {
color: inherit;
}
a:hover,
a:active,
a:focus {
color: black;
}
/* =Field
----------------------------------------------- */
textarea {
margin-top: 0.375em;
padding: 0.75em;
font-family: inherit;
font-size: 1.5em;
width: 100%;
max-width: 33em;
height: 6.75em;
box-sizing: border-box;
border-width: 0;
border-radius: 0.25em;
}
label span.label {
display: block;
/* @h2 */
font-size: 1.5em;
font-weight: normal;
margin-top: 3em;
}
label br {
display: none;
}
/* =Button / Action
----------------------------------------------- */
.action,
button {
background: rgb(51, 51, 51);
color: white;
border-radius: 0.25em;
border-width: 0;
font-family: inherit;
font-size: 1em;
padding: 0.5em 1em;
text-decoration: none;
cursor: pointer;
}
.action:hover,
.action:active,
.action:focus
button:hover,
button:active,
button:focus {
background: black;
color: white;
}
/* =Blockquote
----------------------------------------------- */
blockquote {
margin: 0;
padding: 0;
font-style: italic;
}
blockquote p::before {
content: "“";
}
blockquote p::after {
content: "”";
}
/* =Success Message
----------------------------------------------- */
.success {
margin: 3em 0;
background: rgba(0, 0, 0, 0.05);
padding: 1.5em;
border-radius: 0.25em;
}
.success h1,
.success p {
margin: 0;
}
/* =Interactive Elements
----------------------------------------------- */
.hidden {
display: none;
}
/* =Layout
----------------------------------------------- */
/* OPTIONAL: Center the page content horizontally */
main {
margin-left: auto;
margin-right: auto;
}
/* OPTIONAL: Center the page content vertically */
@supports (display: grid) {
html, body {
height: 100%; /* SHIM: Make the “html” and “body” elements fill the height of the viewport */
}
body {
display: grid;
grid-template-columns: 100vw; /* One giant column that fills the viewport width */
align-items: center;
justify-content: center;
}
/* SHIM: This doesn’t seem quite right. Is there a way to ask a grid item to “shrink to fit” its content? */
main {
display: inline-block;
}
}