-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
121 lines (104 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
/*
This is a good layout for a mobile-first CSS template.
Following this flow will minimize the number of styles you need to write and will ensure you are thinking, designing and developing mobile-first.
Most of your styles get written like standard CSS, but for your mobile presentation. Generally speaking, a good mobile presention will stretch out nicely for larger screens.
Sometimes, when we stretch out to larger screens, we need to make minor tweaks for the larger devices -- you can make these tweaks in the tablet media query, or if the issue exists on desktop only, the desktop media query.
You will find this is far easier than the opposite task of using CSS to cram your desktop experience into a mobile device.
*/
/*********************************************************************
LOADS IN A NICE RESET TO ENSURE ALL BROWSERS HAVE THE SAME BASE STYLES
*********************************************************************/
@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css');
/*********************************************************************
YOUR MOBILE/BASE STYLES GO HERE
*********************************************************************/
* {
box-sizing: border-box;
}
html, body {
/* Sets default font-size to 16px, ensuring 1em = 16px; */
font-size: 18px;
font-family: Georgia, serif;
}
h1 {
text-align: left;
border-width: 10px;
margin: 10px;
}
h2 {
text-align: left;
border-width: 10px;
margin: 10px;
font-weight: bold;
}
h4 {
text-align: left;
border-width: 10px;
margin: 10px;
font-weight: normal;
}
h3 {
display: flex;
margin: 10px;
padding: 10px;
font-weight: normal;
}
figcaption {
color: GREY;
font-size: 14px;
font-style: italic;
margin: 10px auto;
padding: 10px;
}
p {
text-align: left;
margin: 10px auto;
padding: 10px;
}
figure {
display: block;
width:200px;
margin: 10px auto;
padding: 15px;
}
img {
width: 100%;
}
.container {
display: block;
max-width: 800px;
margin: 0 auto;
padding: 0px;
flex-basis:25%
}
.photo {
display: block;
max-width: 800px;
margin: 10px auto;
padding: 10px;
flex-basis:25%
}
.flex > div {
margin-bottom: 10px;
}
/*********************************************************************
YOUR TABLET/DESKTOP STYLES GO HERE
*********************************************************************/
@media(min-width: 681px) {
/* Any adjustments for tablets and larger go here.
Note these styles will be applied to anything 681px or larger -- so tablet AND desktop */
.flex {
display: flex;
justify-content: space-between;
}
}
/*********************************************************************
YOUR DESKTOP-ONLY STYLES GO HERE
*********************************************************************/
@media(min-width: 729px) {
/* Any adjustments for desktop and larger go here.
Note these styles will be applied to anything 729px or larger -- so desktop */
.flex {
display: flex;
}
}