Browse Source

Improve the rule of scsslint

pull/613/merge^2
Daijiro Wachi 11 years ago
parent
commit
dae7b62d30
  1. 4
      .scss-lint.yml
  2. 14
      sass/docs.scss
  3. 4
      sass/mixins.scss
  4. 2
      sass/popovers.scss
  5. 4
      sass/push.scss
  6. 36
      sass/ratchet.scss
  7. 90
      sass/ratchicons.scss
  8. 26
      sass/theme-android.scss
  9. 2
      sass/theme-ios.scss
  10. 4
      sass/toggles.scss

4
.scss-lint.yml

@ -80,7 +80,7 @@ linters:
enabled: false
SpaceAfterComma:
enabled: true
enabled: false
SpaceAfterPropertyColon:
enabled: false
@ -97,7 +97,7 @@ linters:
StringQuotes:
enabled: true
style: single_quotes # or double_quotes
style: double_quotes
TrailingSemicolonAfterPropertyValue:
enabled: true

14
sass/docs.scss

@ -1,5 +1,5 @@
@import 'variables.scss';
@import 'mixins.scss';
@import "variables.scss";
@import "mixins.scss";
// Clearfix mixin for docs
@ -252,7 +252,7 @@ body {
left: 30px;
width: 0;
height: 0;
content: '';
content: "";
}
&:before {
top: -11px;
@ -828,7 +828,7 @@ code {
left: 0;
z-index: 11;
background-color: rgba(0,0,0,.3);
content: '';
content: "";
}
}
@media screen and (min-width: 768px) {
@ -890,7 +890,7 @@ code {
height: 813px;
margin-left: -20px;
font-family: "Helvetica Neue", sans-serif;
background-image: url('../img/device-sprite.png');
background-image: url("../img/device-sprite.png");
background-size: 300%;
background-repeat: no-repeat;
background-position: 0 0;
@ -1008,7 +1008,7 @@ hr {
// --------------------------------------------------
.platform-ios {
@import 'theme-ios.scss';
@import "theme-ios.scss";
.device {
background-position: -395px 0;
@ -1019,7 +1019,7 @@ hr {
}
}
.platform-android {
@import 'theme-android.scss';
@import "theme-android.scss";
.device {
font-family: 'Roboto', sans-serif;

4
sass/mixins.scss

@ -23,7 +23,7 @@
&:before,
&:after {
display: table; // 2
content: ' '; // 1
content: " "; // 1
}
&:after {
clear: both;
@ -45,7 +45,7 @@
background-image: -ms-linear-gradient(top, $color-from 0%, $color-to 100%); // IE10+
background-image: -o-linear-gradient(top, $color-from 0%, $color-to 100%); // Opera 11.10+
background-image: linear-gradient(to bottom, $color-from 0%, $color-to 100%); // W3C
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$color-from}', endColorstr='#{$color-to}', GradientType=0); // IE6-9
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#{$color-from}",endColorstr="#{$color-to}",GradientType=0; // IE6-9
}
@mixin directional-gradient($color-from, $color-to, $deg: 45deg) {
background-color: $color-from; // Old browsers

2
sass/popovers.scss

@ -25,7 +25,7 @@
width: 0;
height: 0;
margin-left: -15px;
content: '';
content: "";
border-right: 15px solid transparent;
border-bottom: 15px solid $chrome-color;
border-left: 15px solid transparent;

4
sass/push.scss

@ -54,10 +54,10 @@
.navigate-left:after,
.push-left:after {
left: 15px;
content: '\e822';
content: "\e822";
}
.navigate-right:after,
.push-right:after{
right: 15px;
content: '\e826';
content: "\e826";
}

36
sass/ratchet.scss

@ -1,30 +1,30 @@
// Variables
@import 'variables.scss';
@import "variables.scss";
// Mixins
@import 'mixins.scss';
@import "mixins.scss";
// Normalize & Base CSS
@import 'normalize.scss';
@import 'base.scss';
@import 'type.scss';
@import "normalize.scss";
@import "base.scss";
@import "type.scss";
// Components
@import 'buttons.scss';
@import 'bars.scss';
@import 'badges.scss';
@import 'cards.scss';
@import 'table-views.scss';
@import 'forms.scss';
@import 'segmented-controls.scss';
@import 'popovers.scss';
@import "buttons.scss";
@import "bars.scss";
@import "badges.scss";
@import "cards.scss";
@import "table-views.scss";
@import "forms.scss";
@import "segmented-controls.scss";
@import "popovers.scss";
// Javascript components
@import 'modals.scss';
@import 'sliders.scss';
@import 'toggles.scss';
@import 'push.scss';
@import "modals.scss";
@import "sliders.scss";
@import "toggles.scss";
@import "push.scss";
// Ratchicons
@import 'ratchicons.scss';
@import "ratchicons.scss";

90
sass/ratchicons.scss

@ -6,11 +6,11 @@
font-family: Ratchicons;
font-weight: normal;
font-style: normal;
src: url('../fonts/ratchicons.eot');
src: url('../fonts/ratchicons.eot?#iefix') format('embedded-opentype'),
url('../fonts/ratchicons.woff') format('woff'),
url('../fonts/ratchicons.ttf') format('truetype'),
url('../fonts/ratchicons.svg#svgFontName') format('svg');
src: url("../fonts/ratchicons.eot");
src: url("../fonts/ratchicons.eot?#iefix") format("embedded-opentype"),
url("../fonts/ratchicons.woff") format("woff"),
url("../fonts/ratchicons.ttf") format("truetype"),
url("../fonts/ratchicons.svg#svgFontName") format("svg");
}
.icon {
@ -22,43 +22,43 @@
-webkit-font-smoothing: antialiased;
}
.icon-back { &:before { content: '\e80a'; } }
.icon-bars { &:before { content: '\e80e'; } }
.icon-caret { &:before { content: '\e80f'; } }
.icon-check { &:before { content: '\e810'; } }
.icon-close { &:before { content: '\e811'; } }
.icon-code { &:before { content: '\e812'; } }
.icon-compose { &:before { content: '\e813'; } }
.icon-download { &:before { content: '\e815'; } }
.icon-edit { &:before { content: '\e829'; } }
.icon-forward { &:before { content: '\e82a'; } }
.icon-gear { &:before { content: '\e821'; } }
.icon-home { &:before { content: '\e82b'; } }
.icon-info { &:before { content: '\e82c'; } }
.icon-list { &:before { content: '\e823'; } }
.icon-more-vertical { &:before { content: '\e82e'; } }
.icon-more { &:before { content: '\e82f'; } }
.icon-pages { &:before { content: '\e824'; } }
.icon-pause { &:before { content: '\e830'; } }
.icon-person { &:before { content: '\e832'; } }
.icon-play { &:before { content: '\e816'; } }
.icon-plus { &:before { content: '\e817'; } }
.icon-refresh { &:before { content: '\e825'; } }
.icon-search { &:before { content: '\e819'; } }
.icon-share { &:before { content: '\e81a'; } }
.icon-sound { &:before { content: '\e827'; } }
.icon-sound2 { &:before { content: '\e828'; } }
.icon-sound3 { &:before { content: '\e80b'; } }
.icon-sound4 { &:before { content: '\e80c'; } }
.icon-star-filled { &:before { content: '\e81b'; } }
.icon-star { &:before { content: '\e81c'; } }
.icon-stop { &:before { content: '\e81d'; } }
.icon-trash { &:before { content: '\e81e'; } }
.icon-up-nav { &:before { content: '\e81f'; } }
.icon-up { &:before { content: '\e80d'; } }
.icon-right-nav { &:before { content: '\e818'; } }
.icon-right { &:before { content: '\e826'; } }
.icon-down-nav { &:before { content: '\e814'; } }
.icon-down { &:before { content: '\e820'; } }
.icon-left-nav { &:before { content: '\e82d'; } }
.icon-left { &:before { content: '\e822'; } }
.icon-back { &:before { content: "\e80a"; } }
.icon-bars { &:before { content: "\e80e"; } }
.icon-caret { &:before { content: "\e80f"; } }
.icon-check { &:before { content: "\e810"; } }
.icon-close { &:before { content: "\e811"; } }
.icon-code { &:before { content: "\e812"; } }
.icon-compose { &:before { content: "\e813"; } }
.icon-download { &:before { content: "\e815"; } }
.icon-edit { &:before { content: "\e829"; } }
.icon-forward { &:before { content: "\e82a"; } }
.icon-gear { &:before { content: "\e821"; } }
.icon-home { &:before { content: "\e82b"; } }
.icon-info { &:before { content: "\e82c"; } }
.icon-list { &:before { content: "\e823"; } }
.icon-more-vertical { &:before { content: "\e82e"; } }
.icon-more { &:before { content: "\e82f"; } }
.icon-pages { &:before { content: "\e824"; } }
.icon-pause { &:before { content: "\e830"; } }
.icon-person { &:before { content: "\e832"; } }
.icon-play { &:before { content: "\e816"; } }
.icon-plus { &:before { content: "\e817"; } }
.icon-refresh { &:before { content: "\e825"; } }
.icon-search { &:before { content: "\e819"; } }
.icon-share { &:before { content: "\e81a"; } }
.icon-sound { &:before { content: "\e827"; } }
.icon-sound2 { &:before { content: "\e828"; } }
.icon-sound3 { &:before { content: "\e80b"; } }
.icon-sound4 { &:before { content: "\e80c"; } }
.icon-star-filled { &:before { content: "\e81b"; } }
.icon-star { &:before { content: "\e81c"; } }
.icon-stop { &:before { content: "\e81d"; } }
.icon-trash { &:before { content: "\e81e"; } }
.icon-up-nav { &:before { content: "\e81f"; } }
.icon-up { &:before { content: "\e80d"; } }
.icon-right-nav { &:before { content: "\e818"; } }
.icon-right { &:before { content: "\e826"; } }
.icon-down-nav { &:before { content: "\e814"; } }
.icon-down { &:before { content: "\e820"; } }
.icon-left-nav { &:before { content: "\e82d"; } }
.icon-left { &:before { content: "\e822"; } }

26
sass/theme-android.scss

@ -1,4 +1,4 @@
@import 'mixins.scss';
@import "mixins.scss";
//
// Android theme
@ -728,28 +728,28 @@ textarea,
// Deprecated `push-left` and `push-right` as of 2.0.1
.navigate-left:after,
.push-left:after {
content: '';
content: "";
}
.navigate-right:after,
.push-right:after {
content: '';
content: "";
}
// Ratchicons for Android
// --------------------------------------------------
.icon-caret:before { content: '\e800'; }
.icon-caret:before { content: "\e800"; }
.icon-down:before,
.icon-down-nav:before { content: '\e801'; }
.icon-download:before { content: '\e802'; }
.icon-down-nav:before { content: "\e801"; }
.icon-download:before { content: "\e802"; }
.icon-left:before,
.icon-left-nav:before { content: '\e803'; }
.icon-more-vertical:before { content: '\e804'; }
.icon-more:before { content: '\e805'; }
.icon-left-nav:before { content: "\e803"; }
.icon-more-vertical:before { content: "\e804"; }
.icon-more:before { content: "\e805"; }
.icon-right:before,
.icon-right-nav:before { content: '\e806'; }
.icon-search:before { content: '\e807'; }
.icon-share:before { content: '\e808'; }
.icon-right-nav:before { content: "\e806"; }
.icon-search:before { content: "\e807"; }
.icon-share:before { content: "\e808"; }
.icon-up:before,
.icon-up-nav:before { content: '\e809'; }
.icon-up-nav:before { content: "\e809"; }

2
sass/theme-ios.scss

@ -1,4 +1,4 @@
@import 'mixins.scss';
@import "mixins.scss";
//
// iOS theme

4
sass/toggles.scss

@ -36,7 +36,7 @@
font-size: 13px;
color: #999;
text-transform: uppercase;
content: 'Off';
content: "Off";
}
// Active state for toggle
@ -52,7 +52,7 @@
right: auto;
left: 15px;
color: #fff;
content: 'On';
content: "On";
}
}
// Hide the checkbox

Loading…
Cancel
Save