1
|
/**
|
2
|
* @file
|
3
|
* RTL companion for the responsive-sidebars.css file.
|
4
|
*/
|
5
|
/**
|
6
|
* @file
|
7
|
* Positioning for responsive layout .
|
8
|
*
|
9
|
* Define CSS classes to create a table-free, 3-column, 2-column, or single
|
10
|
* column layout depending on whether blocks are enabled in the left or right
|
11
|
* columns.
|
12
|
*
|
13
|
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
|
14
|
*/
|
15
|
/*
|
16
|
* Center the page.
|
17
|
*/
|
18
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\0000344}}
|
19
|
#page,
|
20
|
.region-bottom {
|
21
|
/* For screen sizes larger than 1200px, prevent excessively long lines of text
|
22
|
by setting a max-width. */
|
23
|
margin-left: auto;
|
24
|
margin-right: auto;
|
25
|
max-width: 960px;
|
26
|
}
|
27
|
|
28
|
/*
|
29
|
* Apply the shared properties of grid items in a single, efficient ruleset.
|
30
|
*/
|
31
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\0000362}}
|
32
|
#header,
|
33
|
#content,
|
34
|
#navigation,
|
35
|
.region-sidebar-first,
|
36
|
.region-sidebar-second,
|
37
|
#footer {
|
38
|
padding-left: 10px;
|
39
|
padding-right: 10px;
|
40
|
-moz-box-sizing: border-box;
|
41
|
-webkit-box-sizing: border-box;
|
42
|
-ms-box-sizing: border-box;
|
43
|
box-sizing: border-box;
|
44
|
word-wrap: break-word;
|
45
|
}
|
46
|
|
47
|
/*
|
48
|
* Containers for grid items and flow items.
|
49
|
*/
|
50
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass-extensions\/zen-grids\/stylesheets\/zen\/_grids\.scss}line{font-family:\0000352}}
|
51
|
#header:before, #header:after,
|
52
|
#main:before,
|
53
|
#main:after,
|
54
|
#footer:before,
|
55
|
#footer:after {
|
56
|
content: "";
|
57
|
display: table;
|
58
|
}
|
59
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass-extensions\/zen-grids\/stylesheets\/zen\/_grids\.scss}line{font-family:\0000356}}
|
60
|
#header:after,
|
61
|
#main:after,
|
62
|
#footer:after {
|
63
|
clear: both;
|
64
|
}
|
65
|
|
66
|
/*
|
67
|
* Navigation bar
|
68
|
*/
|
69
|
@media all and (min-width: 480px) {
|
70
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\0000381}}
|
71
|
#main {
|
72
|
padding-top: 3em;
|
73
|
/* Move all the children of #main down to make room. */
|
74
|
position: relative;
|
75
|
}
|
76
|
|
77
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\0000385}}
|
78
|
#navigation {
|
79
|
position: absolute;
|
80
|
top: 0;
|
81
|
/* Move the navbar up inside #main's padding. */
|
82
|
height: 3em;
|
83
|
width: 100%;
|
84
|
}
|
85
|
}
|
86
|
@media all and (min-width: 480px) and (max-width: 959px) {
|
87
|
/*
|
88
|
* Use 3 grid columns for smaller screens.
|
89
|
*/
|
90
|
/*
|
91
|
* The layout when there is only one sidebar, the left one.
|
92
|
*/
|
93
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003104}}
|
94
|
.sidebar-first #content {
|
95
|
/* Span 2 columns, starting in 2nd column from left. */
|
96
|
float: right;
|
97
|
width: 66.66667%;
|
98
|
margin-right: 33.33333%;
|
99
|
margin-left: -100%;
|
100
|
}
|
101
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003108}}
|
102
|
.sidebar-first .region-sidebar-first {
|
103
|
/* Span 1 column, starting in 1st column from left. */
|
104
|
float: right;
|
105
|
width: 33.33333%;
|
106
|
margin-right: 0%;
|
107
|
margin-left: -33.33333%;
|
108
|
}
|
109
|
|
110
|
/*
|
111
|
* The layout when there is only one sidebar, the right one.
|
112
|
*/
|
113
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003118}}
|
114
|
.sidebar-second #content {
|
115
|
/* Span 2 columns, starting in 1st column from left. */
|
116
|
float: right;
|
117
|
width: 66.66667%;
|
118
|
margin-right: 0%;
|
119
|
margin-left: -66.66667%;
|
120
|
}
|
121
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003122}}
|
122
|
.sidebar-second .region-sidebar-second {
|
123
|
/* Span 1 column, starting in 3rd column from left. */
|
124
|
float: right;
|
125
|
width: 33.33333%;
|
126
|
margin-right: 66.66667%;
|
127
|
margin-left: -100%;
|
128
|
}
|
129
|
|
130
|
/*
|
131
|
* The layout when there are two sidebars.
|
132
|
*/
|
133
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003132}}
|
134
|
.two-sidebars #content {
|
135
|
/* Span 2 columns, starting in 2nd column from left. */
|
136
|
float: right;
|
137
|
width: 66.66667%;
|
138
|
margin-right: 33.33333%;
|
139
|
margin-left: -100%;
|
140
|
}
|
141
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003136}}
|
142
|
.two-sidebars .region-sidebar-first {
|
143
|
/* Span 1 column, starting in 1st column from left. */
|
144
|
float: right;
|
145
|
width: 33.33333%;
|
146
|
margin-right: 0%;
|
147
|
margin-left: -33.33333%;
|
148
|
}
|
149
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003140}}
|
150
|
.two-sidebars .region-sidebar-second {
|
151
|
/* Start a new row and span all 3 columns. */
|
152
|
float: right;
|
153
|
width: 100%;
|
154
|
margin-right: 0%;
|
155
|
margin-left: -100%;
|
156
|
padding-left: 0;
|
157
|
padding-right: 0;
|
158
|
clear: right;
|
159
|
}
|
160
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003145}}
|
161
|
.two-sidebars .region-sidebar-second .block {
|
162
|
padding-left: 10px;
|
163
|
padding-right: 10px;
|
164
|
-moz-box-sizing: border-box;
|
165
|
-webkit-box-sizing: border-box;
|
166
|
-ms-box-sizing: border-box;
|
167
|
box-sizing: border-box;
|
168
|
word-wrap: break-word;
|
169
|
}
|
170
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003148}}
|
171
|
.two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
|
172
|
/* Span 1 column, starting in the 1st column from left. */
|
173
|
float: right;
|
174
|
width: 33.33333%;
|
175
|
margin-right: 0%;
|
176
|
margin-left: -33.33333%;
|
177
|
clear: right;
|
178
|
}
|
179
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003152}}
|
180
|
.two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
|
181
|
/* Span 1 column, starting in the 2nd column from left. */
|
182
|
float: right;
|
183
|
width: 33.33333%;
|
184
|
margin-right: 33.33333%;
|
185
|
margin-left: -66.66667%;
|
186
|
}
|
187
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003155}}
|
188
|
.two-sidebars .region-sidebar-second .block:nth-child(3n) {
|
189
|
/* Span 1 column, starting in the 3rd column from left. */
|
190
|
float: right;
|
191
|
width: 33.33333%;
|
192
|
margin-right: 66.66667%;
|
193
|
margin-left: -100%;
|
194
|
}
|
195
|
}
|
196
|
@media all and (min-width: 960px) {
|
197
|
/*
|
198
|
* Use 5 grid columns for larger screens.
|
199
|
*/
|
200
|
/*
|
201
|
* The layout when there is only one sidebar, the left one.
|
202
|
*/
|
203
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003173}}
|
204
|
.sidebar-first #content {
|
205
|
/* Span 4 columns, starting in 2nd column from left. */
|
206
|
float: right;
|
207
|
width: 80%;
|
208
|
margin-right: 20%;
|
209
|
margin-left: -100%;
|
210
|
}
|
211
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003177}}
|
212
|
.sidebar-first .region-sidebar-first {
|
213
|
/* Span 1 column, starting in 1st column from left. */
|
214
|
float: right;
|
215
|
width: 20%;
|
216
|
margin-right: 0%;
|
217
|
margin-left: -20%;
|
218
|
}
|
219
|
|
220
|
/*
|
221
|
* The layout when there is only one sidebar, the right one.
|
222
|
*/
|
223
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003187}}
|
224
|
.sidebar-second #content {
|
225
|
/* Span 4 columns, starting in 1st column from left. */
|
226
|
float: right;
|
227
|
width: 80%;
|
228
|
margin-right: 0%;
|
229
|
margin-left: -80%;
|
230
|
}
|
231
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003191}}
|
232
|
.sidebar-second .region-sidebar-second {
|
233
|
/* Span 1 column, starting in 5th column from left. */
|
234
|
float: right;
|
235
|
width: 20%;
|
236
|
margin-right: 80%;
|
237
|
margin-left: -100%;
|
238
|
}
|
239
|
|
240
|
/*
|
241
|
* The layout when there are two sidebars.
|
242
|
*/
|
243
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003201}}
|
244
|
.two-sidebars #content {
|
245
|
/* Span 3 columns, starting in 2nd column from left. */
|
246
|
float: right;
|
247
|
width: 60%;
|
248
|
margin-right: 20%;
|
249
|
margin-left: -80%;
|
250
|
}
|
251
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003205}}
|
252
|
.two-sidebars .region-sidebar-first {
|
253
|
/* Span 1 column, starting in 1st column from left. */
|
254
|
float: right;
|
255
|
width: 20%;
|
256
|
margin-right: 0%;
|
257
|
margin-left: -20%;
|
258
|
}
|
259
|
@media -sass-debug-info{filename{font-family:file\:\/\/\/home\/andreas\/workspaces\/www\/drupal-7\.16\/sites\/all\/themes\/zen_dataportal\/sass\/layouts\/responsive-sidebars\.scss}line{font-family:\00003209}}
|
260
|
.two-sidebars .region-sidebar-second {
|
261
|
/* Span 1 column, starting in 5th column from left. */
|
262
|
float: right;
|
263
|
width: 20%;
|
264
|
margin-right: 80%;
|
265
|
margin-left: -100%;
|
266
|
}
|
267
|
}
|