diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 0000000..40db42c --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,3 @@ +{ + "extends": "stylelint-config-standard" +} diff --git a/package.json b/package.json index 33ad943..8e2942c 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,11 @@ "start-headless": "node .", "lint": "standard **/*.js **/*.html | snazzy", "polymer_lint": "node ./node_modules/polymer-cli/bin/polymer.js lint", + "stylelint": "stylelint 'template/**/*.css' 'template/**/*.html'", "node_test": "mocha test/common test/nodejs --exit -r test/utils/coverage.js --reporter mocha-multi-reporters --reporter-options configFile=config-nodejs.json", "nyc_instrument": "rimraf instrumented && nyc instrument src instrumented --produce-source-map", "electron_test": "electron-mocha test/common test/electron --exit -r test/utils/coverage.js --reporter mocha-multi-reporters --reporter-options configFile=config-electron.json", - "test": "rimraf .nyc_output && npm run nyc_instrument && npm run node_test && npm run electron_test && npm run lint && npm run polymer_lint", + "test": "rimraf .nyc_output && npm run nyc_instrument && npm run node_test && npm run electron_test && npm run lint && npm run polymer_lint && npm run stylelint", "coveralls": "nyc report --reporter=text-lcov | coveralls", "reports": "npm test && nyc report --reporter=html && opn ./coverage/index.html && opn ./node-report.html && opn ./electron-report.html", "postinstall": "bower install && bower prune && node ./post-install-patch.js", @@ -58,7 +59,9 @@ "polymer-cli": "^1.6.0", "rimraf": "^2.6.2", "snazzy": "^7.1.1", - "standard": "^11.0.1" + "standard": "^11.0.1", + "stylelint": "^9.3.0", + "stylelint-config-standard": "^18.2.0" }, "dependencies": { "@babel/preset-env-standalone": "^7.0.0-beta.46", diff --git a/template/achievementbadge.css b/template/achievementbadge.css index 544f02f..bee6cb1 100644 --- a/template/achievementbadge.css +++ b/template/achievementbadge.css @@ -1,4 +1,4 @@ -.user-achievement{ +.user-achievement { display: inline-block; padding: 0 20px; height: 40px; @@ -16,6 +16,6 @@ height: 40px; width: 40px; border-radius: 50%; - background-color: #eebb00; + background-color: #eb0; z-index: 10; } diff --git a/template/auth-login.css b/template/auth-login.css index ce3603f..60a851d 100644 --- a/template/auth-login.css +++ b/template/auth-login.css @@ -7,7 +7,8 @@ max-width: 500px; min-height: 64px; } -.profiletitle { + +.profiletitle { font-size: 12pt; font-weight: bold; margin-top: 10px; @@ -15,6 +16,7 @@ padding-bottom: 5px; border-bottom: 1px solid lightgrey; } + .loginbutton { background-repeat: no-repeat; background-position: 5px 5px; @@ -23,15 +25,18 @@ background-color: #444; max-height: 35px; } -.loginbutton:before { + +.loginbutton::before { content: "Sign in with"; margin-left: 30px; margin-right: 5px; } + .loginbutton div { text-decoration: none; color: inherit; } -.loginbutton div:first-letter { + +.loginbutton div::first-letter { text-transform: uppercase; } diff --git a/template/auth-mainwindow.css b/template/auth-mainwindow.css index 225d8f3..1203d7d 100644 --- a/template/auth-mainwindow.css +++ b/template/auth-mainwindow.css @@ -22,16 +22,17 @@ app-header paper-icon-button { app-header a { color: white; - text-decoration: none + text-decoration: none; } app-header a:hover { color: lightgrey; - text-decoration: none + text-decoration: none; } app-drawer { z-index: 1000; + --app-drawer-scrim-background: rgba(0, 0, 0, 0.8); } diff --git a/template/auth-profile.css b/template/auth-profile.css index a957c7e..d261887 100644 --- a/template/auth-profile.css +++ b/template/auth-profile.css @@ -7,6 +7,7 @@ max-width: 500px; min-height: 64px; } + .profilearea iron-image { width: 64px; height: 64px; @@ -14,7 +15,8 @@ border-radius: 50%; float: right; } -.profiletitle { + +.profiletitle { font-size: 12pt; font-weight: bold; margin-top: 10px; @@ -22,12 +24,15 @@ padding-bottom: 5px; border-bottom: 1px solid lightgrey; } + .providercard { max-width: 128px; } + paper-card paper-button { font-size: 8pt; } + .loginbutton { background-repeat: no-repeat; background-position: 5px 5px; @@ -36,16 +41,19 @@ paper-card paper-button { background-color: #444; max-height: 35px; } -.loginbutton:before { + +.loginbutton::before { content: "Sign in with"; margin-left: 30px; margin-right: 5px; } + .loginbutton a { text-decoration: none; color: inherit; } -.loginbutton a:first-letter { + +.loginbutton a::first-letter { text-transform: uppercase; } diff --git a/template/auth-profile.html b/template/auth-profile.html index 3d3d2b8..a2ca117 100644 --- a/template/auth-profile.html +++ b/template/auth-profile.html @@ -8,8 +8,6 @@