Skip to content
Snippets Groups Projects
Commit bb299141 authored by Chris Lawton's avatar Chris Lawton
Browse files

linting

parent 82e4ba87
No related branches found
No related tags found
No related merge requests found
/*------------------------------------*\ // Media queries
$MIXINS
\*------------------------------------*/
/* ============================================
Media queries
*/
@mixin media-query($queries...) { @mixin media-query($queries...) {
@each $query in $queries { @each $query in $queries {
@each $breakpoint in $breakpoints { @each $breakpoint in $breakpoints {
...@@ -21,10 +14,7 @@ ...@@ -21,10 +14,7 @@
} }
} }
// Placeholder text
/* ============================================
Placeholder text
*/
@mixin placeholder-text { @mixin placeholder-text {
// sass-lint:disable no-vendor-prefixes // sass-lint:disable no-vendor-prefixes
&.placeholder { @content; } &.placeholder { @content; }
...@@ -35,10 +25,7 @@ ...@@ -35,10 +25,7 @@
// sass-lint:enddisable // sass-lint:enddisable
} }
// Hide text
/* ============================================
Hide text
*/
@mixin hidden { @mixin hidden {
position: absolute; position: absolute;
width: 1px; width: 1px;
...@@ -47,20 +34,14 @@ ...@@ -47,20 +34,14 @@
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
} }
// iOS Native vertical scroll
/* ============================================
iOS Native vertical scroll
*/
@mixin native-vertical-scroll { @mixin native-vertical-scroll {
overflow-x: hidden; overflow-x: hidden;
overflow-y: scroll; overflow-y: scroll;
-webkit-overflow-scrolling: touch; // sass-lint:disable-line no-misspelled-properties -webkit-overflow-scrolling: touch; // sass-lint:disable-line no-misspelled-properties
} }
// Output a rem and px fallback value for the given property
/* ============================================
Output a rem and px fallback value for the given property
*/
@mixin rem($property, $values) { @mixin rem($property, $values) {
$px: (); $px: ();
...@@ -81,18 +62,12 @@ ...@@ -81,18 +62,12 @@
// sass-lint:enddisable // sass-lint:enddisable
} }
// Output a `font-size: [x]rem;` declaration for the given px value
/* ============================================
Output a `font-size: [x]rem;` declaration for the given px value
*/
@mixin rem-font-size($font-size) { @mixin rem-font-size($font-size) {
@include rem(font-size, $font-size); @include rem(font-size, $font-size);
} }
// Font sizes
/* ============================================
Font sizes
*/
@mixin font-size($keyword) { @mixin font-size($keyword) {
$size: map-get($font-sizes, $keyword); $size: map-get($font-sizes, $keyword);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment