|
| 1 | +/* Syntax Quick Reference |
| 2 | + -------------------------- |
| 3 | + column($ratios: 1, $offset: 0, $cycle: 0, $uncycle: 0, $gutter: $jeet-gutter) |
| 4 | + span($ratio: 1, $offset: 0) |
| 5 | + shift($ratios: 0, $col_or_span: column, $gutter: $jeet-gutter) |
| 6 | + unshift() |
| 7 | + edit() |
| 8 | + center($max_width: 1410px, $pad: 0) |
| 9 | + stack($pad: 0, $align: false) |
| 10 | + unstack() |
| 11 | + align($direction: both) |
| 12 | + cf() |
| 13 | +*/ |
| 14 | +/** |
| 15 | + * Grid settings. |
| 16 | + * All values are defaults and can therefore be easily overidden. |
| 17 | + */ |
| 18 | +/** |
| 19 | + * List functions courtesy of the wonderful folks at Team Sass. |
| 20 | + * Check out their awesome grid: Singularity. |
| 21 | + */ |
| 22 | +/** |
| 23 | + * Get percentage from a given ratio. |
| 24 | + * @param {number} [$ratio=1] - The column ratio of the element. |
| 25 | + * @returns {number} - The percentage value. |
| 26 | + */ |
| 27 | +/** |
| 28 | + * Work out the column widths based on the ratio and gutter sizes. |
| 29 | + * @param {number} [$ratios=1] - The column ratio of the element. |
| 30 | + * @param {number} [$gutter=$jeet-gutter] - The gutter for the column. |
| 31 | + * @returns {list} $width $gutter - A list containing the with and gutter for the element. |
| 32 | + */ |
| 33 | +/** |
| 34 | + * Get the set layout direction for the project. |
| 35 | + * @returns {string} $direction - The layout direction. |
| 36 | + */ |
| 37 | +/** |
| 38 | + * Replace a specified list value with a new value (uses built in set-nth() if available) |
| 39 | + * @param {list} $list - The list of values you want to alter. |
| 40 | + * @param {number} $index - The index of the list item you want to replace. |
| 41 | + * @param {*} $value - The value you want to replace $index with. |
| 42 | + * @returns {list} $list - The list with the value replaced or removed. |
| 43 | + * @warn if an invalid index is supplied. |
| 44 | + */ |
| 45 | +/** |
| 46 | + * Reverse a list (progressively enhanced for Sass 3.3) |
| 47 | + * @param {list} $list - The list of values you want to reverse. |
| 48 | + * @returns {list} $result - The reversed list. |
| 49 | + */ |
| 50 | +/** |
| 51 | + * Get the opposite direction to a given value. |
| 52 | + * @param {string} $dir - The direction you want the opposite of. |
| 53 | + * @returns {string} - The opposite direction to $dir. |
| 54 | + * @warn if an incorrect string is provided. |
| 55 | + */ |
| 56 | +/** |
| 57 | + * Style an element as a column with a gutter. |
| 58 | + * @param {number} [$ratios=1] - A width relative to its container as a fraction. |
| 59 | + * @param {number} [$offset=0] - A offset specified as a fraction (see $ratios). |
| 60 | + * @param {number} [$cycle=0] - Easily create an nth column grid where $cycle equals the number of columns. |
| 61 | + * @param {number} [$uncycle=0] - Undo a previous cycle value to allow for a new one. |
| 62 | + * @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width. |
| 63 | + */ |
| 64 | +/** |
| 65 | + * An alias for the column mixin. |
| 66 | + * @param [$args...] - All arguments get passed through to column(). |
| 67 | + */ |
| 68 | +/** |
| 69 | + * Get the width of a column and nothing else. |
| 70 | + * @param {number} [$ratios=1] - A width relative to its container as a fraction. |
| 71 | + * @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width. |
| 72 | + */ |
| 73 | +/** |
| 74 | + * Get the gutter size of a column and nothing else. |
| 75 | + * @param {number} [ratios=1] - A width relative to its container as a fraction. |
| 76 | + * @param {number} [gutter=jeet.gutter] - Specify the gutter width as a percentage of the containers width. |
| 77 | + */ |
| 78 | +/** |
| 79 | + * An alias for the column-width function. |
| 80 | + * @param [$args...] - All arguments get passed through to column(). |
| 81 | + */ |
| 82 | +/** |
| 83 | + * An alias for the column-gutter function. |
| 84 | + * @param [$args...] - All arguments get passed through to column(). |
| 85 | + */ |
| 86 | +/** |
| 87 | + * Style an element as a column without any gutters for a seamless row. |
| 88 | + * @param {number} [$ratios=1] - A width relative to its container as a fraction. |
| 89 | + * @param {number} [$offset=0] - A offset specified as a fraction (see $ratios). |
| 90 | + * @param {number} [cycle=0] - Easily create an nth column grid where cycle equals the number of columns. |
| 91 | + * @param {number} [uncycle=0] - Undo a previous cycle value to allow for a new one. |
| 92 | + */ |
| 93 | +/** |
| 94 | + * Reorder columns without altering the HTML. |
| 95 | + * @param {number} [$ratios=0] - Specify how far along you want the element to move. |
| 96 | + * @param {string} [$col-or-span=column] - Specify whether the element has a gutter or not. |
| 97 | + * @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width. |
| 98 | + */ |
| 99 | +/** |
| 100 | + * Reset an element that has had shift() applied to it. |
| 101 | + */ |
| 102 | +/** |
| 103 | + * View the grid and its layers for easy debugging. |
| 104 | + * @param {string} [$color=black] - The background tint applied. |
| 105 | + * @param {boolean} [$important=false] - Whether to apply the style as !important. |
| 106 | + */ |
| 107 | +/** |
| 108 | + * Alias for edit(). |
| 109 | + */ |
| 110 | +/** |
| 111 | + * Horizontally center an element. |
| 112 | + * @param {number} [$max-width=1410px] - The max width the element can be. |
| 113 | + * @param {number} [$pad=0] - Specify the element's left and right padding. |
| 114 | + */ |
| 115 | +/** |
| 116 | + * Uncenter an element. |
| 117 | + */ |
| 118 | +/** |
| 119 | + * Stack an element so that nothing is either side of it. |
| 120 | + * @param {number} [$pad=0] - Specify the element's left and right padding. |
| 121 | + * @param {boolean/string} [$align=false] - Specify the text align for the element. |
| 122 | + */ |
| 123 | +/** |
| 124 | + * Unstack an element. |
| 125 | + */ |
| 126 | +/** |
| 127 | + * Center an element on either or both axes. |
| 128 | + * @requires A parent container with relative positioning. |
| 129 | + * @param {string} [$direction=both] - Specify which axes to center the element on. |
| 130 | + */ |
| 131 | +/** |
| 132 | + * Apply a clearfix to an element. |
| 133 | + */ |
| 134 | +.project-feature-image, .natural-vines-cover, .natural-vines-bird { |
| 135 | + float: left; |
| 136 | + clear: none; |
| 137 | + width: 100%; |
| 138 | + margin-left: 0%; |
| 139 | + margin-right: 3%; |
| 140 | + background: url(/images/bendbroadband/bendbroadband-book-cover.png) no-repeat 0px 0px; |
| 141 | + background-position: bottom; |
| 142 | + background-size: 98%; |
| 143 | + height: 425px; } |
| 144 | + .project-feature-image:last-child, .natural-vines-cover:last-child, .natural-vines-bird:last-child { |
| 145 | + margin-right: 0%; } |
| 146 | + @media screen and (min-width: 480px) { |
| 147 | + .project-feature-image, .natural-vines-cover, .natural-vines-bird { |
| 148 | + background-position: 25%; |
| 149 | + background-size: auto; |
| 150 | + height: 700px; } } |
| 151 | + |
| 152 | +.tv-spot { |
| 153 | + float: left; |
| 154 | + clear: none; |
| 155 | + width: 100%; |
| 156 | + margin-left: 0%; |
| 157 | + margin-right: 3%; } |
| 158 | + .tv-spot:last-child { |
| 159 | + margin-right: 0%; } |
| 160 | + |
| 161 | +.natural-vines-cover { |
| 162 | + height: 250px; |
| 163 | + background: url(/images/bendbroadband/bendbroadband-book-cover.png) no-repeat 0px 0px; |
| 164 | + background-position: center; |
| 165 | + background-size: 50%; } |
| 166 | + @media screen and (min-width: 480px) { |
| 167 | + .natural-vines-cover { |
| 168 | + background-size: auto; |
| 169 | + height: 700px; } } |
| 170 | + |
| 171 | +.natural-vines-plant, .natural-vines-lake, .natural-vines-quote, .natural-vines-moon { |
| 172 | + float: left; |
| 173 | + clear: none; |
| 174 | + width: 100%; |
| 175 | + margin-left: 0%; |
| 176 | + margin-right: 3%; |
| 177 | + height: 205px; } |
| 178 | + .natural-vines-plant:last-child, .natural-vines-lake:last-child, .natural-vines-quote:last-child, .natural-vines-moon:last-child { |
| 179 | + margin-right: 0%; } |
| 180 | + @media screen and (min-width: 480px) { |
| 181 | + .natural-vines-plant, .natural-vines-lake, .natural-vines-quote, .natural-vines-moon { |
| 182 | + float: left; |
| 183 | + clear: none; |
| 184 | + width: 48.5%; |
| 185 | + margin-left: 0%; |
| 186 | + margin-right: 3%; |
| 187 | + height: 425px; } |
| 188 | + .natural-vines-plant:nth-of-type(2n), .natural-vines-lake:nth-of-type(2n), .natural-vines-quote:nth-of-type(2n), .natural-vines-moon:nth-of-type(2n) { |
| 189 | + margin-right: 0%; |
| 190 | + float: right; } |
| 191 | + .natural-vines-plant:nth-of-type(2n + 1), .natural-vines-lake:nth-of-type(2n + 1), .natural-vines-quote:nth-of-type(2n + 1), .natural-vines-moon:nth-of-type(2n + 1) { |
| 192 | + clear: both; } } |
| 193 | + |
| 194 | +.natural-vines-plant { |
| 195 | + background: url(/images/bendbroadband/bendbroadband-book-plant.png) no-repeat 0px 0px; |
| 196 | + background-position: center; |
| 197 | + background-size: 98%; } |
| 198 | + @media screen and (min-width: 480px) { |
| 199 | + .natural-vines-plant { |
| 200 | + background-size: auto; } } |
| 201 | + |
| 202 | +.natural-vines-lake { |
| 203 | + background: url(/images/bendbroadband/bendbroadband-book-graphic-lake.png) no-repeat 0px 0px; |
| 204 | + background-position: bottom; |
| 205 | + background-size: 98%; } |
| 206 | + @media screen and (min-width: 480px) { |
| 207 | + .natural-vines-lake { |
| 208 | + background-size: auto; } } |
| 209 | + |
| 210 | +.natural-vines-quote { |
| 211 | + background: url(/images/bendbroadband/bendbroadband-book-graphic-quote.png) no-repeat 0px 0px; |
| 212 | + background-position: top; |
| 213 | + background-size: 98%; } |
| 214 | + @media screen and (min-width: 480px) { |
| 215 | + .natural-vines-quote { |
| 216 | + background-size: auto; } } |
| 217 | + |
| 218 | +.natural-vines-moon { |
| 219 | + background: url(/images/bendbroadband/bendbroadband-book-moon.png) no-repeat 0px 0px; |
| 220 | + background-position: center; |
| 221 | + background-size: 98%; } |
| 222 | + @media screen and (min-width: 480px) { |
| 223 | + .natural-vines-moon { |
| 224 | + background-size: auto; } } |
| 225 | + |
| 226 | +.natural-vines-bird { |
| 227 | + height: 205px; |
| 228 | + background: url(/images/bendbroadband/bendbroadband-book-interior-bird.png) no-repeat 0px 0px; |
| 229 | + background-position: center; |
| 230 | + background-size: 98%; } |
| 231 | + @media screen and (min-width: 480px) { |
| 232 | + .natural-vines-bird { |
| 233 | + background-size: auto; |
| 234 | + height: 550px; |
| 235 | + margin-bottom: 1.35em; } } |
0 commit comments