-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.css
101 lines (85 loc) · 2.86 KB
/
template.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
/* Template based on http://udacity.github.io/frontend-nanodegree-styleguide/ */
/* TODO: delete this comment block after reviewing
Use valid CSS
avoid user agent detection as well as CSS "hacks" - try other options first
All lower case
Use meaningful or generic ID and class names
Avoid qualifying ID and class names with type selectors
only when really needed (helper classes)
Use shorthand properties where possible
padding: not padding-bottom: + padding-left: + padding-right: + padding-top:
Omit unit specification after 0 values
margin 0; not margin:0em; or margin 0px;
Include leading 0 s in decimal values for readability
font-size: 0.8em; not font-size: .8em;
Use 3 character hexadecimal notation where possible
color: #ebc; not color: #eebbcc;
Separate words in ID and class names by a hyphen
error-status not error_status or errorStatus or ...
Indent all block content
Use a semicolon after every declaration for consistency and extensibility
Always use a space after property name's colon, but no space between property and colon
Always use a single space between the last selector and the opening brace that begins the declaration block.
".block-name {" not ".block-name{" or ".block-name{new-line}{"
Always start a new line for each selector and declaration.
h1,
h2,
h3 {
not
h1, h2, h3 {
Always put a blank line (two line breaks) between rules
Use double quotation marks for attribute selectors or property values. Do not use quotation marks in URI values (url()).
If possible, group style sheet sections together by using comments. Separate sections with {multiple} new lines.
*/
/* Use Alternate to box model, so specified sized includes border and padding */
* {
/* -webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box; get from autoprefixer? */
box-sizing: border-box;
}
.app { /* guide to flexbox http://css-tricks.com/snippets/css/a-guide-to-flexbox/ */
display: -webkit-flex; /* For Safari, Chrome 21.0 .. 29.0, Opera 15-19 */
display: -ms-flex; /* Older specification implemented by IE 10 */
display: -moz-flex; /* Firefox 18.0; up to 22, user needs layout.css.flexbox.enabled true, 22 to 27 default is true */
display: flex; /* Enough for Chrome 29+, IE 11+, Mozilla 28+ */
flex-flow: row wrap;
}
/* TODO: remove following block indent examples after review */
@media screen, projection {
html {
background: #fff;
color: #444;
}
}
/* Header */
.header {
…
}
.header-nav {
…
}
/* Content */
.gallery {
…
}
.gallery-img {
…
}
/* Footer */
.footer {
…
}
.footer-nav {
…
}
/* Snippets */
/* TODO: delete the snippets when project is well started */
.reading-area {
overflow: auto; /* create scroll bar when content overflows max dimensions */
}
/* Responsive design media queries */
@media only screen and (max-width: 300px) and (orientation: landscape) {
html {
}
}