1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00
Files
Boostnote/browser/main/NoteList/NoteList.styl
Alexander Wolf feb2a878a9 Dropdown colour (theme aware) (#3472)
* catchup (#7)

* added rtl toggle button

* added rtl toggle button

* keep code styling aligned to the left and ltr at all times

* added hotkey setting for direction toggle

* fixed requested changes

* fix undefined variable

* Copyright info update

updated Copyright (C) 2017 - 2019 BoostIO to Copyright (C) 2017 - 2020 BoostIO

* Refine Chinese translation

- Should not translate "space", it means space key in most context
- Should translate "keymap", "spellcheck disabled", "auto detect"
- Should translate "On Right Click" to "右键点击"
- Refine misc translation.

* Added Wiki Link

* Add Traditional Chinese option to build.md

* Bug fix (sets tabWith to 2 on prettier configuration and ConfigManager so checkboxes can be clikable)

Co-authored-by: ibraude <48394109+ibraude@users.noreply.github.com>
Co-authored-by: Junyoung Choi <rokt33r.choi@gmail.com>
Co-authored-by: Satyendra <33686367+developersatyendra@users.noreply.github.com>
Co-authored-by: Andrew <andysim3d@gmail.com>

* Menu Backgroun Colour

* add white to the apply-theme loop

Co-authored-by: Milo Todt <milo@milotodt.com>
Co-authored-by: ibraude <48394109+ibraude@users.noreply.github.com>
Co-authored-by: Junyoung Choi <rokt33r.choi@gmail.com>
Co-authored-by: Satyendra <33686367+developersatyendra@users.noreply.github.com>
Co-authored-by: Andrew <andysim3d@gmail.com>
2020-02-24 16:51:05 +09:00

93 lines
2.0 KiB
Stylus

$control-height = 30px
.root
absolute left bottom
top $topBar-height - 1
background-color $ui-noteList-backgroundColor
.control
absolute top left right
user-select none
height $control-height
font-size 12px
line-height 25px
display flex
background-color $ui-noteList-backgroundColor
color $ui-inactive-text-color
.control-sortBy
flex 1
padding-left 22px
.control-sortBy-select
appearance: none;
margin-left 5px
color $ui-inactive-text-color
padding 0
border none
background-color transparent
outline none
cursor pointer
font-size 12px
&:hover
transition 0.2s
color $ui-text-color
.control-button-area
margin-right 12px
.control-button
width 25px
padding 0
background-color transparent
border none
color alpha($ui-inactive-text-color, 60%)
transition 0.15s
&:active, &:active:hover
color $ui-inactive-text-color
&:hover
color $ui-inactive-text-color
.control-button--active
@extend .control-button
color $ui-inactive-text-color
&:hover
color $ui-inactive-text-color
.list
absolute left right bottom
top $control-height
overflow auto
apply-theme(theme)
body[data-theme={theme}]
.root
border-color get-theme-var(theme, 'borderColor')
background-color get-theme-var(theme, 'noteList-backgroundColor')
.control
background-color get-theme-var(theme, 'noteList-backgroundColor')
border-color get-theme-var(theme, 'borderColor')
.control-sortBy-select
&:hover
transition 0.2s
color get-theme-var(theme, 'text-color')
background-color: get-theme-var(theme, 'noteList-backgroundColor')
.control-button
color get-theme-var(theme, 'inactive-text-color')
&:hover
color get-theme-var(theme, 'text-color')
.control-button--active
color get-theme-var(theme, 'text-color')
&:active
color get-theme-var(theme, 'text-color')
for theme in 'white' 'dark' 'solarized-dark' 'dracula'
apply-theme(theme)
for theme in $themes
apply-theme(theme)