-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dashboard-title): use styles instead of hardcoded value for dash…
…board header
- Loading branch information
Raphael Benitte
committed
Apr 2, 2016
1 parent
e0eaf28
commit f7f2673
Showing
24 changed files
with
189 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,32 @@ | ||
html, body | ||
font $main-font | ||
|
||
background $main-bg-color | ||
color $main-txt-color | ||
|
||
margin 0 | ||
height 100% | ||
width 100% | ||
|
||
overflow hidden | ||
|
||
*, *:before, *:after | ||
box-sizing border-box | ||
|
||
#hotboard { | ||
position: absolute; | ||
|
||
top: ($main-margin - $widget-spacing / 2); | ||
right: ($main-margin - $widget-spacing / 2); | ||
bottom: ($main-margin - $widget-spacing / 2); | ||
left: ($main-margin - $widget-spacing / 2); | ||
} | ||
|
||
.histogram { | ||
&__axis { | ||
&__legend { | ||
font-size: 14px; | ||
fill: $chart-axis-txt-color; | ||
} | ||
} | ||
} | ||
.histogram | ||
&__axis | ||
&__legend | ||
font-size 14px | ||
fill $chart-axis-txt-color | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
font-family: "Montserrat", sans-serif; | ||
text-transform: uppercase; | ||
font-weight: 400; | ||
} | ||
h1, h2, h3, h4, h5, h6 | ||
font-family "Montserrat", sans-serif | ||
text-transform uppercase | ||
font-weight 400 | ||
|
||
.txt--success { | ||
color $success-color; | ||
} | ||
.txt--success | ||
color $success-color | ||
|
||
.prop { | ||
&__key { | ||
color: $prop-key-txt-color; | ||
} | ||
&__value { | ||
color: $prop-value-txt-color; | ||
} | ||
} | ||
.prop | ||
&__key | ||
color $prop-key-txt-color | ||
|
||
.dashboard__title { | ||
color: $main-title-color; | ||
font: $main-title-font; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
padding: 1vmin 3vmin; | ||
height: 10vmin; | ||
} | ||
&__value | ||
color $prop-value-txt-color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.dashboard__title | ||
text-transform uppercase | ||
background $widget-bg-color | ||
border-radius $widget-header-border-radius | ||
padding 0 2vmin | ||
box-shadow $widget-header-shadow, | ||
$widget-shadow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
.list__item { | ||
&__time { | ||
font-style italic; | ||
color hsl(0, 52%, 60%); | ||
} | ||
.list__item | ||
&__time | ||
font-style italic | ||
color hsl(0, 52%, 60%) | ||
|
||
&--with-status { | ||
&:before { | ||
box-shadow 0 1px 1px $main-bg-color; | ||
} | ||
} | ||
} | ||
&--with-status | ||
&:before | ||
box-shadow 0 1px 1px $main-bg-color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
.widget { | ||
&__header { | ||
&__count { | ||
font-weight 300; | ||
} | ||
.widget | ||
&__header | ||
&__count | ||
font-weight 300 | ||
|
||
&__subject { | ||
color #fff; | ||
font-weight 300; | ||
} | ||
} | ||
} | ||
&__subject | ||
color #fff | ||
font-weight 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@require '_widget.styl'; | ||
@require '_list.styl'; | ||
@require 'time/_clock.styl'; | ||
@require '_dashboard' | ||
@require '_widget' | ||
@require '_list' | ||
@require 'time/_clock' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.dashboard__title | ||
text-align center | ||
text-transform uppercase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.