| LEFT | RIGHT | 
|---|
| 1 /*! | 1 /*! | 
| 2  * This file is part of universal-design-language | 2  * This file is part of website-defaults | 
| 3  * Copyright (C) 2016 Eyeo GmbH | 3  * Copyright (C) 2016 Eyeo GmbH | 
| 4  * | 4  * | 
| 5  * universal-design-language is free software: you can redistribute it and/or | 5  * website-defaults is free software: you can redistribute it and/or | 
| 6  * modify it under the terms of the GNU General Public License as published by | 6  * modify it under the terms of the GNU General Public License as published by | 
| 7  * the Free Software Foundation, either version 3 of the License, or | 7  * the Free Software Foundation, either version 3 of the License, or | 
| 8  * (at your option) any later version. | 8  * (at your option) any later version. | 
| 9  * | 9  * | 
| 10  * universal-design-language is distributed in the hope that it will be useful, | 10  * website-defaults is distributed in the hope that it will be useful, | 
| 11  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
| 13  * GNU General Public License for more details. | 13  * GNU General Public License for more details. | 
| 14  * | 14  * | 
| 15  * You should have received a copy of the GNU General Public License | 15  * You should have received a copy of the GNU General Public License | 
| 16  * along with web.starter-kit.  If not, see <http://www.gnu.org/licenses/>. | 16  * along with website-defaults.  If not, see <http://www.gnu.org/licenses/>. | 
| 17  */ | 17  */ | 
| 18 | 18 | 
| 19 .container, | 19 /******************************************************************************* | 
| 20 .container-fluid | 20  * Grid component | 
|  | 21  ******************************************************************************/ | 
|  | 22 | 
|  | 23 /** | 
|  | 24  * - .row contains one or more .column(s) | 
|  | 25  * - .row clears .column(s) | 
|  | 26  * - .row negates the left & right padding of it's left-most & right-most | 
|  | 27  *   .column(s) while preserving consistent padding between .column(s) | 
|  | 28  */ | 
|  | 29 .row | 
| 21 { | 30 { | 
| 22   margin: 0 auto; | 31   margin: 0px (-$small-space); | 
| 23   padding: 0 $small-space; |  | 
| 24   max-width: 100%; |  | 
| 25 } | 32 } | 
| 26 | 33 | 
| 27 .container:after, |  | 
| 28 .container-fluid:after, |  | 
| 29 .row:after | 34 .row:after | 
| 30 { | 35 { | 
|  | 36   display: block; | 
|  | 37   clear: both; | 
| 31   content: ""; | 38   content: ""; | 
| 32   display: table; |  | 
| 33   clear: both; |  | 
| 34 } | 39 } | 
| 35 | 40 | 
| 36 .row | 41 /** | 
| 37 { | 42  * - .column is 100% width by default | 
| 38   margin: 0 -$small-space; | 43  * - Modifier classes are applied to .column to change it's width | 
| 39 } | 44  * - Modifier classes behave differently on different device widths | 
| 40 | 45  */ | 
| 41 .column | 46 .column | 
| 42 { | 47 { | 
| 43   position: relative; | 48   position: relative; | 
|  | 49   width: 100%; | 
| 44   min-height: 1px; | 50   min-height: 1px; | 
| 45   padding: 0 $small-space; | 51   padding: 0px $small-space; | 
| 46   width: 100%; |  | 
| 47 } | 52 } | 
| 48 | 53 | 
| 49 [dir="ltr"] .column | 54 /* - .column(s) within .row .reverse appear in reverse order | 
|  | 55  * - .column(s) within [dir=rtl] appear in reverse order respectively | 
|  | 56  */ | 
|  | 57 | 
|  | 58 .column, | 
|  | 59 [dir="rtl"] .reverse .column | 
| 50 { | 60 { | 
| 51   float: left; | 61   float: left; | 
| 52 } | 62 } | 
| 53 | 63 | 
|  | 64 .reverse .column, | 
| 54 [dir="rtl"] .column | 65 [dir="rtl"] .column | 
| 55 { | 66 { | 
| 56   float: right; | 67   float: right; | 
| 57 } | 68 } | 
| 58 | 69 | 
| 59 @media (min-width: $mobile-breakpoint) | 70 @media(min-width: $tablet-breakpoint) | 
| 60 { | 71 { | 
| 61   .container | 72   .one-fourth | 
| 62   { | 73   { | 
| 63     width: 540px; | 74     width: 50%; | 
| 64   } | 75   } | 
| 65 } | 76 } | 
| 66 | 77 | 
| 67 @media(min-width: $tablet-breakpoint) | 78 @media(min-width: $desktop-breakpoint) | 
| 68 { | 79 { | 
| 69   .container |  | 
| 70   { |  | 
| 71     width: 720px; |  | 
| 72   } |  | 
| 73 |  | 
| 74   .one-half | 80   .one-half | 
| 75   { | 81   { | 
| 76     width: 50%; | 82     width: 50%; | 
| 77   } | 83   } | 
| 78 | 84 | 
| 79   [dir="ltr"] .pull-one-half | 85   .one-third | 
| 80   { | 86   { | 
| 81     right: 50%; | 87     width: 33.333333%; | 
| 82   } | 88   } | 
| 83 | 89 | 
| 84   [dir="rtl"] .pull-one-half | 90   .two-thirds | 
| 85   { | 91   { | 
| 86     left: 50%; | 92     width: 66.666667%; | 
| 87   } |  | 
| 88 |  | 
| 89   [dir="ltr"] .push-one-half |  | 
| 90   { |  | 
| 91     left: 50%; |  | 
| 92   } |  | 
| 93 |  | 
| 94   [dir="rtl"] .push-one-half |  | 
| 95   { |  | 
| 96     right: 50%; |  | 
| 97   } |  | 
| 98 } |  | 
| 99 |  | 
| 100 @media(min-width: $desktop-breakpoint) |  | 
| 101 { |  | 
| 102   .container |  | 
| 103   { |  | 
| 104     width: 960px; |  | 
| 105   } | 93   } | 
| 106 | 94 | 
| 107   .one-fourth | 95   .one-fourth | 
| 108   { | 96   { | 
| 109     width: 25%; | 97     width: 25%; | 
| 110   } | 98   } | 
| 111 | 99 | 
| 112   [dir="ltr"] .pull-one-fourth |  | 
| 113   { |  | 
| 114     right: 25%; |  | 
| 115   } |  | 
| 116 |  | 
| 117   [dir="rtl"] .pull-one-fourth |  | 
| 118   { |  | 
| 119     left: 25%; |  | 
| 120   } |  | 
| 121 |  | 
| 122   [dir="ltr"] .push-one-fourth |  | 
| 123   { |  | 
| 124     left: 25%; |  | 
| 125   } |  | 
| 126 |  | 
| 127   [dir="ltr"] .push-one-fourth |  | 
| 128   { |  | 
| 129     right: 25%; |  | 
| 130   } |  | 
| 131 |  | 
| 132   .one-third |  | 
| 133   { |  | 
| 134     width: 33.333333%; |  | 
| 135   } |  | 
| 136 |  | 
| 137   [dir="ltr"] .pull-one-third |  | 
| 138   { |  | 
| 139     right: 33.333333%; |  | 
| 140   } |  | 
| 141 |  | 
| 142   [dir="rtl"] .pull-one-third |  | 
| 143   { |  | 
| 144     left: 33.333333%; |  | 
| 145   } |  | 
| 146 |  | 
| 147   [dir="ltr"] .push-one-third |  | 
| 148   { |  | 
| 149     left: 33.333333%; |  | 
| 150   } |  | 
| 151 |  | 
| 152   [dir="rtl"] .push-one-third |  | 
| 153   { |  | 
| 154     right: 33.333333%; |  | 
| 155   } |  | 
| 156 |  | 
| 157   .two-thirds |  | 
| 158   { |  | 
| 159     width: 66.666667%; |  | 
| 160   } |  | 
| 161 |  | 
| 162   [dir="ltr"] .pull-one-third |  | 
| 163   { |  | 
| 164     right: 66.666667%; |  | 
| 165   } |  | 
| 166 |  | 
| 167   [dir="rtl"] .pull-one-third |  | 
| 168   { |  | 
| 169     left: 66.666667%; |  | 
| 170   } |  | 
| 171 |  | 
| 172   [dir="ltr"] .push-one-third |  | 
| 173   { |  | 
| 174     left: 66.666667%; |  | 
| 175   } |  | 
| 176 |  | 
| 177   [dir="rtl"] .push-one-third |  | 
| 178   { |  | 
| 179     right: 66.666667%; |  | 
| 180   } |  | 
| 181 |  | 
| 182   .three-fourths | 100   .three-fourths | 
| 183   { | 101   { | 
| 184     width: 75%; | 102     width: 75%; | 
| 185   } | 103   } | 
| 186 |  | 
| 187   [dir="ltr"] .pull-three-fourths |  | 
| 188   { |  | 
| 189     right: 75%; |  | 
| 190   } |  | 
| 191 |  | 
| 192   [dir="rtl"] .pull-three-fourths |  | 
| 193   { |  | 
| 194     left: 75%; |  | 
| 195   } |  | 
| 196 |  | 
| 197   [dir="ltr"] .push-three-fourths |  | 
| 198   { |  | 
| 199     left: 75%; |  | 
| 200   } |  | 
| 201 |  | 
| 202   [dir="rtl"] .push-three-fourths |  | 
| 203   { |  | 
| 204     right: 75%; |  | 
| 205   } |  | 
| 206 |  | 
| 207 } | 104 } | 
| LEFT | RIGHT | 
|---|