From 49e25d7304bd9616db022bc907d58bbddb090d4a Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Wed, 13 May 2015 13:23:44 +0200 Subject: [PATCH] Started implementing core styles --- rpg-docs/client/views/GeneralCSS/colors.scss | 83 ++++++++++++++++ rpg-docs/client/views/GeneralCSS/main.scss | 99 ++++++++++++++++++++ 2 files changed, 182 insertions(+) create mode 100644 rpg-docs/client/views/GeneralCSS/colors.scss create mode 100644 rpg-docs/client/views/GeneralCSS/main.scss diff --git a/rpg-docs/client/views/GeneralCSS/colors.scss b/rpg-docs/client/views/GeneralCSS/colors.scss new file mode 100644 index 00000000..f98b53d3 --- /dev/null +++ b/rpg-docs/client/views/GeneralCSS/colors.scss @@ -0,0 +1,83 @@ +.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; +} \ No newline at end of file diff --git a/rpg-docs/client/views/GeneralCSS/main.scss b/rpg-docs/client/views/GeneralCSS/main.scss new file mode 100644 index 00000000..b819103c --- /dev/null +++ b/rpg-docs/client/views/GeneralCSS/main.scss @@ -0,0 +1,99 @@ +@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 { + height: 40px; + margin: 1px; + &.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; +}