CSS improvements (#994)

* Update button styling
* Add Travis test to check for outdated CSS files
This will only fail if the SCSS is updated and CSS is re-built.
This commit is contained in:
Matthew Harrison-Jones 2016-06-10 20:46:44 +01:00 committed by Peter Hedenskog
parent cbc04e23b4
commit d9bf76db22
7 changed files with 14 additions and 12 deletions

View File

@ -26,6 +26,7 @@ before_install:
- sh -e /etc/init.d/xvfb start
script:
- npm run travis
- npm run build:css && test -z "$(git status --porcelain lib/plugins/html/assets/css/index.css)"
- bin/sitespeed.js -b firefox -n 2 http://www.browsertime.net
- bin/sitespeed.js -b chrome -n 2 https://www.sitespeed.io
- bin/sitespeed.js -b chrome -n 2 https://www.sitespeed.io --webpagetest.key $WPTKEY

View File

@ -784,7 +784,7 @@ pre > code {
color: #ffffff;
background-color: #0095d2;
border-color: #0095d2; }
.button--primary:hover .button--primary:focus {
.button--primary:hover, .button--primary:focus, .button--primary:active {
color: #ffffff;
background-color: #0087be;
border-color: #0087be; }
@ -946,13 +946,13 @@ ul.menu {
text-transform: uppercase; }
.errors {
margin-bottom: 2em;
margin-bottom: 1.333em;
background: lightpink; }
/* Large */
.large {
font-size: 2rem;
line-height: 2rem; }
font-size: 1.333rem;
line-height: 1.333rem; }
.hidden-small {
display: inline; }

File diff suppressed because one or more lines are too long

View File

@ -31,8 +31,9 @@
background-color: $color--blue;
border-color: $color--blue;
&:hover
&:focus {
&:hover,
&:focus,
&:active {
color: $color--white;
background-color: darken($color--blue, 4%);
border-color: darken($color--blue, 4%);

View File

@ -36,15 +36,15 @@ ul.menu {
}
.errors {
margin-bottom: 2em;
margin-bottom: 1.333em;
background: lightpink;
}
/* Large */
.large {
font-size: 2rem;
line-height: 2rem;
font-size: 1.333rem;
line-height: 1.333rem;
}
.hidden-small {

View File

@ -3,7 +3,7 @@ include ../../_tableMixins
mixin adviceInfo(name, perfectScore, node)
h3 #{name} (#{node.score})
if node.score < 100
button.hidden-small.button-primary(onclick='toggleRow(this);') Show/hide details
button.hidden-small.button.button--primary(onclick='toggleRow(this);') Show/hide details
.responsive
table
thead

View File

@ -35,4 +35,4 @@ block content
include ./webpagetest/run.jade
.index-link
a.button.button-primary(href=urlLink) Back to summary
a.button.button--primary(href=urlLink) Back to summary