Projet

Général

Profil

Paste
Télécharger (9,72 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / responsive / css / responsive-style.css @ 1f623f01

1 cc7b6b59 Julien Enselme
/*
2
Theme Name: WP-Skeleton
3
Theme URI: https://github.com/wycks/WP-Skeleton-Theme
4
Author: Wycks
5
Author URI: wpsecure.net
6
Description: Responsive Bare Bones framework based on Dave Gamache's getskeleton.com 
7
Version: 1.0
8
License: http://www.opensource.org/licenses/mit-license.php.
9
Tags: Responsive, grid, mobile, framework, bare-bones, white, minimal
10

11
This theme, like WordPress, is licensed under the GPL.
12
Use it to make something cool, have fun, and share what you've learned with others.
13
*/
14
15
/* Table of Contents
16
==================================================
17
    #Base 960 Grid
18
    #Tablet (Portrait)
19
    #Mobile (Portrait)
20
    #Mobile (Landscape)
21
    #Clearing */
22
23
24
25
/* #Base 960 Grid
26
================================================== */
27
28
    .container                                  { position: relative; width: 960px; margin: 0 auto; padding: 0; }
29
    .column, .columns                           { float: left; display: inline; margin-left: 10px; margin-right: 10px; }
30
    .row                                        { margin-bottom: 20px; }
31
32
    /* Nested Column Classes */
33
    .column.alpha, .columns.alpha               { margin-left: 0; }
34
    .column.omega, .columns.omega               { margin-right: 0; }
35
36
    /* Base Grid */
37
    .container .one.column                      { width: 40px;  }
38
    .container .two.columns                     { width: 100px; }
39
    .container .three.columns                   { width: 160px; }
40
    .container .four.columns                    { width: 220px; }
41
    .container .five.columns                    { width: 280px; }
42
    .container .six.columns                     { width: 340px; }
43
    .container .seven.columns                   { width: 400px; }
44
    .container .eight.columns                   { width: 460px; }
45
    .container .nine.columns                    { width: 520px; }
46
    .container .ten.columns                     { width: 580px; }
47
    .container .eleven.columns                  { width: 640px; }
48
    .container .twelve.columns                  { width: 700px; }
49
    .container .thirteen.columns                { width: 760px; }
50
    .container .fourteen.columns                { width: 820px; }
51
    .container .fifteen.columns                 { width: 880px; }
52
    .container .sixteen.columns                 { width: 940px; }
53
54
    .container .one-third.column                { width: 300px; }
55
    .container .two-thirds.column               { width: 620px; }
56
57
    /* Offsets */
58
    .container .offset-by-one                   { padding-left: 60px;  }
59
    .container .offset-by-two                   { padding-left: 120px; }
60
    .container .offset-by-three                 { padding-left: 180px; }
61
    .container .offset-by-four                  { padding-left: 240px; }
62
    .container .offset-by-five                  { padding-left: 300px; }
63
    .container .offset-by-six                   { padding-left: 360px; }
64
    .container .offset-by-seven                 { padding-left: 420px; }
65
    .container .offset-by-eight                 { padding-left: 480px; }
66
    .container .offset-by-nine                  { padding-left: 540px; }
67
    .container .offset-by-ten                   { padding-left: 600px; }
68
    .container .offset-by-eleven                { padding-left: 660px; }
69
    .container .offset-by-twelve                { padding-left: 720px; }
70
    .container .offset-by-thirteen              { padding-left: 780px; }
71
    .container .offset-by-fourteen              { padding-left: 840px; }
72
    .container .offset-by-fifteen               { padding-left: 900px; }
73
74
75
76
/* #Tablet (Portrait)
77
================================================== */
78
79
    /* Note: Design for a width of 768px */
80
81
    @media only screen and (min-width: 768px) and (max-width: 959px) {
82
        .container                                  { width: 768px; }
83
        .container .column,
84
        .container .columns                         { margin-left: 10px; margin-right: 10px;  }
85
        .column.alpha, .columns.alpha               { margin-left: 0; margin-right: 10px; }
86
        .column.omega, .columns.omega               { margin-right: 0; margin-left: 10px; }
87
88
        .container .one.column                      { width: 28px; }
89
        .container .two.columns                     { width: 76px; }
90
        .container .three.columns                   { width: 124px; }
91
        .container .four.columns                    { width: 172px; }
92
        .container .five.columns                    { width: 220px; }
93
        .container .six.columns                     { width: 268px; }
94
        .container .seven.columns                   { width: 316px; }
95
        .container .eight.columns                   { width: 364px; }
96
        .container .nine.columns                    { width: 412px; }
97
        .container .ten.columns                     { width: 460px; }
98
        .container .eleven.columns                  { width: 508px; }
99
        .container .twelve.columns                  { width: 556px; }
100
        .container .thirteen.columns                { width: 604px; }
101
        .container .fourteen.columns                { width: 652px; }
102
        .container .fifteen.columns                 { width: 700px; }
103
        .container .sixteen.columns                 { width: 748px; }
104
105
        .container .one-third.column                { width: 236px; }
106
        .container .two-thirds.column               { width: 492px; }
107
108
        /* Offsets */
109
        .container .offset-by-one                   { padding-left: 48px; }
110
        .container .offset-by-two                   { padding-left: 96px; }
111
        .container .offset-by-three                 { padding-left: 144px; }
112
        .container .offset-by-four                  { padding-left: 192px; }
113
        .container .offset-by-five                  { padding-left: 240px; }
114
        .container .offset-by-six                   { padding-left: 288px; }
115
        .container .offset-by-seven                 { padding-left: 336px; }
116
        .container .offset-by-eight                 { padding-left: 348px; }
117
        .container .offset-by-nine                  { padding-left: 432px; }
118
        .container .offset-by-ten                   { padding-left: 480px; }
119
        .container .offset-by-eleven                { padding-left: 528px; }
120
        .container .offset-by-twelve                { padding-left: 576px; }
121
        .container .offset-by-thirteen              { padding-left: 624px; }
122
        .container .offset-by-fourteen              { padding-left: 672px; }
123
        .container .offset-by-fifteen               { padding-left: 720px; }
124
    }
125
126
127
/*  #Mobile (Portrait)
128
================================================== */
129
130
    /* Note: Design for a width of 320px */
131
132
    @media only screen and (max-width: 767px) {
133
        .container { width: 300px; }
134
        .columns, .column { margin: 0 10px; }
135
136
        .container .one.column,
137
        .container .two.columns,
138
        .container .three.columns,
139
        .container .four.columns,
140
        .container .five.columns,
141
        .container .six.columns,
142
        .container .seven.columns,
143
        .container .eight.columns,
144
        .container .nine.columns,
145
        .container .ten.columns,
146
        .container .eleven.columns,
147
        .container .twelve.columns,
148
        .container .thirteen.columns,
149
        .container .fourteen.columns,
150
        .container .fifteen.columns,
151
        .container .sixteen.columns,
152
        .container .one-third.column,
153
        .container .two-thirds.column  { width: 280px; }
154
155
        /* Offsets */
156
        .container .offset-by-one,
157
        .container .offset-by-two,
158
        .container .offset-by-three,
159
        .container .offset-by-four,
160
        .container .offset-by-five,
161
        .container .offset-by-six,
162
        .container .offset-by-seven,
163
        .container .offset-by-eight,
164
        .container .offset-by-nine,
165
        .container .offset-by-ten,
166
        .container .offset-by-eleven,
167
        .container .offset-by-twelve,
168
        .container .offset-by-thirteen,
169
        .container .offset-by-fourteen,
170
        .container .offset-by-fifteen { padding-left: 0; }
171
        
172
       
173
174
    }
175
176
177
/* #Mobile (Landscape)
178
================================================== */
179
180
    /* Note: Design for a width of 480px */
181
182
    @media only screen and (min-width: 480px) and (max-width: 767px) {
183
        .container { width: 420px; }
184
        .columns, .column { margin: 0 10px; }
185
186
        .container .one.column,
187
        .container .two.columns,
188
        .container .three.columns,
189
        .container .four.columns,
190
        .container .five.columns,
191
        .container .six.columns,
192
        .container .seven.columns,
193
        .container .eight.columns,
194
        .container .nine.columns,
195
        .container .ten.columns,
196
        .container .eleven.columns,
197
        .container .twelve.columns,
198
        .container .thirteen.columns,
199
        .container .fourteen.columns,
200
        .container .fifteen.columns,
201
        .container .sixteen.columns,
202
        .container .one-third.column,
203
        .container .two-thirds.column { width: 400px; }
204
        
205
    }
206
207
208
/* #Clearing
209
================================================== */
210
211
    /* Self Clearing Goodness */
212
    .container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
213
214
    /* Use clearfix class on parent to clear nested columns,
215
    or wrap each row of columns in a <div class="row"> */
216
    .clearfix:before,
217
    .clearfix:after,
218
    .row:before,
219
    .row:after {
220
      content: '\0020';
221
      display: block;
222
      overflow: hidden;
223
      visibility: hidden;
224
      width: 0;
225
      height: 0; }
226
    .row:after,
227
    .clearfix:after {
228
      clear: both; }
229
    .row,
230
    .clearfix {
231
      zoom: 1; }
232
233
    /* You can also use a <br class="clear" /> to clear columns */
234
    .clear {
235
      clear: both;
236
      display: block;
237
      overflow: hidden;
238
      visibility: hidden;
239
      width: 0;
240
      height: 0;
241
    }
242
243
        img.scale-with-grid {
244
                max-width: 100%;
245
                height: auto; }