Debian Codegraph @

debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_to-deprecate.scss

raw
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 layout direction to the default value set in `$default-layout-direction`. Particularly useful when changing the layout direction in a single row.
52 ///
53 /// @example scss - Usage
54 /// .element {
55 /// @include row($direction: RTL);
56 /// // Context changed to right-to-left
57 /// }
58 ///
59 /// @include reset-layout-direction;
60 /// // Context is reset to left-to-right
61
62 @mixin reset-layout-direction {
63 $layout-direction: $default-layout-direction !global;
64 @include -neat-warn("Resetting $direction will be deprecated in future versions in favor of the direction(){...} mixin.");
65 }
66
67 /// Resets both the active layout direction and the active display property.
68 ///
69 /// @example scss - Usage
70 /// .element {
71 /// @include row(table, RTL);
72 /// // Context changed to table table and right-to-left
73 /// }
74 ///
75 /// @include reset-all;
76 /// // Context is reset to block display and left-to-right
77
78 @mixin reset-all {
79 @include reset-display;
80 @include reset-layout-direction;
81 }