├── README.md ├── assets ├── _scss │ ├── all.scss │ ├── components │ │ ├── _accordions.scss │ │ ├── _alerts.scss │ │ ├── _disclaimer.scss │ │ ├── _footer.scss │ │ ├── _forms.scss │ │ ├── _search.scss │ │ ├── _sidenav.scss │ │ └── _skipnav.scss │ ├── core │ │ ├── _base.scss │ │ ├── _defaults.scss │ │ ├── _grid-settings.scss │ │ ├── _grid.scss │ │ ├── _utilities.scss │ │ └── _variables.scss │ ├── elements │ │ ├── _buttons.scss │ │ ├── _figure.scss │ │ ├── _inputs.scss │ │ ├── _labels.scss │ │ ├── _list.scss │ │ ├── _table.scss │ │ └── _typography.scss │ └── lib │ │ ├── _normalize.scss │ │ ├── bourbon │ │ ├── _bourbon-deprecated-upcoming.scss │ │ ├── _bourbon.scss │ │ ├── addons │ │ │ ├── _border-color.scss │ │ │ ├── _border-radius.scss │ │ │ ├── _border-style.scss │ │ │ ├── _border-width.scss │ │ │ ├── _buttons.scss │ │ │ ├── _clearfix.scss │ │ │ ├── _ellipsis.scss │ │ │ ├── _font-stacks.scss │ │ │ ├── _hide-text.scss │ │ │ ├── _margin.scss │ │ │ ├── _padding.scss │ │ │ ├── _position.scss │ │ │ ├── _prefixer.scss │ │ │ ├── _retina-image.scss │ │ │ ├── _size.scss │ │ │ ├── _text-inputs.scss │ │ │ ├── _timing-functions.scss │ │ │ ├── _triangle.scss │ │ │ └── _word-wrap.scss │ │ ├── css3 │ │ │ ├── _animation.scss │ │ │ ├── _appearance.scss │ │ │ ├── _backface-visibility.scss │ │ │ ├── _background-image.scss │ │ │ ├── _background.scss │ │ │ ├── _border-image.scss │ │ │ ├── _calc.scss │ │ │ ├── _columns.scss │ │ │ ├── _filter.scss │ │ │ ├── _flex-box.scss │ │ │ ├── _font-face.scss │ │ │ ├── _font-feature-settings.scss │ │ │ ├── _hidpi-media-query.scss │ │ │ ├── _hyphens.scss │ │ │ ├── _image-rendering.scss │ │ │ ├── _keyframes.scss │ │ │ ├── _linear-gradient.scss │ │ │ ├── _perspective.scss │ │ │ ├── _placeholder.scss │ │ │ ├── _radial-gradient.scss │ │ │ ├── _selection.scss │ │ │ ├── _text-decoration.scss │ │ │ ├── _transform.scss │ │ │ ├── _transition.scss │ │ │ └── _user-select.scss │ │ ├── functions │ │ │ ├── _assign-inputs.scss │ │ │ ├── _contains-falsy.scss │ │ │ ├── _contains.scss │ │ │ ├── _is-length.scss │ │ │ ├── _is-light.scss │ │ │ ├── _is-number.scss │ │ │ ├── _is-size.scss │ │ │ ├── _modular-scale.scss │ │ │ ├── _px-to-em.scss │ │ │ ├── _px-to-rem.scss │ │ │ ├── _shade.scss │ │ │ ├── _strip-units.scss │ │ │ ├── _tint.scss │ │ │ ├── _transition-property-name.scss │ │ │ └── _unpack.scss │ │ ├── helpers │ │ │ ├── _convert-units.scss │ │ │ ├── _directional-values.scss │ │ │ ├── _font-source-declaration.scss │ │ │ ├── _gradient-positions-parser.scss │ │ │ ├── _linear-angle-parser.scss │ │ │ ├── _linear-gradient-parser.scss │ │ │ ├── _linear-positions-parser.scss │ │ │ ├── _linear-side-corner-parser.scss │ │ │ ├── _radial-arg-parser.scss │ │ │ ├── _radial-gradient-parser.scss │ │ │ ├── _radial-positions-parser.scss │ │ │ ├── _render-gradients.scss │ │ │ ├── _shape-size-stripper.scss │ │ │ └── _str-to-num.scss │ │ └── settings │ │ │ ├── _asset-pipeline.scss │ │ │ ├── _prefixer.scss │ │ │ └── _px-to-em.scss │ │ └── neat │ │ ├── _neat-helpers.scss │ │ ├── _neat.scss │ │ ├── functions │ │ ├── _new-breakpoint.scss │ │ └── _private.scss │ │ ├── grid │ │ ├── _box-sizing.scss │ │ ├── _direction-context.scss │ │ ├── _display-context.scss │ │ ├── _fill-parent.scss │ │ ├── _media.scss │ │ ├── _omega.scss │ │ ├── _outer-container.scss │ │ ├── _pad.scss │ │ ├── _private.scss │ │ ├── _row.scss │ │ ├── _shift.scss │ │ ├── _span-columns.scss │ │ ├── _to-deprecate.scss │ │ └── _visual-grid.scss │ │ └── settings │ │ ├── _disable-warnings.scss │ │ ├── _grid.scss │ │ └── _visual-grid.scss ├── css │ ├── google-fonts.css │ ├── main.css │ ├── main.scss │ └── normalize.min.css ├── fonts │ ├── merriweather-bold-webfont.eot │ ├── merriweather-bold-webfont.ttf │ ├── merriweather-bold-webfont.woff │ ├── merriweather-bold-webfont.woff2 │ ├── merriweather-italic-webfont.eot │ ├── merriweather-italic-webfont.ttf │ ├── merriweather-italic-webfont.woff │ ├── merriweather-italic-webfont.woff2 │ ├── merriweather-light-webfont.eot │ ├── merriweather-light-webfont.ttf │ ├── merriweather-light-webfont.woff │ ├── merriweather-light-webfont.woff2 │ ├── merriweather-regular-webfont.eot │ ├── merriweather-regular-webfont.ttf │ ├── merriweather-regular-webfont.woff │ ├── merriweather-regular-webfont.woff2 │ ├── sourcesanspro-bold-webfont.eot │ ├── sourcesanspro-bold-webfont.ttf │ ├── sourcesanspro-bold-webfont.woff │ ├── sourcesanspro-bold-webfont.woff2 │ ├── sourcesanspro-italic-webfont.eot │ ├── sourcesanspro-italic-webfont.ttf │ ├── sourcesanspro-italic-webfont.woff │ ├── sourcesanspro-italic-webfont.woff2 │ ├── sourcesanspro-light-webfont.eot │ ├── sourcesanspro-light-webfont.ttf │ ├── sourcesanspro-light-webfont.woff │ ├── sourcesanspro-light-webfont.woff2 │ ├── sourcesanspro-regular-webfont.eot │ ├── sourcesanspro-regular-webfont.ttf │ ├── sourcesanspro-regular-webfont.woff │ └── sourcesanspro-regular-webfont.woff2 ├── img │ ├── alerts │ │ ├── error.png │ │ ├── error.svg │ │ ├── info.png │ │ ├── info.svg │ │ ├── success.png │ │ ├── success.svg │ │ ├── warning.png │ │ └── warning.svg │ ├── arrow-down.png │ ├── arrow-down.svg │ ├── arrow-right.png │ ├── arrow-right.svg │ ├── correct8.png │ ├── correct8.svg │ ├── correct9.png │ ├── correct9.svg │ ├── favicons │ │ ├── favicon-114.png │ │ ├── favicon-144.png │ │ ├── favicon-16.png │ │ ├── favicon-192.png │ │ ├── favicon-57.png │ │ ├── favicon-72.png │ │ ├── favicon.ico │ │ └── favicon.png │ ├── logo-img.png │ ├── minus.png │ ├── minus.svg │ ├── plus.png │ ├── plus.svg │ ├── search.png │ ├── search.svg │ ├── social-icons │ │ ├── png │ │ │ ├── facebook25.png │ │ │ ├── rss25.png │ │ │ ├── twitter16.png │ │ │ └── youtube15.png │ │ └── svg │ │ │ ├── facebook25.svg │ │ │ ├── rss25.svg │ │ │ ├── twitter16.svg │ │ │ └── youtube15.svg │ └── us_flag_small.png └── js │ ├── components.js │ └── vendor │ ├── html5shiv.js │ ├── jquery-1.11.3.min.js │ ├── jquery-1.11.3.min.map │ ├── rem.min.js │ ├── respond.js │ └── selectivizr-min.js ├── functions.php ├── index.php └── style.css /README.md: -------------------------------------------------------------------------------- 1 | # U.S. Web Design Standards WordPress Theme 2 | 3 | This WordPress starter theme uses the [U.S. Web Design Standards] (v.0.8.2) created by [U.S. Digital Service] and [18F]. 4 | 5 | ##Development Roadmap 6 | 7 | The `master` branch of this repo contains the most basic integration of the U.S. Web Design Standards with a WordPress theme. _**Fork it, develop it, & share your code!**_ 8 | 9 | The `_s` branch integrates the standards into the popular [_s] (or "underscores") WordPress theme frameworks. 10 | 11 | Further branches will build towards a single robust WordPress starter theme that integrates the U.S. Web Design Standards with modern technologies and the best practices of the WordPress theme ecosystem. ([Sage] USWDS integration coming soon..) 12 | 13 | ## Contribute 14 | **Keep it open!** Contribute code and ideas. Fork this repo and integrate the Web Design Standards with your favorite starter theme. Forks that successfully integrate the Web Standards will be branched and active contributors will be made repo collaborators. _**May the best branch become the master!**_ 15 | 16 | More to come! 17 | 18 | -[@bbertucc] 19 | 20 | [U.S. Digital Service]:https://www.whitehouse.gov/digital/united-states-digital-service 21 | [18F]:https://18f.gsa.gov/ 22 | [U.S. Web Design Standards]:https://playbook.cio.gov/designstandards/ 23 | [Sage]:https://github.com/roots/sage 24 | [_s]:https://github.com/Automattic/_s 25 | [@bbertucc]:https://github.com/bbertucc 26 | -------------------------------------------------------------------------------- /assets/_scss/all.scss: -------------------------------------------------------------------------------- 1 | // Vendor -------------- // 2 | 3 | @import 'lib/bourbon/bourbon'; 4 | @import 'lib/neat/neat'; 5 | @import 'lib/normalize'; 6 | 7 | 8 | // Core -------------- // 9 | 10 | @import 'core/grid-settings'; 11 | @import 'core/defaults'; 12 | @import 'core/variables'; 13 | @import 'core/base'; 14 | @import 'core/grid'; 15 | @import 'core/utilities'; 16 | 17 | 18 | // Elements -------------- // 19 | // Styles basic html elements 20 | 21 | @import 'elements/typography'; 22 | @import 'elements/list'; 23 | @import 'elements/inputs'; 24 | @import 'elements/buttons'; 25 | @import 'elements/table'; 26 | @import 'elements/figure'; 27 | @import 'elements/labels'; 28 | 29 | 30 | // Components -------------- // 31 | 32 | @import 'components/skipnav'; 33 | @import 'components/disclaimer'; 34 | @import 'components/sidenav'; 35 | @import 'components/footer'; 36 | @import 'components/forms'; 37 | @import 'components/search'; 38 | @import 'components/alerts'; 39 | @import 'components/accordions'; 40 | -------------------------------------------------------------------------------- /assets/_scss/components/_accordions.scss: -------------------------------------------------------------------------------- 1 | // Variables 2 | 3 | $accordion-border: 3px solid $color-gray-lightest; 4 | 5 | // Accordion Styles 6 | 7 | .usa-accordion, 8 | .usa-accordion-bordered { 9 | 10 | + .usa-accordion, 11 | + .usa-accordion-bordered { 12 | margin-top: 1rem; 13 | } 14 | 15 | > ul { 16 | color: $color-base; 17 | margin: 0; 18 | padding: 0; 19 | width: 100%; 20 | 21 | > li { 22 | background-color: $color-gray-lightest; 23 | font-family: $font-sans; 24 | list-style: none; 25 | margin-bottom: 6px; 26 | width: 100%; 27 | } 28 | } 29 | 30 | button[aria-expanded=false] { 31 | background-image: url('../img/plus.png'); 32 | background-image: url('../img/plus.svg'); 33 | background-repeat: no-repeat; 34 | background-size: 1.3rem; 35 | } 36 | 37 | button { 38 | background-color: $color-gray-lightest; 39 | background-image: url('../img/minus.png'); 40 | background-image: url('../img/minus.svg'); 41 | background-position: right 3rem center; 42 | background-repeat: no-repeat; 43 | background-size: 13px; 44 | color: $color-base; 45 | cursor: pointer; 46 | display: inline-block; 47 | font-family: $font-sans; 48 | margin: 0; 49 | padding: { 50 | bottom: 1.5rem; 51 | left: 3rem; 52 | right: 5.5rem; 53 | top: 1.5rem; 54 | } 55 | width: 100%; 56 | 57 | &:focus { 58 | box-shadow: $focus-shadow; 59 | } 60 | 61 | &:hover { 62 | background-color: $color-gray-lighter; 63 | color: $color-base; 64 | } 65 | 66 | h1, h2, h3, h4, h5, h6 { 67 | margin: 0; 68 | } 69 | } 70 | } 71 | 72 | .usa-accordion-bordered { 73 | .usa-accordion-content { 74 | border: { 75 | bottom: $accordion-border; 76 | left: $accordion-border; 77 | right: $accordion-border; 78 | } 79 | } 80 | } 81 | 82 | .usa-accordion-content { 83 | display: block; 84 | background-color: white; 85 | overflow: auto; 86 | padding: 3rem; 87 | 88 | > *:first-child { 89 | margin-top: 0; 90 | } 91 | 92 | > *:last-child { 93 | margin-bottom: 0; 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /assets/_scss/components/_alerts.scss: -------------------------------------------------------------------------------- 1 | .usa-alert { 2 | @include media($medium-screen) { 3 | background-size: 5.2rem; 4 | } 5 | background-color: $color-gray-lightest; 6 | background-position: 1rem 2rem; 7 | background-repeat: no-repeat; 8 | background-size: 4rem; 9 | margin-top: 1.5em; 10 | padding: 1em; 11 | 12 | ul { 13 | margin: { 14 | bottom: 0; 15 | top: 1em; 16 | } 17 | } 18 | } 19 | 20 | .usa-alert-icon { 21 | display: table-cell; 22 | padding-right: 1rem; 23 | } 24 | 25 | .usa-alert-body { 26 | @include media($medium-screen) { 27 | padding-left: 5rem; 28 | } 29 | display: table-cell; 30 | padding-left: 3.5rem; 31 | vertical-align: top; 32 | } 33 | 34 | .usa-alert-heading { 35 | @include media($medium-screen) { 36 | margin-top: .3rem; 37 | } 38 | margin: { 39 | bottom: .3rem; 40 | top: 0; 41 | } 42 | } 43 | 44 | .usa-alert-text { 45 | font-family: $font-sans; 46 | margin: { 47 | bottom: 0; 48 | top: 0; 49 | } 50 | } 51 | 52 | .usa-alert-success { 53 | background-color: $color-green-lightest; 54 | background-image: url('../img/alerts/success.png'); 55 | background-image: url('../img/alerts/success.svg'); 56 | } 57 | 58 | .usa-alert-warning { 59 | background-color: $color-gold-lightest; 60 | background-image: url('../img/alerts/warning.png'); 61 | background-image: url('../img/alerts/warning.svg'); 62 | } 63 | 64 | .usa-alert-error { 65 | background-color: $color-secondary-lightest; 66 | background-image: url('../img/alerts/error.png'); 67 | background-image: url('../img/alerts/error.svg'); 68 | } 69 | 70 | .usa-alert-info { 71 | background-color: $color-primary-alt-lightest; 72 | background-image: url('../img/alerts/info.png'); 73 | background-image: url('../img/alerts/info.svg'); 74 | } 75 | 76 | .usa-alert-no_icon { 77 | background-image: none; 78 | } 79 | -------------------------------------------------------------------------------- /assets/_scss/components/_disclaimer.scss: -------------------------------------------------------------------------------- 1 | .usa-disclaimer { 2 | @include media($small-screen) { 3 | font-size: $h5-font-size; 4 | } 5 | background-color: $color-gray-lightest; 6 | font-size: $h6-font-size; 7 | padding: { 8 | bottom: .5rem; 9 | top: .5rem; 10 | } 11 | } 12 | 13 | // This hides the stage note (i.e. alpha, beta, etc) of the disclaimer for 14 | // anything smaller than large screen sizes 15 | .usa-disclaimer-stage { 16 | @include media($large-screen) { 17 | display: block; 18 | } 19 | display: none; 20 | float: right; 21 | } 22 | 23 | .usa-flag_icon { 24 | margin-right: .2rem; 25 | } 26 | -------------------------------------------------------------------------------- /assets/_scss/components/_footer.scss: -------------------------------------------------------------------------------- 1 | .usa-footer { 2 | .usa-unstyled-list { 3 | display: block; 4 | } 5 | 6 | .usa-footer-primary-link { 7 | @include media($medium-screen) { 8 | border-top: none; 9 | } 10 | color: $color-base; 11 | display: block; 12 | font-weight: $font-bold; 13 | margin-top: 0; 14 | padding: { 15 | bottom: 2rem; 16 | top: 2rem; 17 | } 18 | } 19 | 20 | a { 21 | font-weight: normal; 22 | } 23 | } 24 | 25 | .usa-footer-return-to-top { 26 | padding: { 27 | bottom: 2rem; 28 | top: 2rem; 29 | } 30 | } 31 | 32 | .usa-footer-primary-section { 33 | background-color: $color-gray-lightest; 34 | 35 | .usa-footer-primary-content { 36 | padding: { 37 | left: 2.5rem; 38 | right: 2.5rem; 39 | } 40 | 41 | li { 42 | @include media($medium-screen) { 43 | margin-left: 0; 44 | } 45 | margin-left: 1rem; 46 | } 47 | 48 | @include media($medium-screen) { 49 | padding: { 50 | left: 0; 51 | right: 0; 52 | } 53 | } 54 | } 55 | 56 | .usa-grid-full { 57 | @include media($medium-screen) { 58 | padding: { 59 | left: 2.5rem; 60 | right: 2.5rem; 61 | } 62 | } 63 | } 64 | } 65 | 66 | .width-one-sixth { 67 | @include media($medium) { 68 | @include span-columns(2); 69 | } 70 | } 71 | 72 | .usa-footer-medium { 73 | .usa-footer-primary-section { 74 | padding: 0; 75 | 76 | @include media($medium-screen) { 77 | padding: { 78 | top: 1rem; 79 | bottom: 1rem; 80 | } 81 | } 82 | } 83 | 84 | .usa-footer-nav ul { 85 | @include media($medium-screen) { 86 | align-items: center; 87 | display: flex; 88 | } 89 | } 90 | } 91 | 92 | .usa-footer-slim { 93 | 94 | .usa-footer-nav a { 95 | display: block; 96 | } 97 | 98 | .usa-footer-primary-section { 99 | padding-bottom: 2rem; 100 | 101 | @include media($medium-screen) { 102 | padding: { 103 | bottom: 1rem; 104 | top: 1rem; 105 | } 106 | 107 | .usa-grid-full { 108 | align-items: center; 109 | display: flex; 110 | } 111 | } 112 | } 113 | } 114 | 115 | ul.usa-footer-primary-content, 116 | li.usa-footer-primary-content, 117 | li.usa-footer-primary-content { 118 | border-top: 1px solid $color-base; 119 | 120 | &:last-child { 121 | border-bottom: 1px solid $color-base; 122 | @include media($medium-screen) { 123 | border-bottom: none; 124 | } 125 | } 126 | 127 | @include media($medium-screen) { 128 | border: none; 129 | } 130 | } 131 | 132 | .usa-sign_up-block { 133 | padding: { 134 | bottom: 2rem; 135 | left: 2.5rem; 136 | right: 2.5rem; 137 | } 138 | 139 | label:first-of-type { 140 | margin-top: 0; 141 | } 142 | 143 | button { 144 | float: none; 145 | margin: { 146 | right: 0; 147 | top: 1.5rem; 148 | } 149 | } 150 | 151 | input { 152 | width: 100%; 153 | } 154 | 155 | @include media($medium-screen) { 156 | float: right; 157 | padding: 0; 158 | } 159 | } 160 | 161 | .usa-footer-secondary_section { 162 | background-color: $color-gray-lighter; 163 | padding: { 164 | top: 3rem; 165 | bottom: 3rem; 166 | } 167 | 168 | a { 169 | color: $color-base; 170 | } 171 | } 172 | 173 | .usa-footer-big-secondary-section { 174 | @include media($medium-screen) { 175 | padding-top: 5rem; 176 | } 177 | } 178 | 179 | .usa-footer-contact-links { 180 | @include media($medium-screen) { 181 | text-align: right; 182 | } 183 | } 184 | 185 | .usa-footer-big { 186 | .usa-footer-primary-section { 187 | @include media($medium-screen) { 188 | padding: { 189 | top: 3rem; 190 | bottom: 4rem; 191 | } 192 | } 193 | } 194 | 195 | ul { 196 | padding-bottom: 2.5rem; 197 | 198 | &:last-child { 199 | border-bottom: 1px solid $color-base; 200 | 201 | @include media($medium-screen) { 202 | border-bottom: none; 203 | } 204 | } 205 | 206 | li { 207 | line-height: 2em; 208 | } 209 | 210 | @include media($medium-screen) { 211 | padding-bottom: 0; 212 | } 213 | 214 | .usa-footer-primary-link { 215 | background-image: url('../img/arrow-down.png'); 216 | background-image: url('../img/arrow-down.svg'); 217 | background-position: 1.5rem center; 218 | background-repeat: no-repeat; 219 | background-size: 1.3rem; 220 | padding-left: 3.5rem; 221 | 222 | @include media($medium-screen) { 223 | background: none; 224 | padding-bottom: 0; 225 | padding-left: 0; 226 | } 227 | } 228 | 229 | &.hidden { 230 | padding-bottom: 0; 231 | 232 | .usa-footer-primary-link { 233 | background-image: url('../img/arrow-right.png'); 234 | background-image: url('../img/arrow-right.svg'); 235 | cursor: pointer; 236 | margin: 0; 237 | 238 | @include media($medium-screen) { 239 | background: none; 240 | padding-left: 0; 241 | } 242 | } 243 | 244 | li { display: none; } 245 | } 246 | } 247 | } 248 | 249 | .usa-footer-topic { 250 | margin: 0; 251 | padding: 2rem 0; 252 | } 253 | 254 | .usa-sign_up-header { 255 | @include media($medium-screen) { 256 | margin: 0; 257 | padding: 2rem 0; 258 | } 259 | } 260 | 261 | .usa-footer-logo-img { 262 | max-width: 14rem; 263 | } 264 | 265 | .usa-footer-slim-logo-img { 266 | float: left; 267 | max-width: 10rem; 268 | } 269 | 270 | .usa-footer-logo-heading { 271 | margin-top: 2rem; 272 | } 273 | 274 | .usa-footer-contact-heading { 275 | margin-top: 0; 276 | 277 | @include media($medium-screen) { 278 | margin-top: 1rem; 279 | } 280 | } 281 | 282 | .usa-footer-slim-logo-heading { 283 | display: block; 284 | padding-top: 1rem; 285 | 286 | @include media($medium-screen) { 287 | display: inline-block; 288 | padding: { 289 | left: 1em; 290 | } 291 | } 292 | } 293 | -------------------------------------------------------------------------------- /assets/_scss/components/_forms.scss: -------------------------------------------------------------------------------- 1 | $usa-form-width: 32rem; 2 | 3 | form { 4 | @include media($medium-screen) { 5 | max-width: $usa-form-width; 6 | } 7 | 8 | a { 9 | border-bottom: 0; 10 | } 11 | 12 | button[type="submit"], 13 | input[type="submit"] { 14 | @include media($medium-screen) { 15 | padding: { 16 | left: 2.7em; 17 | right: 2.7em; 18 | } 19 | width: auto; 20 | } 21 | display: block; 22 | margin-top: 2.5rem; 23 | margin-bottom: 1.5em; 24 | } 25 | 26 | input[name="password"] { 27 | margin-bottom: 1.1rem; 28 | } 29 | } 30 | 31 | .usa-form-note { 32 | float: right; 33 | font-family: $font-sans; 34 | font-size: $h5-font-size; 35 | margin: 0; 36 | margin-bottom: 1.5rem; 37 | 38 | & + * { 39 | clear: both; 40 | } 41 | } 42 | 43 | fieldset { 44 | border: none; 45 | margin: 0; 46 | padding: 0; 47 | } 48 | 49 | .usa-form-large { 50 | @include media($medium-screen) { 51 | max-width: 46rem; 52 | } 53 | } 54 | 55 | input.usa-input-tiny { 56 | @include media($medium-screen) { 57 | max-width: 6rem; 58 | } 59 | } 60 | 61 | input.usa-input-medium { 62 | @include media($medium-screen) { 63 | max-width: 12rem; 64 | } 65 | } 66 | 67 | .usa-input-grid { 68 | @include media($medium-screen) { 69 | padding-right: 5%; 70 | } 71 | } 72 | 73 | .usa-input-grid:last-of-type { 74 | @include media($medium-screen) { 75 | padding-right: 0; 76 | } 77 | } 78 | 79 | .usa-input-grid-small { 80 | @include media($medium-screen) { 81 | float: left; 82 | width: 35%; 83 | } 84 | 85 | input { 86 | margin-bottom: 3rem; 87 | } 88 | 89 | select { 90 | margin-bottom: 3rem; 91 | } 92 | } 93 | 94 | .usa-input-grid-medium { 95 | @include media($medium-screen) { 96 | float: left; 97 | width: 65%; 98 | } 99 | 100 | input { 101 | margin-bottom: 3rem; 102 | } 103 | 104 | select { 105 | margin-bottom: 3rem; 106 | } 107 | } 108 | 109 | .usa-input-grid-large { 110 | @include media($medium-screen) { 111 | float: left; 112 | width: 100%; 113 | } 114 | 115 | input { 116 | margin-bottom: 3rem; 117 | } 118 | 119 | select { 120 | margin-bottom: 3rem; 121 | } 122 | } 123 | 124 | .usa-form-width { 125 | max-width: $usa-form-width; 126 | } 127 | 128 | .usa-additional_text { 129 | float: right; 130 | font-style: italic; 131 | font-weight: normal; 132 | } 133 | 134 | .usa-input-buttons-inline { 135 | button, 136 | button[type="submit"], 137 | input[type="submit"], 138 | & > * { 139 | display: inline; 140 | margin-right: 1.5em; 141 | } 142 | } 143 | 144 | // Reset password checklist 145 | 146 | .usa-checklist { 147 | list-style: none; 148 | margin-left: 0; 149 | padding-left: 0; 150 | 151 | li { 152 | display: inline-block; 153 | list-style: none; 154 | margin: { 155 | bottom: 0em; 156 | top: 0em; 157 | } 158 | padding-left: 3em; 159 | text-indent: -2em; 160 | 161 | &:before { 162 | content: ' '; 163 | display: inline-block; 164 | height: .8em; 165 | margin-right: .2em; 166 | width: 1.8em; 167 | } 168 | } 169 | } 170 | 171 | .usa-checklist-checked { 172 | &:before { 173 | background-image: url('../img/correct9.png'); 174 | background-image: url('../img/correct9.svg'); 175 | background-position: 100%; 176 | background-repeat: no-repeat; 177 | background-size: 100%; 178 | } 179 | } 180 | -------------------------------------------------------------------------------- /assets/_scss/components/_search.scss: -------------------------------------------------------------------------------- 1 | $usa-btn-small-width: 4.5rem; 2 | $usa-btn-medium-width: 8.5rem; 3 | $usa-btn-big-width: 11.6rem; 4 | 5 | @mixin search-icon { 6 | background-image: url('../img/search.png'); 7 | background-image: url('../img/search.svg'); 8 | background-position: 50%; 9 | background-repeat: no-repeat; 10 | } 11 | 12 | .usa-search { 13 | @include clearfix; 14 | max-width: none; 15 | position: relative; 16 | 17 | [type="search"], 18 | .usa-search-input { 19 | -webkit-appearance: none; 20 | border: { 21 | bottom-right-radius: 0; 22 | right: none; 23 | top-right-radius: 0; 24 | } 25 | float: left; 26 | height: 3.3rem; 27 | margin: 0; 28 | padding: { 29 | bottom: 0; 30 | top: 0; 31 | } 32 | width: calc(100% - #{$usa-btn-small-width}); 33 | 34 | @include media($small-screen) { 35 | width: calc(100% - #{$usa-btn-medium-width}); 36 | } 37 | } 38 | 39 | [type="submit"], 40 | .usa-search-submit { 41 | @include search-icon; 42 | border: { 43 | bottom-left-radius: 0; 44 | top-left-radius: 0; 45 | } 46 | height: 3.3rem; 47 | margin: 0; 48 | padding: 0; 49 | width: $usa-btn-small-width; 50 | 51 | @include media($small-screen) { 52 | background-image: none; 53 | width: $usa-btn-medium-width; 54 | } 55 | } 56 | 57 | .usa-search-submit-text { 58 | display: none; 59 | 60 | @include media($small-screen) { 61 | display: block; 62 | } 63 | } 64 | 65 | &.usa-search-big { 66 | @include media($small-screen) { 67 | $height: 4.4rem; 68 | $width: $usa-btn-big-width; 69 | 70 | [type="search"], 71 | .usa-search-input { 72 | height: $height; 73 | width: calc(100% - #{$width}); 74 | } 75 | 76 | [type="submit"], 77 | .usa-search-submit { 78 | height: $height; 79 | font-size: $h3-font-size; 80 | width: $width; 81 | } 82 | } 83 | } 84 | 85 | &.usa-search-small { 86 | @include media($small-screen) { 87 | $width: $usa-btn-small-width; 88 | 89 | [type="search"], 90 | .usa-search-input { 91 | width: calc(100% - #{$width}); 92 | } 93 | 94 | [type="submit"], 95 | .usa-search-submit { 96 | @include search-icon; 97 | width: $width; 98 | } 99 | } 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /assets/_scss/components/_sidenav.scss: -------------------------------------------------------------------------------- 1 | .usa-sidenav-list { 2 | @include unstyled-list(); 3 | 4 | li { 5 | border-top: 1px solid $color-gray; 6 | font-size: $h4-font-size; 7 | 8 | &:first-child { 9 | border-top: none; 10 | } 11 | } 12 | 13 | a { 14 | border: none; 15 | color: $color-base; 16 | display: block; 17 | font-family: $font-sans; 18 | line-height: 1; 19 | padding: { 20 | bottom: 1rem; 21 | left: 1.8rem; 22 | right: 1rem; 23 | top: 1rem; 24 | } 25 | 26 | &:hover { 27 | background-color: $color-gray-lightest; 28 | color: $color-primary; 29 | text-decoration: none; 30 | } 31 | 32 | &:focus { 33 | position: relative; 34 | z-index: 1; 35 | } 36 | 37 | &.usa-current { 38 | color: $color-primary; 39 | font-weight: $font-bold; 40 | } 41 | 42 | &.usa-current { 43 | border-left: 4px solid $color-primary; 44 | padding-left: 1.4rem; 45 | } 46 | } 47 | } 48 | 49 | .usa-sidenav-sub_list { 50 | margin: 0; 51 | width: 100%; 52 | 53 | li { 54 | border: none; 55 | font-size: $h5-font-size; 56 | } 57 | 58 | a { 59 | padding-left: 2.8rem; 60 | line-height: $heading-line-height; 61 | } 62 | 63 | a:hover, 64 | a.usa-current { 65 | border: none; 66 | padding-left: 2.8rem; 67 | } 68 | 69 | .usa-sidenav-sub_list { 70 | a { 71 | padding-left: 3.8rem; 72 | } 73 | 74 | a:hover { 75 | padding-left: 3.8rem; 76 | } 77 | } 78 | } -------------------------------------------------------------------------------- /assets/_scss/components/_skipnav.scss: -------------------------------------------------------------------------------- 1 | .skipnav { 2 | @include transition(all .2s ease-in-out); 3 | background: transparent; 4 | color: $color-base; 5 | left: 0; 6 | padding: { 7 | bottom: 1rem; 8 | left: 1.5rem; 9 | right: 1.5rem; 10 | top: 1rem; 11 | } 12 | position: absolute; 13 | top: -4.2rem; 14 | z-index: 100; 15 | 16 | &:focus { 17 | @include transition(all .2s ease-in-out); 18 | background: $color-white; 19 | left: 0; 20 | outline: 0; 21 | position: absolute; 22 | top: 0; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /assets/_scss/core/_base.scss: -------------------------------------------------------------------------------- 1 | /* apply a natural box layout model to all elements, but allowing components to change */ 2 | 3 | html { 4 | box-sizing: border-box; 5 | } 6 | 7 | *, *:before, *:after { 8 | box-sizing: inherit; 9 | } 10 | 11 | body { 12 | background-color: #ffffff; 13 | } 14 | 15 | .lt-ie9 { 16 | // Hack for clearfixes 17 | * { 18 | filter: none !important; 19 | } 20 | } 21 | 22 | [aria-hidden=true] { 23 | display: none !important; 24 | } 25 | -------------------------------------------------------------------------------- /assets/_scss/core/_defaults.scss: -------------------------------------------------------------------------------- 1 | // Starter Kit Defaults 2 | // Do not modify. 3 | // These variables can be modified in _variables.scss 4 | 5 | // Typography 6 | $em-base: 10px; // default is already defined in bourbon 7 | $base-font-size: rem(16px) !default; 8 | $small-font-size: rem(14px) !default; 9 | $lead-font-size: rem(22px) !default; 10 | $title-font-size: rem(52px) !default; 11 | $h1-font-size: rem(40px) !default; 12 | $h2-font-size: rem(30px) !default; 13 | $h3-font-size: rem(20px) !default; 14 | $h4-font-size: rem(17px) !default; 15 | $h5-font-size: rem(15px) !default; 16 | $h6-font-size: rem(13px) !default; 17 | $base-line-height: 1.5 !default; 18 | $heading-line-height: 1.3 !default; 19 | $lead-line-height: 1.7 !default; 20 | 21 | $font-sans: 'Source Sans Pro', 'Helvetica', 'Arial', sans-serif !default; 22 | $font-serif: 'Merriweather', 'Georgia', 'Times New Roman', serif; 23 | 24 | $font-normal: 400 !default; 25 | $font-bold: 700 !default; 26 | 27 | 28 | // Color 29 | $color-primary: #0071bc !default; 30 | $color-primary-darker: #205493 !default; 31 | $color-primary-darkest: #112e51 !default; 32 | 33 | $color-primary-alt: #02bfe7 !default; 34 | $color-primary-alt-darkest: #046b99 !default; 35 | $color-primary-alt-dark: #00a6d2 !default; 36 | $color-primary-alt-light: #9bdaf1 !default; // lighten($color-primary-alt, 60%) 37 | $color-primary-alt-lightest: #e1f3f8 !default; // lighten($color-primary-alt, 90%) 38 | 39 | $color-secondary: #e31c3d !default; 40 | $color-secondary-darkest: #981b1e !default; 41 | $color-secondary-dark: #cd2026 !default; 42 | $color-secondary-light: #e59393 !default; // lighten($color-secondary, 60%) 43 | $color-secondary-lightest: #f9dede !default; // lighten($color-secondary, 90%) 44 | 45 | $color-white: #ffffff !default; 46 | $color-base: #212121 !default; 47 | 48 | $color-gray-dark: #323a45 !default; 49 | $color-gray: #205493 !default; // lighten($color-gray-dark, 20%) 50 | $color-gray-light: #aeb0b5 !default; // lighten($color-gray-dark, 60%) 51 | $color-gray-lighter: #d6d7d9 !default; // lighten($color-gray-dark, 80%) 52 | $color-gray-lightest: #f1f1f1 !default; // lighten($color-gray-dark, 91%) 53 | 54 | $color-gray-warm-dark: #494440 !default; 55 | $color-gray-warm-light: #e4e2e0 !default; // lighten($color-gray-warm-dark, 90%) 56 | $color-gray-cool-light: #dce4ef !default; // lighten($color-primary, 90%) 57 | 58 | $color-gold: #fdb81e !default; 59 | $color-gold-light: #f9c642 !default; // lighten($color-gold, 20%) 60 | $color-gold-lighter: #fad980 !default; // lighten($color-gold, 60%) 61 | $color-gold-lightest: #fff1d2 !default; // lighten($color-gold, 83%) 62 | 63 | $color-green: #2e8540 !default; 64 | $color-green-light: #4aa564 !default; // lighten($color-green, 20%) 65 | $color-green-lighter: #94bfa2 !default; // lighten($color-green, 60%) 66 | $color-green-lightest: #e7f4e4 !default; // lighten($color-green, 60%) 67 | 68 | $color-cool-blue: #205493 !default; 69 | $color-cool-blue-light: #4773aa !default; // lighten($color-cool-blue, 20%) 70 | $color-cool-blue-lighter: #8ba6ca !default; // lighten($color-cool-blue, 60%) 71 | $color-cool-blue-lightest: #dce4ef !default; // lighten($color-cool-blue, 90%) 72 | 73 | $color-focus: #3e94cf !default; 74 | $color-visited: #4c2c92 !default; 75 | 76 | 77 | // Mobile First Breakpoints 78 | $small-screen: 481px !default; 79 | $medium-screen: 600px !default; 80 | $large-screen: 1201px !default; 81 | 82 | 83 | // Magic Numbers 84 | $text-max-width: 53rem !default; 85 | $site-max-width: 1040px !default; 86 | $site-margins: 3rem !default; 87 | $article-max-width: 600px !default; 88 | $input-max-width: 46rem !default; 89 | $border-radius: rem(3px) !default; 90 | $box-shadow: 0 0 2px rgba(#000, .3) !default; 91 | $focus-shadow: 0 0 3px $color-focus, 0 0 7px $color-focus; 92 | $grid-margins: 3rem !default; 93 | -------------------------------------------------------------------------------- /assets/_scss/core/_grid-settings.scss: -------------------------------------------------------------------------------- 1 | // Add custom grid settings here (i.e. gutters, columns, etc) 2 | 3 | // Mobile First Breakpoints 4 | $small-screen: 481px; 5 | $medium-screen: 600px; 6 | $large-screen: 1201px; 7 | 8 | $large: new-breakpoint(min-width $large-screen 12); 9 | $medium: new-breakpoint(min-width $medium-screen 6); 10 | $small: new-breakpoint(min-width $small-screen 1); 11 | -------------------------------------------------------------------------------- /assets/_scss/core/_grid.scss: -------------------------------------------------------------------------------- 1 | .usa-grid, 2 | .usa-grid-full { 3 | @include outer-container(); 4 | max-width: $site-max-width; 5 | 6 | @include media($medium) { 7 | .usa-width-one-whole { 8 | @include span-columns(6); 9 | } 10 | .usa-width-one-half { 11 | @include span-columns(3); 12 | } 13 | .usa-width-one-third { 14 | @include span-columns(2); 15 | } 16 | .usa-width-two-thirds { 17 | @include span-columns(4); 18 | } 19 | .usa-width-one-fourth { 20 | @include span-columns(3); 21 | 22 | &:nth-child(2n) { 23 | margin-right: 0; 24 | } 25 | } 26 | .usa-width-three-fourths { 27 | @include span-columns(6); 28 | } 29 | .usa-width-one-sixth { 30 | @include span-columns(2); 31 | 32 | &:nth-child(3n) { 33 | margin-right: 0; 34 | } 35 | } 36 | .usa-width-five-sixths { 37 | @include span-columns(5); 38 | } 39 | .usa-width-one-twelfth { 40 | @include span-columns(2); 41 | 42 | &:nth-child(3n) { 43 | margin-right: 0; 44 | } 45 | } 46 | } 47 | 48 | @include media($large) { 49 | .usa-width-one-whole { 50 | @include span-columns(12); 51 | } 52 | .usa-width-one-half { 53 | @include span-columns(6); 54 | } 55 | .usa-width-one-third { 56 | @include span-columns(4); 57 | } 58 | .usa-width-two-thirds { 59 | @include span-columns(8); 60 | } 61 | .usa-width-one-fourth { 62 | @include span-columns(3); 63 | 64 | &:nth-child(2n) { 65 | @include span-columns(3); 66 | } 67 | 68 | &:nth-child(4n) { 69 | margin-right: 0; 70 | } 71 | } 72 | .usa-width-three-fourths { 73 | @include span-columns(9); 74 | } 75 | .usa-width-one-sixth { 76 | @include span-columns(2); 77 | 78 | &:nth-child(3n) { 79 | @include span-columns(2); 80 | } 81 | 82 | &:nth-child(6n) { 83 | margin-right: 0; 84 | } 85 | } 86 | .usa-width-five-sixths { 87 | @include span-columns(10); 88 | } 89 | .usa-width-one-twelfth { 90 | @include span-columns(1); 91 | 92 | &:nth-child(3n) { 93 | @include span-columns(1); 94 | } 95 | 96 | &:nth-child(12n) { 97 | margin-right: 0; 98 | } 99 | } 100 | } 101 | 102 | // Specificies end of a row. 103 | // Required if grid-box contains multiple rows. 104 | // Required if browser does not support :last-child 105 | .usa-end-row { 106 | @include omega(); 107 | } 108 | } 109 | 110 | .usa-grid { 111 | padding: 0 $grid-margins; 112 | } 113 | 114 | .usa-grid-full { 115 | padding: 0; 116 | } 117 | -------------------------------------------------------------------------------- /assets/_scss/core/_utilities.scss: -------------------------------------------------------------------------------- 1 | // Mobile-first media query helper 2 | @mixin media($bp) { 3 | @media screen and (min-width: #{$bp}) { 4 | @content; 5 | } 6 | } 7 | 8 | // Clearfix helper 9 | @mixin clearfix() { 10 | &:after { 11 | content: "."; 12 | display: block; 13 | height: 0; 14 | clear: both; 15 | visibility: hidden; 16 | } 17 | } 18 | 19 | // Screen reader only helper 20 | .usa-sr-only { 21 | position: absolute; 22 | left:-999em; 23 | } 24 | 25 | @mixin sr-only() { 26 | position: absolute; 27 | left:-999em; 28 | } 29 | 30 | // Unstyled list helper 31 | 32 | @mixin unstyled-list() { 33 | display: block; 34 | margin: 0; 35 | padding: 0; 36 | list-style-type: none; 37 | 38 | li { 39 | display: list-item; 40 | margin: 0; 41 | 42 | &:before { 43 | display: none; 44 | } 45 | 46 | &:after { 47 | display: none; 48 | } 49 | } 50 | } 51 | 52 | // Content size helpers 53 | @mixin allow-layout-classes { 54 | 55 | margin: { 56 | left: auto; 57 | right: auto; 58 | } 59 | 60 | &.width-one-half { 61 | @include media($medium-screen) { 62 | width: 50%; 63 | } 64 | } 65 | 66 | &.width-one-third { 67 | @include media($medium-screen) { 68 | width: 33%; 69 | } 70 | } 71 | 72 | &.width-two-thirds { 73 | @include media($medium-screen) { 74 | width: 67%; 75 | } 76 | } 77 | 78 | &.width-one-fourth { 79 | @include media($medium-screen) { 80 | width: 25%; 81 | } 82 | } 83 | 84 | &.width-three-fourths { 85 | @include media($medium-screen) { 86 | width: 75%; 87 | } 88 | } 89 | 90 | &.align-left { 91 | @include media($medium-screen) { 92 | float: left; 93 | margin-top: .5em; 94 | margin-right: 2em; 95 | } 96 | } 97 | 98 | &.align-right { 99 | @include media($medium-screen) { 100 | float: right; 101 | margin-top: .5em; 102 | margin-left: 2em; 103 | } 104 | } 105 | } -------------------------------------------------------------------------------- /assets/_scss/core/_variables.scss: -------------------------------------------------------------------------------- 1 | // Typography 2 | $em-base: 10px; 3 | $base-font-size: rem(17px); 4 | $small-font-size: rem(14px); 5 | $lead-font-size: rem(20px); 6 | $title-font-size: rem(52px); 7 | $h1-font-size: rem(40px); 8 | $h2-font-size: rem(30px); 9 | $h3-font-size: rem(20px); 10 | $h4-font-size: rem(17px); 11 | $h5-font-size: rem(15px); 12 | $h6-font-size: rem(13px); 13 | $base-line-height: 1.5; 14 | $heading-line-height: 1.3; 15 | $lead-line-height: 1.7; 16 | 17 | $font-sans: 'Source Sans Pro', 'Helvetica', 'Arial', sans-serif; 18 | $font-serif: 'Merriweather', 'Georgia', 'Times New Roman', serif; 19 | 20 | $font-normal: 400; 21 | $font-bold: 700; 22 | 23 | 24 | // Color 25 | $color-primary: #0071bc; 26 | $color-primary-darker: #205493; 27 | $color-primary-darkest: #112e51; 28 | 29 | $color-primary-alt: #02bfe7; 30 | $color-primary-alt-dark: #00a6d2; 31 | $color-primary-alt-darkest: #046b99; 32 | $color-primary-alt-light: #9bdaf1; // lighten($color-primary-alt, 60%) 33 | $color-primary-alt-lightest: #e1f3f8; // lighten($color-primary-alt, 90%) 34 | 35 | $color-secondary: #e31c3d; 36 | $color-secondary-dark: #cd2026; 37 | $color-secondary-darkest: #981b1e; 38 | $color-secondary-light: #e59393; // lighten($color-secondary, 60%) 39 | $color-secondary-lightest: #f9dede; // lighten($color-secondary, 90%) 40 | 41 | $color-white: #ffffff; 42 | $color-base: #212121; 43 | 44 | $color-gray-dark: #323a45; 45 | $color-gray: #5b616b; // lighten($color-gray-dark, 20%) 46 | $color-gray-light: #aeb0b5; // lighten($color-gray-dark, 60%) 47 | $color-gray-lighter: #d6d7d9; // lighten($color-gray-dark, 80%) 48 | $color-gray-lightest: #f1f1f1; // lighten($color-gray-dark, 91%) 49 | 50 | $color-gray-warm-dark: #494440; 51 | $color-gray-warm-light: #e4e2e0; // lighten($color-gray-warm-dark, 90%) 52 | $color-gray-cool-light: #dce4ef; // lighten($color-primary, 90%) 53 | 54 | $color-gold: #fdb81e; 55 | $color-gold-light: #f9c642; // lighten($color-gold, 20%) 56 | $color-gold-lighter: #fad980; // lighten($color-gold, 60%) 57 | $color-gold-lightest: #fff1d2; // lighten($color-gold, 83%) 58 | 59 | $color-green: #2e8540; 60 | $color-green-light: #4aa564; // lighten($color-green, 20%) 61 | $color-green-lighter: #94bfa2; // lighten($color-green, 60%) 62 | $color-green-lightest: #e7f4e4; // lighten($color-green, 60%) 63 | 64 | $color-cool-blue: #205493; 65 | $color-cool-blue-light: #4773aa; // lighten($color-cool-blue, 20%) 66 | $color-cool-blue-lighter: #8ba6ca; // lighten($color-cool-blue, 60%) 67 | $color-cool-blue-lightest: #dce4ef; // lighten($color-cool-blue, 90%) 68 | 69 | $color-focus: #3e94cf; 70 | $color-visited: #4c2c92; 71 | 72 | 73 | // Mobile First Breakpoints 74 | $small-screen: 481px; 75 | $medium-screen: 600px; 76 | $large-screen: 1201px; 77 | 78 | 79 | // Magic Numbers 80 | $text-max-width: 53rem; 81 | $site-max-width: 1040px; 82 | $site-margins: 3rem; 83 | $article-max-width: 600px; 84 | $input-max-width: 46rem; 85 | $border-radius: rem(3px); 86 | $box-shadow: 0 0 2px rgba(#000, .3); 87 | $focus-shadow: 0 0 3px $color-focus, 0 0 7px $color-focus; 88 | $grid-margins: 3rem; 89 | -------------------------------------------------------------------------------- /assets/_scss/elements/_buttons.scss: -------------------------------------------------------------------------------- 1 | // Buttons variables 2 | 3 | $button-stroke: inset 0 0 0 2px; 4 | 5 | // Buttons 6 | 7 | .usa-button, 8 | .usa-button-primary, 9 | .usa-button:visited, 10 | .usa-button-primary:visited, 11 | button, 12 | [type="button"], 13 | [type="submit"], 14 | [type="reset"], 15 | [type="image"] { 16 | appearance: none; 17 | background-color: $color-primary; 18 | border: 0; 19 | border-radius: $border-radius; 20 | color: $color-white; 21 | cursor: pointer; 22 | display: inline-block; 23 | font-family: $font-sans; 24 | font-size: $base-font-size; 25 | font-weight: $font-bold; 26 | line-height: 1; 27 | margin: { 28 | top: .5em; 29 | bottom: .5em; 30 | right: .5em; 31 | } 32 | outline: none; 33 | padding: 1rem 2rem; 34 | text-align: center; 35 | text-decoration: none; 36 | width: 100%; 37 | -webkit-font-smoothing: antialiased; 38 | 39 | &:hover, 40 | &.usa-button-hover { 41 | background-color: $color-primary-darker; 42 | border-bottom: 0; 43 | color: $color-white; 44 | text-decoration: none; 45 | } 46 | 47 | &:focus, 48 | &.usa-button-focus { 49 | box-shadow: $focus-shadow; 50 | } 51 | 52 | &:active, 53 | &.usa-button-active { 54 | background-color: $color-primary-darkest; 55 | } 56 | 57 | @media (min-width: $small-screen) { 58 | width: auto; 59 | } 60 | 61 | &.usa-button-primary-alt { 62 | background-color: $color-primary-alt; 63 | color: $color-base; 64 | 65 | &:hover, 66 | &.usa-button-hover { 67 | background-color: $color-primary-alt-dark; 68 | } 69 | 70 | &:active, 71 | &.usa-button-active { 72 | background-color: $color-primary-alt-darkest; 73 | color: $color-white; 74 | } 75 | } 76 | 77 | &.usa-button-secondary { 78 | background-color: $color-secondary; 79 | 80 | &:hover, 81 | &.usa-button-hover { 82 | background-color: $color-secondary-dark; 83 | } 84 | 85 | &:active, 86 | &.usa-button-active { 87 | background-color: $color-secondary-darkest; 88 | } 89 | } 90 | 91 | &.usa-button-gray { 92 | background-color: $color-gray; 93 | 94 | &:hover, 95 | &.usa-button-hover { 96 | background-color: $color-gray-dark; 97 | } 98 | 99 | &:active, 100 | &.usa-button-active { 101 | background-color: $color-base; 102 | } 103 | } 104 | 105 | &.usa-button-outline { 106 | background-color: $color-white; 107 | box-shadow: $button-stroke $color-primary; 108 | color: $color-primary; 109 | 110 | &:hover, 111 | &.usa-button-hover { 112 | box-shadow: $button-stroke $color-primary-darker; 113 | color: $color-primary-darker; 114 | } 115 | 116 | &:active, 117 | &.usa-button-active { 118 | box-shadow: $button-stroke $color-primary-darkest; 119 | color: $color-primary-darkest; 120 | } 121 | 122 | &:focus, 123 | &.usa-button-focus { 124 | box-shadow: $button-stroke $color-primary-darkest, $focus-shadow; 125 | } 126 | } 127 | 128 | &.usa-button-outline-inverse { 129 | background: transparent; 130 | box-shadow: $button-stroke $color-white; 131 | color: $color-white; 132 | 133 | &:hover, 134 | &.usa-button-hover { 135 | box-shadow: $button-stroke $color-gray-lighter; 136 | color: $color-gray-lighter; 137 | } 138 | 139 | &:active, 140 | &.usa-button-active { 141 | box-shadow: $button-stroke $color-gray-light; 142 | color: $color-gray-lighter; 143 | } 144 | 145 | &:focus, 146 | &.usa-button-focus { 147 | box-shadow: $button-stroke $color-gray-light, $focus-shadow; 148 | } 149 | } 150 | 151 | &.usa-button-big { 152 | font-size: 1.9rem; 153 | padding: 1.5rem 3rem; 154 | } 155 | } 156 | 157 | [type="submit"]:disabled, 158 | .usa-button-disabled { 159 | background-color: $color-gray-lighter; 160 | color: $color-gray-dark; 161 | cursor: default; 162 | 163 | &:hover, 164 | &.usa-button-hover, 165 | &:active, 166 | &.usa-button-active, 167 | &:focus { 168 | background-color: $color-gray-lighter; 169 | border: 0; 170 | box-shadow: none; 171 | color: $color-gray-dark; 172 | } 173 | } 174 | 175 | .usa-button-unstyled { 176 | background: none; 177 | border: 0; 178 | border-radius: 0; 179 | outline: 0; 180 | padding: 0; 181 | text-align: left; 182 | 183 | &:focus, 184 | &:hover { 185 | box-shadow: initial; 186 | } 187 | } 188 | -------------------------------------------------------------------------------- /assets/_scss/elements/_figure.scss: -------------------------------------------------------------------------------- 1 | img { 2 | max-width: 100%; 3 | } 4 | 5 | // TODO: Add documentation instructions for using this class on image links 6 | .media_link { 7 | display: inline-block; 8 | line-height: 0; 9 | } 10 | 11 | // Patch for Firefox: max-width:100% is not respected within auto-width inline 12 | // blocks 13 | @-moz-document url-prefix() { 14 | .media_link { 15 | display: table; 16 | table-layout: fixed; 17 | width: 100%; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /assets/_scss/elements/_labels.scss: -------------------------------------------------------------------------------- 1 | .usa-label { 2 | background-color: $color-primary; 3 | border-radius: $border-radius; 4 | color: $color-white; 5 | font-size: $h5-font-size; 6 | margin-right: .5rem; 7 | padding: { 8 | bottom: 0.1rem; 9 | left: 0.7rem; 10 | right: 0.7rem; 11 | top: 0.3rem; 12 | } 13 | text-transform: uppercase; 14 | 15 | &:only-of-type { 16 | margin-right: 0; 17 | } 18 | } 19 | 20 | .usa-label-big { 21 | @extend .usa-label; 22 | font-size: $base-font-size; 23 | padding: { 24 | left: .9rem; 25 | right: .9rem; 26 | } 27 | } 28 | 29 | a { 30 | &.usa-label { 31 | border-bottom: none; 32 | 33 | &:hover { 34 | background-color: $color-primary-darker; 35 | border-bottom: none; 36 | color: $color-white; 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /assets/_scss/elements/_list.scss: -------------------------------------------------------------------------------- 1 | ul, ol { 2 | margin: { 3 | top: 2em; 4 | bottom: 2em; 5 | } 6 | 7 | li { 8 | line-height: $base-line-height; 9 | margin: { 10 | top: .75em; 11 | bottom: .75em; 12 | } 13 | } 14 | } 15 | 16 | h1, h2, h3, h4, h5, h6, p { 17 | + ul, 18 | + ol { 19 | margin: { 20 | top: 0; 21 | } 22 | } 23 | } 24 | 25 | ul, ol { 26 | list-style: none; 27 | padding-left: 0; 28 | display: table; 29 | 30 | li:after { 31 | content: ""; 32 | display: block; 33 | margin-bottom: 0.5em; 34 | } 35 | } 36 | 37 | ul li { 38 | display: table-row; 39 | 40 | &:before { 41 | content: "•"; 42 | display: table-cell; 43 | padding-right: 0.4em; 44 | } 45 | } 46 | 47 | ol li { 48 | display: table-row; 49 | counter-increment: table-ol; 50 | 51 | &:before { 52 | content: counter(table-ol) "."; 53 | display: table-cell; 54 | padding-right: 0.4em; 55 | text-align: right; 56 | } 57 | } 58 | 59 | li { 60 | margin-bottom: 0.5em; 61 | } 62 | 63 | // Unstyled lists 64 | 65 | .usa-unstyled-list { 66 | margin: 0; 67 | padding: 0; 68 | list-style-type: none; 69 | 70 | li { 71 | display: list-item; 72 | margin: 0; 73 | 74 | &:before { 75 | display: none; 76 | } 77 | 78 | &:after { 79 | display: none; 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /assets/_scss/elements/_table.scss: -------------------------------------------------------------------------------- 1 | table { 2 | border-spacing: 0; 3 | margin: 2em 0; 4 | min-width: 100%; 5 | 6 | thead { 7 | tr { 8 | background-color: $color-gray-lightest; 9 | } 10 | 11 | th { 12 | text-align: left; 13 | } 14 | } 15 | 16 | th, td { 17 | border: 1px solid $color-gray; 18 | padding: 1.5rem; 19 | } 20 | } 21 | 22 | .usa-table-borderless { 23 | thead { 24 | tr { 25 | background-color: transparent; 26 | 27 | th { 28 | border-top: 0; 29 | } 30 | } 31 | } 32 | 33 | th, td { 34 | border: { 35 | left: 0; 36 | right: 0; 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /assets/_scss/elements/_typography.scss: -------------------------------------------------------------------------------- 1 | html { 2 | font-family: $font-sans; 3 | font-size: $em-base; 4 | } 5 | 6 | body { 7 | font-size: $base-font-size; 8 | } 9 | 10 | p { 11 | line-height: $base-line-height; 12 | margin: { 13 | top: 1em; 14 | bottom: 1em; 15 | } 16 | } 17 | 18 | a { 19 | color: $color-primary; 20 | text-decoration: none; 21 | 22 | &:hover, 23 | &:active { 24 | color: $color-primary-darker; 25 | text-decoration: underline; 26 | } 27 | 28 | &:visited { 29 | color: $color-visited; 30 | } 31 | 32 | &:focus { 33 | box-shadow: $focus-shadow; 34 | outline: 0; 35 | } 36 | } 37 | 38 | h1, h2, h3, h4, h5, h6 { 39 | clear: both; 40 | font-family: $font-serif; 41 | line-height: $heading-line-height; 42 | margin: { 43 | top: 1.5em; 44 | bottom: .5em; 45 | } 46 | } 47 | 48 | // Create heading mixins 49 | 50 | @mixin title { 51 | font-size: $title-font-size; 52 | font-weight: $font-bold; 53 | } 54 | 55 | @mixin h1 { 56 | font-size: $h1-font-size; 57 | font-weight: $font-bold; 58 | } 59 | 60 | @mixin h2 { 61 | font-size: $h2-font-size; 62 | font-weight: $font-bold; 63 | } 64 | 65 | @mixin h3 { 66 | font-size: $h3-font-size; 67 | font-weight: $font-bold; 68 | } 69 | 70 | @mixin h4 { 71 | font-size: $h4-font-size; 72 | font-weight: $font-bold; 73 | } 74 | 75 | @mixin h5 { 76 | font-size: $h5-font-size; 77 | font-weight: $font-bold; 78 | } 79 | 80 | @mixin h6 { 81 | font-family: $font-sans; 82 | font-size: $h6-font-size; 83 | font-weight: $font-normal; 84 | text-transform: uppercase; 85 | } 86 | 87 | h1 { 88 | @include h1(); 89 | } 90 | 91 | h2 { 92 | @include h2(); 93 | } 94 | 95 | h3 { 96 | @include h3(); 97 | } 98 | 99 | h4 { 100 | @include h4(); 101 | } 102 | 103 | h5 { 104 | @include h5(); 105 | } 106 | 107 | h6 { 108 | @include h6(); 109 | } 110 | 111 | // Remove user agent styles 112 | 113 | cite, 114 | var, 115 | address, 116 | dfn { 117 | font-style: normal; 118 | } 119 | 120 | // Custom typography 121 | 122 | .usa-content { 123 | p { 124 | max-width: $text-max-width; 125 | } 126 | } 127 | 128 | .usa-content-list { 129 | max-width: $text-max-width; 130 | } 131 | 132 | p, 133 | .usa-content-list { 134 | a { 135 | text-decoration: underline; 136 | } 137 | } 138 | 139 | .usa-sans { 140 | p, 141 | a, 142 | li, 143 | span { 144 | font-family: $font-sans; 145 | } 146 | } 147 | 148 | .usa-serif { 149 | p, 150 | a, 151 | li, 152 | span { 153 | font-family: $font-serif; 154 | } 155 | } 156 | 157 | .usa-sans a { 158 | border-bottom: none; 159 | font-weight: $font-bold; 160 | } 161 | 162 | .usa-display { 163 | @include h3(); 164 | margin-bottom: 0; 165 | 166 | @include media($small-screen) { 167 | @include h1(); 168 | } 169 | 170 | @include media($medium-screen) { 171 | @include title(); 172 | } 173 | } 174 | 175 | .usa-font-lead { 176 | font-size: $lead-font-size; 177 | font-family: $font-serif; 178 | line-height: $lead-line-height; 179 | } 180 | 181 | .usa-image-block { 182 | position: relative; 183 | } 184 | 185 | .usa-image-text-block { 186 | color: $color-white; 187 | left: 0; 188 | margin-left: 8%; 189 | position: absolute; 190 | top: 0; 191 | } 192 | 193 | .usa-image-text { 194 | margin-top: 0; 195 | } 196 | 197 | .usa-drop_text { 198 | margin-bottom: 0; 199 | } 200 | 201 | .usa-background-dark { 202 | background-color: $color-gray-dark; 203 | 204 | p, span { 205 | color: $color-white; 206 | } 207 | 208 | a { 209 | color: $color-gray-lighter; 210 | 211 | &:hover { 212 | color: $color-white; 213 | } 214 | } 215 | } 216 | 217 | .usa-text-small { 218 | font-size: $h6-font-size; 219 | margin-top: 0; 220 | } 221 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/_bourbon.scss: -------------------------------------------------------------------------------- 1 | // Bourbon 4.2.3 2 | // http://bourbon.io 3 | // Copyright 2011-2015 thoughtbot, inc. 4 | // MIT License 5 | 6 | @import "settings/prefixer"; 7 | @import "settings/px-to-em"; 8 | @import "settings/asset-pipeline"; 9 | 10 | @import "functions/assign-inputs"; 11 | @import "functions/contains"; 12 | @import "functions/contains-falsy"; 13 | @import "functions/is-length"; 14 | @import "functions/is-light"; 15 | @import "functions/is-number"; 16 | @import "functions/is-size"; 17 | @import "functions/px-to-em"; 18 | @import "functions/px-to-rem"; 19 | @import "functions/shade"; 20 | @import "functions/strip-units"; 21 | @import "functions/tint"; 22 | @import "functions/transition-property-name"; 23 | @import "functions/unpack"; 24 | @import "functions/modular-scale"; 25 | 26 | @import "helpers/convert-units"; 27 | @import "helpers/directional-values"; 28 | @import "helpers/font-source-declaration"; 29 | @import "helpers/gradient-positions-parser"; 30 | @import "helpers/linear-angle-parser"; 31 | @import "helpers/linear-gradient-parser"; 32 | @import "helpers/linear-positions-parser"; 33 | @import "helpers/linear-side-corner-parser"; 34 | @import "helpers/radial-arg-parser"; 35 | @import "helpers/radial-positions-parser"; 36 | @import "helpers/radial-gradient-parser"; 37 | @import "helpers/render-gradients"; 38 | @import "helpers/shape-size-stripper"; 39 | @import "helpers/str-to-num"; 40 | 41 | @import "css3/animation"; 42 | @import "css3/appearance"; 43 | @import "css3/backface-visibility"; 44 | @import "css3/background"; 45 | @import "css3/background-image"; 46 | @import "css3/border-image"; 47 | @import "css3/calc"; 48 | @import "css3/columns"; 49 | @import "css3/filter"; 50 | @import "css3/flex-box"; 51 | @import "css3/font-face"; 52 | @import "css3/font-feature-settings"; 53 | @import "css3/hidpi-media-query"; 54 | @import "css3/hyphens"; 55 | @import "css3/image-rendering"; 56 | @import "css3/keyframes"; 57 | @import "css3/linear-gradient"; 58 | @import "css3/perspective"; 59 | @import "css3/placeholder"; 60 | @import "css3/radial-gradient"; 61 | @import "css3/selection"; 62 | @import "css3/text-decoration"; 63 | @import "css3/transform"; 64 | @import "css3/transition"; 65 | @import "css3/user-select"; 66 | 67 | @import "addons/border-color"; 68 | @import "addons/border-radius"; 69 | @import "addons/border-style"; 70 | @import "addons/border-width"; 71 | @import "addons/buttons"; 72 | @import "addons/clearfix"; 73 | @import "addons/ellipsis"; 74 | @import "addons/font-stacks"; 75 | @import "addons/hide-text"; 76 | @import "addons/margin"; 77 | @import "addons/padding"; 78 | @import "addons/position"; 79 | @import "addons/prefixer"; 80 | @import "addons/retina-image"; 81 | @import "addons/size"; 82 | @import "addons/text-inputs"; 83 | @import "addons/timing-functions"; 84 | @import "addons/triangle"; 85 | @import "addons/word-wrap"; 86 | 87 | @import "bourbon-deprecated-upcoming"; 88 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_border-color.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides a quick method for targeting `border-color` on specific sides of a box. Use a `null` value to “skip” a side. 4 | /// 5 | /// @param {Arglist} $vals 6 | /// List of arguments 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include border-color(#a60b55 #76cd9c null #e8ae1a); 11 | /// } 12 | /// 13 | /// @example css - CSS Output 14 | /// .element { 15 | /// border-left-color: #e8ae1a; 16 | /// border-right-color: #76cd9c; 17 | /// border-top-color: #a60b55; 18 | /// } 19 | /// 20 | /// @require {mixin} directional-property 21 | /// 22 | /// @output `border-color` 23 | 24 | @mixin border-color($vals...) { 25 | @include directional-property(border, color, $vals...); 26 | } 27 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_border-radius.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides a quick method for targeting `border-radius` on both corners on the side of a box. 4 | /// 5 | /// @param {Number} $radii 6 | /// List of arguments 7 | /// 8 | /// @example scss - Usage 9 | /// .element-one { 10 | /// @include border-top-radius(5px); 11 | /// } 12 | /// 13 | /// .element-two { 14 | /// @include border-left-radius(3px); 15 | /// } 16 | /// 17 | /// @example css - CSS Output 18 | /// .element-one { 19 | /// border-top-left-radius: 5px; 20 | /// border-top-right-radius: 5px; 21 | /// } 22 | /// 23 | /// .element-two { 24 | /// border-bottom-left-radius: 3px; 25 | /// border-top-left-radius: 3px; 26 | /// } 27 | /// 28 | /// @output `border-radius` 29 | 30 | @mixin border-top-radius($radii) { 31 | border-top-left-radius: $radii; 32 | border-top-right-radius: $radii; 33 | } 34 | 35 | @mixin border-right-radius($radii) { 36 | border-bottom-right-radius: $radii; 37 | border-top-right-radius: $radii; 38 | } 39 | 40 | @mixin border-bottom-radius($radii) { 41 | border-bottom-left-radius: $radii; 42 | border-bottom-right-radius: $radii; 43 | } 44 | 45 | @mixin border-left-radius($radii) { 46 | border-bottom-left-radius: $radii; 47 | border-top-left-radius: $radii; 48 | } 49 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_border-style.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides a quick method for targeting `border-style` on specific sides of a box. Use a `null` value to “skip” a side. 4 | /// 5 | /// @param {Arglist} $vals 6 | /// List of arguments 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include border-style(dashed null solid); 11 | /// } 12 | /// 13 | /// @example css - CSS Output 14 | /// .element { 15 | /// border-bottom-style: solid; 16 | /// border-top-style: dashed; 17 | /// } 18 | /// 19 | /// @require {mixin} directional-property 20 | /// 21 | /// @output `border-style` 22 | 23 | @mixin border-style($vals...) { 24 | @include directional-property(border, style, $vals...); 25 | } 26 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_border-width.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides a quick method for targeting `border-width` on specific sides of a box. Use a `null` value to “skip” a side. 4 | /// 5 | /// @param {Arglist} $vals 6 | /// List of arguments 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include border-width(1em null 20px); 11 | /// } 12 | /// 13 | /// @example css - CSS Output 14 | /// .element { 15 | /// border-bottom-width: 20px; 16 | /// border-top-width: 1em; 17 | /// } 18 | /// 19 | /// @require {mixin} directional-property 20 | /// 21 | /// @output `border-width` 22 | 23 | @mixin border-width($vals...) { 24 | @include directional-property(border, width, $vals...); 25 | } 26 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_buttons.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Generates variables for all buttons. Please note that you must use interpolation on the variable: `#{$all-buttons}`. 4 | /// 5 | /// @example scss - Usage 6 | /// #{$all-buttons} { 7 | /// background-color: #f00; 8 | /// } 9 | /// 10 | /// #{$all-buttons-focus}, 11 | /// #{$all-buttons-hover} { 12 | /// background-color: #0f0; 13 | /// } 14 | /// 15 | /// #{$all-buttons-active} { 16 | /// background-color: #00f; 17 | /// } 18 | /// 19 | /// @example css - CSS Output 20 | /// button, 21 | /// input[type="button"], 22 | /// input[type="reset"], 23 | /// input[type="submit"] { 24 | /// background-color: #f00; 25 | /// } 26 | /// 27 | /// button:focus, 28 | /// input[type="button"]:focus, 29 | /// input[type="reset"]:focus, 30 | /// input[type="submit"]:focus, 31 | /// button:hover, 32 | /// input[type="button"]:hover, 33 | /// input[type="reset"]:hover, 34 | /// input[type="submit"]:hover { 35 | /// background-color: #0f0; 36 | /// } 37 | /// 38 | /// button:active, 39 | /// input[type="button"]:active, 40 | /// input[type="reset"]:active, 41 | /// input[type="submit"]:active { 42 | /// background-color: #00f; 43 | /// } 44 | /// 45 | /// @require assign-inputs 46 | /// 47 | /// @type List 48 | /// 49 | /// @todo Remove double assigned variables (Lines 59–62) in v5.0.0 50 | 51 | $buttons-list: 'button', 52 | 'input[type="button"]', 53 | 'input[type="reset"]', 54 | 'input[type="submit"]'; 55 | 56 | $all-buttons: assign-inputs($buttons-list); 57 | $all-buttons-active: assign-inputs($buttons-list, active); 58 | $all-buttons-focus: assign-inputs($buttons-list, focus); 59 | $all-buttons-hover: assign-inputs($buttons-list, hover); 60 | 61 | $all-button-inputs: $all-buttons; 62 | $all-button-inputs-active: $all-buttons-active; 63 | $all-button-inputs-focus: $all-buttons-focus; 64 | $all-button-inputs-hover: $all-buttons-hover; 65 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_clearfix.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides an easy way to include a clearfix for containing floats. 4 | /// 5 | /// @link http://cssmojo.com/latest_new_clearfix_so_far/ 6 | /// 7 | /// @example scss - Usage 8 | /// .element { 9 | /// @include clearfix; 10 | /// } 11 | /// 12 | /// @example css - CSS Output 13 | /// .element::after { 14 | /// clear: both; 15 | /// content: ""; 16 | /// display: table; 17 | /// } 18 | 19 | @mixin clearfix { 20 | &::after { 21 | clear: both; 22 | content: ""; 23 | display: table; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_ellipsis.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Truncates text and adds an ellipsis to represent overflow. 4 | /// 5 | /// @param {Number} $width [100%] 6 | /// Max-width for the string to respect before being truncated 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include ellipsis; 11 | /// } 12 | /// 13 | /// @example css - CSS Output 14 | /// .element { 15 | /// display: inline-block; 16 | /// max-width: 100%; 17 | /// overflow: hidden; 18 | /// text-overflow: ellipsis; 19 | /// white-space: nowrap; 20 | /// word-wrap: normal; 21 | /// } 22 | 23 | @mixin ellipsis($width: 100%) { 24 | display: inline-block; 25 | max-width: $width; 26 | overflow: hidden; 27 | text-overflow: ellipsis; 28 | white-space: nowrap; 29 | word-wrap: normal; 30 | } 31 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_font-stacks.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Georgia font stack. 4 | /// 5 | /// @type List 6 | 7 | $georgia: "Georgia", "Cambria", "Times New Roman", "Times", serif; 8 | 9 | /// Helvetica font stack. 10 | /// 11 | /// @type List 12 | 13 | $helvetica: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif; 14 | 15 | /// Lucida Grande font stack. 16 | /// 17 | /// @type List 18 | 19 | $lucida-grande: "Lucida Grande", "Tahoma", "Verdana", "Arial", sans-serif; 20 | 21 | /// Monospace font stack. 22 | /// 23 | /// @type List 24 | 25 | $monospace: "Bitstream Vera Sans Mono", "Consolas", "Courier", monospace; 26 | 27 | /// Verdana font stack. 28 | /// 29 | /// @type List 30 | 31 | $verdana: "Verdana", "Geneva", sans-serif; 32 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_hide-text.scss: -------------------------------------------------------------------------------- 1 | /// Hides the text in an element, commonly used to show an image. Some elements will need block-level styles applied. 2 | /// 3 | /// @link http://zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement 4 | /// 5 | /// @example scss - Usage 6 | /// .element { 7 | /// @include hide-text; 8 | /// } 9 | /// 10 | /// @example css - CSS Output 11 | /// .element { 12 | /// overflow: hidden; 13 | /// text-indent: 101%; 14 | /// white-space: nowrap; 15 | /// } 16 | /// 17 | /// @todo Remove height argument in v5.0.0 18 | 19 | @mixin hide-text($height: null) { 20 | overflow: hidden; 21 | text-indent: 101%; 22 | white-space: nowrap; 23 | 24 | @if $height { 25 | @warn "The `hide-text` mixin has changed and no longer requires a height. The height argument will no longer be accepted in v5.0.0"; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_margin.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides a quick method for targeting `margin` on specific sides of a box. Use a `null` value to “skip” a side. 4 | /// 5 | /// @param {Arglist} $vals 6 | /// List of arguments 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include margin(null 10px 3em 20vh); 11 | /// } 12 | /// 13 | /// @example css - CSS Output 14 | /// .element { 15 | /// margin-bottom: 3em; 16 | /// margin-left: 20vh; 17 | /// margin-right: 10px; 18 | /// } 19 | /// 20 | /// @require {mixin} directional-property 21 | /// 22 | /// @output `margin` 23 | 24 | @mixin margin($vals...) { 25 | @include directional-property(margin, false, $vals...); 26 | } 27 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_padding.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides a quick method for targeting `padding` on specific sides of a box. Use a `null` value to “skip” a side. 4 | /// 5 | /// @param {Arglist} $vals 6 | /// List of arguments 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include padding(12vh null 10px 5%); 11 | /// } 12 | /// 13 | /// @example css - CSS Output 14 | /// .element { 15 | /// padding-bottom: 10px; 16 | /// padding-left: 5%; 17 | /// padding-top: 12vh; 18 | /// } 19 | /// 20 | /// @require {mixin} directional-property 21 | /// 22 | /// @output `padding` 23 | 24 | @mixin padding($vals...) { 25 | @include directional-property(padding, false, $vals...); 26 | } 27 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_position.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides a quick method for setting an element’s position. Use a `null` value to “skip” a side. 4 | /// 5 | /// @param {Position} $position [relative] 6 | /// A CSS position value 7 | /// 8 | /// @param {Arglist} $coordinates [null null null null] 9 | /// List of values that correspond to the 4-value syntax for the edges of a box 10 | /// 11 | /// @example scss - Usage 12 | /// .element { 13 | /// @include position(absolute, 0 null null 10em); 14 | /// } 15 | /// 16 | /// @example css - CSS Output 17 | /// .element { 18 | /// left: 10em; 19 | /// position: absolute; 20 | /// top: 0; 21 | /// } 22 | /// 23 | /// @require {function} is-length 24 | /// @require {function} unpack 25 | 26 | @mixin position($position: relative, $coordinates: null null null null) { 27 | @if type-of($position) == list { 28 | $coordinates: $position; 29 | $position: relative; 30 | } 31 | 32 | $coordinates: unpack($coordinates); 33 | 34 | $offsets: ( 35 | top: nth($coordinates, 1), 36 | right: nth($coordinates, 2), 37 | bottom: nth($coordinates, 3), 38 | left: nth($coordinates, 4) 39 | ); 40 | 41 | position: $position; 42 | 43 | @each $offset, $value in $offsets { 44 | @if is-length($value) { 45 | #{$offset}: $value; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_prefixer.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// A mixin for generating vendor prefixes on non-standardized properties. 4 | /// 5 | /// @param {String} $property 6 | /// Property to prefix 7 | /// 8 | /// @param {*} $value 9 | /// Value to use 10 | /// 11 | /// @param {List} $prefixes 12 | /// Prefixes to define 13 | /// 14 | /// @example scss - Usage 15 | /// .element { 16 | /// @include prefixer(border-radius, 10px, webkit ms spec); 17 | /// } 18 | /// 19 | /// @example css - CSS Output 20 | /// .element { 21 | /// -webkit-border-radius: 10px; 22 | /// -moz-border-radius: 10px; 23 | /// border-radius: 10px; 24 | /// } 25 | /// 26 | /// @require {variable} $prefix-for-webkit 27 | /// @require {variable} $prefix-for-mozilla 28 | /// @require {variable} $prefix-for-microsoft 29 | /// @require {variable} $prefix-for-opera 30 | /// @require {variable} $prefix-for-spec 31 | 32 | @mixin prefixer($property, $value, $prefixes) { 33 | @each $prefix in $prefixes { 34 | @if $prefix == webkit { 35 | @if $prefix-for-webkit { 36 | -webkit-#{$property}: $value; 37 | } 38 | } @else if $prefix == moz { 39 | @if $prefix-for-mozilla { 40 | -moz-#{$property}: $value; 41 | } 42 | } @else if $prefix == ms { 43 | @if $prefix-for-microsoft { 44 | -ms-#{$property}: $value; 45 | } 46 | } @else if $prefix == o { 47 | @if $prefix-for-opera { 48 | -o-#{$property}: $value; 49 | } 50 | } @else if $prefix == spec { 51 | @if $prefix-for-spec { 52 | #{$property}: $value; 53 | } 54 | } @else { 55 | @warn "Unrecognized prefix: #{$prefix}"; 56 | } 57 | } 58 | } 59 | 60 | @mixin disable-prefix-for-all() { 61 | $prefix-for-webkit: false !global; 62 | $prefix-for-mozilla: false !global; 63 | $prefix-for-microsoft: false !global; 64 | $prefix-for-opera: false !global; 65 | $prefix-for-spec: false !global; 66 | } 67 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_retina-image.scss: -------------------------------------------------------------------------------- 1 | @mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: $asset-pipeline) { 2 | @if $asset-pipeline { 3 | background-image: image-url("#{$filename}.#{$extension}"); 4 | } @else { 5 | background-image: url("#{$filename}.#{$extension}"); 6 | } 7 | 8 | @include hidpi { 9 | @if $asset-pipeline { 10 | @if $retina-filename { 11 | background-image: image-url("#{$retina-filename}.#{$extension}"); 12 | } @else { 13 | background-image: image-url("#{$filename}#{$retina-suffix}.#{$extension}"); 14 | } 15 | } @else { 16 | @if $retina-filename { 17 | background-image: url("#{$retina-filename}.#{$extension}"); 18 | } @else { 19 | background-image: url("#{$filename}#{$retina-suffix}.#{$extension}"); 20 | } 21 | } 22 | 23 | background-size: $background-size; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_size.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Sets the `width` and `height` of the element. 4 | /// 5 | /// @param {List} $size 6 | /// A list of at most 2 size values. 7 | /// 8 | /// If there is only a single value in `$size` it is used for both width and height. All units are supported. 9 | /// 10 | /// @example scss - Usage 11 | /// .first-element { 12 | /// @include size(2em); 13 | /// } 14 | /// 15 | /// .second-element { 16 | /// @include size(auto 10em); 17 | /// } 18 | /// 19 | /// @example css - CSS Output 20 | /// .first-element { 21 | /// width: 2em; 22 | /// height: 2em; 23 | /// } 24 | /// 25 | /// .second-element { 26 | /// width: auto; 27 | /// height: 10em; 28 | /// } 29 | /// 30 | /// @todo Refactor in 5.0.0 to use a comma-separated argument 31 | 32 | @mixin size($value) { 33 | $width: nth($value, 1); 34 | $height: $width; 35 | 36 | @if length($value) > 1 { 37 | $height: nth($value, 2); 38 | } 39 | 40 | @if is-size($height) { 41 | height: $height; 42 | } @else { 43 | @warn "`#{$height}` is not a valid length for the `$height` parameter in the `size` mixin."; 44 | } 45 | 46 | @if is-size($width) { 47 | width: $width; 48 | } @else { 49 | @warn "`#{$width}` is not a valid length for the `$width` parameter in the `size` mixin."; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_text-inputs.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Generates variables for all text-based inputs. Please note that you must use interpolation on the variable: `#{$all-text-inputs}`. 4 | /// 5 | /// @example scss - Usage 6 | /// #{$all-text-inputs} { 7 | /// border: 1px solid #f00; 8 | /// } 9 | /// 10 | /// #{$all-text-inputs-focus}, 11 | /// #{$all-text-inputs-hover} { 12 | /// border: 1px solid #0f0; 13 | /// } 14 | /// 15 | /// #{$all-text-inputs-active} { 16 | /// border: 1px solid #00f; 17 | /// } 18 | /// 19 | /// @example css - CSS Output 20 | /// input[type="color"], 21 | /// input[type="date"], 22 | /// input[type="datetime"], 23 | /// input[type="datetime-local"], 24 | /// input[type="email"], 25 | /// input[type="month"], 26 | /// input[type="number"], 27 | /// input[type="password"], 28 | /// input[type="search"], 29 | /// input[type="tel"], 30 | /// input[type="text"], 31 | /// input[type="time"], 32 | /// input[type="url"], 33 | /// input[type="week"], 34 | /// textarea { 35 | /// border: 1px solid #f00; 36 | /// } 37 | /// 38 | /// input[type="color"]:focus, 39 | /// input[type="date"]:focus, 40 | /// input[type="datetime"]:focus, 41 | /// input[type="datetime-local"]:focus, 42 | /// input[type="email"]:focus, 43 | /// input[type="month"]:focus, 44 | /// input[type="number"]:focus, 45 | /// input[type="password"]:focus, 46 | /// input[type="search"]:focus, 47 | /// input[type="tel"]:focus, 48 | /// input[type="text"]:focus, 49 | /// input[type="time"]:focus, 50 | /// input[type="url"]:focus, 51 | /// input[type="week"]:focus, 52 | /// textarea:focus, 53 | /// input[type="color"]:hover, 54 | /// input[type="date"]:hover, 55 | /// input[type="datetime"]:hover, 56 | /// input[type="datetime-local"]:hover, 57 | /// input[type="email"]:hover, 58 | /// input[type="month"]:hover, 59 | /// input[type="number"]:hover, 60 | /// input[type="password"]:hover, 61 | /// input[type="search"]:hover, 62 | /// input[type="tel"]:hover, 63 | /// input[type="text"]:hover, 64 | /// input[type="time"]:hover, 65 | /// input[type="url"]:hover, 66 | /// input[type="week"]:hover, 67 | /// textarea:hover { 68 | /// border: 1px solid #0f0; 69 | /// } 70 | /// 71 | /// input[type="color"]:active, 72 | /// input[type="date"]:active, 73 | /// input[type="datetime"]:active, 74 | /// input[type="datetime-local"]:active, 75 | /// input[type="email"]:active, 76 | /// input[type="month"]:active, 77 | /// input[type="number"]:active, 78 | /// input[type="password"]:active, 79 | /// input[type="search"]:active, 80 | /// input[type="tel"]:active, 81 | /// input[type="text"]:active, 82 | /// input[type="time"]:active, 83 | /// input[type="url"]:active, 84 | /// input[type="week"]:active, 85 | /// textarea:active { 86 | /// border: 1px solid #00f; 87 | /// } 88 | /// 89 | /// @require assign-inputs 90 | /// 91 | /// @type List 92 | 93 | $text-inputs-list: 'input[type="color"]', 94 | 'input[type="date"]', 95 | 'input[type="datetime"]', 96 | 'input[type="datetime-local"]', 97 | 'input[type="email"]', 98 | 'input[type="month"]', 99 | 'input[type="number"]', 100 | 'input[type="password"]', 101 | 'input[type="search"]', 102 | 'input[type="tel"]', 103 | 'input[type="text"]', 104 | 'input[type="time"]', 105 | 'input[type="url"]', 106 | 'input[type="week"]', 107 | 'textarea'; 108 | 109 | $all-text-inputs: assign-inputs($text-inputs-list); 110 | $all-text-inputs-active: assign-inputs($text-inputs-list, active); 111 | $all-text-inputs-focus: assign-inputs($text-inputs-list, focus); 112 | $all-text-inputs-hover: assign-inputs($text-inputs-list, hover); 113 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_timing-functions.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie) 4 | /// 5 | /// Timing functions are the same as demoed here: http://jqueryui.com/resources/demos/effect/easing.html 6 | /// 7 | /// @type cubic-bezier 8 | 9 | $ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530); 10 | $ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190); 11 | $ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220); 12 | $ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060); 13 | $ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715); 14 | $ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035); 15 | $ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335); 16 | $ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045); 17 | 18 | $ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940); 19 | $ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000); 20 | $ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000); 21 | $ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000); 22 | $ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000); 23 | $ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000); 24 | $ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000); 25 | $ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275); 26 | 27 | $ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955); 28 | $ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000); 29 | $ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000); 30 | $ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000); 31 | $ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950); 32 | $ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000); 33 | $ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860); 34 | $ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550); 35 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_triangle.scss: -------------------------------------------------------------------------------- 1 | @mixin triangle($size, $color, $direction) { 2 | $width: nth($size, 1); 3 | $height: nth($size, length($size)); 4 | $foreground-color: nth($color, 1); 5 | $background-color: if(length($color) == 2, nth($color, 2), transparent); 6 | height: 0; 7 | width: 0; 8 | 9 | @if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) { 10 | $width: $width / 2; 11 | $height: if(length($size) > 1, $height, $height/2); 12 | 13 | @if $direction == up { 14 | border-bottom: $height solid $foreground-color; 15 | border-left: $width solid $background-color; 16 | border-right: $width solid $background-color; 17 | } @else if $direction == right { 18 | border-bottom: $width solid $background-color; 19 | border-left: $height solid $foreground-color; 20 | border-top: $width solid $background-color; 21 | } @else if $direction == down { 22 | border-left: $width solid $background-color; 23 | border-right: $width solid $background-color; 24 | border-top: $height solid $foreground-color; 25 | } @else if $direction == left { 26 | border-bottom: $width solid $background-color; 27 | border-right: $height solid $foreground-color; 28 | border-top: $width solid $background-color; 29 | } 30 | } @else if ($direction == up-right) or ($direction == up-left) { 31 | border-top: $height solid $foreground-color; 32 | 33 | @if $direction == up-right { 34 | border-left: $width solid $background-color; 35 | } @else if $direction == up-left { 36 | border-right: $width solid $background-color; 37 | } 38 | } @else if ($direction == down-right) or ($direction == down-left) { 39 | border-bottom: $height solid $foreground-color; 40 | 41 | @if $direction == down-right { 42 | border-left: $width solid $background-color; 43 | } @else if $direction == down-left { 44 | border-right: $width solid $background-color; 45 | } 46 | } @else if ($direction == inset-up) { 47 | border-color: $background-color $background-color $foreground-color; 48 | border-style: solid; 49 | border-width: $height $width; 50 | } @else if ($direction == inset-down) { 51 | border-color: $foreground-color $background-color $background-color; 52 | border-style: solid; 53 | border-width: $height $width; 54 | } @else if ($direction == inset-right) { 55 | border-color: $background-color $background-color $background-color $foreground-color; 56 | border-style: solid; 57 | border-width: $width $height; 58 | } @else if ($direction == inset-left) { 59 | border-color: $background-color $foreground-color $background-color $background-color; 60 | border-style: solid; 61 | border-width: $width $height; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/addons/_word-wrap.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Provides an easy way to change the `word-wrap` property. 4 | /// 5 | /// @param {String} $wrap [break-word] 6 | /// Value for the `word-break` property. 7 | /// 8 | /// @example scss - Usage 9 | /// .wrapper { 10 | /// @include word-wrap(break-word); 11 | /// } 12 | /// 13 | /// @example css - CSS Output 14 | /// .wrapper { 15 | /// overflow-wrap: break-word; 16 | /// word-break: break-all; 17 | /// word-wrap: break-word; 18 | /// } 19 | 20 | @mixin word-wrap($wrap: break-word) { 21 | overflow-wrap: $wrap; 22 | word-wrap: $wrap; 23 | 24 | @if $wrap == break-word { 25 | word-break: break-all; 26 | } @else { 27 | word-break: $wrap; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_animation.scss: -------------------------------------------------------------------------------- 1 | // http://www.w3.org/TR/css3-animations/#the-animation-name-property- 2 | // Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties. 3 | 4 | @mixin animation($animations...) { 5 | @include prefixer(animation, $animations, webkit moz spec); 6 | } 7 | 8 | @mixin animation-name($names...) { 9 | @include prefixer(animation-name, $names, webkit moz spec); 10 | } 11 | 12 | @mixin animation-duration($times...) { 13 | @include prefixer(animation-duration, $times, webkit moz spec); 14 | } 15 | 16 | @mixin animation-timing-function($motions...) { 17 | // ease | linear | ease-in | ease-out | ease-in-out 18 | @include prefixer(animation-timing-function, $motions, webkit moz spec); 19 | } 20 | 21 | @mixin animation-iteration-count($values...) { 22 | // infinite | 23 | @include prefixer(animation-iteration-count, $values, webkit moz spec); 24 | } 25 | 26 | @mixin animation-direction($directions...) { 27 | // normal | alternate 28 | @include prefixer(animation-direction, $directions, webkit moz spec); 29 | } 30 | 31 | @mixin animation-play-state($states...) { 32 | // running | paused 33 | @include prefixer(animation-play-state, $states, webkit moz spec); 34 | } 35 | 36 | @mixin animation-delay($times...) { 37 | @include prefixer(animation-delay, $times, webkit moz spec); 38 | } 39 | 40 | @mixin animation-fill-mode($modes...) { 41 | // none | forwards | backwards | both 42 | @include prefixer(animation-fill-mode, $modes, webkit moz spec); 43 | } 44 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_appearance.scss: -------------------------------------------------------------------------------- 1 | @mixin appearance($value) { 2 | @include prefixer(appearance, $value, webkit moz ms o spec); 3 | } 4 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_backface-visibility.scss: -------------------------------------------------------------------------------- 1 | @mixin backface-visibility($visibility) { 2 | @include prefixer(backface-visibility, $visibility, webkit spec); 3 | } 4 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_background-image.scss: -------------------------------------------------------------------------------- 1 | //************************************************************************// 2 | // Background-image property for adding multiple background images with 3 | // gradients, or for stringing multiple gradients together. 4 | //************************************************************************// 5 | 6 | @mixin background-image($images...) { 7 | $webkit-images: (); 8 | $spec-images: (); 9 | 10 | @each $image in $images { 11 | $webkit-image: (); 12 | $spec-image: (); 13 | 14 | @if (type-of($image) == string) { 15 | $url-str: str-slice($image, 0, 3); 16 | $gradient-type: str-slice($image, 0, 6); 17 | 18 | @if $url-str == "url" { 19 | $webkit-image: $image; 20 | $spec-image: $image; 21 | } 22 | 23 | @else if $gradient-type == "linear" { 24 | $gradients: _linear-gradient-parser($image); 25 | $webkit-image: map-get($gradients, webkit-image); 26 | $spec-image: map-get($gradients, spec-image); 27 | } 28 | 29 | @else if $gradient-type == "radial" { 30 | $gradients: _radial-gradient-parser($image); 31 | $webkit-image: map-get($gradients, webkit-image); 32 | $spec-image: map-get($gradients, spec-image); 33 | } 34 | } 35 | 36 | $webkit-images: append($webkit-images, $webkit-image, comma); 37 | $spec-images: append($spec-images, $spec-image, comma); 38 | } 39 | 40 | background-image: $webkit-images; 41 | background-image: $spec-images; 42 | } 43 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_background.scss: -------------------------------------------------------------------------------- 1 | //************************************************************************// 2 | // Background property for adding multiple backgrounds using shorthand 3 | // notation. 4 | //************************************************************************// 5 | 6 | @mixin background($backgrounds...) { 7 | $webkit-backgrounds: (); 8 | $spec-backgrounds: (); 9 | 10 | @each $background in $backgrounds { 11 | $webkit-background: (); 12 | $spec-background: (); 13 | $background-type: type-of($background); 14 | 15 | @if $background-type == string or $background-type == list { 16 | $background-str: if($background-type == list, nth($background, 1), $background); 17 | 18 | $url-str: str-slice($background-str, 0, 3); 19 | $gradient-type: str-slice($background-str, 0, 6); 20 | 21 | @if $url-str == "url" { 22 | $webkit-background: $background; 23 | $spec-background: $background; 24 | } 25 | 26 | @else if $gradient-type == "linear" { 27 | $gradients: _linear-gradient-parser("#{$background}"); 28 | $webkit-background: map-get($gradients, webkit-image); 29 | $spec-background: map-get($gradients, spec-image); 30 | } 31 | 32 | @else if $gradient-type == "radial" { 33 | $gradients: _radial-gradient-parser("#{$background}"); 34 | $webkit-background: map-get($gradients, webkit-image); 35 | $spec-background: map-get($gradients, spec-image); 36 | } 37 | 38 | @else { 39 | $webkit-background: $background; 40 | $spec-background: $background; 41 | } 42 | } 43 | 44 | @else { 45 | $webkit-background: $background; 46 | $spec-background: $background; 47 | } 48 | 49 | $webkit-backgrounds: append($webkit-backgrounds, $webkit-background, comma); 50 | $spec-backgrounds: append($spec-backgrounds, $spec-background, comma); 51 | } 52 | 53 | background: $webkit-backgrounds; 54 | background: $spec-backgrounds; 55 | } 56 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_border-image.scss: -------------------------------------------------------------------------------- 1 | @mixin border-image($borders...) { 2 | $webkit-borders: (); 3 | $spec-borders: (); 4 | 5 | @each $border in $borders { 6 | $webkit-border: (); 7 | $spec-border: (); 8 | $border-type: type-of($border); 9 | 10 | @if $border-type == string or list { 11 | $border-str: if($border-type == list, nth($border, 1), $border); 12 | 13 | $url-str: str-slice($border-str, 0, 3); 14 | $gradient-type: str-slice($border-str, 0, 6); 15 | 16 | @if $url-str == "url" { 17 | $webkit-border: $border; 18 | $spec-border: $border; 19 | } 20 | 21 | @else if $gradient-type == "linear" { 22 | $gradients: _linear-gradient-parser("#{$border}"); 23 | $webkit-border: map-get($gradients, webkit-image); 24 | $spec-border: map-get($gradients, spec-image); 25 | } 26 | 27 | @else if $gradient-type == "radial" { 28 | $gradients: _radial-gradient-parser("#{$border}"); 29 | $webkit-border: map-get($gradients, webkit-image); 30 | $spec-border: map-get($gradients, spec-image); 31 | } 32 | 33 | @else { 34 | $webkit-border: $border; 35 | $spec-border: $border; 36 | } 37 | } 38 | 39 | @else { 40 | $webkit-border: $border; 41 | $spec-border: $border; 42 | } 43 | 44 | $webkit-borders: append($webkit-borders, $webkit-border, comma); 45 | $spec-borders: append($spec-borders, $spec-border, comma); 46 | } 47 | 48 | -webkit-border-image: $webkit-borders; 49 | border-image: $spec-borders; 50 | border-style: solid; 51 | } 52 | 53 | //Examples: 54 | // @include border-image(url("image.png")); 55 | // @include border-image(url("image.png") 20 stretch); 56 | // @include border-image(linear-gradient(45deg, orange, yellow)); 57 | // @include border-image(linear-gradient(45deg, orange, yellow) stretch); 58 | // @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round); 59 | // @include border-image(radial-gradient(top, cover, orange, yellow, orange)); 60 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_calc.scss: -------------------------------------------------------------------------------- 1 | @mixin calc($property, $value) { 2 | #{$property}: -webkit-calc(#{$value}); 3 | #{$property}: calc(#{$value}); 4 | } 5 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_columns.scss: -------------------------------------------------------------------------------- 1 | @mixin columns($arg: auto) { 2 | // || 3 | @include prefixer(columns, $arg, webkit moz spec); 4 | } 5 | 6 | @mixin column-count($int: auto) { 7 | // auto || integer 8 | @include prefixer(column-count, $int, webkit moz spec); 9 | } 10 | 11 | @mixin column-gap($length: normal) { 12 | // normal || length 13 | @include prefixer(column-gap, $length, webkit moz spec); 14 | } 15 | 16 | @mixin column-fill($arg: auto) { 17 | // auto || length 18 | @include prefixer(column-fill, $arg, webkit moz spec); 19 | } 20 | 21 | @mixin column-rule($arg) { 22 | // || || 23 | @include prefixer(column-rule, $arg, webkit moz spec); 24 | } 25 | 26 | @mixin column-rule-color($color) { 27 | @include prefixer(column-rule-color, $color, webkit moz spec); 28 | } 29 | 30 | @mixin column-rule-style($style: none) { 31 | // none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid 32 | @include prefixer(column-rule-style, $style, webkit moz spec); 33 | } 34 | 35 | @mixin column-rule-width ($width: none) { 36 | @include prefixer(column-rule-width, $width, webkit moz spec); 37 | } 38 | 39 | @mixin column-span($arg: none) { 40 | // none || all 41 | @include prefixer(column-span, $arg, webkit moz spec); 42 | } 43 | 44 | @mixin column-width($length: auto) { 45 | // auto || length 46 | @include prefixer(column-width, $length, webkit moz spec); 47 | } 48 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_filter.scss: -------------------------------------------------------------------------------- 1 | @mixin filter($function: none) { 2 | // [ 3 | @include prefixer(perspective, $depth, webkit moz spec); 4 | } 5 | 6 | @mixin perspective-origin($value: 50% 50%) { 7 | @include prefixer(perspective-origin, $value, webkit moz spec); 8 | } 9 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_placeholder.scss: -------------------------------------------------------------------------------- 1 | @mixin placeholder { 2 | $placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input"; 3 | @each $placeholder in $placeholders { 4 | &:#{$placeholder}-placeholder { 5 | @content; 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_radial-gradient.scss: -------------------------------------------------------------------------------- 1 | // Requires Sass 3.1+ 2 | @mixin radial-gradient($g1, $g2, 3 | $g3: null, $g4: null, 4 | $g5: null, $g6: null, 5 | $g7: null, $g8: null, 6 | $g9: null, $g10: null, 7 | $pos: null, 8 | $shape-size: null, 9 | $fallback: null) { 10 | 11 | $data: _radial-arg-parser($g1, $g2, $pos, $shape-size); 12 | $g1: nth($data, 1); 13 | $g2: nth($data, 2); 14 | $pos: nth($data, 3); 15 | $shape-size: nth($data, 4); 16 | 17 | $full: $g1, $g2, $g3, $g4, $g5, $g6, $g7, $g8, $g9, $g10; 18 | 19 | // Strip deprecated cover/contain for spec 20 | $shape-size-spec: _shape-size-stripper($shape-size); 21 | 22 | // Set $g1 as the default fallback color 23 | $first-color: nth($full, 1); 24 | $fallback-color: nth($first-color, 1); 25 | 26 | @if (type-of($fallback) == color) or ($fallback == "transparent") { 27 | $fallback-color: $fallback; 28 | } 29 | 30 | // Add Commas and spaces 31 | $shape-size: if($shape-size, "#{$shape-size}, ", null); 32 | $pos: if($pos, "#{$pos}, ", null); 33 | $pos-spec: if($pos, "at #{$pos}", null); 34 | $shape-size-spec: if(($shape-size-spec != " ") and ($pos == null), "#{$shape-size-spec}, ", "#{$shape-size-spec} "); 35 | 36 | background-color: $fallback-color; 37 | background-image: -webkit-radial-gradient(unquote(#{$pos}#{$shape-size}#{$full})); 38 | background-image: unquote("radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full})"); 39 | } 40 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_selection.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Outputs the spec and prefixed versions of the `::selection` pseudo-element. 4 | /// 5 | /// @param {Bool} $current-selector [false] 6 | /// If set to `true`, it takes the current element into consideration. 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include selection(true) { 11 | /// background-color: #ffbb52; 12 | /// } 13 | /// } 14 | /// 15 | /// @example css - CSS Output 16 | /// .element::-moz-selection { 17 | /// background-color: #ffbb52; 18 | /// } 19 | /// 20 | /// .element::selection { 21 | /// background-color: #ffbb52; 22 | /// } 23 | 24 | @mixin selection($current-selector: false) { 25 | @if $current-selector { 26 | &::-moz-selection { 27 | @content; 28 | } 29 | 30 | &::selection { 31 | @content; 32 | } 33 | } @else { 34 | ::-moz-selection { 35 | @content; 36 | } 37 | 38 | ::selection { 39 | @content; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_text-decoration.scss: -------------------------------------------------------------------------------- 1 | @mixin text-decoration($value) { 2 | // || || 3 | @include prefixer(text-decoration, $value, moz); 4 | } 5 | 6 | @mixin text-decoration-line($line: none) { 7 | // none || underline || overline || line-through 8 | @include prefixer(text-decoration-line, $line, moz); 9 | } 10 | 11 | @mixin text-decoration-style($style: solid) { 12 | // solid || double || dotted || dashed || wavy 13 | @include prefixer(text-decoration-style, $style, moz webkit); 14 | } 15 | 16 | @mixin text-decoration-color($color: currentColor) { 17 | // currentColor || 18 | @include prefixer(text-decoration-color, $color, moz); 19 | } 20 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_transform.scss: -------------------------------------------------------------------------------- 1 | @mixin transform($property: none) { 2 | // none | 3 | @include prefixer(transform, $property, webkit moz ms o spec); 4 | } 5 | 6 | @mixin transform-origin($axes: 50%) { 7 | // x-axis - left | center | right | length | % 8 | // y-axis - top | center | bottom | length | % 9 | // z-axis - length 10 | @include prefixer(transform-origin, $axes, webkit moz ms o spec); 11 | } 12 | 13 | @mixin transform-style($style: flat) { 14 | @include prefixer(transform-style, $style, webkit moz ms o spec); 15 | } 16 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_transition.scss: -------------------------------------------------------------------------------- 1 | // Shorthand mixin. Supports multiple parentheses-deliminated values for each variable. 2 | // Example: @include transition (all 2s ease-in-out); 3 | // @include transition (opacity 1s ease-in 2s, width 2s ease-out); 4 | // @include transition-property (transform, opacity); 5 | 6 | @mixin transition($properties...) { 7 | // Fix for vendor-prefix transform property 8 | $needs-prefixes: false; 9 | $webkit: (); 10 | $moz: (); 11 | $spec: (); 12 | 13 | // Create lists for vendor-prefixed transform 14 | @each $list in $properties { 15 | @if nth($list, 1) == "transform" { 16 | $needs-prefixes: true; 17 | $list1: -webkit-transform; 18 | $list2: -moz-transform; 19 | $list3: (); 20 | 21 | @each $var in $list { 22 | $list3: join($list3, $var); 23 | 24 | @if $var != "transform" { 25 | $list1: join($list1, $var); 26 | $list2: join($list2, $var); 27 | } 28 | } 29 | 30 | $webkit: append($webkit, $list1); 31 | $moz: append($moz, $list2); 32 | $spec: append($spec, $list3); 33 | } @else { 34 | $webkit: append($webkit, $list, comma); 35 | $moz: append($moz, $list, comma); 36 | $spec: append($spec, $list, comma); 37 | } 38 | } 39 | 40 | @if $needs-prefixes { 41 | -webkit-transition: $webkit; 42 | -moz-transition: $moz; 43 | transition: $spec; 44 | } @else { 45 | @if length($properties) >= 1 { 46 | @include prefixer(transition, $properties, webkit moz spec); 47 | } @else { 48 | $properties: all 0.15s ease-out 0s; 49 | @include prefixer(transition, $properties, webkit moz spec); 50 | } 51 | } 52 | } 53 | 54 | @mixin transition-property($properties...) { 55 | -webkit-transition-property: transition-property-names($properties, "webkit"); 56 | -moz-transition-property: transition-property-names($properties, "moz"); 57 | transition-property: transition-property-names($properties, false); 58 | } 59 | 60 | @mixin transition-duration($times...) { 61 | @include prefixer(transition-duration, $times, webkit moz spec); 62 | } 63 | 64 | @mixin transition-timing-function($motions...) { 65 | // ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier() 66 | @include prefixer(transition-timing-function, $motions, webkit moz spec); 67 | } 68 | 69 | @mixin transition-delay($times...) { 70 | @include prefixer(transition-delay, $times, webkit moz spec); 71 | } 72 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/css3/_user-select.scss: -------------------------------------------------------------------------------- 1 | @mixin user-select($value: none) { 2 | @include prefixer(user-select, $value, webkit moz ms spec); 3 | } 4 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_assign-inputs.scss: -------------------------------------------------------------------------------- 1 | @function assign-inputs($inputs, $pseudo: null) { 2 | $list: (); 3 | 4 | @each $input in $inputs { 5 | $input: unquote($input); 6 | $input: if($pseudo, $input + ":" + $pseudo, $input); 7 | $list: append($list, $input, comma); 8 | } 9 | 10 | @return $list; 11 | } 12 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_contains-falsy.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Checks if a list does not contains a value. 4 | /// 5 | /// @access private 6 | /// 7 | /// @param {List} $list 8 | /// The list to check against. 9 | /// 10 | /// @return {Bool} 11 | 12 | @function contains-falsy($list) { 13 | @each $item in $list { 14 | @if not $item { 15 | @return true; 16 | } 17 | } 18 | 19 | @return false; 20 | } 21 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_contains.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Checks if a list contains a value(s). 4 | /// 5 | /// @access private 6 | /// 7 | /// @param {List} $list 8 | /// The list to check against. 9 | /// 10 | /// @param {List} $values 11 | /// A single value or list of values to check for. 12 | /// 13 | /// @example scss - Usage 14 | /// contains($list, $value) 15 | /// 16 | /// @return {Bool} 17 | 18 | @function contains($list, $values...) { 19 | @each $value in $values { 20 | @if type-of(index($list, $value)) != "number" { 21 | @return false; 22 | } 23 | } 24 | 25 | @return true; 26 | } 27 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_is-length.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Checks for a valid CSS length. 4 | /// 5 | /// @param {String} $value 6 | 7 | @function is-length($value) { 8 | @return type-of($value) != "null" and (str-slice($value + "", 1, 4) == "calc" 9 | or index(auto inherit initial 0, $value) 10 | or (type-of($value) == "number" and not(unitless($value)))); 11 | } 12 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_is-light.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Programatically determines whether a color is light or dark. 4 | /// 5 | /// @link http://robots.thoughtbot.com/closer-look-color-lightness 6 | /// 7 | /// @param {Color (Hex)} $color 8 | /// 9 | /// @example scss - Usage 10 | /// is-light($color) 11 | /// 12 | /// @return {Bool} 13 | 14 | @function is-light($hex-color) { 15 | $-local-red: red(rgba($hex-color, 1)); 16 | $-local-green: green(rgba($hex-color, 1)); 17 | $-local-blue: blue(rgba($hex-color, 1)); 18 | $-local-lightness: ($-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722) / 255; 19 | 20 | @return $-local-lightness > 0.6; 21 | } 22 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_is-number.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Checks for a valid number. 4 | /// 5 | /// @param {Number} $value 6 | /// 7 | /// @require {function} contains 8 | 9 | @function is-number($value) { 10 | @return contains("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" 0 1 2 3 4 5 6 7 8 9, $value); 11 | } 12 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_is-size.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Checks for a valid CSS size. 4 | /// 5 | /// @param {String} $value 6 | /// 7 | /// @require {function} contains 8 | /// @require {function} is-length 9 | 10 | @function is-size($value) { 11 | @return is-length($value) 12 | or contains("fill" "fit-content" "min-content" "max-content", $value); 13 | } 14 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_modular-scale.scss: -------------------------------------------------------------------------------- 1 | // Scaling Variables 2 | $golden: 1.618; 3 | $minor-second: 1.067; 4 | $major-second: 1.125; 5 | $minor-third: 1.2; 6 | $major-third: 1.25; 7 | $perfect-fourth: 1.333; 8 | $augmented-fourth: 1.414; 9 | $perfect-fifth: 1.5; 10 | $minor-sixth: 1.6; 11 | $major-sixth: 1.667; 12 | $minor-seventh: 1.778; 13 | $major-seventh: 1.875; 14 | $octave: 2; 15 | $major-tenth: 2.5; 16 | $major-eleventh: 2.667; 17 | $major-twelfth: 3; 18 | $double-octave: 4; 19 | 20 | $modular-scale-ratio: $perfect-fourth !default; 21 | $modular-scale-base: em($em-base) !default; 22 | 23 | @function modular-scale($increment, $value: $modular-scale-base, $ratio: $modular-scale-ratio) { 24 | $v1: nth($value, 1); 25 | $v2: nth($value, length($value)); 26 | $value: $v1; 27 | 28 | // scale $v2 to just above $v1 29 | @while $v2 > $v1 { 30 | $v2: ($v2 / $ratio); // will be off-by-1 31 | } 32 | @while $v2 < $v1 { 33 | $v2: ($v2 * $ratio); // will fix off-by-1 34 | } 35 | 36 | // check AFTER scaling $v2 to prevent double-counting corner-case 37 | $double-stranded: $v2 > $v1; 38 | 39 | @if $increment > 0 { 40 | @for $i from 1 through $increment { 41 | @if $double-stranded and ($v1 * $ratio) > $v2 { 42 | $value: $v2; 43 | $v2: ($v2 * $ratio); 44 | } @else { 45 | $v1: ($v1 * $ratio); 46 | $value: $v1; 47 | } 48 | } 49 | } 50 | 51 | @if $increment < 0 { 52 | // adjust $v2 to just below $v1 53 | @if $double-stranded { 54 | $v2: ($v2 / $ratio); 55 | } 56 | 57 | @for $i from $increment through -1 { 58 | @if $double-stranded and ($v1 / $ratio) < $v2 { 59 | $value: $v2; 60 | $v2: ($v2 / $ratio); 61 | } @else { 62 | $v1: ($v1 / $ratio); 63 | $value: $v1; 64 | } 65 | } 66 | } 67 | 68 | @return $value; 69 | } 70 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_px-to-em.scss: -------------------------------------------------------------------------------- 1 | // Convert pixels to ems 2 | // eg. for a relational value of 12px write em(12) when the parent is 16px 3 | // if the parent is another value say 24px write em(12, 24) 4 | 5 | @function em($pxval, $base: $em-base) { 6 | @if not unitless($pxval) { 7 | $pxval: strip-units($pxval); 8 | } 9 | @if not unitless($base) { 10 | $base: strip-units($base); 11 | } 12 | @return ($pxval / $base) * 1em; 13 | } 14 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_px-to-rem.scss: -------------------------------------------------------------------------------- 1 | // Convert pixels to rems 2 | // eg. for a relational value of 12px write rem(12) 3 | // Assumes $em-base is the font-size of 4 | 5 | @function rem($pxval) { 6 | @if not unitless($pxval) { 7 | $pxval: strip-units($pxval); 8 | } 9 | 10 | $base: $em-base; 11 | @if not unitless($base) { 12 | $base: strip-units($base); 13 | } 14 | @return ($pxval / $base) * 1rem; 15 | } 16 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_shade.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Mixes a color with black. 4 | /// 5 | /// @param {Color} $color 6 | /// 7 | /// @param {Number (Percentage)} $percent 8 | /// The amount of black to be mixed in. 9 | /// 10 | /// @example scss - Usage 11 | /// .element { 12 | /// background-color: shade(#ffbb52, 60%); 13 | /// } 14 | /// 15 | /// @example css - CSS Output 16 | /// .element { 17 | /// background-color: #664a20; 18 | /// } 19 | /// 20 | /// @return {Color} 21 | 22 | @function shade($color, $percent) { 23 | @return mix(#000, $color, $percent); 24 | } 25 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_strip-units.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Strips the unit from a number. 4 | /// 5 | /// @param {Number (With Unit)} $value 6 | /// 7 | /// @example scss - Usage 8 | /// $dimension: strip-units(10em); 9 | /// 10 | /// @example css - CSS Output 11 | /// $dimension: 10; 12 | /// 13 | /// @return {Number (Unitless)} 14 | 15 | @function strip-units($value) { 16 | @return ($value / ($value * 0 + 1)); 17 | } 18 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_tint.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Mixes a color with white. 4 | /// 5 | /// @param {Color} $color 6 | /// 7 | /// @param {Number (Percentage)} $percent 8 | /// The amount of white to be mixed in. 9 | /// 10 | /// @example scss - Usage 11 | /// .element { 12 | /// background-color: tint(#6ecaa6, 40%); 13 | /// } 14 | /// 15 | /// @example css - CSS Output 16 | /// .element { 17 | /// background-color: #a8dfc9; 18 | /// } 19 | /// 20 | /// @return {Color} 21 | 22 | @function tint($color, $percent) { 23 | @return mix(#fff, $color, $percent); 24 | } 25 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_transition-property-name.scss: -------------------------------------------------------------------------------- 1 | // Return vendor-prefixed property names if appropriate 2 | // Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background 3 | //************************************************************************// 4 | @function transition-property-names($props, $vendor: false) { 5 | $new-props: (); 6 | 7 | @each $prop in $props { 8 | $new-props: append($new-props, transition-property-name($prop, $vendor), comma); 9 | } 10 | 11 | @return $new-props; 12 | } 13 | 14 | @function transition-property-name($prop, $vendor: false) { 15 | // put other properties that need to be prefixed here aswell 16 | @if $vendor and $prop == transform { 17 | @return unquote('-'+$vendor+'-'+$prop); 18 | } 19 | @else { 20 | @return $prop; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/functions/_unpack.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Converts shorthand to the 4-value syntax. 4 | /// 5 | /// @param {List} $shorthand 6 | /// 7 | /// @example scss - Usage 8 | /// .element { 9 | /// margin: unpack(1em 2em); 10 | /// } 11 | /// 12 | /// @example css - CSS Output 13 | /// .element { 14 | /// margin: 1em 2em 1em 2em; 15 | /// } 16 | 17 | @function unpack($shorthand) { 18 | @if length($shorthand) == 1 { 19 | @return nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1); 20 | } @else if length($shorthand) == 2 { 21 | @return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 1) nth($shorthand, 2); 22 | } @else if length($shorthand) == 3 { 23 | @return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 3) nth($shorthand, 2); 24 | } @else { 25 | @return $shorthand; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_convert-units.scss: -------------------------------------------------------------------------------- 1 | //************************************************************************// 2 | // Helper function for str-to-num fn. 3 | // Source: http://sassmeister.com/gist/9647408 4 | //************************************************************************// 5 | @function _convert-units($number, $unit) { 6 | $strings: "px", "cm", "mm", "%", "ch", "pica", "in", "em", "rem", "pt", "pc", "ex", "vw", "vh", "vmin", "vmax", "deg", "rad", "grad", "turn"; 7 | $units: 1px, 1cm, 1mm, 1%, 1ch, 1pica, 1in, 1em, 1rem, 1pt, 1pc, 1ex, 1vw, 1vh, 1vmin, 1vmax, 1deg, 1rad, 1grad, 1turn; 8 | $index: index($strings, $unit); 9 | 10 | @if not $index { 11 | @warn "Unknown unit `#{$unit}`."; 12 | @return false; 13 | } 14 | 15 | @if type-of($number) != "number" { 16 | @warn "`#{$number} is not a number`"; 17 | @return false; 18 | } 19 | 20 | @return $number * nth($units, $index); 21 | } 22 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_directional-values.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Directional-property mixins are shorthands for writing properties like the following 4 | /// 5 | /// @ignore You can also use `false` instead of `null`. 6 | /// 7 | /// @param {List} $vals 8 | /// List of directional values 9 | /// 10 | /// @example scss - Usage 11 | /// .element { 12 | /// @include border-style(dotted null); 13 | /// @include margin(null 0 10px); 14 | /// } 15 | /// 16 | /// @example css - CSS Output 17 | /// .element { 18 | /// border-bottom-style: dotted; 19 | /// border-top-style: dotted; 20 | /// margin-bottom: 10px; 21 | /// margin-left: 0; 22 | /// margin-right: 0; 23 | /// } 24 | /// 25 | /// @require {function} contains-falsy 26 | /// 27 | /// @return {List} 28 | 29 | @function collapse-directionals($vals) { 30 | $output: null; 31 | 32 | $a: nth($vals, 1); 33 | $b: if(length($vals) < 2, $a, nth($vals, 2)); 34 | $c: if(length($vals) < 3, $a, nth($vals, 3)); 35 | $d: if(length($vals) < 2, $a, nth($vals, if(length($vals) < 4, 2, 4))); 36 | 37 | @if $a == 0 { $a: 0; } 38 | @if $b == 0 { $b: 0; } 39 | @if $c == 0 { $c: 0; } 40 | @if $d == 0 { $d: 0; } 41 | 42 | @if $a == $b and $a == $c and $a == $d { $output: $a; } 43 | @else if $a == $c and $b == $d { $output: $a $b; } 44 | @else if $b == $d { $output: $a $b $c; } 45 | @else { $output: $a $b $c $d; } 46 | 47 | @return $output; 48 | } 49 | 50 | /// Output directional properties, for instance `margin`. 51 | /// 52 | /// @access private 53 | /// 54 | /// @param {String} $pre 55 | /// Prefix to use 56 | /// @param {String} $suf 57 | /// Suffix to use 58 | /// @param {List} $vals 59 | /// List of values 60 | /// 61 | /// @require {function} collapse-directionals 62 | /// @require {function} contains-falsy 63 | 64 | @mixin directional-property($pre, $suf, $vals) { 65 | // Property Names 66 | $top: $pre + "-top" + if($suf, "-#{$suf}", ""); 67 | $bottom: $pre + "-bottom" + if($suf, "-#{$suf}", ""); 68 | $left: $pre + "-left" + if($suf, "-#{$suf}", ""); 69 | $right: $pre + "-right" + if($suf, "-#{$suf}", ""); 70 | $all: $pre + if($suf, "-#{$suf}", ""); 71 | 72 | $vals: collapse-directionals($vals); 73 | 74 | @if contains-falsy($vals) { 75 | @if nth($vals, 1) { #{$top}: nth($vals, 1); } 76 | 77 | @if length($vals) == 1 { 78 | @if nth($vals, 1) { #{$right}: nth($vals, 1); } 79 | } @else { 80 | @if nth($vals, 2) { #{$right}: nth($vals, 2); } 81 | } 82 | 83 | @if length($vals) == 2 { 84 | @if nth($vals, 1) { #{$bottom}: nth($vals, 1); } 85 | @if nth($vals, 2) { #{$left}: nth($vals, 2); } 86 | } @else if length($vals) == 3 { 87 | @if nth($vals, 3) { #{$bottom}: nth($vals, 3); } 88 | @if nth($vals, 2) { #{$left}: nth($vals, 2); } 89 | } @else if length($vals) == 4 { 90 | @if nth($vals, 3) { #{$bottom}: nth($vals, 3); } 91 | @if nth($vals, 4) { #{$left}: nth($vals, 4); } 92 | } 93 | } @else { 94 | #{$all}: $vals; 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_font-source-declaration.scss: -------------------------------------------------------------------------------- 1 | // Used for creating the source string for fonts using @font-face 2 | // Reference: http://goo.gl/Ru1bKP 3 | 4 | @function font-url-prefixer($asset-pipeline) { 5 | @if $asset-pipeline == true { 6 | @return font-url; 7 | } @else { 8 | @return url; 9 | } 10 | } 11 | 12 | @function font-source-declaration( 13 | $font-family, 14 | $file-path, 15 | $asset-pipeline, 16 | $file-formats, 17 | $font-url) { 18 | 19 | $src: (); 20 | 21 | $formats-map: ( 22 | eot: "#{$file-path}.eot?#iefix" format("embedded-opentype"), 23 | woff2: "#{$file-path}.woff2" format("woff2"), 24 | woff: "#{$file-path}.woff" format("woff"), 25 | ttf: "#{$file-path}.ttf" format("truetype"), 26 | svg: "#{$file-path}.svg##{$font-family}" format("svg") 27 | ); 28 | 29 | @each $key, $values in $formats-map { 30 | @if contains($file-formats, $key) { 31 | $file-path: nth($values, 1); 32 | $font-format: nth($values, 2); 33 | 34 | @if $asset-pipeline == true { 35 | $src: append($src, font-url($file-path) $font-format, comma); 36 | } @else { 37 | $src: append($src, url($file-path) $font-format, comma); 38 | } 39 | } 40 | } 41 | 42 | @return $src; 43 | } 44 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_gradient-positions-parser.scss: -------------------------------------------------------------------------------- 1 | @function _gradient-positions-parser($gradient-type, $gradient-positions) { 2 | @if $gradient-positions 3 | and ($gradient-type == linear) 4 | and (type-of($gradient-positions) != color) { 5 | $gradient-positions: _linear-positions-parser($gradient-positions); 6 | } 7 | @else if $gradient-positions 8 | and ($gradient-type == radial) 9 | and (type-of($gradient-positions) != color) { 10 | $gradient-positions: _radial-positions-parser($gradient-positions); 11 | } 12 | @return $gradient-positions; 13 | } 14 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_linear-angle-parser.scss: -------------------------------------------------------------------------------- 1 | // Private function for linear-gradient-parser 2 | @function _linear-angle-parser($image, $first-val, $prefix, $suffix) { 3 | $offset: null; 4 | $unit-short: str-slice($first-val, str-length($first-val) - 2, str-length($first-val)); 5 | $unit-long: str-slice($first-val, str-length($first-val) - 3, str-length($first-val)); 6 | 7 | @if ($unit-long == "grad") or 8 | ($unit-long == "turn") { 9 | $offset: if($unit-long == "grad", -100grad * 3, -0.75turn); 10 | } 11 | 12 | @else if ($unit-short == "deg") or 13 | ($unit-short == "rad") { 14 | $offset: if($unit-short == "deg", -90 * 3, 1.6rad); 15 | } 16 | 17 | @if $offset { 18 | $num: _str-to-num($first-val); 19 | 20 | @return ( 21 | webkit-image: -webkit- + $prefix + ($offset - $num) + $suffix, 22 | spec-image: $image 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_linear-gradient-parser.scss: -------------------------------------------------------------------------------- 1 | @function _linear-gradient-parser($image) { 2 | $image: unquote($image); 3 | $gradients: (); 4 | $start: str-index($image, "("); 5 | $end: str-index($image, ","); 6 | $first-val: str-slice($image, $start + 1, $end - 1); 7 | 8 | $prefix: str-slice($image, 0, $start); 9 | $suffix: str-slice($image, $end, str-length($image)); 10 | 11 | $has-multiple-vals: str-index($first-val, " "); 12 | $has-single-position: unquote(_position-flipper($first-val) + ""); 13 | $has-angle: is-number(str-slice($first-val, 0, 0)); 14 | 15 | @if $has-multiple-vals { 16 | $gradients: _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals); 17 | } 18 | 19 | @else if $has-single-position != "" { 20 | $pos: unquote($has-single-position + ""); 21 | 22 | $gradients: ( 23 | webkit-image: -webkit- + $image, 24 | spec-image: $prefix + "to " + $pos + $suffix 25 | ); 26 | } 27 | 28 | @else if $has-angle { 29 | // Rotate degree for webkit 30 | $gradients: _linear-angle-parser($image, $first-val, $prefix, $suffix); 31 | } 32 | 33 | @else { 34 | $gradients: ( 35 | webkit-image: -webkit- + $image, 36 | spec-image: $image 37 | ); 38 | } 39 | 40 | @return $gradients; 41 | } 42 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_linear-positions-parser.scss: -------------------------------------------------------------------------------- 1 | @function _linear-positions-parser($pos) { 2 | $type: type-of(nth($pos, 1)); 3 | $spec: null; 4 | $degree: null; 5 | $side: null; 6 | $corner: null; 7 | $length: length($pos); 8 | // Parse Side and corner positions 9 | @if ($length > 1) { 10 | @if nth($pos, 1) == "to" { // Newer syntax 11 | $side: nth($pos, 2); 12 | 13 | @if $length == 2 { // eg. to top 14 | // Swap for backwards compatability 15 | $degree: _position-flipper(nth($pos, 2)); 16 | } 17 | @else if $length == 3 { // eg. to top left 18 | $corner: nth($pos, 3); 19 | } 20 | } 21 | @else if $length == 2 { // Older syntax ("top left") 22 | $side: _position-flipper(nth($pos, 1)); 23 | $corner: _position-flipper(nth($pos, 2)); 24 | } 25 | 26 | @if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") { 27 | $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); 28 | } 29 | @else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") { 30 | $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); 31 | } 32 | @else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") { 33 | $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); 34 | } 35 | @else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") { 36 | $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); 37 | } 38 | $spec: to $side $corner; 39 | } 40 | @else if $length == 1 { 41 | // Swap for backwards compatability 42 | @if $type == string { 43 | $degree: $pos; 44 | $spec: to _position-flipper($pos); 45 | } 46 | @else { 47 | $degree: -270 - $pos; //rotate the gradient opposite from spec 48 | $spec: $pos; 49 | } 50 | } 51 | $degree: unquote($degree + ","); 52 | $spec: unquote($spec + ","); 53 | @return $degree $spec; 54 | } 55 | 56 | @function _position-flipper($pos) { 57 | @return if($pos == left, right, null) 58 | if($pos == right, left, null) 59 | if($pos == top, bottom, null) 60 | if($pos == bottom, top, null); 61 | } 62 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_linear-side-corner-parser.scss: -------------------------------------------------------------------------------- 1 | // Private function for linear-gradient-parser 2 | @function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) { 3 | $val-1: str-slice($first-val, 0, $has-multiple-vals - 1 ); 4 | $val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val)); 5 | $val-3: null; 6 | $has-val-3: str-index($val-2, " "); 7 | 8 | @if $has-val-3 { 9 | $val-3: str-slice($val-2, $has-val-3 + 1, str-length($val-2)); 10 | $val-2: str-slice($val-2, 0, $has-val-3 - 1); 11 | } 12 | 13 | $pos: _position-flipper($val-1) _position-flipper($val-2) _position-flipper($val-3); 14 | $pos: unquote($pos + ""); 15 | 16 | // Use old spec for webkit 17 | @if $val-1 == "to" { 18 | @return ( 19 | webkit-image: -webkit- + $prefix + $pos + $suffix, 20 | spec-image: $image 21 | ); 22 | } 23 | 24 | // Bring the code up to spec 25 | @else { 26 | @return ( 27 | webkit-image: -webkit- + $image, 28 | spec-image: $prefix + "to " + $pos + $suffix 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_radial-arg-parser.scss: -------------------------------------------------------------------------------- 1 | @function _radial-arg-parser($g1, $g2, $pos, $shape-size) { 2 | @each $value in $g1, $g2 { 3 | $first-val: nth($value, 1); 4 | $pos-type: type-of($first-val); 5 | $spec-at-index: null; 6 | 7 | // Determine if spec was passed to mixin 8 | @if type-of($value) == list { 9 | $spec-at-index: if(index($value, at), index($value, at), false); 10 | } 11 | @if $spec-at-index { 12 | @if $spec-at-index > 1 { 13 | @for $i from 1 through ($spec-at-index - 1) { 14 | $shape-size: $shape-size nth($value, $i); 15 | } 16 | @for $i from ($spec-at-index + 1) through length($value) { 17 | $pos: $pos nth($value, $i); 18 | } 19 | } 20 | @else if $spec-at-index == 1 { 21 | @for $i from ($spec-at-index + 1) through length($value) { 22 | $pos: $pos nth($value, $i); 23 | } 24 | } 25 | $g1: null; 26 | } 27 | 28 | // If not spec calculate correct values 29 | @else { 30 | @if ($pos-type != color) or ($first-val != "transparent") { 31 | @if ($pos-type == number) 32 | or ($first-val == "center") 33 | or ($first-val == "top") 34 | or ($first-val == "right") 35 | or ($first-val == "bottom") 36 | or ($first-val == "left") { 37 | 38 | $pos: $value; 39 | 40 | @if $pos == $g1 { 41 | $g1: null; 42 | } 43 | } 44 | 45 | @else if 46 | ($first-val == "ellipse") 47 | or ($first-val == "circle") 48 | or ($first-val == "closest-side") 49 | or ($first-val == "closest-corner") 50 | or ($first-val == "farthest-side") 51 | or ($first-val == "farthest-corner") 52 | or ($first-val == "contain") 53 | or ($first-val == "cover") { 54 | 55 | $shape-size: $value; 56 | 57 | @if $value == $g1 { 58 | $g1: null; 59 | } 60 | 61 | @else if $value == $g2 { 62 | $g2: null; 63 | } 64 | } 65 | } 66 | } 67 | } 68 | @return $g1, $g2, $pos, $shape-size; 69 | } 70 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_radial-gradient-parser.scss: -------------------------------------------------------------------------------- 1 | @function _radial-gradient-parser($image) { 2 | $image: unquote($image); 3 | $gradients: (); 4 | $start: str-index($image, "("); 5 | $end: str-index($image, ","); 6 | $first-val: str-slice($image, $start + 1, $end - 1); 7 | 8 | $prefix: str-slice($image, 0, $start); 9 | $suffix: str-slice($image, $end, str-length($image)); 10 | 11 | $is-spec-syntax: str-index($first-val, "at"); 12 | 13 | @if $is-spec-syntax and $is-spec-syntax > 1 { 14 | $keyword: str-slice($first-val, 1, $is-spec-syntax - 2); 15 | $pos: str-slice($first-val, $is-spec-syntax + 3, str-length($first-val)); 16 | $pos: append($pos, $keyword, comma); 17 | 18 | $gradients: ( 19 | webkit-image: -webkit- + $prefix + $pos + $suffix, 20 | spec-image: $image 21 | ); 22 | } 23 | 24 | @else if $is-spec-syntax == 1 { 25 | $pos: str-slice($first-val, $is-spec-syntax + 3, str-length($first-val)); 26 | 27 | $gradients: ( 28 | webkit-image: -webkit- + $prefix + $pos + $suffix, 29 | spec-image: $image 30 | ); 31 | } 32 | 33 | @else if str-index($image, "cover") or str-index($image, "contain") { 34 | @warn "Radial-gradient needs to be updated to conform to latest spec."; 35 | 36 | $gradients: ( 37 | webkit-image: null, 38 | spec-image: $image 39 | ); 40 | } 41 | 42 | @else { 43 | $gradients: ( 44 | webkit-image: -webkit- + $image, 45 | spec-image: $image 46 | ); 47 | } 48 | 49 | @return $gradients; 50 | } 51 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_radial-positions-parser.scss: -------------------------------------------------------------------------------- 1 | @function _radial-positions-parser($gradient-pos) { 2 | $shape-size: nth($gradient-pos, 1); 3 | $pos: nth($gradient-pos, 2); 4 | $shape-size-spec: _shape-size-stripper($shape-size); 5 | 6 | $pre-spec: unquote(if($pos, "#{$pos}, ", null)) 7 | unquote(if($shape-size, "#{$shape-size},", null)); 8 | $pos-spec: if($pos, "at #{$pos}", null); 9 | 10 | $spec: "#{$shape-size-spec} #{$pos-spec}"; 11 | 12 | // Add comma 13 | @if ($spec != " ") { 14 | $spec: "#{$spec},"; 15 | } 16 | 17 | @return $pre-spec $spec; 18 | } 19 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_render-gradients.scss: -------------------------------------------------------------------------------- 1 | // User for linear and radial gradients within background-image or border-image properties 2 | 3 | @function _render-gradients($gradient-positions, $gradients, $gradient-type, $vendor: false) { 4 | $pre-spec: null; 5 | $spec: null; 6 | $vendor-gradients: null; 7 | @if $gradient-type == linear { 8 | @if $gradient-positions { 9 | $pre-spec: nth($gradient-positions, 1); 10 | $spec: nth($gradient-positions, 2); 11 | } 12 | } 13 | @else if $gradient-type == radial { 14 | $pre-spec: nth($gradient-positions, 1); 15 | $spec: nth($gradient-positions, 2); 16 | } 17 | 18 | @if $vendor { 19 | $vendor-gradients: -#{$vendor}-#{$gradient-type}-gradient(#{$pre-spec} $gradients); 20 | } 21 | @else if $vendor == false { 22 | $vendor-gradients: "#{$gradient-type}-gradient(#{$spec} #{$gradients})"; 23 | $vendor-gradients: unquote($vendor-gradients); 24 | } 25 | @return $vendor-gradients; 26 | } 27 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_shape-size-stripper.scss: -------------------------------------------------------------------------------- 1 | @function _shape-size-stripper($shape-size) { 2 | $shape-size-spec: null; 3 | @each $value in $shape-size { 4 | @if ($value == "cover") or ($value == "contain") { 5 | $value: null; 6 | } 7 | $shape-size-spec: "#{$shape-size-spec} #{$value}"; 8 | } 9 | @return $shape-size-spec; 10 | } 11 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/helpers/_str-to-num.scss: -------------------------------------------------------------------------------- 1 | //************************************************************************// 2 | // Helper function for linear/radial-gradient-parsers. 3 | // Source: http://sassmeister.com/gist/9647408 4 | //************************************************************************// 5 | @function _str-to-num($string) { 6 | // Matrices 7 | $strings: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9"; 8 | $numbers: 0 1 2 3 4 5 6 7 8 9; 9 | 10 | // Result 11 | $result: 0; 12 | $divider: 0; 13 | $minus: false; 14 | 15 | // Looping through all characters 16 | @for $i from 1 through str-length($string) { 17 | $character: str-slice($string, $i, $i); 18 | $index: index($strings, $character); 19 | 20 | @if $character == "-" { 21 | $minus: true; 22 | } 23 | 24 | @else if $character == "." { 25 | $divider: 1; 26 | } 27 | 28 | @else { 29 | @if not $index { 30 | $result: if($minus, $result * -1, $result); 31 | @return _convert-units($result, str-slice($string, $i)); 32 | } 33 | 34 | $number: nth($numbers, $index); 35 | 36 | @if $divider == 0 { 37 | $result: $result * 10; 38 | } 39 | 40 | @else { 41 | // Move the decimal dot to the left 42 | $divider: $divider * 10; 43 | $number: $number / $divider; 44 | } 45 | 46 | $result: $result + $number; 47 | } 48 | } 49 | @return if($minus, $result * -1, $result); 50 | } 51 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/settings/_asset-pipeline.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// A global setting to enable or disable the `$asset-pipeline` variable for all functions that accept it. 4 | /// 5 | /// @type Bool 6 | 7 | $asset-pipeline: false !default; 8 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/settings/_prefixer.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Global variables to enable or disable vendor prefixes 4 | 5 | $prefix-for-webkit: true !default; 6 | $prefix-for-mozilla: true !default; 7 | $prefix-for-microsoft: true !default; 8 | $prefix-for-opera: true !default; 9 | $prefix-for-spec: true !default; 10 | -------------------------------------------------------------------------------- /assets/_scss/lib/bourbon/settings/_px-to-em.scss: -------------------------------------------------------------------------------- 1 | $em-base: 16px !default; 2 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/_neat-helpers.scss: -------------------------------------------------------------------------------- 1 | // Functions 2 | @import "functions/private"; 3 | @import "functions/new-breakpoint"; 4 | 5 | // Settings 6 | @import "settings/grid"; 7 | @import "settings/visual-grid"; 8 | @import "settings/disable-warnings"; 9 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/_neat.scss: -------------------------------------------------------------------------------- 1 | // Neat 1.7.2 2 | // http://neat.bourbon.io 3 | // Copyright 2012-2015 thoughtbot, inc. 4 | // MIT License 5 | 6 | // Helpers 7 | @import "neat-helpers"; 8 | 9 | // Grid 10 | @import "grid/private"; 11 | @import "grid/box-sizing"; 12 | @import "grid/omega"; 13 | @import "grid/outer-container"; 14 | @import "grid/span-columns"; 15 | @import "grid/row"; 16 | @import "grid/shift"; 17 | @import "grid/pad"; 18 | @import "grid/fill-parent"; 19 | @import "grid/media"; 20 | @import "grid/to-deprecate"; 21 | @import "grid/visual-grid"; 22 | @import "grid/display-context"; 23 | @import "grid/direction-context"; 24 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/functions/_new-breakpoint.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Returns a media context (media query / grid context) that can be stored in a variable and passed to `media()` as a single-keyword argument. Media contexts defined using `new-breakpoint` are used by the visual grid, as long as they are defined before importing Neat. 4 | /// 5 | /// @param {List} $query 6 | /// A list of media query features and values. Each `$feature` should have a corresponding `$value`. 7 | /// 8 | /// If there is only a single `$value` in `$query`, `$default-feature` is going to be used. 9 | /// 10 | /// The number of total columns in the grid can be set by passing `$columns` at the end of the list (overrides `$total-columns`). For a list of valid values for `$feature`, click [here](http://www.w3.org/TR/css3-mediaqueries/#media1). 11 | /// 12 | /// @param {Number (unitless)} $total-columns [$grid-columns] 13 | /// - Number of columns to use in the new grid context. Can be set as a shorthand in the first parameter. 14 | /// 15 | /// @example scss - Usage 16 | /// $mobile: new-breakpoint(max-width 480px 4); 17 | /// 18 | /// .element { 19 | /// @include media($mobile) { 20 | /// @include span-columns(4); 21 | /// } 22 | /// } 23 | /// 24 | /// @example css - CSS Output 25 | /// @media screen and (max-width: 480px) { 26 | /// .element { 27 | /// display: block; 28 | /// float: left; 29 | /// margin-right: 7.42297%; 30 | /// width: 100%; 31 | /// } 32 | /// .element:last-child { 33 | /// margin-right: 0; 34 | /// } 35 | /// } 36 | 37 | @function new-breakpoint($query: $feature $value $columns, $total-columns: $grid-columns) { 38 | @if length($query) == 1 { 39 | $query: $default-feature nth($query, 1) $total-columns; 40 | } @else if is-even(length($query)) { 41 | $query: append($query, $total-columns); 42 | } 43 | 44 | @if is-not(belongs-to($query, $visual-grid-breakpoints)) { 45 | $visual-grid-breakpoints: append($visual-grid-breakpoints, $query, comma) !global; 46 | } 47 | 48 | @return $query; 49 | } 50 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/functions/_private.scss: -------------------------------------------------------------------------------- 1 | // Not function for Libsass compatibility 2 | // https://github.com/sass/libsass/issues/368 3 | @function is-not($value) { 4 | @return if($value, false, true); 5 | } 6 | 7 | // Checks if a number is even 8 | @function is-even($int) { 9 | @return $int % 2 == 0; 10 | } 11 | 12 | // Checks if an element belongs to a list or not 13 | @function belongs-to($tested-item, $list) { 14 | @return is-not(not-belongs-to($tested-item, $list)); 15 | } 16 | 17 | @function not-belongs-to($tested-item, $list) { 18 | @return is-not(index($list, $tested-item)); 19 | } 20 | 21 | // Contains display value 22 | @function contains-display-value($query) { 23 | @return belongs-to(table, $query) 24 | or belongs-to(block, $query) 25 | or belongs-to(inline-block, $query) 26 | or belongs-to(inline, $query); 27 | } 28 | 29 | // Parses the first argument of span-columns() 30 | @function container-span($span: $span) { 31 | @if length($span) == 3 { 32 | $container-columns: nth($span, 3); 33 | @return $container-columns; 34 | } @else if length($span) == 2 { 35 | $container-columns: nth($span, 2); 36 | @return $container-columns; 37 | } 38 | 39 | @return $grid-columns; 40 | } 41 | 42 | @function container-shift($shift: $shift) { 43 | $parent-columns: $grid-columns !default !global; 44 | 45 | @if length($shift) == 3 { 46 | $container-columns: nth($shift, 3); 47 | @return $container-columns; 48 | } @else if length($shift) == 2 { 49 | $container-columns: nth($shift, 2); 50 | @return $container-columns; 51 | } 52 | 53 | @return $parent-columns; 54 | } 55 | 56 | // Generates a striped background 57 | @function gradient-stops($grid-columns, $color: $visual-grid-color) { 58 | $transparent: transparent; 59 | 60 | $column-width: flex-grid(1, $grid-columns); 61 | $gutter-width: flex-gutter($grid-columns); 62 | $column-offset: $column-width; 63 | 64 | $values: ($transparent 0, $color 0); 65 | 66 | @for $i from 1 to $grid-columns*2 { 67 | @if is-even($i) { 68 | $values: append($values, $transparent $column-offset, comma); 69 | $values: append($values, $color $column-offset, comma); 70 | $column-offset: $column-offset + $column-width; 71 | } @else { 72 | $values: append($values, $color $column-offset, comma); 73 | $values: append($values, $transparent $column-offset, comma); 74 | $column-offset: $column-offset + $gutter-width; 75 | } 76 | } 77 | 78 | @return $values; 79 | } 80 | 81 | // Layout direction 82 | @function get-direction($layout, $default) { 83 | $direction: null; 84 | 85 | @if to-upper-case($layout) == "LTR" or to-upper-case($layout) == "RTL" { 86 | $direction: direction-from-layout($layout); 87 | } @else { 88 | $direction: direction-from-layout($default); 89 | } 90 | 91 | @return $direction; 92 | } 93 | 94 | @function direction-from-layout($layout) { 95 | $direction: null; 96 | 97 | @if to-upper-case($layout) == "LTR" { 98 | $direction: right; 99 | } @else { 100 | $direction: left; 101 | } 102 | 103 | @return $direction; 104 | } 105 | 106 | @function get-opposite-direction($direction) { 107 | $opposite-direction: left; 108 | 109 | @if $direction == "left" { 110 | $opposite-direction: right; 111 | } 112 | 113 | @return $opposite-direction; 114 | } 115 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_box-sizing.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | @if $border-box-sizing == true { 4 | html { // http://bit.ly/1qk2tVR 5 | box-sizing: border-box; 6 | } 7 | 8 | * { 9 | &, 10 | &::after, 11 | &::before { 12 | box-sizing: inherit; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_direction-context.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Changes the direction property used by other mixins called in the code block argument. 4 | /// 5 | /// @param {String} $direction [left-to-right] 6 | /// Layout direction to be used within the block. Can be `left-to-right` or `right-to-left`. 7 | /// 8 | /// @example scss - Usage 9 | /// @include direction-context(right-to-left) { 10 | /// .right-to-left-block { 11 | /// @include span-columns(6); 12 | /// } 13 | /// } 14 | /// 15 | /// @example css - CSS Output 16 | /// .right-to-left-block { 17 | /// float: right; 18 | /// ... 19 | /// } 20 | 21 | @mixin direction-context($direction: left-to-right) { 22 | $scope-direction: $layout-direction; 23 | 24 | @if to-lower-case($direction) == "left-to-right" { 25 | $layout-direction: LTR !global; 26 | } @else if to-lower-case($direction) == "right-to-left" { 27 | $layout-direction: RTL !global; 28 | } 29 | 30 | @content; 31 | 32 | $layout-direction: $scope-direction !global; 33 | } 34 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_display-context.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Changes the display property used by other mixins called in the code block argument. 4 | /// 5 | /// @param {String} $display [block] 6 | /// Display value to be used within the block. Can be `table` or `block`. 7 | /// 8 | /// @example scss 9 | /// @include display-context(table) { 10 | /// .display-table { 11 | /// @include span-columns(6); 12 | /// } 13 | /// } 14 | /// 15 | /// @example css 16 | /// .display-table { 17 | /// display: table-cell; 18 | /// ... 19 | /// } 20 | 21 | @mixin display-context($display: block) { 22 | $scope-display: $container-display-table; 23 | $container-display-table: $display == table !global; 24 | 25 | @content; 26 | 27 | $container-display-table: $scope-display !global; 28 | } 29 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_fill-parent.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Forces the element to fill its parent container. 4 | /// 5 | /// @example scss - Usage 6 | /// .element { 7 | /// @include fill-parent; 8 | /// } 9 | /// 10 | /// @example css - CSS Output 11 | /// .element { 12 | /// width: 100%; 13 | /// box-sizing: border-box; 14 | /// } 15 | 16 | @mixin fill-parent() { 17 | width: 100%; 18 | 19 | @if $border-box-sizing == false { 20 | box-sizing: border-box; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_media.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Outputs a media-query block with an optional grid context (the total number of columns used in the grid). 4 | /// 5 | /// @param {List} $query 6 | /// A list of media query features and values, where each `$feature` should have a corresponding `$value`. 7 | /// For a list of valid values for `$feature`, click [here](http://www.w3.org/TR/css3-mediaqueries/#media1). 8 | /// 9 | /// If there is only a single `$value` in `$query`, `$default-feature` is going to be used. 10 | /// 11 | /// The number of total columns in the grid can be set by passing `$columns` at the end of the list (overrides `$total-columns`). 12 | /// 13 | /// 14 | /// @param {Number (unitless)} $total-columns [$grid-columns] 15 | /// - Number of columns to use in the new grid context. Can be set as a shorthand in the first parameter. 16 | /// 17 | /// @example scss - Usage 18 | /// .responsive-element { 19 | /// @include media(769px) { 20 | /// @include span-columns(6); 21 | /// } 22 | /// } 23 | /// 24 | /// .new-context-element { 25 | /// @include media(min-width 320px max-width 480px, 6) { 26 | /// @include span-columns(6); 27 | /// } 28 | /// } 29 | /// 30 | /// @example css - CSS Output 31 | /// @media screen and (min-width: 769px) { 32 | /// .responsive-element { 33 | /// display: block; 34 | /// float: left; 35 | /// margin-right: 2.35765%; 36 | /// width: 48.82117%; 37 | /// } 38 | /// 39 | /// .responsive-element:last-child { 40 | /// margin-right: 0; 41 | /// } 42 | /// } 43 | /// 44 | /// @media screen and (min-width: 320px) and (max-width: 480px) { 45 | /// .new-context-element { 46 | /// display: block; 47 | /// float: left; 48 | /// margin-right: 4.82916%; 49 | /// width: 100%; 50 | /// } 51 | /// 52 | /// .new-context-element:last-child { 53 | /// margin-right: 0; 54 | /// } 55 | /// } 56 | 57 | @mixin media($query: $feature $value $columns, $total-columns: $grid-columns) { 58 | @if length($query) == 1 { 59 | @media screen and ($default-feature: nth($query, 1)) { 60 | $default-grid-columns: $grid-columns; 61 | $grid-columns: $total-columns !global; 62 | @content; 63 | $grid-columns: $default-grid-columns !global; 64 | } 65 | } @else { 66 | $loop-to: length($query); 67 | $media-query: "screen and "; 68 | $default-grid-columns: $grid-columns; 69 | $grid-columns: $total-columns !global; 70 | 71 | @if is-not(is-even(length($query))) { 72 | $grid-columns: nth($query, $loop-to) !global; 73 | $loop-to: $loop-to - 1; 74 | } 75 | 76 | $i: 1; 77 | @while $i <= $loop-to { 78 | $media-query: $media-query + "(" + nth($query, $i) + ": " + nth($query, $i + 1) + ") "; 79 | 80 | @if ($i + 1) != $loop-to { 81 | $media-query: $media-query + "and "; 82 | } 83 | 84 | $i: $i + 2; 85 | } 86 | 87 | @media #{$media-query} { 88 | @content; 89 | $grid-columns: $default-grid-columns !global; 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_omega.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Removes the element's gutter margin, regardless of its position in the grid hierarchy or display property. It can target a specific element, or every `nth-child` occurrence. Works only with `block` layouts. 4 | /// 5 | /// @param {List} $query [block] 6 | /// List of arguments. Supported arguments are `nth-child` selectors (targets a specific pseudo element) and `auto` (targets `last-child`). 7 | /// 8 | /// When passed an `nth-child` argument of type `*n` with `block` display, the omega mixin automatically adds a clear to the `*n+1` th element. Note that composite arguments such as `2n+1` do not support this feature. 9 | /// 10 | /// **Deprecation warning**: The omega mixin will no longer take a `$direction` argument. To change the layout direction, use `row($direction)` or set `$default-layout-direction` instead. 11 | /// 12 | /// @example scss - Usage 13 | /// .element { 14 | /// @include omega; 15 | /// } 16 | /// 17 | /// .nth-element { 18 | /// @include omega(4n); 19 | /// } 20 | /// 21 | /// @example css - CSS Output 22 | /// .element { 23 | /// margin-right: 0; 24 | /// } 25 | /// 26 | /// .nth-element:nth-child(4n) { 27 | /// margin-right: 0; 28 | /// } 29 | /// 30 | /// .nth-element:nth-child(4n+1) { 31 | /// clear: left; 32 | /// } 33 | 34 | @mixin omega($query: block, $direction: default) { 35 | $table: belongs-to(table, $query); 36 | $auto: belongs-to(auto, $query); 37 | 38 | @if $direction != default { 39 | @include -neat-warn("The omega mixin will no longer take a $direction argument. To change the layout direction, use the direction(){...} mixin."); 40 | } @else { 41 | $direction: get-direction($layout-direction, $default-layout-direction); 42 | } 43 | 44 | @if $table { 45 | @include -neat-warn("The omega mixin no longer removes padding in table layouts."); 46 | } 47 | 48 | @if length($query) == 1 { 49 | @if $auto { 50 | &:last-child { 51 | margin-#{$direction}: 0; 52 | } 53 | } 54 | 55 | @else if contains-display-value($query) and $table == false { 56 | margin-#{$direction}: 0; 57 | } 58 | 59 | @else { 60 | @include nth-child($query, $direction); 61 | } 62 | } @else if length($query) == 2 { 63 | @if $auto { 64 | &:last-child { 65 | margin-#{$direction}: 0; 66 | } 67 | } @else { 68 | @include nth-child(nth($query, 1), $direction); 69 | } 70 | } @else { 71 | @include -neat-warn("Too many arguments passed to the omega() mixin."); 72 | } 73 | } 74 | 75 | @mixin nth-child($query, $direction) { 76 | $opposite-direction: get-opposite-direction($direction); 77 | 78 | &:nth-child(#{$query}) { 79 | margin-#{$direction}: 0; 80 | } 81 | 82 | @if type-of($query) == number and unit($query) == "n" { 83 | &:nth-child(#{$query}+1) { 84 | clear: $opposite-direction; 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_outer-container.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Makes an element a outer container by centring it in the viewport, clearing its floats, and setting its `max-width`. 4 | /// Although optional, using `outer-container` is recommended. The mixin can be called on more than one element per page, as long as they are not nested. 5 | /// 6 | /// @param {Number [unit]} $local-max-width [$max-width] 7 | /// Max width to be applied to the element. Can be a percentage or a measure. 8 | /// 9 | /// @example scss - Usage 10 | /// .element { 11 | /// @include outer-container(100%); 12 | /// } 13 | /// 14 | /// @example css - CSS Output 15 | /// .element { 16 | /// *zoom: 1; 17 | /// max-width: 100%; 18 | /// margin-left: auto; 19 | /// margin-right: auto; 20 | /// } 21 | /// 22 | /// .element:before, .element:after { 23 | /// content: " "; 24 | /// display: table; 25 | /// } 26 | /// 27 | /// .element:after { 28 | /// clear: both; 29 | /// } 30 | 31 | @mixin outer-container($local-max-width: $max-width) { 32 | @include clearfix; 33 | max-width: $local-max-width; 34 | margin: { 35 | left: auto; 36 | right: auto; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_pad.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Adds padding to the element. 4 | /// 5 | /// @param {List} $padding [flex-gutter()] 6 | /// A list of padding value(s) to use. Passing `default` in the list will result in using the gutter width as a padding value. 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include pad(30px -20px 10px default); 11 | /// } 12 | /// 13 | /// @example css - CSS Output 14 | /// .element { 15 | /// padding: 30px -20px 10px 2.35765%; 16 | /// } 17 | 18 | @mixin pad($padding: flex-gutter()) { 19 | $padding-list: null; 20 | @each $value in $padding { 21 | $value: if($value == 'default', flex-gutter(), $value); 22 | $padding-list: join($padding-list, $value); 23 | } 24 | padding: $padding-list; 25 | } 26 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_private.scss: -------------------------------------------------------------------------------- 1 | $parent-columns: $grid-columns !default; 2 | $fg-column: $column; 3 | $fg-gutter: $gutter; 4 | $fg-max-columns: $grid-columns; 5 | $container-display-table: false !default; 6 | $layout-direction: LTR !default; 7 | 8 | @function flex-grid($columns, $container-columns: $fg-max-columns) { 9 | $width: $columns * $fg-column + ($columns - 1) * $fg-gutter; 10 | $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter; 11 | @return percentage($width / $container-width); 12 | } 13 | 14 | @function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) { 15 | $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter; 16 | @return percentage($gutter / $container-width); 17 | } 18 | 19 | @function grid-width($n) { 20 | @return $n * $gw-column + ($n - 1) * $gw-gutter; 21 | } 22 | 23 | @function get-parent-columns($columns) { 24 | @if $columns != $grid-columns { 25 | $parent-columns: $columns !global; 26 | } @else { 27 | $parent-columns: $grid-columns !global; 28 | } 29 | 30 | @return $parent-columns; 31 | } 32 | 33 | @function is-display-table($container-is-display-table, $display) { 34 | @return $container-is-display-table == true or $display == table; 35 | } 36 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_row.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Designates the element as a row of columns in the grid layout. It clears the floats on the element and sets its display property. Rows can't be nested, but there can be more than one row element—with different display properties—per layout. 4 | /// 5 | /// @param {String} $display [default] 6 | /// Sets the display property of the element and the display context that will be used by its children. Can be `block` or `table`. 7 | /// 8 | /// @param {String} $direction [$default-layout-direction] 9 | /// Sets the layout direction. Can be `LTR` (left-to-right) or `RTL` (right-to-left). 10 | /// 11 | /// @example scss - Usage 12 | /// .element { 13 | /// @include row(); 14 | /// } 15 | /// 16 | /// @example css - CSS Output 17 | /// .element { 18 | /// *zoom: 1; 19 | /// display: block; 20 | /// } 21 | /// 22 | /// .element:before, .element:after { 23 | /// content: " "; 24 | /// display: table; 25 | /// } 26 | /// 27 | /// .element:after { 28 | /// clear: both; 29 | /// } 30 | 31 | @mixin row($display: default, $direction: $default-layout-direction) { 32 | @if $direction != $default-layout-direction { 33 | @include -neat-warn("The $direction argument will be deprecated in future versions in favor of the direction(){...} mixin."); 34 | } 35 | 36 | $layout-direction: $direction !global; 37 | 38 | @if $display != default { 39 | @include -neat-warn("The $display argument will be deprecated in future versions in favor of the display(){...} mixin."); 40 | } 41 | 42 | @if $display == table { 43 | display: table; 44 | @include fill-parent; 45 | table-layout: fixed; 46 | $container-display-table: true !global; 47 | } @else { 48 | @include clearfix; 49 | display: block; 50 | $container-display-table: false !global; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_shift.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Translates an element horizontally by a number of columns. Positive arguments shift the element to the active layout direction, while negative ones shift it to the opposite direction. 4 | /// 5 | /// @param {Number (unitless)} $n-columns [1] 6 | /// Number of columns by which the element shifts. 7 | /// 8 | /// @example scss - Usage 9 | /// .element { 10 | /// @include shift(-3); 11 | /// } 12 | /// 13 | /// @example css - CSS output 14 | /// .element { 15 | /// margin-left: -25.58941%; 16 | /// } 17 | 18 | @mixin shift($n-columns: 1) { 19 | @include shift-in-context($n-columns); 20 | } 21 | 22 | /// Translates an element horizontally by a number of columns, in a specific nesting context. 23 | /// 24 | /// @param {List} $shift 25 | /// A list containing the number of columns to shift (`$columns`) and the number of columns of the parent element (`$container-columns`). 26 | /// 27 | /// The two values can be separated with any string such as `of`, `/`, etc. 28 | /// 29 | /// @example scss - Usage 30 | /// .element { 31 | /// @include shift(-3 of 6); 32 | /// } 33 | /// 34 | /// @example css - CSS output 35 | /// .element { 36 | /// margin-left: -52.41458%; 37 | /// } 38 | 39 | @mixin shift-in-context($shift: $columns of $container-columns) { 40 | $n-columns: nth($shift, 1); 41 | $parent-columns: container-shift($shift) !global; 42 | 43 | $direction: get-direction($layout-direction, $default-layout-direction); 44 | $opposite-direction: get-opposite-direction($direction); 45 | 46 | margin-#{$opposite-direction}: $n-columns * flex-grid(1, $parent-columns) + $n-columns * flex-gutter($parent-columns); 47 | 48 | // Reset nesting context 49 | $parent-columns: $grid-columns !global; 50 | } 51 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_span-columns.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Specifies the number of columns an element should span. If the selector is nested the number of columns of its parent element should be passed as an argument as well. 4 | /// 5 | /// @param {List} $span 6 | /// A list containing `$columns`, the unitless number of columns the element spans (required), and `$container-columns`, the number of columns the parent element spans (optional). 7 | /// 8 | /// If only one value is passed, it is assumed that it's `$columns` and that that `$container-columns` is equal to `$grid-columns`, the total number of columns in the grid. 9 | /// 10 | /// The values can be separated with any string such as `of`, `/`, etc. 11 | /// 12 | /// `$columns` also accepts decimals for when it's necessary to break out of the standard grid. E.g. Passing `2.4` in a standard 12 column grid will divide the row into 5 columns. 13 | /// 14 | /// @param {String} $display [block] 15 | /// Sets the display property of the element. By default it sets the display propert of the element to `block`. 16 | /// 17 | /// If passed `block-collapse`, it also removes the margin gutter by adding it to the element width. 18 | /// 19 | /// If passed `table`, it sets the display property to `table-cell` and calculates the width of the element without taking gutters into consideration. The result does not align with the block-based grid. 20 | /// 21 | /// @example scss - Usage 22 | /// .element { 23 | /// @include span-columns(6); 24 | /// 25 | /// .nested-element { 26 | /// @include span-columns(2 of 6); 27 | /// } 28 | /// } 29 | /// 30 | /// @example css - CSS Output 31 | /// .element { 32 | /// display: block; 33 | /// float: left; 34 | /// margin-right: 2.35765%; 35 | /// width: 48.82117%; 36 | /// } 37 | /// 38 | /// .element:last-child { 39 | /// margin-right: 0; 40 | /// } 41 | /// 42 | /// .element .nested-element { 43 | /// display: block; 44 | /// float: left; 45 | /// margin-right: 4.82916%; 46 | /// width: 30.11389%; 47 | /// } 48 | /// 49 | /// .element .nested-element:last-child { 50 | /// margin-right: 0; 51 | /// } 52 | 53 | @mixin span-columns($span: $columns of $container-columns, $display: block) { 54 | $columns: nth($span, 1); 55 | $container-columns: container-span($span); 56 | 57 | $parent-columns: get-parent-columns($container-columns) !global; 58 | 59 | $direction: get-direction($layout-direction, $default-layout-direction); 60 | $opposite-direction: get-opposite-direction($direction); 61 | 62 | $display-table: is-display-table($container-display-table, $display); 63 | 64 | @if $display-table { 65 | display: table-cell; 66 | width: percentage($columns / $container-columns); 67 | } @else { 68 | float: #{$opposite-direction}; 69 | 70 | @if $display != no-display { 71 | display: block; 72 | } 73 | 74 | @if $display == collapse { 75 | @include -neat-warn("The 'collapse' argument will be deprecated. Use 'block-collapse' instead."); 76 | } 77 | 78 | @if $display == collapse or $display == block-collapse { 79 | width: flex-grid($columns, $container-columns) + flex-gutter($container-columns); 80 | 81 | &:last-child { 82 | width: flex-grid($columns, $container-columns); 83 | } 84 | 85 | } @else { 86 | margin-#{$direction}: flex-gutter($container-columns); 87 | width: flex-grid($columns, $container-columns); 88 | 89 | &:last-child { 90 | margin-#{$direction}: 0; 91 | } 92 | } 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_to-deprecate.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | @mixin breakpoint($query:$feature $value $columns, $total-columns: $grid-columns) { 4 | @include -neat-warn("The breakpoint() mixin was renamed to media() in Neat 1.0. Please update your project with the new syntax before the next version bump."); 5 | 6 | @if length($query) == 1 { 7 | @media screen and ($default-feature: nth($query, 1)) { 8 | $default-grid-columns: $grid-columns; 9 | $grid-columns: $total-columns; 10 | @content; 11 | $grid-columns: $default-grid-columns; 12 | } 13 | } @else if length($query) == 2 { 14 | @media screen and (nth($query, 1): nth($query, 2)) { 15 | $default-grid-columns: $grid-columns; 16 | $grid-columns: $total-columns; 17 | @content; 18 | $grid-columns: $default-grid-columns; 19 | } 20 | } @else if length($query) == 3 { 21 | @media screen and (nth($query, 1): nth($query, 2)) { 22 | $default-grid-columns: $grid-columns; 23 | $grid-columns: nth($query, 3); 24 | @content; 25 | $grid-columns: $default-grid-columns; 26 | } 27 | } @else if length($query) == 4 { 28 | @media screen and (nth($query, 1): nth($query, 2)) and (nth($query, 3): nth($query, 4)) { 29 | $default-grid-columns: $grid-columns; 30 | $grid-columns: $total-columns; 31 | @content; 32 | $grid-columns: $default-grid-columns; 33 | } 34 | } @else if length($query) == 5 { 35 | @media screen and (nth($query, 1): nth($query, 2)) and (nth($query, 3): nth($query, 4)) { 36 | $default-grid-columns: $grid-columns; 37 | $grid-columns: nth($query, 5); 38 | @content; 39 | $grid-columns: $default-grid-columns; 40 | } 41 | } @else { 42 | @include -neat-warn("Wrong number of arguments for breakpoint(). Read the documentation for more details."); 43 | } 44 | } 45 | 46 | @mixin nth-omega($nth, $display: block, $direction: default) { 47 | @include -neat-warn("The nth-omega() mixin is deprecated. Please use omega() instead."); 48 | @include omega($nth $display, $direction); 49 | } 50 | 51 | /// Resets the active display property to `block`. Particularly useful when changing the display property in a single row. 52 | /// 53 | /// @example scss - Usage 54 | /// .element { 55 | /// @include row(table); 56 | /// // Context changed to table display 57 | /// } 58 | /// 59 | /// @include reset-display; 60 | /// // Context is reset to block display 61 | 62 | @mixin reset-display { 63 | $container-display-table: false !global; 64 | @include -neat-warn("Resetting $display will be deprecated in future versions in favor of the display(){...} mixin."); 65 | } 66 | 67 | /// Resets the active layout direction to the default value set in `$default-layout-direction`. Particularly useful when changing the layout direction in a single row. 68 | /// 69 | /// @example scss - Usage 70 | /// .element { 71 | /// @include row($direction: RTL); 72 | /// // Context changed to right-to-left 73 | /// } 74 | /// 75 | /// @include reset-layout-direction; 76 | /// // Context is reset to left-to-right 77 | 78 | @mixin reset-layout-direction { 79 | $layout-direction: $default-layout-direction !global; 80 | @include -neat-warn("Resetting $direction will be deprecated in future versions in favor of the direction(){...} mixin."); 81 | } 82 | 83 | /// Resets both the active layout direction and the active display property. 84 | /// 85 | /// @example scss - Usage 86 | /// .element { 87 | /// @include row(table, RTL); 88 | /// // Context changed to table table and right-to-left 89 | /// } 90 | /// 91 | /// @include reset-all; 92 | /// // Context is reset to block display and left-to-right 93 | 94 | @mixin reset-all { 95 | @include reset-display; 96 | @include reset-layout-direction; 97 | } 98 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/grid/_visual-grid.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | @mixin grid-column-gradient($values...) { 4 | background-image: -webkit-linear-gradient(left, $values); 5 | background-image: -moz-linear-gradient(left, $values); 6 | background-image: -ms-linear-gradient(left, $values); 7 | background-image: -o-linear-gradient(left, $values); 8 | background-image: unquote("linear-gradient(to left, #{$values})"); 9 | } 10 | 11 | @if $visual-grid == true or $visual-grid == yes { 12 | body:before { 13 | @include grid-column-gradient(gradient-stops($grid-columns)); 14 | content: ""; 15 | display: inline-block; 16 | height: 100%; 17 | left: 0; 18 | margin: 0 auto; 19 | max-width: $max-width; 20 | opacity: $visual-grid-opacity; 21 | pointer-events: none; 22 | position: fixed; 23 | right: 0; 24 | width: 100%; 25 | 26 | @if $visual-grid-index == back { 27 | z-index: -1; 28 | } 29 | 30 | @else if $visual-grid-index == front { 31 | z-index: 9999; 32 | } 33 | 34 | @each $breakpoint in $visual-grid-breakpoints { 35 | @if $breakpoint { 36 | @include media($breakpoint) { 37 | @include grid-column-gradient(gradient-stops($grid-columns)); 38 | } 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/settings/_disable-warnings.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Disable all deprecation warnings. Defaults to `false`. Set with a `!global` flag. 4 | /// 5 | /// @type Bool 6 | 7 | $disable-warnings: false !default; 8 | 9 | @mixin -neat-warn($message) { 10 | @if $disable-warnings == false { 11 | @warn "#{$message}"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/settings/_grid.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Sets the relative width of a single grid column. The unit used should be the same one used to define `$gutter`. To learn more about modular-scale() see [Bourbon docs](http://bourbon.io/docs/#modular-scale). Set with a `!global` flag. 4 | /// 5 | /// @type Number (Unit) 6 | 7 | $column: modular-scale(3, 1em, $golden) !default; 8 | 9 | /// Sets the relative width of a single grid gutter. The unit used should be the same one used to define `$column`. To learn more about modular-scale() see [Bourbon docs](http://bourbon.io/docs/#modular-scale). Set with the `!global` flag. 10 | /// 11 | /// @type Number (Unit) 12 | 13 | $gutter: modular-scale(1, 1em, $golden) !default; 14 | 15 | /// Sets the total number of columns in the grid. Its value can be overridden inside a media query using the `media()` mixin. Set with the `!global` flag. 16 | /// 17 | /// @type Number (Unitless) 18 | 19 | $grid-columns: 12 !default; 20 | 21 | /// Sets the max-width property of the element that includes `outer-container()`. To learn more about `em()` see [Bourbon docs](http://bourbon.io/docs/#px-to-em). Set with the `!global` flag. 22 | /// 23 | /// @type Number (Unit) 24 | /// 25 | $max-width: em(1088) !default; 26 | 27 | /// When set to true, it sets the box-sizing property of all elements to `border-box`. Set with a `!global` flag. 28 | /// 29 | /// @type Bool 30 | /// 31 | /// @example css - CSS Output 32 | /// html { 33 | /// box-sizing: border-box; } 34 | /// 35 | /// *, *::after, *::before { 36 | /// box-sizing: inherit; 37 | /// } 38 | 39 | $border-box-sizing: true !default; 40 | 41 | /// Sets the default [media feature](http://www.w3.org/TR/css3-mediaqueries/#media) that `media()` and `new-breakpoint()` revert to when only a breakpoint value is passed. Set with a `!global` flag. 42 | /// 43 | /// @type String 44 | 45 | $default-feature: min-width; // Default @media feature for the breakpoint() mixin 46 | 47 | ///Sets the default layout direction of the grid. Can be `LTR` or `RTL`. Set with a `!global` flag. 48 | /// 49 | ///@type String 50 | 51 | $default-layout-direction: LTR !default; 52 | -------------------------------------------------------------------------------- /assets/_scss/lib/neat/settings/_visual-grid.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /// Displays the visual grid when set to true. The overlaid grid may be few pixels off depending on the browser's rendering engine and pixel rounding algorithm. Set with the `!global` flag. 4 | /// 5 | /// @type Bool 6 | 7 | $visual-grid: false !default; 8 | 9 | /// Sets the visual grid color. Set with `!global` flag. 10 | /// 11 | /// @type Color 12 | 13 | $visual-grid-color: #eee !default; 14 | 15 | /// Sets the `z-index` property of the visual grid. Can be `back` (behind content) or `front` (in front of content). Set with `!global` flag. 16 | /// 17 | /// @type String 18 | 19 | $visual-grid-index: back !default; 20 | 21 | /// Sets the opacity property of the visual grid. Set with `!global` flag. 22 | /// 23 | /// @type Number (unitless) 24 | 25 | $visual-grid-opacity: 0.4 !default; 26 | 27 | $visual-grid-breakpoints: () !default; 28 | -------------------------------------------------------------------------------- /assets/css/google-fonts.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Source Sans Pro'; 3 | font-style: normal; 4 | font-weight: 300; 5 | src: url('../fonts/sourcesanspro-light-webfont.eot'); 6 | src: url('../fonts/sourcesanspro-light-webfont.eot?#iefix') format('embedded-opentype'), 7 | url('../fonts/sourcesanspro-light-webfont.woff2') format('woff2'), 8 | url('../fonts/sourcesanspro-light-webfont.woff') format('woff'), 9 | url('../fonts/sourcesanspro-light-webfont.ttf') format('truetype'); 10 | } 11 | 12 | @font-face { 13 | font-family: 'Source Sans Pro'; 14 | font-style: normal; 15 | font-weight: 400; 16 | src: url('../fonts/sourcesanspro-regular-webfont.eot'); 17 | src: url('../fonts/sourcesanspro-regular-webfont.eot?#iefix') format('embedded-opentype'), 18 | url('../fonts/sourcesanspro-regular-webfont.woff2') format('woff2'), 19 | url('../fonts/sourcesanspro-regular-webfont.woff') format('woff'), 20 | url('../fonts/sourcesanspro-regular-webfont.ttf') format('truetype'); 21 | 22 | } 23 | 24 | @font-face { 25 | font-family: 'Source Sans Pro'; 26 | font-style: italic; 27 | font-weight: 400; 28 | src: url('../fonts/sourcesanspro-italic-webfont.eot'); 29 | src: url('../fonts/sourcesanspro-italic-webfont.eot?#iefix') format('embedded-opentype'), 30 | url('../fonts/sourcesanspro-italic-webfont.woff2') format('woff2'), 31 | url('../fonts/sourcesanspro-italic-webfont.woff') format('woff'), 32 | url('../fonts/sourcesanspro-italic-webfont.ttf') format('truetype'); 33 | 34 | } 35 | 36 | @font-face { 37 | font-family: 'Source Sans Pro'; 38 | font-style: normal; 39 | font-weight: 700; 40 | src: url('../fonts/sourcesanspro-bold-webfont.eot'); 41 | src: url('../fonts/sourcesanspro-bold-webfont.eot?#iefix') format('embedded-opentype'), 42 | url('../fonts/sourcesanspro-bold-webfont.woff2') format('woff2'), 43 | url('../fonts/sourcesanspro-bold-webfont.woff') format('woff'), 44 | url('../fonts/sourcesanspro-bold-webfont.ttf') format('truetype'); 45 | 46 | } 47 | 48 | @font-face { 49 | font-family: 'Merriweather'; 50 | font-style: normal; 51 | font-weight: 300; 52 | src: url('../fonts/merriweather-light-webfont.eot'); 53 | src: url('../fonts/merriweather-light-webfont.eot?#iefix') format('embedded-opentype'), 54 | url('../fonts/merriweather-light-webfont.woff2') format('woff2'), 55 | url('../fonts/merriweather-light-webfont.woff') format('woff'), 56 | url('../fonts/merriweather-light-webfont.ttf') format('truetype'); 57 | 58 | } 59 | 60 | @font-face { 61 | font-family: 'Merriweather'; 62 | font-style: normal; 63 | font-weight: 400; 64 | src: url('../fonts/merriweather-regular-webfont.eot'); 65 | src: url('../fonts/merriweather-regular-webfont.eot?#iefix') format('embedded-opentype'), 66 | url('../fonts/merriweather-regular-webfont.woff2') format('woff2'), 67 | url('../fonts/merriweather-regular-webfont.woff') format('woff'), 68 | url('../fonts/merriweather-regular-webfont.ttf') format('truetype'); 69 | 70 | } 71 | 72 | @font-face { 73 | font-family: 'Merriweather'; 74 | font-style: italic; 75 | font-weight: 400; 76 | src: url('../fonts/merriweather-italic-webfont.eot'); 77 | src: url('../fonts/merriweather-italic-webfont.eot?#iefix') format('embedded-opentype'), 78 | url('../fonts/merriweather-italic-webfont.woff2') format('woff2'), 79 | url('../fonts/merriweather-italic-webfont.woff') format('woff'), 80 | url('../fonts/merriweather-italic-webfont.ttf') format('truetype'); 81 | 82 | } 83 | 84 | @font-face { 85 | font-family: 'Merriweather'; 86 | font-style: normal; 87 | font-weight: 700; 88 | src: url('../fonts/merriweather-bold-webfont.eot'); 89 | src: url('../fonts/merriweather-bold-webfont.eot?#iefix') format('embedded-opentype'), 90 | url('../fonts/merriweather-bold-webfont.woff2') format('woff2'), 91 | url('../fonts/merriweather-bold-webfont.woff') format('woff'), 92 | url('../fonts/merriweather-bold-webfont.ttf') format('truetype'); 93 | 94 | } -------------------------------------------------------------------------------- /assets/css/main.scss: -------------------------------------------------------------------------------- 1 | --- 2 | # Front matter comment to ensure Jekyll properly reads the file. 3 | --- 4 | 5 | // Place list of your partial imports below, located in assets/_scss. 6 | 7 | @import 'all'; 8 | -------------------------------------------------------------------------------- /assets/css/normalize.min.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0} -------------------------------------------------------------------------------- /assets/fonts/merriweather-bold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-bold-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/merriweather-bold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-bold-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/merriweather-bold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-bold-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/merriweather-bold-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-bold-webfont.woff2 -------------------------------------------------------------------------------- /assets/fonts/merriweather-italic-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-italic-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/merriweather-italic-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-italic-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/merriweather-italic-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-italic-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/merriweather-italic-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-italic-webfont.woff2 -------------------------------------------------------------------------------- /assets/fonts/merriweather-light-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-light-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/merriweather-light-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-light-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/merriweather-light-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-light-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/merriweather-light-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-light-webfont.woff2 -------------------------------------------------------------------------------- /assets/fonts/merriweather-regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-regular-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/merriweather-regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-regular-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/merriweather-regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-regular-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/merriweather-regular-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/merriweather-regular-webfont.woff2 -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-bold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-bold-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-bold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-bold-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-bold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-bold-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-bold-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-bold-webfont.woff2 -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-italic-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-italic-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-italic-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-italic-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-italic-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-italic-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-italic-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-italic-webfont.woff2 -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-light-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-light-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-light-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-light-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-light-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-light-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-light-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-light-webfont.woff2 -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-regular-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-regular-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-regular-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/sourcesanspro-regular-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/fonts/sourcesanspro-regular-webfont.woff2 -------------------------------------------------------------------------------- /assets/img/alerts/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/alerts/error.png -------------------------------------------------------------------------------- /assets/img/alerts/error.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 17 | 18 | -------------------------------------------------------------------------------- /assets/img/alerts/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/alerts/info.png -------------------------------------------------------------------------------- /assets/img/alerts/info.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 18 | 19 | -------------------------------------------------------------------------------- /assets/img/alerts/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/alerts/success.png -------------------------------------------------------------------------------- /assets/img/alerts/success.svg: -------------------------------------------------------------------------------- 1 | 3 | 12 | 13 | -------------------------------------------------------------------------------- /assets/img/alerts/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/alerts/warning.png -------------------------------------------------------------------------------- /assets/img/alerts/warning.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 16 | 17 | -------------------------------------------------------------------------------- /assets/img/arrow-down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/arrow-down.png -------------------------------------------------------------------------------- /assets/img/arrow-down.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/arrow-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/arrow-right.png -------------------------------------------------------------------------------- /assets/img/arrow-right.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/correct8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/correct8.png -------------------------------------------------------------------------------- /assets/img/correct8.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/correct9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/correct9.png -------------------------------------------------------------------------------- /assets/img/correct9.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/favicons/favicon-114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/favicons/favicon-114.png -------------------------------------------------------------------------------- /assets/img/favicons/favicon-144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/favicons/favicon-144.png -------------------------------------------------------------------------------- /assets/img/favicons/favicon-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/favicons/favicon-16.png -------------------------------------------------------------------------------- /assets/img/favicons/favicon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/favicons/favicon-192.png -------------------------------------------------------------------------------- /assets/img/favicons/favicon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/favicons/favicon-57.png -------------------------------------------------------------------------------- /assets/img/favicons/favicon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/favicons/favicon-72.png -------------------------------------------------------------------------------- /assets/img/favicons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/favicons/favicon.ico -------------------------------------------------------------------------------- /assets/img/favicons/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/favicons/favicon.png -------------------------------------------------------------------------------- /assets/img/logo-img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/logo-img.png -------------------------------------------------------------------------------- /assets/img/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/minus.png -------------------------------------------------------------------------------- /assets/img/minus.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/plus.png -------------------------------------------------------------------------------- /assets/img/plus.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/search.png -------------------------------------------------------------------------------- /assets/img/search.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/social-icons/png/facebook25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/social-icons/png/facebook25.png -------------------------------------------------------------------------------- /assets/img/social-icons/png/rss25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/social-icons/png/rss25.png -------------------------------------------------------------------------------- /assets/img/social-icons/png/twitter16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/social-icons/png/twitter16.png -------------------------------------------------------------------------------- /assets/img/social-icons/png/youtube15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/social-icons/png/youtube15.png -------------------------------------------------------------------------------- /assets/img/social-icons/svg/facebook25.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/social-icons/svg/rss25.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/social-icons/svg/twitter16.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/social-icons/svg/youtube15.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img/us_flag_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bbertucc/us-web-design-standards-wp/57301f36641e375b60a31c6614e2a88c74c7f256/assets/img/us_flag_small.png -------------------------------------------------------------------------------- /assets/js/vendor/rem.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module: rem - v1.3.2 3 | * Description: A polyfill to parse CSS links and rewrite pixel equivalents into head for non supporting browsers 4 | * Date Built: 2014-07-02 5 | * Copyright (c) 2014 | Chuck Carpenter ,Lucas Serven ; 6 | **/ 7 | !function(e){"use strict";var t=function(){var e=document.createElement("div");return e.style.cssText="font-size: 1rem;",/rem/.test(e.style.fontSize)},n=function(){for(var e=document.getElementsByTagName("link"),t=[],n=0;n0?(v=[],p=[],m=[],r()):i()}},a=function(e,t){for(var n,r=d(e).replace(/\/\*[\s\S]*?\*\//g,""),o=/[\w\d\s\-\/\\\[\]:,.'"*()<>+~%#^$_=|@]+\{[\w\d\s\-\/\\%#:!;,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!;,.'"*()]*\}/g,a=r.match(o),i=/\d*\.?\d+rem/g,s=r.match(i),c=/(.*\/)/,l=c.exec(t)[0],u=/@import (?:url\()?['"]?([^'\)"]*)['"]?\)?[^;]*/gm;null!==(n=u.exec(e));)m.push(0===n[1].indexOf("/")?n[1]:l+n[1]);null!==a&&0!==a.length&&(f=f.concat(a),g=g.concat(s))},i=function(){for(var e=/[\w\d\s\-\/\\%#:,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!,.'"*()]*[;}]/g,t=0;t8||!Y){return}var B={NW:"*.Dom.select",MooTools:"$$",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",Sizzle:"*",jQuery:"*",dojo:"*.query"};var w;var X=[];var z=[];var C=0;var d=true;var L="slvzr";var b=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*?/g;var q=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))\s*([^;]*);/g;var E=/(behavior\s*?:\s*)?\burl\(\s*(["']?)(?!data:)([^"')]+)\2\s*\)/g;var F=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/;var V=/:(:first-(?:line|letter))/g;var G=/((?:^|(?:\s*})+)(?:\s*@media[^{]+{)?)\s*([^\{]*?[\[:][^{]+)/g;var D=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g;var K=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g;var aa=/[^\w-]/g;var r=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/;var p=/^(checkbox|radio)$/;var v=x>6?/[\$\^*]=(['"])\1/:null;var e=/([(\[+~])\s+/g;var O=/\s+([)\]+~])/g;var s=/\s+/g;var c=/^\s*((?:[\S\s]*\S)?)\s*$/;var u="";var o=" ";var Z="$1";function W(ab){return ab.replace(V,Z).replace(G,function(ad,ai,ah){var ae=ah.split(",");for(var aj=0,ag=ae.length;aj0){z.push({selector:ac.substring(0,ak),patches:af});af=[]}return an}else{var ap=(ao)?A(ao):U(am);if(ap){af.push(ap);return"."+ap.className}return al}})}return ai+ae.join(",")})}function U(ab){return(!v||v.test(ab))?{className:H(ab),applyClass:true}:null}function A(ag){var af=true;var ae=H(ag.slice(1));var ad=ag.substring(0,5)==":not(";var ac;var ah;if(ad){ag=ag.slice(5,-1)}var ab=ag.indexOf("(");if(ab>-1){ag=ag.substring(0,ab)}if(ag.charAt(0)==":"){switch(ag.slice(1)){case"root":af=function(ai){return ad?ai!=y:ai==y};break;case"target":if(x==8){af=function(aj){var ai=function(){var al=location.hash;var ak=al.slice(1);return ad?(al==u||aj.id!=ak):(al!=u&&aj.id==ak)};n(M,"hashchange",function(){I(aj,ae,ai())});return ai()};break}return false;case"checked":af=function(ai){if(p.test(ai.type)){n(ai,"propertychange",function(){if(event.propertyName=="checked"){I(ai,ae,ai.checked!==ad)}})}return ai.checked!==ad};break;case"disabled":ad=!ad;case"enabled":af=function(ai){if(r.test(ai.tagName)){n(ai,"propertychange",function(){if(event.propertyName=="$disabled"){I(ai,ae,ai.$disabled===ad)}});X.push(ai);ai.$disabled=ai.disabled;return ai.disabled===ad}return ag==":enabled"?ad:!ad};break;case"focus":ac="focus";ah="blur";case"hover":if(!ac){ac="mouseenter";ah="mouseleave"}af=function(ai){n(ai,ad?ah:ac,function(){I(ai,ae,true)});n(ai,ad?ac:ah,function(){I(ai,ae,false)});return ad};break;default:if(!F.test(ag)){return false}break}}return{className:ae,applyClass:af}}function R(){var ae,ab,ac,aj;for(var am=0;am0){setInterval(function(){for(var ad=0,ab=X.length;ad0)?f[0].href:m.location.href;h();T(M,function(){for(var ad in B){var ab,ae,ac=M;if(M[ad]){ab=B[ad].replace("*",ad).split(".");while((ae=ab.shift())&&(ac=ac[ae])){}if(typeof ac=="function"){w=ac;S();return}}}}); 8 | /*! 9 | * ContentLoaded.js by Diego Perini, modified for IE<9 only (to save space) 10 | * 11 | * Author: Diego Perini (diego.perini at gmail.com) 12 | * Summary: cross-browser wrapper for DOMContentLoaded 13 | * Updated: 20101020 14 | * License: MIT 15 | * Version: 1.2 16 | * 17 | * URL: 18 | * http://javascript.nwbox.com/ContentLoaded/ 19 | * http://javascript.nwbox.com/ContentLoaded/MIT-LICENSE 20 | * 21 | */ 22 | ;function T(af,ac){var ab=false,ae=true,ah=function(ai){if(ai.type=="readystatechange"&&m.readyState!="complete"){return}(ai.type=="load"?af:m).detachEvent("on"+ai.type,ah,false);if(!ab&&(ab=true)){ac.call(af,ai.type||ai)}},ag=function(){try{y.doScroll("left")}catch(ai){setTimeout(ag,50);return}ah("poll")};if(m.readyState=="complete"){ac.call(af,u)}else{if(m.createEventObject&&y.doScroll){try{ae=!af.frameElement}catch(ad){}if(ae){ag()}}n(m,"readystatechange",ah);n(af,"load",ah)}}})(this); -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | > 3 | 4 | 5 | 6 | <?php wp_title(); ?> 7 | 8 | 9 | > 10 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: U.S. Web Design Standards Starter Theme 3 | Theme URI: https://github.com/bbertucc/us-web-design-standards-wp 4 | Description: A WordPress starter theme that uses the U.S. Web Design Standards. Contribute on GitHub 5 | Version: 0.0.0 6 | Author: 7 | Author URI: 8 | Text Domain: uswds 9 | 10 | License: MIT License 11 | License URI: http://opensource.org/licenses/MIT 12 | */ --------------------------------------------------------------------------------