Files
DiceCloud/rpg-docs/client/style/main.scss
2015-05-13 15:25:22 +02:00

121 lines
2.1 KiB
SCSS

@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;
}
root {
display: block;
}
body {
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial;
margin: 0;
overflow-x: hidden;
}
//Horizontal rule
hr {
background-color: #444;
opacity: 0.12;
border-width: 0;
color: #444;
height: 1px;
line-height: 0;
margin: 16px -16px;
text-align: center;
}
//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;
width: 100%;
//hack to stop flickering
-webkit-backface-visibility: hidden;
-webkit-transform: translateX(0);
//stop breaking over column divide
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
//Fixes extra margin at top of columns
display: inline-block;
}
.top {
cursor: pointer;
padding: 16px;
border-radius: 2px 2px 0 0;
}
.bottom {
padding: 16px;
border-radius: 0 0 2px 2px;
&.list {
padding: 0 0 16px 0;
}
}
.left {
padding: 16px;
border-radius: 2px 0 0 2px;
text-align: center;
}
.right {
padding: 16px;
border-radius: 0 2px 2px 0;
}
}
/*
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;
}