diff --git a/.sass-lint.yml b/.sass-lint.yml index 79136f013..e60e787eb 100644 --- a/.sass-lint.yml +++ b/.sass-lint.yml @@ -1,6 +1,8 @@ rules: + class-name-format: 0 color-literals: 2 final-newline: 2 + force-element-nesting: 0 hex-notation: 2 indentation: - 2 @@ -13,6 +15,12 @@ rules: max-depth: 4 no-css-comments: 0 no-ids: 0 + no-mergeable-selectors: 0 + no-qualifying-elements: + - 1 + - + - allow-element-with-attribute + no-transition-all: 0 property-sort-order: - 2 - @@ -21,4 +29,5 @@ rules: - 2 - style: double + shorthand-values: 0 zero-unit: 2 diff --git a/package.json b/package.json index 098037279..d81a60fbd 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "lodash.range": "3.0.1", "minilog": "2.0.8", "node-sass": "3.3.3", + "pako": "0.2.8", "po2icu": "git://github.com/LLK/po2icu.git#develop", "react-addons-test-utils": "0.14.7", "react-modal": "0.6.1", @@ -60,7 +61,7 @@ "react-slick": "0.9.2", "redux-thunk": "2.0.1", "routes-to-nginx-conf": "0.0.4", - "sass-lint": "1.3.2", + "sass-lint": "1.5.1", "sass-loader": "2.0.1", "scratchr2_translations": "git://github.com/LLK/scratchr2_translations.git#master", "slick-carousel": "1.5.8", diff --git a/server/template.html b/server/template.html index 370edecd2..d68541291 100644 --- a/server/template.html +++ b/server/template.html @@ -55,7 +55,9 @@ diff --git a/src/components/adminpanel/adminpanel.scss b/src/components/adminpanel/adminpanel.scss index 64ef709a0..6b8c36907 100644 --- a/src/components/adminpanel/adminpanel.scss +++ b/src/components/adminpanel/adminpanel.scss @@ -38,7 +38,7 @@ font-size: large; font-weight: 700; } - + dd { margin-left: 0; } @@ -51,21 +51,22 @@ margin: 0; list-style: none; - .button-row { - display: flex; - font-size: small; - align-items: center; - justify-content: space-between; + } + } + } - .button { - padding: .5rem 1rem; + .button-row { + display: flex; + font-size: small; + align-items: center; + justify-content: space-between; - &.inprogress { - background-color: $ui-dark-gray; - color: $type-gray; - } - } - } + .button { + padding: .5rem 1rem; + + &.inprogress { + background-color: $ui-dark-gray; + color: $type-gray; } } } diff --git a/src/components/banner/banner.scss b/src/components/banner/banner.scss index 2596df6c8..64a69d638 100644 --- a/src/components/banner/banner.scss +++ b/src/components/banner/banner.scss @@ -13,7 +13,8 @@ $navigation-height: 50px; text-align: center; line-height: $navigation-height; - &, a { + &, + a { color: $ui-white; } @@ -23,14 +24,14 @@ $navigation-height: 50px; .close { float: right; - margin-top: $navigation-height/4; - border-radius: $navigation-height/4; + margin-top: $navigation-height / 4; + border-radius: $navigation-height / 4; background-color: $box-shadow-gray; - width: $navigation-height/2; - height: $navigation-height/2; + width: $navigation-height / 2; + height: $navigation-height / 2; text-decoration: none; text-shadow: none; - line-height: $navigation-height/2; + line-height: $navigation-height / 2; color: $ui-white; font-weight: normal; } diff --git a/src/components/box/box.scss b/src/components/box/box.scss index 632c31a07..01310720f 100644 --- a/src/components/box/box.scss +++ b/src/components/box/box.scss @@ -11,6 +11,7 @@ $base-bg: $ui-white; //4 columns @media only screen and (max-width: $mobile - 1) { width: $cols4; + .box-header { h4 { font-size: .9rem; @@ -21,9 +22,10 @@ $base-bg: $ui-white; //6 columns @media only screen and (min-width: $mobile) and (max-width: $tablet - 1) { width: $cols6; + .box-header { h4 { - font-size: 1.0rem; + font-size: 1rem; } } } @@ -31,6 +33,7 @@ $base-bg: $ui-white; //8 columns @media only screen and (min-width: $tablet) and (max-width: $desktop - 1) { width: $cols8; + .box-header { h4 { font-size: 1.1rem; @@ -41,6 +44,7 @@ $base-bg: $ui-white; //12 columns @media only screen and (min-width: $desktop) { width: $cols12; + .box-header { h4 { font-size: 1.1rem; diff --git a/src/components/carousel/carousel.scss b/src/components/carousel/carousel.scss index dd2bac747..b8fbcdbf4 100644 --- a/src/components/carousel/carousel.scss +++ b/src/components/carousel/carousel.scss @@ -14,7 +14,7 @@ .slick-next, .slick-prev { - margin-top: -$icon-size/2; + margin-top: -$icon-size / 2; width: $icon-size; height: $icon-size; diff --git a/src/components/intro/intro.scss b/src/components/intro/intro.scss index 5406f8d54..d8fb1e43b 100644 --- a/src/components/intro/intro.scss +++ b/src/components/intro/intro.scss @@ -57,14 +57,6 @@ display: none; } - &:hover .costume-1 { - display: none; - } - - &:hover .costume-2 { - display: block; - } - .circle { display: block; top: 15px; @@ -98,52 +90,74 @@ } - &.sprite-1 .circle { - background-color: $splash-green; + &.sprite-1 { + .circle { + background-color: $splash-green; + } + + .text { + top: 60px; + left: 50px; + color: $splash-green; + } } - &.sprite-2 .circle { - background-color: $splash-pink; + &.sprite-2 { + .circle { + background-color: $splash-pink; + } + + .text { + top: 77px; + left: 50px; + color: $splash-pink; + } } - &.sprite-3 .circle { - background-color: $splash-blue; + &.sprite-3 { + .circle { + background-color: $splash-blue; + } + + .text { + top: 37px; + left: 45px; + color: $splash-blue; + } + + .subtext { + top: 63px; + left: 60px; + color: $ui-white; + } } - &:hover.sprite-1 .circle { - box-shadow: 0 0 10px 2px $splash-green; - } + &:hover { + .costume-1 { + display: none; + } - &:hover.sprite-2 .circle { - box-shadow: 0 0 10px 2px $splash-pink; - } + .costume-2 { + display: block; + } - &:hover.sprite-3 .circle { - box-shadow: 0 0 10px 2px $splash-blue; - } + &.sprite-1 { + .circle { + box-shadow: 0 0 10px 2px $splash-green; + } + } - &.sprite-1 .text { - top: 60px; - left: 50px; - color: $splash-green; - } + &.sprite-2 { + .circle { + box-shadow: 0 0 10px 2px $splash-pink; + } + } - &.sprite-2 .text { - top: 77px; - left: 50px; - color: $splash-pink; - } - - &.sprite-3 .text { - top: 37px; - left: 45px; - color: $splash-blue; - } - - &.sprite-3 .subtext { - top: 63px; - left: 60px; - color: $ui-white; + &.sprite-3 { + .circle { + box-shadow: 0 0 10px 2px $splash-blue; + } + } } } diff --git a/src/components/languagechooser/languagechooser.jsx b/src/components/languagechooser/languagechooser.jsx index 39d39887b..765f883ba 100644 --- a/src/components/languagechooser/languagechooser.jsx +++ b/src/components/languagechooser/languagechooser.jsx @@ -6,8 +6,6 @@ var jar = require('../../lib/jar.js'); var languages = require('../../../languages.json'); var Select = require('../forms/select.jsx'); -require('./languagechooser.scss'); - /** * Footer dropdown menu that allows one to change their language. */ diff --git a/src/components/languagechooser/languagechooser.scss b/src/components/languagechooser/languagechooser.scss deleted file mode 100644 index abe1a6d34..000000000 --- a/src/components/languagechooser/languagechooser.scss +++ /dev/null @@ -1,3 +0,0 @@ -.language-chooser { - -} diff --git a/src/components/login/login.jsx b/src/components/login/login.jsx index 4dac048db..d12ce2361 100644 --- a/src/components/login/login.jsx +++ b/src/components/login/login.jsx @@ -40,30 +40,30 @@ var Login = React.createClass({ return (