addons.scss
9 years ago
blank-slate.scss
8 years ago
buttons.scss
9 years ago
dashboard.scss
10 years ago
donors.scss
8 years ago
fonts.scss
9 years ago
forms.scss
8 years ago
give-admin.scss
8 years ago
grids.scss
8 years ago
importer.scss
8 years ago
logs.scss
10 years ago
payment-history.scss
8 years ago
reports.scss
8 years ago
settings.scss
8 years ago
shortcodes.scss
9 years ago
system-info.scss
8 years ago
updates.scss
8 years ago
util.scss
8 years ago
welcome.scss
9 years ago
grids.scss
45 lines
| 1 | $width: 98%; |
| 2 | $gutter: 2%; |
| 3 | $breakpoint-small: 33.75em; // 540px |
| 4 | $breakpoint-medium: 45em; // 720px |
| 5 | $breakpoint-large: 60em; // 960px |
| 6 | |
| 7 | .give-grid-row { |
| 8 | position: relative; |
| 9 | width: 100%; |
| 10 | |
| 11 | [class^="give-grid-col"]^="give-grid-col""] { |
| 12 | float: left; |
| 13 | margin: 0.5rem 1%; |
| 14 | min-height: 0.125rem; |
| 15 | } |
| 16 | |
| 17 | &::after { |
| 18 | content: ""; |
| 19 | display: table; |
| 20 | clear: both; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | |
| 25 | .give-grid-col-1 { width:($width / 12) - ($gutter * 11 / 12); } |
| 26 | .give-grid-col-2 { width: ($width / 6) - ($gutter * 10 / 12); } |
| 27 | .give-grid-col-3 { width: ($width / 4) - ($gutter * 9 / 12); } |
| 28 | .give-grid-col-4 { width: ($width / 3) - ($gutter * 8 / 12); } |
| 29 | .give-grid-col-5 { width: ($width / (12 / 5)) - ($gutter * 7 / 12); } |
| 30 | .give-grid-col-6 { width: ($width / 2) - ($gutter * 6 / 12); } |
| 31 | .give-grid-col-7 { width: ($width / (12 / 7)) - ($gutter * 5 / 12); } |
| 32 | .give-grid-col-8 { width: ($width / (12 / 8)) - ($gutter * 4 / 12); } |
| 33 | .give-grid-col-9 { width: ($width / (12 / 9)) - ($gutter * 3 / 12); } |
| 34 | .give-grid-col-10 { width: ($width / (12 / 10)) - ($gutter * 2 / 12); } |
| 35 | .give-grid-col-11 { width: ($width / (12 / 11)) - ($gutter * 1 / 12); } |
| 36 | .give-grid-col-12 { width: $width; } |
| 37 | |
| 38 | @media only screen and (max-width: $breakpoint-small) { |
| 39 | .give-grid-row { |
| 40 | [class^="give-grid-col"]^="give-grid-col""] { |
| 41 | width: $width; |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 |