gulp.task('lint:sass', function() {
return gulp.src(PATHS)
- .pipe(scssLint({
- 'config': 'scss-lint.yml'
- }));
+ .pipe(scssLint());
});
gulp.task('lint:javascript', function() {
jshint.lookup = false;
return gulp.src('js/*.js')
- .pipe(jshint('./config/.jshintConfig'))
+ .pipe(jshint())
.pipe(jshint.reporter('default'));
});
}
}
+ // scss-lint:disable ZeroUnit
#{$selector} {
@if $global-flexbox {
flex: 1 1 0px;
&:first-child:nth-last-child(#{$i}) {
&, &:first-child:nth-last-child(#{$i}) ~ #{$selector} {
display: inline-block;
- width: calc( #{percentage(1/$i)} - #{$buttongroup-spacing} );
+ width: calc(#{percentage(1/$i)} - #{$buttongroup-spacing});
margin-right: $buttongroup-spacing;
}
}
@mixin button-group-unstack(
$selector: $buttongroup-child-selector
) {
+ // scss-lint:disable ZeroUnit
#{$selector} {
@if $global-flexbox {
flex: 1 1 0px;
}
}
+ // scss-lint:disable MergeableSelector
&.stacked-for-small.expanded {
@include breakpoint(small only) {
display: block;
a {
@include disable-mouse-outline;
}
- &:not(.vertical) {
- }
.no-js & ul {
display: none;
}
&:not(.vertical) {
- .is-dropdown-submenu {
- &.first-sub {
- top: 100%;
- #{$global-left}: 0;
- #{$global-right}: auto;
- }
+ .is-dropdown-submenu.first-sub {
+ top: 100%;
+ #{$global-left}: 0;
+ #{$global-right}: auto;
}
}
@include media-object-section;
@if $global-flexbox {
- &.main-section { flex: 1 1 0px; }
+ // scss-lint:disable ZeroUnit
+ &.main-section {
+ flex: 1 1 0px;
+ }
}
@else {
&.middle { vertical-align: middle; }
/// Expands the items of a Menu, so each item is the same width.
@mixin menu-expand {
@if $global-flexbox {
- > li { flex: 1 1 0px; }
+ // scss-lint:disable ZeroUnit
+ > li {
+ flex: 1 1 0px;
+ }
}
@else {
width: 100%;
// margin: $reveal-offset auto 0;
background-color: $reveal-background;
border-radius: $reveal-radius;
-
+
//chris's additions
overflow-y: auto;
max-height: 100vh;
//
-
@include breakpoint(medium) {
min-height: 0;
}
body.is-reveal-open {
overflow: hidden;
}
-
+
/* this little snippet causes the intended scroll blocking on iOS Safari,
which can still DIAF, because it breaks literally everything else */
// html.is-reveal-open, body.is-reveal-open {
@include reveal-modal-width($reveal-width);
position: absolute;
overflow-y: auto;
-
-
+
+
// &.is-ios {
// :last-child {
// padding-bottom: 1em;
// }
// }
-
+
/*** chris's addition ***/
@include breakpoint(small) {
width: 100vw;
}
@if $global-flexbox {
+ // scss-lint:disable ZeroUnit
.title-bar-left,
.title-bar-right {
flex: 1 1 0px;
@if $global-flexbox {
flex-wrap: nowrap;
+ // scss-lint:disable ZeroUnit
.top-bar-left,
.top-bar-right {
flex: 1 1 0px;
@extend %input-group-child;
border-radius: 0;
+ // scss-lint:disable ZeroUnit
@if $global-flexbox {
flex: 1 1 0px;
width: auto;
@if has-value($meter-radius) {
border-radius: $meter-radius;
}
- }d
+ }
&::-webkit-meter-even-less-good-value {
background: $meter-fill-bad;
}
}
- // Firefox
- background: $meter-background;
-
&::-moz-meter-bar {
background: $primary-color;
$slider-radius: $global-radius !default;
@mixin foundation-range-input {
+ // scss-lint:disable QualifyingElement
input[type="range"] {
$slider-background: $light-gray;
$slider-height: 0.5rem;
- $slider-radius: 0px;
+ $slider-radius: 0;
$slider-thumb-height: 1.4rem;
$slider-thumb-width: 1.4rem;
$slider-thumb-color: $primary-color;
margin-bottom: $margin;
border: 0;
line-height: 1;
- margin-bottom: $global-margin;
@if has-value($slider-radius) {
border-radius: $slider-radius;
&::-moz-range-track {
-moz-appearance: none;
height: $slider-height;
- background: #ccc;
+ background: $slider-background;
}
-
+
&::-moz-range-thumb {
-moz-appearance: none;
background: $slider-thumb-color;
// Remove this in 6.3
$grid-column-responsive-gutter: null !default;
@if $grid-column-responsive-gutter {
+ // scss-lint:disable DebugStatement
@debug 'Rename $grid-column-responsive-gutter to $grid-column-gutter to remove this warning.';
$grid-column-gutter: $grid-column-responsive-gutter;
}