Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
3.4.7 (Selective Steve)
a27f2dd1e10274e47890ac4eccd089d4af95859e
o:Sass::Tree::RootNode:@children[o:Sass::Tree::CommentNode
:@value[I"s/*/ 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;
 */     }
 */   } */:ET:
@type:silent;[:
@linei:
@options{o:Sass::Tree::FunctionNode
:
@nameI"new-breakpoint;	T:
@args[[o:!Sass::Script::Tree::Variable;I"
query;	T:@underscored_nameI"
query;	T;i(:@source_rangeo:Sass::Source::Range	:@start_poso:Sass::Source::Position;i(:@offseti:
@end_poso;;i(;i%:
@fileI"5sass/plug-in/neat/functions/_new-breakpoint.scss;	T:@importero: Sass::Importers::Filesystem:
@rootI"&/Volumes/Works/htdocs/aiba/public;	T:@real_rootI"&/Volumes/Works/htdocs/aiba/public;	T:@same_name_warningso:Set:
@hash{:@filename@;
@o:$Sass::Script::Tree::ListLiteral:@elements[o;;I"feature;	T;I"feature;	T;i(;o;	;o;;i(;i';o;;i(;i/;@;@;!@;
@o;;I"
value;	T;I"
value;	T;i(;o;	;o;;i(;i0;o;;i(;i6;@;@;!@;
@o;;I"columns;	T;I"columns;	T;i(;o;	;o;;i(;i7;o;;i(;i?;@;@;!@;
@:@separator:
space;i(;o;	;o;;i(;i&;o;;i(;i?;@;@;!@;
@[o;;I"total-columns;	T;I"total_columns;	T;i(;o;	;o;;i(;iA;o;;i(;iO;@;@;!@;
@o;;I"grid-columns;	T;I"grid_columns;	T;i(;o;	;o;;i(;iQ;o;;i(;i^;@;@;!@;
@:@splat0;[u:Sass::Tree::IfNodef[o:"Sass::Script::Tree::Operation:@operand1o: Sass::Script::Tree::Funcall:
@nameI"length:ET:
@args[o:!Sass::Script::Tree::Variable;I"
query;	T:@underscored_nameI"
query;	T:
@linei):@source_rangeo:Sass::Source::Range	:@start_poso:Sass::Source::Position;
i):@offseti:
@end_poso;;
i);i:
@fileI"5sass/plug-in/neat/functions/_new-breakpoint.scss;	T:@importero: Sass::Importers::Filesystem:
@rootI"&/Volumes/Works/htdocs/aiba/public;	T:@real_rootI"&/Volumes/Works/htdocs/aiba/public;	T:@same_name_warningso:Set:
@hash{:@filename@:
@options{:@keywordso:Sass::Util::NormalizedMap:@key_strings{:	@map{:@splat0:@kwarg_splat0;
i);o;	;o;;
i);i;o;;
i);i;@;@;@;@:@operand2o: Sass::Script::Tree::Literal	:@valueo: Sass::Script::Value::Number
;&i:@numerator_units[:@denominator_units[:@originalI"1;	F;@;
i);o;	;o;;
i);i;o;;
i);i;@;@;@:@operator:eq;
i);o;	;@;o;;
i);i ;@;@;@;@u:Sass::Tree::IfNode�[o: Sass::Script::Tree::Funcall:
@nameI"is-even:ET:
@args[o;;I"length;T;[o:!Sass::Script::Tree::Variable;I"
query;T:@underscored_nameI"
query;T:
@linei-:@source_rangeo:Sass::Source::Range	:@start_poso:Sass::Source::Position;i-:@offseti :
@end_poso;;i-;i&:
@fileI"5sass/plug-in/neat/functions/_new-breakpoint.scss;T:@importero: Sass::Importers::Filesystem:
@rootI"&/Volumes/Works/htdocs/aiba/public;T:@real_rootI"&/Volumes/Works/htdocs/aiba/public;T:@same_name_warningso:Set:
@hash{:@filename@:
@options{:@keywordso:Sass::Util::NormalizedMap:@key_strings{:	@map{:@splat0:@kwarg_splat0;i-;o;
	;o;;i-;i;o;;i-;i';@;@;@;@;o;;{;{; 0;!0;i-;o;
	;o;;i-;i;o;;i-;i(;@;@;@;@0[o:Sass::Tree::VariableNode
;I"
query;T:
@expro;;I"append;T;[o;	;I"
query;T;
I"
query;T;i.;o;
	;o;;i.;i;o;;i.;i;@;@;@;@o;	;I"total-columns;T;
I"total_columns;T;i.;o;
	;o;;i.;i!;o;;i.;i/;@;@;@;@;o;;{;{; 0;!0;i.;o;
	;o;;i.;i;o;;i.;i0;@;@;@;@:
@guarded0:@global0:@children[;i.;o;
	;o;;i.;i;o;;i.;i0;@;@;@[o:Sass::Tree::VariableNode
;I"
query;	T:
@expro:$Sass::Script::Tree::ListLiteral:@elements[o;;I"default-feature;	T;I"default_feature;	T;
i*;o;	;o;;
i*;i;o;;
i*;i";@;@;@;@o;;I"nth;	T;
[o;;I"
query;	T;I"
query;	T;
i*;o;	;o;;
i*;i';o;;
i*;i-;@;@;@;@o;%	;&o;'
;&i;([;)@ ;*I"1;	F;@;
i*;o;	;o;;
i*;i/;o;;
i*;i0;@;@;@;o;; {;!{;"0;#0;
i*;o;	;o;;
i*;i#;o;;
i*;i1;@;@;@;@o;;I"total-columns;	T;I"total_columns;	T;
i*;o;	;o;;
i*;i2;o;;
i*;i@;@;@;@;@:@separator:
space;
i*;o;	;o;;
i*;i;o;;
i*;i@;@;@;@;@:
@guarded0:@global0:@children[;
i*;o;	;o;;
i*;i;o;;
i*;i@;@;@;@u;'�[o:'Sass::Script::Tree::UnaryOperation:
@operando: Sass::Script::Tree::Funcall:
@nameI"belongs-to:ET:
@args[o:!Sass::Script::Tree::Variable;I"
query;	T:@underscored_nameI"
query;	T:
@linei1:@source_rangeo:Sass::Source::Range	:@start_poso:Sass::Source::Position;
i1:@offseti:
@end_poso;;
i1;i!:
@fileI"5sass/plug-in/neat/functions/_new-breakpoint.scss;	T:@importero: Sass::Importers::Filesystem:
@rootI"&/Volumes/Works/htdocs/aiba/public;	T:@real_rootI"&/Volumes/Works/htdocs/aiba/public;	T:@same_name_warningso:Set:
@hash{:@filename@:
@options{o;;I"visual-grid-breakpoints;	T;I"visual_grid_breakpoints;	T;
i1;o;	;o;;
i1;i#;o;;
i1;i;;@;@;@;@:@keywordso:Sass::Util::NormalizedMap:@key_strings{:	@map{:@splat0:@kwarg_splat0;
i1;o;	;o;;
i1;i;o;;
i1;i<;@;@;@;@:@operator:not;
i1;o;	;o;;
i1;i;o;;
i1;i<;@;@;@;@0[o:Sass::Tree::VariableNode
;I"visual-grid-breakpoints;	T:
@expro;;I"append;	T;
[o;;I"visual-grid-breakpoints;	T;I"visual_grid_breakpoints;	T;
i2;o;	;o;;
i2;i+;o;;
i2;iC;@;@;@;@o;;I"
query;	T;I"
query;	T;
i2;o;	;o;;
i2;iE;o;;
i2;iK;@;@;@;@o: Sass::Script::Tree::Literal	:@valueo: Sass::Script::Value::String;)I"
comma;	T:
@type:identifier;@;
i2;o;	;o;;
i2;iM;o;;
i2;iR;@;@;@;o;; {;!{;"0;#0;
i2;o;	;o;;
i2;i$;o;;
i2;iS;@;@;@;@:
@guarded0:@globalT:@children[;
i2;o;	;o;;
i2;i;o;;
i2;i[;@;@;@o:Sass::Tree::ReturnNode
:
@expro;;I"
query;	T;I"
query;	T;i5;o;	;o;;i5;i;o;;i5;i;@;@;!@;
@;[;i5;o;	;o;;i5;i;o;;i5;i;@;@;
@;i(;o;	;o;;i(;i;o;;i(;i`;@;@:@has_childrenT;
@:@templateI"*/// 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 not belongs-to($query, $visual-grid-breakpoints) {
    $visual-grid-breakpoints: append($visual-grid-breakpoints, $query, comma) !global;
  }

  @return $query;
}
;	T;i;o;	;o;;i;i;o;;i;i;@;@;*T;
@

Commits for Nextrek/Aiba_backup/public/.sass-cache/d531ebb8df4c5b896d289cde171cd3cbbb44072a/_new-breakpoint.scssc

Diff revisions: vs.
Revision Author Commited Message
1464 MOliva picture MOliva Tue 13 Oct, 2020 11:16:56 +0000