forked from jensimmons/cssremedy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremedy.css
More file actions
101 lines (77 loc) · 2.75 KB
/
remedy.css
File metadata and controls
101 lines (77 loc) · 2.75 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
/* This project is under construction. It's not ready for release yet. As of Feb 11, 2019. */
*, ::before, ::after { box-sizing: border-box; } /* Switch to border-box for box-sizing. */
/* Immediately jump any animation to the end point if the user has set their device to "prefers reduced motion". */
/* This could create bad, unintended consequences. Remove as needed, and write your own appropriate code for prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.001s !important;
transition-duration: 0.001s !important;
}
}
body {
margin: 0; /* Remove the tiny space around the edge of the page */
}
/* Switch to using rem units for typography. Fix line-height on headlines. */
h1 {
font-size: 2rem; /* Make all H1 large, remove nested-shrinking sizes. */
margin: 0.67em 0;
}
h2 {
font-size: 1.5rem;
}
h3 {
font-size: 1.17rem;
}
h4 {
font-size: 1.00rem;
}
h5 {
font-size: 0.83rem;
}
h6 {
font-size: 0.67rem;
}
h2, h3, h4, h5, h6{
line-height: 1;
}
/* Improve readability */
p, ul, ol, dl, address {
line-height: 1.5;
}
pre {
white-space: pre-wrap; /* Overflow by default is bad. */
}
hr {
border: .5px solid;
}
/* Are browsers now consistent with margin & padding on lists?
See: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Consistent_list_indentation */
nav ul {
list-style: none;
}
img, video, canvas, audio, iframe, embed, object {
display: block; /* Switch display mode to block, since that's what we usually want for images. */
vertical-align: middle; /* If you override, and make an image inline, it's likely you'll want middle vertical alignment. */
}
img, video {
max-width: 100%; /* Make images and video flexible by default. */
height: auto; /* Ensure images and video maintain their aspect ratio when max-width comes into play. */
}
img {
border-style: none; /* Remove the border on images inside links in IE 10 and earlier. */
}
/* In English, when styling the <q> element, use curly quotes instead of straight quotes. */
/* Code for this is now in the quotes.css file */
/* Support upcoming properties that haven't been broadly implemented yet,
but for which the initial value and legacy behavior is not be the best behavior.
*/
/* Consistent line spacing, which does not unnecessarily grow to accommodate things that would fit anyway */
/* From CSS Inline Layout Module Level 3: https://drafts.csswg.org/css-inline-3/#line-sizing-property */
:root {
line-sizing: normal;
}
/* Improve spacing of punctuation marks and at script changes in CJK languages */
/* From CSS Text Module Level 4: https://drafts.csswg.org/css-text-4/#text-spacing-property */
:root {
text-spacing: trim-start allow-end trim-adjacent ideograph-alpha ideograph-numeric;
}