forked from rails/homepage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
205 lines (171 loc) · 4.75 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
/*--------------------------------------------------
GENERAL
--------------------------------------------------*/
body {
font-family: Georgia, serif;
line-height: 2rem;
font-size: 1.3rem;
background-color: white;
margin: 0;
padding: 0;
color: #000;
}
small { font-size: 1rem; }
img { border: 0; }
a { color: #cc0000; text-decoration: none; }
p a:hover { text-decoration: underline; }
h1 {
font-weight: normal;
line-height: 2.8rem;
font-size: 2.5rem;
letter-spacing: -1px;
color: black;
margin-bottom: 1rem;
}
h2 {
font-weight: normal;
font-size: 1.8rem;
color: black;
margin-top: 2rem;
margin-bottom: -0.5rem;
}
.container {
width: 960px;
margin: 0 auto 40px;
overflow: hidden;
}
.show-mobile { display: none; }
/*--------------------------------------------------
NAV
--------------------------------------------------*/
#nav-logo img { width: 210px; margin-top: 35px; }
#nav-logo:hover { opacity: 0.7; }
.nav { margin-left: 130px; }
.nav { font-size: 15px; }
.nav ul { margin: 0; padding: 0; float: right; margin-top: 70px; }
.nav ul li { display: inline; list-style-type: none; margin-left: 20px; }
.nav ul li.first { margin-left: 5px; }
.nav ul li a { padding-bottom: 1px; font-weight: bold; border-bottom: 2px solid #cc0000; }
.nav ul li a:hover { color: #000; border-bottom: 2px solid #000; }
.back { margin: 4rem 0; text-align: center; font-size: 1rem; }
/*--------------------------------------------------
LAYOUT
--------------------------------------------------*/
section {
margin: 0 auto 2rem;
width: 700px;
}
section.more { overflow: hidden; text-align: center;}
section.more figure img { width: 250px; height: 120px;}
figure { margin: 0; }
figure img { width: 375px; height: 375px; }
figure.right { float: right; margin-right: -5rem; }
figure.left { float:left; margin-left: -5rem; }
.version {
text-align: center;
overflow: hidden;
margin: 3rem auto;
}
.version a {
font-size: 1.1rem;
color: white;
border-bottom: 4px solid #ff9999;
background-color: #cc0000;
padding: 1.3rem 2rem;
border-radius: 20px;
}
.version a:hover {
opacity: 0.8;
text-decoration: none;
}
.video-container {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%;
}
.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/*--------------------------------------------------
CONTRIBUTORS
--------------------------------------------------*/
.rails-core {
width: 100%;
overflow: hidden;
text-align: center;
}
.person {
display: inline-block;
padding: 0.5rem;
text-align: center;
}
.person a, .person em {
font-family: Helvetica, sans-serif;
font-size: 1rem;
}
.person em { color: #777; }
.meta {
font-family: Helvetica, sans-serif;
font-size: 1rem;
margin-top: 2.5rem;
line-height: 1.25rem;
}
figure.contributor {
background-size: 700px 420px;
background-image: url('images/rails-core.jpg');
width: 140px;
height: 0;
padding-top: 140px;
box-sizing: border-box;
font-family: Helvetica, sans-serif;
font-size: 1rem;
line-height: 1.25rem;
}
.david { background-position: 0 0; }
.jeremy { background-position: 560px 0; }
.santiago { background-position: 420px 0; }
.aaron { background-position: 280px 0; }
.xavier { background-position: 140px 0; }
.rafael { background-position: 0 280px; }
.andrew { background-position: 560px 280px; }
.guillermo { background-position: 420px 280px; }
.carlos { background-position: 280px 280px; }
.yves { background-position: 140px 280px; }
.godfrey { background-position: 0 560px; }
.matthew { background-position: 560px 560px; }
.kasper { background-position: 420px 140px; }
figure p { margin: 0; }
/*----------------------------------------------------
RESPONSIVE CSS
----------------------------------------------------*/
/* iPhone */
@media only screen and (max-device-width: 480px) {
body {
font-size: 1.2rem;
}
.container { width: auto; margin: 0; }
.mobile-center { text-align: center; }
section { width: auto; }
.version { margin: 0 auto; }
.version a { padding: 1rem; }
.nav { width: 100%; margin: 20px 0 40px; overflow: hidden; text-align: center; }
.nav ul li, .nav ul li.first { margin: 15px; line-height: 2rem; }
.nav ul li.back { margin-right: 10px; }
section { padding: 10px;}
h1 { font-size: 32px; margin-top: 10px; }
h2 { font-size: 21px; font-weight: bold; margin-bottom: -18px; }
figure img { width: 380px; height: 380px; }
figure.right, figure.left { margin: 0; float: none; }
.show-mobile { display: block; }
.hide-mobile { display: none; }
}
/* iPad */
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
}
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
}