This repository was archived by the owner on Jul 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +32
-32
lines changed Expand file tree Collapse file tree 7 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 71
71
}
72
72
73
73
/// Function gets a calculated rem value for a fixed size.
74
- /// @param {Number} $fixedUnit Fixed nondimensional units.
74
+ /// @param {Number} $unitQuantity Fixed nondimensional units.
75
75
/// @return {Length} A calculated rem value.
76
76
/// @example scss
77
77
/// button {
85
85
/// max-width: 5rem;
86
86
/// }
87
87
/// }
88
- @function get-fixed-size ($fixedUnit ) {
88
+ @function get-fixed-size ($unitQuantity ) {
89
89
// Derive the base unit from the current row height of the grid
90
- $baseline : map-get ($grid-values , " rowHeight" );
90
+ $fixedUnit : map-get ($grid-values , " rowHeight" );
91
91
92
- @if ($baseline == null or type-of ($baseline ) != " number" ) {
93
- @error " The baseline in $grid-values needs be a valid number. Please check your grid configuration." ;
92
+ @if ($fixedUnit == null or type-of ($fixedUnit ) != " number" ) {
93
+ @error " The rowHeight in $grid-values needs be a valid number. Please check your grid configuration." ;
94
94
}
95
95
96
- @if ($fixedUnit == null or type-of ($fixedUnit ) != " number" ) {
97
- @error " The provided fixed value `#{$fixedUnit } ` to get-fixed-size() needs to be a valid number greater than 0." ;
96
+ @if ($unitQuantity == null or type-of ($unitQuantity ) != " number" ) {
97
+ @error " The provided fixed value `#{$unitQuantity } ` to get-fixed-size() needs to be a valid number greater than 0." ;
98
98
}
99
99
100
- @return $fixedUnit * $baseline * 1rem ;
100
+ @return $unitQuantity * $fixedUnit * 1rem ;
101
101
}
102
102
103
103
/// Utility for declaring mobile-first media queries.
Original file line number Diff line number Diff line change 71
71
}
72
72
73
73
/// Function gets a calculated rem value for a fixed size.
74
- /// @param {Number} $fixedUnit Fixed nondimensional units.
74
+ /// @param {Number} $unitQuantity Fixed nondimensional units.
75
75
/// @return {Length} A calculated rem value.
76
76
/// @example scss
77
77
/// button {
85
85
/// max-width: 5rem;
86
86
/// }
87
87
/// }
88
- @function get-fixed-size ($fixedUnit ) {
88
+ @function get-fixed-size ($unitQuantity ) {
89
89
// Derive the base unit from the current row height of the grid
90
- $baseline : map-get ($grid-values , " rowHeight" );
90
+ $fixedUnit : map-get ($grid-values , " rowHeight" );
91
91
92
- @if ($baseline == null or type-of ($baseline ) != " number" ) {
93
- @error " The baseline in $grid-values needs be a valid number. Please check your grid configuration." ;
92
+ @if ($fixedUnit == null or type-of ($fixedUnit ) != " number" ) {
93
+ @error " The rowHeight in $grid-values needs be a valid number. Please check your grid configuration." ;
94
94
}
95
95
96
- @if ($fixedUnit == null or type-of ($fixedUnit ) != " number" ) {
97
- @error " The provided fixed value `#{$fixedUnit } ` to get-fixed-size() needs to be a valid number greater than 0." ;
96
+ @if ($unitQuantity == null or type-of ($unitQuantity ) != " number" ) {
97
+ @error " The provided fixed value `#{$unitQuantity } ` to get-fixed-size() needs to be a valid number greater than 0." ;
98
98
}
99
99
100
- @return $fixedUnit * $baseline * 1rem ;
100
+ @return $unitQuantity * $fixedUnit * 1rem ;
101
101
}
102
102
103
103
/// Utility for declaring mobile-first media queries.
Original file line number Diff line number Diff line change 71
71
}
72
72
73
73
/// Function gets a calculated rem value for a fixed size.
74
- /// @param {Number} $fixedUnit Fixed nondimensional units.
74
+ /// @param {Number} $unitQuantity Fixed nondimensional units.
75
75
/// @return {Length} A calculated rem value.
76
76
/// @example scss
77
77
/// button {
85
85
/// max-width: 5rem;
86
86
/// }
87
87
/// }
88
- @function get-fixed-size ($fixedUnit ) {
88
+ @function get-fixed-size ($unitQuantity ) {
89
89
// Derive the base unit from the current row height of the grid
90
- $baseline : map-get ($grid-values , " rowHeight" );
90
+ $fixedUnit : map-get ($grid-values , " rowHeight" );
91
91
92
- @if ($baseline == null or type-of ($baseline ) != " number" ) {
93
- @error " The baseline in $grid-values needs be a valid number. Please check your grid configuration." ;
92
+ @if ($fixedUnit == null or type-of ($fixedUnit ) != " number" ) {
93
+ @error " The rowHeight in $grid-values needs be a valid number. Please check your grid configuration." ;
94
94
}
95
95
96
- @if ($fixedUnit == null or type-of ($fixedUnit ) != " number" ) {
97
- @error " The provided fixed value `#{$fixedUnit } ` to get-fixed-size() needs to be a valid number greater than 0." ;
96
+ @if ($unitQuantity == null or type-of ($unitQuantity ) != " number" ) {
97
+ @error " The provided fixed value `#{$unitQuantity } ` to get-fixed-size() needs to be a valid number greater than 0." ;
98
98
}
99
99
100
- @return $fixedUnit * $baseline * 1rem ;
100
+ @return $unitQuantity * $fixedUnit * 1rem ;
101
101
}
102
102
103
103
/// Utility for declaring mobile-first media queries.
Original file line number Diff line number Diff line change 71
71
}
72
72
73
73
/// Function gets a calculated rem value for a fixed size.
74
- /// @param {Number} $fixedUnit Fixed nondimensional units.
74
+ /// @param {Number} $unitQuantity Fixed nondimensional units.
75
75
/// @return {Length} A calculated rem value.
76
76
/// @example scss
77
77
/// button {
85
85
/// max-width: 5rem;
86
86
/// }
87
87
/// }
88
- @function get-fixed-size ($fixedUnit ) {
88
+ @function get-fixed-size ($unitQuantity ) {
89
89
// Derive the base unit from the current row height of the grid
90
- $baseline : map-get ($grid-values , " rowHeight" );
90
+ $fixedUnit : map-get ($grid-values , " rowHeight" );
91
91
92
- @if ($baseline == null or type-of ($baseline ) != " number" ) {
93
- @error " The baseline in $grid-values needs be a valid number. Please check your grid configuration." ;
92
+ @if ($fixedUnit == null or type-of ($fixedUnit ) != " number" ) {
93
+ @error " The rowHeight in $grid-values needs be a valid number. Please check your grid configuration." ;
94
94
}
95
95
96
- @if ($fixedUnit == null or type-of ($fixedUnit ) != " number" ) {
97
- @error " The provided fixed value `#{$fixedUnit } ` to get-fixed-size() needs to be a valid number greater than 0." ;
96
+ @if ($unitQuantity == null or type-of ($unitQuantity ) != " number" ) {
97
+ @error " The provided fixed value `#{$unitQuantity } ` to get-fixed-size() needs to be a valid number greater than 0." ;
98
98
}
99
99
100
- @return $fixedUnit * $baseline * 1rem ;
100
+ @return $unitQuantity * $fixedUnit * 1rem ;
101
101
}
102
102
103
103
/// Utility for declaring mobile-first media queries.
You can’t perform that action at this time.
0 commit comments