Migrated stats page to scss

This commit is contained in:
Stefan Zermatten
2015-05-13 15:25:22 +02:00
parent 5dbb59ef80
commit e40dd196e6
11 changed files with 116 additions and 266 deletions

View File

@@ -1,83 +0,0 @@
.red {
background-color: #F44336;
}
.pink {
background-color: #E91E63;
}
.purple {
background-color: #9C27B0;
}
.deep-purple {
background-color: #673AB7;
}
.indigo {
background-color: #3F51B5;
}
.blue {
background-color: #2196F3;
}
.light-blue {
background-color: #03A9F4;
}
.cyan {
background-color: #00BCD4;
}
.teal {
background-color: #009688;
}
.green {
background-color: #4CAF50;
}
.light-green {
background-color: #8BC34A;
}
.lime {
background-color: #CDDC39;
}
.yellow {
background-color: #FFEB3B;
}
.amber {
background-color: #FFC107;
}
.orange {
background-color: #FF9800;
}
.deep-orange {
background-color: #FF5722;
}
.brown {
background-color: #795548;
}
.grey {
background-color: #9E9E9E;
}
.blue-grey {
background-color: #607D8B;
}
.white {
background-color: #ffffff;
}
.black {
background-color: #262626;
}

View File

@@ -1,30 +1,7 @@
root {
display: block;
}
body {
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial;
margin: 0;
overflow-x: hidden;
}
body.core-narrow {
padding: 8px;
}
body /deep/ core-menu {
overflow-x: hidden !important;
}
.calculatedValue {
color: #021C33;
font-weight: bold;
}
* {
box-sizing: border-box;
}
td {
padding: 0;
}
@@ -43,62 +20,10 @@ table {
text-align: left;
}
hr {
background-color: #444;
opacity: 0.12;
border-width: 0;
color: #444;
height: 1px;
line-height: 0;
margin: 0 -16px;
text-align: center;
}
paper-button {
font-size: 14px;
font-weight: 400;
text-transform: uppercase;
color: #000;
color: rgba(0,0,0,0.87);
letter-spacing: 0.010;
}
core-item {
cursor: pointer;
}
.listRow {
height: 32px;
}
.card {
margin-bottom: 8px;
/*hack to stop flickering*/
-webkit-backface-visibility: hidden;
-webkit-transform: translateX(0);
/*stop divs breaking over divide*/
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
/*Fixes extra margin at top of columns*/
display: inline-block;
width: 100%;
font-size: 14px;
border-radius: 2px;
background-color: white;
}
.card.double {
padding: 0;
}
.card paper-button {
font-size: 14px;
letter-spacing: 0.01em;
}
.cardHeader {
height: 48px;
padding: 0 16px 0 16px;
@@ -112,10 +37,6 @@ core-item {
cursor: pointer;
}
.skillRow {
cursor: pointer;
}
.resourceCards {
padding: 4px 4px 0 4px;
margin-bottom: -4px;

View File

@@ -1,100 +0,0 @@
@import "bourbon/bourbon";
@import "colors";
$thickColumnWidth: 304px;
$thinColumnWidth: 200px;
//apply a natural box layout model to all elements, but allowing components to change
html {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*, *:before, *:after {
-moz-box-sizing: inherit;
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
//Column layouts of cards
.column-container {
-moz-column-fill: balance;
column-fill: balance;
-ms-column-gap: 8px;
-moz-column-gap: 8px;
-webkit-column-gap: 8px;
column-gap: 8px;
-moz-column-width: thickColumnWidth;
-ms-column-width: thickColumnWidth;
-webkit-column-width: thickColumnWidth;
column-width: thickColumnWidth;
padding: 8px;
&.thin {
-ms-column-count: 4;
-moz-column-count: 4;
-webkit-column-count: 4;
column-count: 4;
-ms-column-width: 200px;
-moz-column-width: 200px;
-webkit-column-width: 200px;
column-width: 200px;
}
}
//Cards
.card {
background: white;
border-radius: 2px;
.column-container & {
margin-bottom: 8px;
}
.top {
cursor: pointer;
padding: 16px;
}
.bottom {
padding: 16px;
&.list {
padding: 0 0 16px 0;
}
}
}
/*
List items
*/
.item-slot {
background-color: rgb(232, 232, 232);
background-color: rgba(0, 0, 0, 0.1);
}
.item {
background: white;
height: 40px;
margin: 1px 0 1px 0;
&.small {
height: 32px;
}
&.tall {
height: 56px;
}
&[hero], &:active{
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.37);
z-index: 10;
}
}
/*
Buttons
*/
paper-button {
color: #000;
color: rgba(0,0,0,0.87);
font-size: 14px;
font-weight: 400;
letter-spacing: 0.010;
text-transform: uppercase;
}

View File

@@ -18,7 +18,7 @@
letter-spacing: 0;
}
.white-text .display1{
.white-text .display1, .white-text.display1{
color: rgba(255,255,255,0.54);
}