diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:56:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:56:52 +0000 |
commit | 087bd1b14d5e1f45f60b1ffa64ca318c23b7c6ea (patch) | |
tree | d4139abfdd8c50b4b0ac84d876808a2f525dc958 /debian/missing-sources/bourbon-neat | |
parent | Adding upstream version 2.0.0+dfsg. (diff) | |
download | sphinx-rtd-theme-debian.tar.xz sphinx-rtd-theme-debian.zip |
Adding debian version 2.0.0+dfsg-1.debian/2.0.0+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
26 files changed, 1637 insertions, 0 deletions
diff --git a/debian/missing-sources/bourbon-neat/CHANGELOG.md b/debian/missing-sources/bourbon-neat/CHANGELOG.md new file mode 100644 index 0000000..508ac9c --- /dev/null +++ b/debian/missing-sources/bourbon-neat/CHANGELOG.md @@ -0,0 +1,259 @@ +## [1.9.1] - 2018-09-11 + +### Fixed + +- Fix Sass warning about "&&" vs "and" ([#646]) + +[#646]: https://github.com/thoughtbot/neat/pull/646 + +## [1.9.0] - 2017-06-27 + +### Added + +- Add support for complex `nth-child` selectors in `omega()`. ([#340]) + +### Changed + +- The background color for visual grid columns now alternates. ([#373]) +- Update node-sass dependency to 4.1.1. ([#520]) + +### Fixed + +- Removed unnecessary deprecation warning when using the `reset-display` mixin. + ([#456]) +- The description of the `remove` CLI command now correctly outputs "remove". + ([#451]) + +[#340]: https://github.com/thoughtbot/neat/pull/340 +[#373]: https://github.com/thoughtbot/neat/pull/373 +[#451]: https://github.com/thoughtbot/neat/pull/451 +[#456]: https://github.com/thoughtbot/neat/pull/456 +[#520]: https://github.com/thoughtbot/neat/pull/520 + +## 1.8.0 - 2016-06-21 + +### Added + +- Added `--version` and `-v` options to the CLI now has that show the version of + Neat you have installed + +### Removed + +- Neat no longer requires Bourbon + +## 1.7.4 - 2016-03-04 + +### Added + +- Added an explicit sass requirement + +## 1.7.3 - 2016-02-29 + +### Added + +- Added eyeglass support + +### Changed + +- Neat's npm package now includes the proper Sass paths +- The default `$max-width` is now `1200px` + +## 1.7.2 - 2015-03-13 + +### Added + +- Added Bourbon's updated `modular-scale` function for grid settings + +### Removed + +- Removed prefixes for `box-sizing` + +## 1.7.1 - 2015-01-02 + +### Added + +- Added custom `not` function for Libsass 3.0 compatibility + +### Changed + +- Fixed bug related to the `omega`'s query argument + +## 1.7.0 - 2014-10-17 + +### Added + +- Full compatibility with Sass 3.4+ and Libsass 3.0+ + +### Changed + +- `direction-context` mixin changes the direction inside an entire block. +- `display-context` mixin changes the display property inside an entire block. +- `outer-container` now takes a max-width argument + +### Removed + +- Removed `reset-direction` +- Removed `reset-display` + +## 1.5.1 - 2014-04-06 + +### Added + +- Restore compatibility with Sass 3.2.x + +## 1.6.0 - 2014-03-28 + +### Added +- Added multiple media queries support to the `media` mixin, including queries + such as orientation + +### Changed +- Updated to Sass 3.3 and silence `!global` variable warnings +- Use absolute percentage widths for table displays + +### Removed + +- Passing table no longer adds padding to elements +- Omega no longer supports table display + +## 1.6.0.pre2 - 2014-03-21 + +### Changed + +- Use Sass 3.3 and silence global variable warnings + +## 1.6.0.pre - 2014-02-10 + +### Added + +- Added multiple media queries support to the `media` mixin, including queries + such as orientation + +### Changed + +- Use absolute percentage widths for table displays + +### Removed + +- Passing table no longer adds padding to elements +- Omega no longer supports table display + +## 1.5.0 - 2013-22-15 + +### Added + +- Added the ability for `span-columns` to omit display property from the output +- Improved browser support + +### Changed + +- Renamed `span-columns` collapse argument to block-collapse +- Made `shift` take parent column argument (useful when other `span-columns` + calls override the nesting context) + +## 1.4.0 - 2013-08-28 + +### Added + +- Added collapse argument to `span-columns` in order to remove gutter + +### Changed + +- Fixed visual grid overrides by reordering breakpoints +- Unified padding across table cells +- Specified comma as separator for gradient-stops append for libsass + +### Removed + +## 1.3.0 - 2013-05-03 + +### Added + +- Added global RTL layout support +- Added row-specific RTL layout support +- Added auto-clearing for elements using `omega(nth-child)` (works only with + simple `nth-child` arguments due to limited string operations in Sass) + +### Changed + +- `reset-display`, `reset-layout-direction`, and `reset-all` for all your reset needs! + +### Removed + +- The visual grid no longer blocks user interactions +- `omega` will no longer take `$direction` in favor of `row($direction)` or + `$default-layout-direction` + + +## 1.2.1 - 2013-04-04 + +### Added + +- Added stylesheets path to `Sass.load_paths` +- Official Docset + +### Changed + +- Force full-width and fixed table-layout on `row(table)` + +## 1.2.0 - 2013-02-18 + +### Added + +- Auto-detect table layout when `span-columns` is called inside `row(table)` + +### Changed + +- Make `shift` reset context after each nested call + +## 1.1.0 - 2013-01-09 + +### Added + +- `pad` takes shorthand arguments + +### Changed + +- Merge `omega` and `nth-omega` +- Last child in table layouts keeps its right-padding + +## 1.0.2 - 2012-11-19 + +### Added + +- Add explicit require to the bourbon gem + [#38](https://github.com/thoughtbot/neat/issues/38) + +## 1.0.1 - 2012-11-06 + +### Added + +- Relative path imports in Rails + +### Changed + +- Make `em` always return a number + +## 1.0.0 - 2012-10-29 + +### Added + +- Added executable for non-Rails projects +- Added visual grid +- Added `media` and `new-breakpoint` mixins +- Added `_neat-helpers.scss` as a public interface for Neat + +### Changed + +- Made `shift` work properly in nested contexts + +### Removed + +- Removed typography mixins and settings + +## 0.4.2 - 2012-08-31 + +- Initial release + +[1.9.1]: https://github.com/thoughtbot/neat/compare/v1.9.0...v1.9.1 +[1.9.0]: https://github.com/thoughtbot/neat/compare/v1.8.0...v1.9.0 diff --git a/debian/missing-sources/bourbon-neat/LICENSE.md b/debian/missing-sources/bourbon-neat/LICENSE.md new file mode 100644 index 0000000..1be2ca7 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright © 2012–2015 [thoughtbot, inc.](http://thoughtbot.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/debian/missing-sources/bourbon-neat/README.md b/debian/missing-sources/bourbon-neat/README.md new file mode 100644 index 0000000..c5b58f9 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/README.md @@ -0,0 +1,281 @@ +[![Neat](http://images.thoughtbot.com/bourbon/neat-logo.svg)](http://neat.bourbon.io) + +## A lightweight, semantic grid framework + +**Note: This branch is an archive of Neat v1. The current release is v2 on +`master`.** + +Neat is a fluid grid framework with the aim of being easy enough to use out of the box and flexible enough to customize down the road. + +- **[Demo](http://neat.bourbon.io)** +- **[Documentation](http://thoughtbot.github.io/neat-docs/latest)** +- **[Changelog](https://github.com/thoughtbot/neat/releases)** +- **[Issues & Bugs](https://github.com/thoughtbot/neat/issues)** + +Follow the [@bourbonsass](https://twitter.com/bourbonsass) Twitter account +for updates. + +## Requirements + +- [Sass](https://github.com/sass/sass) 3.3+ +- :warning: If you need **Sass 3.2 support**, you should [use Neat 1.5.1](#installing-older-versions-of-neat) + +## Installation + +For command line help, visit our wiki page on Neat’s [command line interface](https://github.com/thoughtbot/neat/wiki/Command-Line-Interface). + +1. Install the Neat gem using the [RubyGems](https://rubygems.org) package manager: + + ```bash + gem install neat + ``` + + Alternatively, you can install Neat with [Bower](http://bower.io). + +2. Install or update Neat’s dependencies: + + ```bash + gem install sass # or gem update sass + ``` + +3. Install the Neat library into the current directory: + + ```bash + neat install + ``` + +4. Import Neat in your stylesheet: + + ```scss + @import "neat/neat"; + ``` + + It’s not recommended to add or modify the Neat files so that you can update them easily. + +## Installation for Ruby on Rails + +1. Add Neat to your Gemfile: + + ```ruby + gem 'neat' + ``` + +2. Then run: + + ```bash + bundle install + ``` + + If you see the error `Bundler could not find compatible versions for gem "sass"`, run: + + ```bash + bundle update sass + ``` + +3. Import Neat in your `application.scss`: + + ```scss + @import "neat"; + ``` + + It should be noted that `@import` rules are not compatible with Sprockets directives. You need to use one or the other. + +## Installing with npm and using a Node-based asset pipeline + +1. Add Neat as a dependency: + + ```bash + npm install --save bourbon-neat + ``` + +1. If you’re using [Eyeglass](http://eyeglass.rocks), skip to Step 3. Otherwise, you’ll need to add Neat to your node-sass `includePaths` option. `require("bourbon-neat").includePaths` is an array of directories that you should pass to node-sass. How you do this depends on how node-sass is integrated into your project. + +1. Import Neat into your Sass files: + + ```scss + @import "neat"; + ``` + +## Installing older versions of Neat + +1. Uninstall any Neat gem versions you already have: + + ```bash + gem uninstall neat + ``` + +2. Reinstall the Neat gem, using the `-v` flag to specify the version you need: + + ```bash + gem install neat -v 1.7.0 + ``` + +3. Follow the [instructions above](#installation) to install Neat into your project. + +## Using Neat + +First off, if you are planning to override the default grid settings (12 columns), it is recommended to create a `_grid-settings.scss` file for that purpose. Make sure to import it right *before* importing Neat: + +```scss +@import "grid-settings"; +@import "neat/neat"; // or "neat" when in Rails +``` + +In your newly created `_grid-settings.scss`, import `neat-helpers` if you are planning to use `new-breakpoint()`, then define your new variables: + +```scss +@import "neat/neat-helpers"; // or "neat-helpers" when in Rails + +// Change the grid settings +$column: 90px; +$gutter: 30px; +$grid-columns: 10; +$max-width: 1200px; + +// Define your breakpoints +$tablet: new-breakpoint(max-width 768px 8); +$mobile: new-breakpoint(max-width 480px 4); +``` + +See the [docs](http://thoughtbot.github.io/neat-docs/latest/#variable) for a full list of settings. + +Next, include the `outer-container` mixin in the topmost container (to which the `max-width` setting will be applied): + +```scss +div.container { + @include outer-container; +} +``` + +Then use `span-columns` on any element to specify the number of columns it should span: + +```scss +div.element { + @include span-columns(6); +} +``` + +If the element’s parent isn’t the top-most container, you need to add the number of columns of the parent element to keep the right proportions: + +```scss +div.container { + @include outer-container; + + div.parent-element { + @include span-columns(8); + + div.element { + @include span-columns(6 of 8); + } + } +} +``` + +To make your layout responsive, use the `media()` mixin to modify both the grid and the layout: + +```scss +.my-class { + @include media($mobile) { // As defined in _grid-settings.scss + @include span-columns(2); + } +} + +// Compiled CSS +@media screen and (max-width: 480px) { + .my-class { + display: block; + float: left; + margin-right: 7.42297%; + width: 46.28851%; // 2 columns of the total 4 in this media context + } + .my-class:last-child { + margin-right: 0; + } +} +``` + +By setting `$visual-grid` to `true` in a file that is imported before +`neat-helpers` (or prior to `neat` itself if you are using the default +breakpoints), you can display the base grid in the background (default) or as an +overlay. You can even change the color and opacity of the grid-lines by +overriding the default settings as detailed in the section below. + +The visual grid reflects the changes applied to the grid via the `new-breakpoint()` mixin, as long as the media contexts are defined *before* importing Neat. + +## FAQ + +#### How do I use `omega()` in a mobile-first workflow? + +Using `omega()` with an `nth-child` pseudo selector in a mobile-first workflow will cause the style to be applied to wider-viewport media queries as well. That is the cascading nature of CSS. + +One solution would be to provide an `omega-reset()` mixin that negates the effect of `omega()` on that specific `nth-child` pseudo selector. While this is often the most suggested solution, it is also a lazy hack that outputs ugly code and can quickly get out of hand in complex layouts. As a general rule, having to *undo* CSS styles is a sign of poor stylesheet architecture (more about [CSS code smells](http://csswizardry.com/2012/11/code-smells-in-css/)). + +The other, more elegant, solution is to use mutually exclusive media queries, also referred to as [media-query +splitting](http://simurai.com/blog/2012/08/29/media-query-splitting). This would guarantee that `omega()` styles are only applied where desired. + +```scss +$first-breakpoint-value: 400px; +$second-breakpoint-value: 700px; +$medium-viewport: new-breakpoint(min-width $first-breakpoint-value max-width $second-breakpoint-value); +$large-viewport: new-breakpoint(min-width $second-breakpoint-value + 1); + +.element { + @include media($medium-viewport) { + @include span-columns(6); + @include omega(2n); + } + + @include media($large-viewport) { + @include span-columns(4); + @include omega(3n); + } +} +``` + +If, for some reason, you still think that `omega-reset` is the only way you want to go, check out Josh Fry’s [omega-reset](http://joshfry.me/blog/2013/05/13/omega-reset-for-bourbon-neat). + +#### Why are the elements not properly aligned with the visual grid? + +The visual grid is built using CSS gradients whose stops might contain decimal values depending on the default settings of your grid. In order to render the gradient, browsers round the pixel values since they can’t deal with pixel fractions. + +As a result the visual grid might be few pixels off in some browsers. The result is also inconsistent across browsers. For best results, preview your website on Firefox as it renders closest to the expected outcome. + +At this point, writing an internal rounding mechanism is not high priority. + +#### Framework X has this feature that Neat seems to be missing. Can you add it? + +Unless you [open a pull request](https://github.com/thoughtbot/neat/compare/), the answer is most likely going to be no. Neat is lightweight and simple compared to other grid frameworks, and strives to remain so. We have plans for adding new features in future versions of the framework, but these will be most likely to support new ways of working with layouts on the Web, not patches to existing ones. + +## Browser support + +- Chrome 10+ +- Firefox 29+ +- Internet Explorer 9+ (visual grid is IE 10 only) +- Internet Explorer 8 with [selectivizr](http://selectivizr.com) (no `media()` support) +- Opera 9.5+ +- Safari 5.1+ + +## The Bourbon family + +- [Bourbon](https://github.com/thoughtbot/bourbon): A simple and lightweight mixin library for Sass +- [Neat](https://github.com/thoughtbot/neat): A lightweight semantic grid framework for Sass and Bourbon +- [Bitters](https://github.com/thoughtbot/bitters): Scaffold styles, variables and structure for Bourbon projects +- [Refills](https://github.com/thoughtbot/refills): Prepackaged patterns and components built with Bourbon, Neat and Bitters + +## License + +Copyright © 2012–2015 [thoughtbot, inc](http://thoughtbot.com). Neat is free software, and may be redistributed under the terms specified in the [license](LICENSE.md). + +## About thoughtbot + +[<img src="http://presskit.thoughtbot.com/images/signature.svg" width="250" alt="thoughtbot logo">][hire] + +Neat is maintained and funded by thoughtbot, inc. +The names and logos for thoughtbot are trademarks of thoughtbot, inc. + +We love open source software! +See [our other projects][community] +or [hire us][hire] to design, develop, and grow your product. + +[community]: https://thoughtbot.com/community?utm_source=github +[hire]: https://thoughtbot.com/hire-us?utm_source=github diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/_neat-helpers.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/_neat-helpers.scss new file mode 100644 index 0000000..2d6d808 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/_neat-helpers.scss @@ -0,0 +1,11 @@ +// Mixins +@import "mixins/clearfix"; + +// Functions +@import "functions/private"; +@import "functions/new-breakpoint"; + +// Settings +@import "settings/grid"; +@import "settings/visual-grid"; +@import "settings/disable-warnings"; diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/_neat.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/_neat.scss new file mode 100644 index 0000000..9841430 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/_neat.scss @@ -0,0 +1,24 @@ +// Neat 1.9.1 +// http://neat.bourbon.io +// Copyright 2012-2015 thoughtbot, inc. +// MIT License + +// Helpers +@import "neat-helpers"; + +// Grid +@import "grid/private"; +@import "grid/box-sizing"; +@import "grid/omega"; +@import "grid/outer-container"; +@import "grid/span-columns"; +@import "grid/row"; +@import "grid/shift"; +@import "grid/pad"; +@import "grid/fill-parent"; +@import "grid/media"; +@import "grid/reset-display"; +@import "grid/to-deprecate"; +@import "grid/visual-grid"; +@import "grid/display-context"; +@import "grid/direction-context"; diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/functions/_new-breakpoint.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/functions/_new-breakpoint.scss new file mode 100644 index 0000000..41ab955 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/functions/_new-breakpoint.scss @@ -0,0 +1,49 @@ +@charset "UTF-8"; + +/// 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. +/// +/// @param {List} $query +/// A list of media query features and values. Each `$feature` should have a corresponding `$value`. +/// +/// If there is only a single `$value` in `$query`, `$default-feature` is going to be used. +/// +/// 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). +/// +/// @param {Number (unitless)} $total-columns [$grid-columns] +/// - Number of columns to use in the new grid context. Can be set as a shorthand in the first parameter. +/// +/// @example scss - Usage +/// $mobile: new-breakpoint(max-width 480px 4); +/// +/// .element { +/// @include media($mobile) { +/// @include span-columns(4); +/// } +/// } +/// +/// @example css - CSS Output +/// @media screen and (max-width: 480px) { +/// .element { +/// display: block; +/// float: left; +/// margin-right: 7.42297%; +/// width: 100%; +/// } +/// .element:last-child { +/// margin-right: 0; +/// } +/// } + +@function new-breakpoint($query: $feature $value $columns, $total-columns: $grid-columns) { + @if length($query) == 1 { + $query: $default-feature nth($query, 1) $total-columns; + } @else if is-even(length($query)) { + $query: append($query, $total-columns); + } + + @if is-not(belongs-to($query, $visual-grid-breakpoints)) { + $visual-grid-breakpoints: append($visual-grid-breakpoints, $query, comma) !global; + } + + @return $query; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/functions/_private.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/functions/_private.scss new file mode 100644 index 0000000..9a6cd2f --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/functions/_private.scss @@ -0,0 +1,154 @@ +// Not function for Libsass compatibility +// https://github.com/sass/libsass/issues/368 +@function is-not($value) { + @return if($value, false, true); +} + +// Checks if a number is even +@function is-even($int) { + @return $int % 2 == 0; +} + +// Checks if an element belongs to a list or not +@function belongs-to($tested-item, $list) { + @return is-not(not-belongs-to($tested-item, $list)); +} + +@function not-belongs-to($tested-item, $list) { + @return is-not(index($list, $tested-item)); +} + +// Contains display value +@function contains-display-value($query) { + @return belongs-to(table, $query) + or belongs-to(block, $query) + or belongs-to(inline-block, $query) + or belongs-to(inline, $query); +} + +// Parses the first argument of span-columns() +@function container-span($span: $span) { + @if length($span) == 3 { + $container-columns: nth($span, 3); + @return $container-columns; + } @else if length($span) == 2 { + $container-columns: nth($span, 2); + @return $container-columns; + } + + @return $grid-columns; +} + +@function container-shift($shift: $shift) { + $parent-columns: $grid-columns !default !global; + + @if length($shift) == 3 { + $container-columns: nth($shift, 3); + @return $container-columns; + } @else if length($shift) == 2 { + $container-columns: nth($shift, 2); + @return $container-columns; + } + + @return $parent-columns; +} + +// Generates a striped background +@function gradient-stops($grid-columns, $color: $visual-grid-color) { + $transparent: transparent; + $alt-color: darken($color, 10%); + + $column-width: flex-grid(1, $grid-columns); + $gutter-width: flex-gutter($grid-columns); + $column-offset: $column-width; + $alternate: false; + + $values: ($transparent 0, if($alternate, $color, $alt-color) 0); + + @for $i from 1 to $grid-columns*2 { + @if is-even($i) { + $values: append($values, $transparent $column-offset, comma); + $values: append($values, if($alternate, $color, $alt-color) $column-offset, comma); + $column-offset: $column-offset + $column-width; + } @else { + $values: append($values, if($alternate, $color, $alt-color) $column-offset, comma); + $values: append($values, $transparent $column-offset, comma); + $column-offset: $column-offset + $gutter-width; + + $alternate: not $alternate; + } + } + + @return $values; +} + +// Layout direction +@function get-direction($layout, $default) { + $direction: null; + + @if to-upper-case($layout) == "LTR" or to-upper-case($layout) == "RTL" { + $direction: direction-from-layout($layout); + } @else { + $direction: direction-from-layout($default); + } + + @return $direction; +} + +@function direction-from-layout($layout) { + $direction: null; + + @if to-upper-case($layout) == "LTR" { + $direction: right; + } @else { + $direction: left; + } + + @return $direction; +} + +@function get-opposite-direction($direction) { + $opposite-direction: left; + + @if $direction == "left" { + $opposite-direction: right; + } + + @return $opposite-direction; +} + + +@function to-number($string) { + $string: str-replace($string, " ", ""); + $strings: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9"; + $numbers: 0 1 2 3 4 5 6 7 8 9; + $result: 0; + + @for $i from 1 through str-length($string) { + $character: str-slice($string, $i, $i); + $index: index($strings, $character); + + @if not $index { + @warn "Unknown character `#{$character}`."; + @return false; + } + + $number: nth($numbers, $index); + $result: $result * 10 + $number; + } + + @return $result; +} + +@function str-replace($string, $search, $replace: "") { + $index: str-index($string, $search); + + @if $index { + $first: str-slice($string, 1, $index - 1); + $last-slice: str-slice($string, $index + str-length($search)); + $last: str-replace($last-slice, $search, $replace); + @return $first + $replace + $last; + } + + @return $string; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_box-sizing.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_box-sizing.scss new file mode 100644 index 0000000..b6d3fec --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_box-sizing.scss @@ -0,0 +1,15 @@ +@charset "UTF-8"; + +@if $border-box-sizing == true { + html { // http://bit.ly/1qk2tVR + box-sizing: border-box; + } + + * { + &, + &::after, + &::before { + box-sizing: inherit; + } + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_direction-context.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_direction-context.scss new file mode 100644 index 0000000..7b0d46e --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_direction-context.scss @@ -0,0 +1,33 @@ +@charset "UTF-8"; + +/// Changes the direction property used by other mixins called in the code block argument. +/// +/// @param {String} $direction [left-to-right] +/// Layout direction to be used within the block. Can be `left-to-right` or `right-to-left`. +/// +/// @example scss - Usage +/// @include direction-context(right-to-left) { +/// .right-to-left-block { +/// @include span-columns(6); +/// } +/// } +/// +/// @example css - CSS Output +/// .right-to-left-block { +/// float: right; +/// ... +/// } + +@mixin direction-context($direction: left-to-right) { + $scope-direction: $layout-direction; + + @if to-lower-case($direction) == "left-to-right" { + $layout-direction: LTR !global; + } @else if to-lower-case($direction) == "right-to-left" { + $layout-direction: RTL !global; + } + + @content; + + $layout-direction: $scope-direction !global; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_display-context.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_display-context.scss new file mode 100644 index 0000000..ed9b063 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_display-context.scss @@ -0,0 +1,28 @@ +@charset "UTF-8"; + +/// Changes the display property used by other mixins called in the code block argument. +/// +/// @param {String} $display [block] +/// Display value to be used within the block. Can be `table` or `block`. +/// +/// @example scss +/// @include display-context(table) { +/// .display-table { +/// @include span-columns(6); +/// } +/// } +/// +/// @example css +/// .display-table { +/// display: table-cell; +/// ... +/// } + +@mixin display-context($display: block) { + $scope-display: $container-display-table; + $container-display-table: $display == table !global; + + @content; + + $container-display-table: $scope-display !global; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_fill-parent.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_fill-parent.scss new file mode 100644 index 0000000..415f0b1 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_fill-parent.scss @@ -0,0 +1,22 @@ +@charset "UTF-8"; + +/// Forces the element to fill its parent container. +/// +/// @example scss - Usage +/// .element { +/// @include fill-parent; +/// } +/// +/// @example css - CSS Output +/// .element { +/// width: 100%; +/// box-sizing: border-box; +/// } + +@mixin fill-parent() { + width: 100%; + + @if $border-box-sizing == false { + box-sizing: border-box; + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_media.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_media.scss new file mode 100644 index 0000000..bd516e9 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_media.scss @@ -0,0 +1,92 @@ +@charset "UTF-8"; + +/// Outputs a media-query block with an optional grid context (the total number of columns used in the grid). +/// +/// @param {List} $query +/// A list of media query features and values, where each `$feature` should have a corresponding `$value`. +/// For a list of valid values for `$feature`, click [here](http://www.w3.org/TR/css3-mediaqueries/#media1). +/// +/// If there is only a single `$value` in `$query`, `$default-feature` is going to be used. +/// +/// The number of total columns in the grid can be set by passing `$columns` at the end of the list (overrides `$total-columns`). +/// +/// +/// @param {Number (unitless)} $total-columns [$grid-columns] +/// - Number of columns to use in the new grid context. Can be set as a shorthand in the first parameter. +/// +/// @example scss - Usage +/// .responsive-element { +/// @include media(769px) { +/// @include span-columns(6); +/// } +/// } +/// +/// .new-context-element { +/// @include media(min-width 320px max-width 480px, 6) { +/// @include span-columns(6); +/// } +/// } +/// +/// @example css - CSS Output +/// @media screen and (min-width: 769px) { +/// .responsive-element { +/// display: block; +/// float: left; +/// margin-right: 2.35765%; +/// width: 48.82117%; +/// } +/// +/// .responsive-element:last-child { +/// margin-right: 0; +/// } +/// } +/// +/// @media screen and (min-width: 320px) and (max-width: 480px) { +/// .new-context-element { +/// display: block; +/// float: left; +/// margin-right: 4.82916%; +/// width: 100%; +/// } +/// +/// .new-context-element:last-child { +/// margin-right: 0; +/// } +/// } + +@mixin media($query: $feature $value $columns, $total-columns: $grid-columns) { + @if length($query) == 1 { + @media screen and ($default-feature: nth($query, 1)) { + $default-grid-columns: $grid-columns; + $grid-columns: $total-columns !global; + @content; + $grid-columns: $default-grid-columns !global; + } + } @else { + $loop-to: length($query); + $media-query: "screen and "; + $default-grid-columns: $grid-columns; + $grid-columns: $total-columns !global; + + @if is-not(is-even(length($query))) { + $grid-columns: nth($query, $loop-to) !global; + $loop-to: $loop-to - 1; + } + + $i: 1; + @while $i <= $loop-to { + $media-query: $media-query + "(" + nth($query, $i) + ": " + nth($query, $i + 1) + ") "; + + @if ($i + 1) != $loop-to { + $media-query: $media-query + "and "; + } + + $i: $i + 2; + } + + @media #{$media-query} { + @content; + $grid-columns: $default-grid-columns !global; + } + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_omega.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_omega.scss new file mode 100644 index 0000000..532db05 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_omega.scss @@ -0,0 +1,112 @@ +@charset "UTF-8"; + +/// 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. +/// +/// @param {List} $query [block] +/// List of arguments. Supported arguments are `nth-child` selectors (targets a specific pseudo element) and `auto` (targets `last-child`). +/// +/// 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. +/// +/// **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. +/// +/// @example scss - Usage +/// .element { +/// @include omega; +/// } +/// +/// .nth-element { +/// @include omega(4n); +/// } +/// +/// @example css - CSS Output +/// .element { +/// margin-right: 0; +/// } +/// +/// .nth-element:nth-child(4n) { +/// margin-right: 0; +/// } +/// +/// .nth-element:nth-child(4n+1) { +/// clear: left; +/// } + +@mixin omega($query: block, $direction: default) { + $table: belongs-to(table, $query); + $auto: belongs-to(auto, $query); + + @if $direction != default { + @include -neat-warn("The omega mixin will no longer take a $direction argument. To change the layout direction, use the direction(){...} mixin."); + } @else { + $direction: get-direction($layout-direction, $default-layout-direction); + } + + @if $table { + @include -neat-warn("The omega mixin no longer removes padding in table layouts."); + } + + @if length($query) == 1 { + @if $auto { + &:last-child { + margin-#{$direction}: 0; + } + } + + @else if contains-display-value($query) and $table == false { + margin-#{$direction}: 0; + } + + @else { + @include nth-child($query, $direction); + } + } @else if length($query) == 2 { + @if $auto { + &:last-child { + margin-#{$direction}: 0; + } + } @else { + @include nth-child(nth($query, 1), $direction); + } + } @else { + @include -neat-warn("Too many arguments passed to the omega() mixin."); + } +} + +@mixin nth-child($query, $direction) { + $opposite-direction: get-opposite-direction($direction); + + &:nth-child(#{$query}) { + margin-#{$direction}: 0; + } + + @if type-of($query) == string { + $query: str-replace($query, " ", ""); + $operator: false; + + @if str_index($query, "+") { + $operator: "+"; + } @else if str_index($query, "-") { + $operator: "-"; + } + + @if $operator { + $operator-index: str_index($query, $operator); + $first: str-slice($query, 0, ($operator-index - 1)); + $last: to-number(str-slice($query, ($operator-index + 1), -1)); + @if $operator == "+" { + $last: $last + 1; + } @else if $operator == "-" { + $last: $last - 1; + } + $nth: "#{$first}#{$operator}#{$last}"; + + &:nth-child(#{$nth}) { + clear: $opposite-direction; + } + } + } @else if type-of($query) == number and unit($query) == "n" { + &:nth-child(#{$query}+1) { + clear: $opposite-direction; + } + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_outer-container.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_outer-container.scss new file mode 100644 index 0000000..d3f6267 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_outer-container.scss @@ -0,0 +1,34 @@ +@charset "UTF-8"; + +/// Makes an element a outer container by centering it in the viewport, clearing its floats, and setting its `max-width`. +/// 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. +/// +/// @param {Number [unit]} $local-max-width [$max-width] +/// Max width to be applied to the element. Can be a percentage or a measure. +/// +/// @example scss - Usage +/// .element { +/// @include outer-container(100%); +/// } +/// +/// @example css - CSS Output +/// .element { +/// max-width: 100%; +/// margin-left: auto; +/// margin-right: auto; +/// } +/// +/// .element::after { +/// clear: both; +/// content: ""; +/// display: table; +/// } + +@mixin outer-container($local-max-width: $max-width) { + @include clearfix; + max-width: $local-max-width; + margin: { + left: auto; + right: auto; + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_pad.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_pad.scss new file mode 100644 index 0000000..d697e1b --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_pad.scss @@ -0,0 +1,25 @@ +@charset "UTF-8"; + +/// Adds padding to the element. +/// +/// @param {List} $padding [flex-gutter()] +/// A list of padding value(s) to use. Passing `default` in the list will result in using the gutter width as a padding value. +/// +/// @example scss - Usage +/// .element { +/// @include pad(30px -20px 10px default); +/// } +/// +/// @example css - CSS Output +/// .element { +/// padding: 30px -20px 10px 2.35765%; +/// } + +@mixin pad($padding: flex-gutter()) { + $padding-list: null; + @each $value in $padding { + $value: if($value == 'default', flex-gutter(), $value); + $padding-list: join($padding-list, $value); + } + padding: $padding-list; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_private.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_private.scss new file mode 100644 index 0000000..5122427 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_private.scss @@ -0,0 +1,35 @@ +$parent-columns: $grid-columns !default; +$fg-column: $column; +$fg-gutter: $gutter; +$fg-max-columns: $grid-columns; +$container-display-table: false !default; +$layout-direction: LTR !default; + +@function flex-grid($columns, $container-columns: $fg-max-columns) { + $width: flex-width($columns); + $container-width: flex-width($container-columns); + @return percentage($width / $container-width); +} + +@function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) { + $container-width: flex-width($container-columns); + @return percentage($gutter / $container-width); +} + +@function flex-width($n, $column-width: $fg-column, $gutter-width: $fg-gutter) { + @return $n * $column-width + ($n - 1) * $gutter-width; +} + +@function get-parent-columns($columns) { + @if $columns != $grid-columns { + $parent-columns: $columns !global; + } @else { + $parent-columns: $grid-columns !global; + } + + @return $parent-columns; +} + +@function is-display-table($container-is-display-table, $display) { + @return $container-is-display-table == true or $display == table; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_reset-display.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_reset-display.scss new file mode 100644 index 0000000..b8332b8 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_reset-display.scss @@ -0,0 +1,14 @@ +/// Resets the active display property to `block`. Particularly useful when changing the display property in a single row. +/// +/// @example scss - Usage +/// .element { +/// @include row(table); +/// // Context changed to table display +/// } +/// +/// @include reset-display; +/// // Context is reset to block display + +@mixin reset-display { + $container-display-table: false !global; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_row.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_row.scss new file mode 100644 index 0000000..8150160 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_row.scss @@ -0,0 +1,45 @@ +@charset "UTF-8"; + +/// 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. +/// +/// @param {String} $display [default] +/// Sets the display property of the element and the display context that will be used by its children. Can be `block` or `table`. +/// +/// @param {String} $direction [$default-layout-direction] +/// Sets the layout direction. Can be `LTR` (left-to-right) or `RTL` (right-to-left). +/// +/// @example scss - Usage +/// .element { +/// @include row(); +/// } +/// +/// @example css - CSS Output +/// .element { +/// *zoom: 1; +/// display: block; +/// } +/// +/// .element:before, .element:after { +/// content: " "; +/// display: table; +/// } +/// +/// .element:after { +/// clear: both; +/// } + +@mixin row($display: default, $direction: $default-layout-direction) { + + $layout-direction: $direction !global; + + @if $display == table { + display: table; + @include fill-parent; + table-layout: fixed; + $container-display-table: true !global; + } @else { + @include clearfix; + display: block; + $container-display-table: false !global; + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_shift.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_shift.scss new file mode 100644 index 0000000..c0f24cd --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_shift.scss @@ -0,0 +1,50 @@ +@charset "UTF-8"; + +/// 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. +/// +/// @param {Number (unitless)} $n-columns [1] +/// Number of columns by which the element shifts. +/// +/// @example scss - Usage +/// .element { +/// @include shift(-3); +/// } +/// +/// @example css - CSS output +/// .element { +/// margin-left: -25.58941%; +/// } + +@mixin shift($n-columns: 1) { + @include shift-in-context($n-columns); +} + +/// Translates an element horizontally by a number of columns, in a specific nesting context. +/// +/// @param {List} $shift +/// A list containing the number of columns to shift (`$columns`) and the number of columns of the parent element (`$container-columns`). +/// +/// The two values can be separated with any string such as `of`, `/`, etc. +/// +/// @example scss - Usage +/// .element { +/// @include shift(-3 of 6); +/// } +/// +/// @example css - CSS output +/// .element { +/// margin-left: -52.41458%; +/// } + +@mixin shift-in-context($shift: $columns of $container-columns) { + $n-columns: nth($shift, 1); + $parent-columns: container-shift($shift) !global; + + $direction: get-direction($layout-direction, $default-layout-direction); + $opposite-direction: get-opposite-direction($direction); + + margin-#{$opposite-direction}: $n-columns * flex-grid(1, $parent-columns) + $n-columns * flex-gutter($parent-columns); + + // Reset nesting context + $parent-columns: $grid-columns !global; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_span-columns.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_span-columns.scss new file mode 100644 index 0000000..a7f9b00 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_span-columns.scss @@ -0,0 +1,94 @@ +@charset "UTF-8"; + +/// 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. +/// +/// @param {List} $span +/// 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). +/// +/// 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. +/// +/// The values can be separated with any string such as `of`, `/`, etc. +/// +/// `$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. +/// +/// @param {String} $display [block] +/// Sets the display property of the element. By default it sets the display property of the element to `block`. +/// +/// If passed `block-collapse`, it also removes the margin gutter by adding it to the element width. +/// +/// 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. +/// +/// @example scss - Usage +/// .element { +/// @include span-columns(6); +/// +/// .nested-element { +/// @include span-columns(2 of 6); +/// } +/// } +/// +/// @example css - CSS Output +/// .element { +/// display: block; +/// float: left; +/// margin-right: 2.35765%; +/// width: 48.82117%; +/// } +/// +/// .element:last-child { +/// margin-right: 0; +/// } +/// +/// .element .nested-element { +/// display: block; +/// float: left; +/// margin-right: 4.82916%; +/// width: 30.11389%; +/// } +/// +/// .element .nested-element:last-child { +/// margin-right: 0; +/// } + +@mixin span-columns($span: $columns of $container-columns, $display: block) { + $columns: nth($span, 1); + $container-columns: container-span($span); + + $parent-columns: get-parent-columns($container-columns) !global; + + $direction: get-direction($layout-direction, $default-layout-direction); + $opposite-direction: get-opposite-direction($direction); + + $display-table: is-display-table($container-display-table, $display); + + @if $display-table { + display: table-cell; + width: percentage($columns / $container-columns); + } @else { + float: #{$opposite-direction}; + + @if $display != no-display { + display: block; + } + + @if $display == collapse { + @include -neat-warn("The 'collapse' argument will be deprecated. Use 'block-collapse' instead."); + } + + @if $display == collapse or $display == block-collapse { + width: flex-grid($columns, $container-columns) + flex-gutter($container-columns); + + &:last-child { + width: flex-grid($columns, $container-columns); + } + + } @else { + margin-#{$direction}: flex-gutter($container-columns); + width: flex-grid($columns, $container-columns); + + &:last-child { + margin-#{$direction}: 0; + } + } + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_to-deprecate.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_to-deprecate.scss new file mode 100644 index 0000000..b46d976 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_to-deprecate.scss @@ -0,0 +1,81 @@ +@charset "UTF-8"; + +@mixin breakpoint($query:$feature $value $columns, $total-columns: $grid-columns) { + @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."); + + @if length($query) == 1 { + @media screen and ($default-feature: nth($query, 1)) { + $default-grid-columns: $grid-columns; + $grid-columns: $total-columns; + @content; + $grid-columns: $default-grid-columns; + } + } @else if length($query) == 2 { + @media screen and (nth($query, 1): nth($query, 2)) { + $default-grid-columns: $grid-columns; + $grid-columns: $total-columns; + @content; + $grid-columns: $default-grid-columns; + } + } @else if length($query) == 3 { + @media screen and (nth($query, 1): nth($query, 2)) { + $default-grid-columns: $grid-columns; + $grid-columns: nth($query, 3); + @content; + $grid-columns: $default-grid-columns; + } + } @else if length($query) == 4 { + @media screen and (nth($query, 1): nth($query, 2)) and (nth($query, 3): nth($query, 4)) { + $default-grid-columns: $grid-columns; + $grid-columns: $total-columns; + @content; + $grid-columns: $default-grid-columns; + } + } @else if length($query) == 5 { + @media screen and (nth($query, 1): nth($query, 2)) and (nth($query, 3): nth($query, 4)) { + $default-grid-columns: $grid-columns; + $grid-columns: nth($query, 5); + @content; + $grid-columns: $default-grid-columns; + } + } @else { + @include -neat-warn("Wrong number of arguments for breakpoint(). Read the documentation for more details."); + } +} + +@mixin nth-omega($nth, $display: block, $direction: default) { + @include -neat-warn("The nth-omega() mixin is deprecated. Please use omega() instead."); + @include omega($nth $display, $direction); +} + +/// 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. +/// +/// @example scss - Usage +/// .element { +/// @include row($direction: RTL); +/// // Context changed to right-to-left +/// } +/// +/// @include reset-layout-direction; +/// // Context is reset to left-to-right + +@mixin reset-layout-direction { + $layout-direction: $default-layout-direction !global; + @include -neat-warn("Resetting $direction will be deprecated in future versions in favor of the direction(){...} mixin."); +} + +/// Resets both the active layout direction and the active display property. +/// +/// @example scss - Usage +/// .element { +/// @include row(table, RTL); +/// // Context changed to table table and right-to-left +/// } +/// +/// @include reset-all; +/// // Context is reset to block display and left-to-right + +@mixin reset-all { + @include reset-display; + @include reset-layout-direction; +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_visual-grid.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_visual-grid.scss new file mode 100644 index 0000000..1192d82 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_visual-grid.scss @@ -0,0 +1,42 @@ +@charset "UTF-8"; + +@mixin grid-column-gradient($values...) { + background-image: -webkit-linear-gradient(left, $values); + background-image: -moz-linear-gradient(left, $values); + background-image: -ms-linear-gradient(left, $values); + background-image: -o-linear-gradient(left, $values); + background-image: unquote("linear-gradient(to left, #{$values})"); +} + +@if $visual-grid == true or $visual-grid == yes { + body:before { + @include grid-column-gradient(gradient-stops($grid-columns)); + content: ""; + display: inline-block; + height: 100%; + left: 0; + margin: 0 auto; + max-width: $max-width; + opacity: $visual-grid-opacity; + pointer-events: none; + position: fixed; + right: 0; + width: 100%; + + @if $visual-grid-index == back { + z-index: -1; + } + + @else if $visual-grid-index == front { + z-index: 9999; + } + + @each $breakpoint in $visual-grid-breakpoints { + @if $breakpoint { + @include media($breakpoint) { + @include grid-column-gradient(gradient-stops($grid-columns)); + } + } + } + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/mixins/_clearfix.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/mixins/_clearfix.scss new file mode 100644 index 0000000..e68efc4 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/mixins/_clearfix.scss @@ -0,0 +1,25 @@ +@charset "UTF-8"; + +/// Provides an easy way to include a clearfix for containing floats. +/// +/// @link http://goo.gl/yP5hiZ +/// +/// @example scss +/// .element { +/// @include clearfix; +/// } +/// +/// @example css +/// .element::after { +/// clear: both; +/// content: ""; +/// display: block; +/// } + +@mixin clearfix { + &::after { + clear: both; + content: ""; + display: block; + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_disable-warnings.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_disable-warnings.scss new file mode 100644 index 0000000..3f9b92a --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_disable-warnings.scss @@ -0,0 +1,13 @@ +@charset "UTF-8"; + +/// Disable all deprecation warnings. Defaults to `false`. Set with a `!global` flag. +/// +/// @type Bool + +$disable-warnings: false !default; + +@mixin -neat-warn($message) { + @if $disable-warnings == false { + @warn "#{$message}"; + } +} diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_grid.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_grid.scss new file mode 100644 index 0000000..c1ab7fd --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_grid.scss @@ -0,0 +1,51 @@ +@charset "UTF-8"; + +/// Sets the relative width of a single grid column. The unit used should be the same one used to define `$gutter`. Set with a `!global` flag. +/// +/// @type Number (Unit) + +$column: 4.2358em !default; + +/// Sets the relative width of a single grid gutter. The unit used should be the same one used to define `$column`. Set with the `!global` flag. +/// +/// @type Number (Unit) + +$gutter: 1.618em !default; + +/// 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. +/// +/// @type Number (Unitless) + +$grid-columns: 12 !default; + +/// Sets the max-width property of the element that includes `outer-container()`. Set with the `!global` flag. +/// +/// @type Number (Unit) +/// +$max-width: 1200px !default; + +/// When set to true, it sets the box-sizing property of all elements to `border-box`. Set with a `!global` flag. +/// +/// @type Bool +/// +/// @example css - CSS Output +/// html { +/// box-sizing: border-box; } +/// +/// *, *::after, *::before { +/// box-sizing: inherit; +/// } + +$border-box-sizing: true !default; + +/// 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. +/// +/// @type String + +$default-feature: min-width; // Default @media feature for the breakpoint() mixin + +///Sets the default layout direction of the grid. Can be `LTR` or `RTL`. Set with a `!global` flag. +/// +///@type String + +$default-layout-direction: LTR !default; diff --git a/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_visual-grid.scss b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_visual-grid.scss new file mode 100644 index 0000000..9cd1815 --- /dev/null +++ b/debian/missing-sources/bourbon-neat/app/assets/stylesheets/settings/_visual-grid.scss @@ -0,0 +1,27 @@ +@charset "UTF-8"; + +/// 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. +/// +/// @type Bool + +$visual-grid: false !default; + +/// Sets the visual grid color. Set with `!global` flag. +/// +/// @type Color + +$visual-grid-color: #eee !default; + +/// Sets the `z-index` property of the visual grid. Can be `back` (behind content) or `front` (in front of content). Set with `!global` flag. +/// +/// @type String + +$visual-grid-index: back !default; + +/// Sets the opacity property of the visual grid. Set with `!global` flag. +/// +/// @type Number (unitless) + +$visual-grid-opacity: 0.4 !default; + +$visual-grid-breakpoints: () !default; |