1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-16 11:15:12 +00:00

re-color style of SideNav

This commit is contained in:
Rokt33r
2016-05-08 14:42:08 +09:00
parent c91adcd165
commit 652c1aae73
4 changed files with 43 additions and 29 deletions

View File

@@ -4,9 +4,12 @@
position relative position relative
cursor pointer cursor pointer
&:hover &:hover
background-color alpha(white, 0.1) background-color $nav-hover-background
.control .control
opacity 1 opacity 1
&:active
background-color $nav-active-background
color $nav-text-color
.label .label
position absolute position absolute
@@ -16,7 +19,7 @@
right 48px right 48px
padding-left 20px padding-left 20px
line-height 33px line-height 33px
color white color $nav-inactive-text-color
.control .control
opacity 0 opacity 0
@@ -33,13 +36,12 @@
border none border none
border-radius 5px border-radius 5px
background-color transparent background-color transparent
color $nav-inactive-color color $nav-inactive-text-color
&:hover &:hover
color white background-color $nav-hover-background
background-color alpha(white, 0.1)
&:active &:active
color white background-color $nav-active-background
background-color $brand-color color $nav-text-color
.nameInput .nameInput
absolute top bottom absolute top bottom

View File

@@ -2,13 +2,15 @@
margin-top 15px margin-top 15px
margin-bottom 15px margin-bottom 15px
user-select none user-select none
color $nav-text-color
.header .header
position relative position relative
height 33px height 33px
cursor pointer cursor pointer
color $nav-inactive-text-color
&:hover &:hover
background-color alpha(white, 0.1) background-color $nav-hover-background
.header-control-button .header-control-button
opacity 1 opacity 1
@@ -20,7 +22,6 @@
right 72px right 72px
padding-left 10px padding-left 10px
line-height 33px line-height 33px
color white
.header-control .header-control
position absolute position absolute
@@ -37,14 +38,13 @@
border none border none
border-radius 5px border-radius 5px
background-color transparent background-color transparent
color $nav-inactive-color color $nav-inactive-text-color
opacity 0 opacity 0
&:hover &:hover
color white background-color $nav-hover-background
background-color alpha(white, 0.1)
&:active &:active
color white background-color $nav-active-background
background-color $brand-color color $nav-text-color
.header-control-button--show .header-control-button--show
@extend .header-control-button @extend .header-control-button
@@ -73,11 +73,10 @@
border none border none
padding-left 20px padding-left 20px
text-align left text-align left
color $nav-inactive-text-color
background-color transparent background-color transparent
color $nav-inactive-color
&:hover &:hover
background-color alpha(white, 0.1) background-color $nav-hover-background
color white
&:active &:active
background-color $brand-color background-color $nav-active-background
color white color $nav-text-color

View File

@@ -4,24 +4,26 @@
border-right solid 1px $nav-border-color border-right solid 1px $nav-border-color
background-color $nav-background-color background-color $nav-background-color
user-select none user-select none
color $nav-text-color
.top .top
height 60px height 60px
border-bottom solid 1px $nav-border-color border-bottom solid 1px $nav-border-color
.top-menu .top-menu
height 60px height 59px
padding 0 10px padding 0 10px
font-size 14px font-size 14px
width 100% width 100%
text-align left text-align left
border none border none
color white color $nav-inactive-text-color
background-color transparent background-color transparent
&:hover &:hover
background-color alpha(white, 0.1) background-color $nav-hover-background
&:active &:active
background-color $brand-color background-color $nav-active-background
color $nav-text-color
.menu .menu
margin-top 15px margin-top 15px
@@ -33,12 +35,20 @@
width 100% width 100%
text-align left text-align left
border none border none
color white color $nav-inactive-text-color
background-color transparent background-color transparent
&:hover &:hover
background-color alpha(white, 0.1) background-color $nav-hover-background
&:active &:active
background-color $brand-color background-color $nav-active-background
color $nav-text-color
.menu-button--active
@extend .menu-button
background-color $nav-active-background
color $nav-text-color
&:hover
background-color $nav-active-background
.repositoryList .repositoryList
absolute left right bottom absolute left right bottom

View File

@@ -56,9 +56,12 @@ $disabled-input-background = #DDD
* Nav * Nav
*/ */
$nav-border-color = #838383 $nav-text-color = #515151
$nav-background-color = #353535 $nav-inactive-text-color = #939395
$nav-inactive-color = #838383 $nav-hover-background = rgba(126, 127, 129, 0.08)
$nav-active-background = #E7E7E7
$nav-border-color = #D1D1D2
$nav-background-color = #FAFAFA
/** /**
* # Modal Stuff * # Modal Stuff