-
Notifications
You must be signed in to change notification settings - Fork 1
/
mobile.css
151 lines (132 loc) · 2.2 KB
/
mobile.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
/* The Mobile CSS file */
html {
font-family:'Helvetica Neue','Helvetica','Arial',sans-serif;
font-size:16px;
}
body {
margin:0; padding:0;
background-color:#222222;
}
/* Demonstrating CSS Media Queries - note the differences from desktop.css */
.using-desktop {
display:none;
}
.using-mobile {
font-family:'Georgia',serif;
font-size:18px;
font-style:italic;
color:#b1009a;
}
/* Exercise #10 */
/* Container */
.container {
padding:30px 0;
/* Exercise #9 */
width:960px;
margin:0 auto;
background:#ffffff;
}
/* Header */
.header {
/* Exercise 6 */
height:240px;
background:#0d0d0d url('images/header.png') right top no-repeat;
position:relative;
}
/* General Styles - colors/fonts */
h1, h2, h3 {
color:#b1009a; /* Ladies Learning Code pink! */
}
ul {
padding:0;
list-style:none;
}
.content,
.categories,
.cart {
padding:15px;
}
/* Sidebar - categories and cart */
.sidebar {
/* Exercise 7 */
float:right;
width:230px;
background:#ddd;
}
.categories ul {
padding:0;
}
.categories ul li a {
/* Exercise #9 */
margin:4px 0;
font-size:12px; /* Remove for exercise 9 */
color:#444444;
}
.categories ul li a:hover {
text-decoration:none;
}
.cart ul li {
background:#e6e6e6;
border:1px solid #fff;
margin:7px 0;
padding:5px;
}
.cart ul li .item-info {
width:100px;
display:inline-block;
margin:0 0 0 5px;
vertical-align:top;
}
.cart ul li .item-info h4 {
margin:5px 0 0 0; padding:0;
font-size:16px;
}
.cart ul li .item-info p {
margin:5px 0 0 0; padding:0;
}
/* Content section */
.content {
/* Exercise 7 */
width:640px;
float:left;
}
.content p {
line-height:19px;
}
/* Exercise 7 */
.item {
display:inline-block;
vertical-align:top;
width:180px;
margin:0 15px 20px 0;
}
.item img {
padding:5px;
border:1px solid #ddd;
background:#fff;
}
.item h4 {
margin:5px 0 0 0;
padding:0;
}
hr.divider {
height:5px;
background:#ccc;
border-radius:3px;
-moz-border-radius:3px;
border:0;
margin:20px 0;
}
.footer {
/* Exercise 8 - Optional */
clear:both;
margin:40px 0 0 0;
padding:30px;
background:#eee;
border-top:1px solid #ccc;
border-bottom:1px solid #ccc;
}
.footer p {
text-align:center;
margin:5px 0;
}