mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
208 lines
5.5 KiB
Stylus
208 lines
5.5 KiB
Stylus
// Default theme
|
|
$brand-color = #6AA5E9
|
|
|
|
$danger-color = #c9302c
|
|
$danger-lighten-color = lighten(#c9302c, 5%)
|
|
|
|
// Layouts
|
|
$statusBar-height = 24px
|
|
$sideNav-width = 200px
|
|
$sideNav--folded-width = 44px
|
|
$topBar-height = 60px
|
|
|
|
// UI default
|
|
$ui-text-color = #515151
|
|
$ui-inactive-text-color = #939395
|
|
$ui-borderColor = #D1D1D1
|
|
$ui-backgroundColor = #FAFAFA
|
|
$ui-border = solid 1px $ui-borderColor
|
|
$ui-active-color = #6AA5E9
|
|
|
|
// UI Button
|
|
$ui-button-color = #939395
|
|
$ui-button--hover-backgroundColor = rgba(126, 127, 129, 0.08)
|
|
$ui-button--active-color = white
|
|
$ui-button--active-backgroundColor = #6AA5E9
|
|
$ui-button--focus-borderColor = lighten(#369DCD, 25%)
|
|
|
|
// UI Tooltip
|
|
$ui-tooltip-text-color = white
|
|
$ui-tooltip-backgroundColor = alpha(#444, 70%)
|
|
$ui-tooltip-button-backgroundColor = #D1D1D1
|
|
$ui-tooltip-button--hover-backgroundColor = lighten(#D1D1D1, 30%)
|
|
$ui-tooltip-font-size = 12px
|
|
|
|
tooltip()
|
|
background-color $ui-tooltip-backgroundColor = alpha(#444, 70%)
|
|
color $ui-tooltip-text-color = white
|
|
font-size $ui-tooltip-font-size
|
|
pointer-events none
|
|
transition 0.1s
|
|
|
|
|
|
// UI Input
|
|
$ui-input--focus-borderColor = #369DCD
|
|
$ui-input--disabled-backgroundColor = #DDD
|
|
|
|
// Parts
|
|
$ui-favorite-star-button-color = #FFC216
|
|
|
|
/*
|
|
* # Border
|
|
*/
|
|
$border-color = #D0D0D0
|
|
$active-border-color = #369DCD
|
|
$focus-border-color = #369DCD
|
|
|
|
$default-border = solid 1px $border-color
|
|
$active-border = solid 1px $active-border-color
|
|
|
|
/**
|
|
* # Button styles
|
|
*/
|
|
|
|
// Default button
|
|
$default-button-background = white
|
|
$default-button-background--hover = #e6e6e6
|
|
$default-button-background--active = #d4d4d4
|
|
|
|
colorDefaultButton()
|
|
background-color $default-button-background
|
|
&:hover
|
|
background-color $default-button-background--hover
|
|
&:active
|
|
&:active:hover
|
|
background-color $default-button-background--active
|
|
|
|
// Primary button(Brand color)
|
|
$primary-button-background = $brand-color
|
|
$primary-button-background--hover = darken($brand-color, 5%)
|
|
$primary-button-background--active = darken($brand-color, 10%)
|
|
|
|
colorPrimaryButton()
|
|
color white
|
|
background-color $primary-button-background
|
|
&:hover
|
|
background-color $primary-button-background--hover
|
|
&:active
|
|
&:active:hover
|
|
background-color $primary-button-background--active
|
|
|
|
// Danger button(Brand color)
|
|
$danger-button-background = #c9302c
|
|
$danger-button-background--hover = darken(#c9302c, 5%)
|
|
$danger-button-background--active = darken(#c9302c, 10%)
|
|
|
|
colorDangerButton()
|
|
color white
|
|
background-color $danger-button-background
|
|
&:hover
|
|
background-color $danger-button-background--hover
|
|
&:active
|
|
&:active:hover
|
|
background-color $danger-button-background--active
|
|
|
|
/**
|
|
* Nav
|
|
*/
|
|
|
|
navButtonColor()
|
|
border none
|
|
color $ui-button-color
|
|
background-color transparent
|
|
transition color background-color 0.15s
|
|
&:hover
|
|
background-color $ui-button--hover-backgroundColor
|
|
&:active, &:active:hover
|
|
background-color $ui-button--active-backgroundColor
|
|
color $ui-button--active-color
|
|
|
|
/**
|
|
* # Modal Stuff
|
|
* These will be moved lib/modal
|
|
*/
|
|
|
|
$modal-z-index = 1002
|
|
$modal-background = white
|
|
$modal-margin = 64px auto 64px
|
|
$modal-border-radius = 5px
|
|
|
|
modal()
|
|
position relative
|
|
z-index $modal-z-index
|
|
width 100%
|
|
background-color $modal-background
|
|
overflow hidden
|
|
border-radius $modal-border-radius
|
|
box-shadow 2px 2px 10px gray
|
|
|
|
// Dark theme
|
|
$ui-dark-borderColor = lighten(#21252B, 20%)
|
|
$ui-dark-backgroundColor = darken(#21252B, 10%)
|
|
$dark-background-color = lighten($ui-dark-backgroundColor, 10%)
|
|
$ui-dark-text-color = #DDDDDD
|
|
$ui-dark-button--active-color = white
|
|
$ui-dark-button--active-backgroundColor = #6AA5E9
|
|
$ui-dark-button--hover-backgroundColor = lighten($ui-dark-backgroundColor, 10%)
|
|
$ui-dark-button--focus-borderColor = lighten(#369DCD, 25%)
|
|
|
|
$dark-default-button-background = $ui-dark-backgroundColor
|
|
$dark-default-button-background--hover = $ui-dark-button--hover-backgroundColor
|
|
$dark-default-button-background--active = $ui-dark-button--active-backgroundColo
|
|
colorDarkDefaultButton()
|
|
border-color $ui-dark-borderColor
|
|
color $ui-dark-text-color
|
|
background-color $dark-default-button-background
|
|
&:hover
|
|
background-color $dark-default-button-background--hover
|
|
&:active
|
|
&:active:hover
|
|
background-color $ui-dark-button--active-backgroundColor
|
|
|
|
$dark-danger-button-background = #c9302c
|
|
$dark-danger-button-background--hover = darken(#c9302c, 5%)
|
|
$dark-danger-button-background--active = darken(#c9302c, 10%)
|
|
colorDarkDangerButton()
|
|
color white
|
|
background-color $dark-danger-button-background
|
|
&:hover
|
|
background-color $dark-danger-button-background--hover
|
|
&:active
|
|
&:active:hover
|
|
background-color $dark-danger-button-background--active
|
|
|
|
navDarkButtonColor()
|
|
border none
|
|
color $ui-dark-button-color
|
|
background-color transparent
|
|
transition color background-color 0.15s
|
|
&:hover
|
|
color white
|
|
background-color $ui-dark-button--hover-backgroundColor
|
|
&:active
|
|
&:active:hover
|
|
background-color $ui-dark-button--active-backgroundColor
|
|
color $ui-dark-button--active-color
|
|
|
|
$ui-dark-tooltip-text-color = white
|
|
$ui-dark-tooltip-backgroundColor = alpha(#444, 70%)
|
|
$ui-dark-tooltip-button-backgroundColor = #D1D1D1
|
|
$ui-dark-tooltip-button--hover-backgroundColor = lighten(#D1D1D1, 30%)
|
|
$ui-tooltip-font-size = 12px
|
|
|
|
darkTooltip()
|
|
background-color $ui-dark-tooltip-backgroundColor = alpha(#444, 70%)
|
|
color $ui-dark-tooltip-text-color = white
|
|
font-size $ui-dark-tooltip-font-size
|
|
pointer-events none
|
|
transition 0.1s
|
|
|
|
modalDark()
|
|
position relative
|
|
z-index $modal-z-index
|
|
width 100%
|
|
background-color $ui-dark-backgroundColor
|
|
overflow hidden
|
|
border-radius $modal-border-radius
|
|
box-shadow 2px 2px 10px black
|