diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2019-10-13 13:26:59 +0200 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2019-10-13 13:26:59 +0200 |
commit | ce123e02d70d8e439e0bd445346be91b95b8ce69 (patch) | |
tree | eb74b7a92749b336896e63912de4fbaacca2bd98 /themer/gen/themer-atom-ui/themer-dark-ui/styles/buttons.less | |
parent | 2b98d4a30d401403934a550c0e753942aa0faece (diff) | |
download | dotfiles-ce123e02d70d8e439e0bd445346be91b95b8ce69.tar.gz dotfiles-ce123e02d70d8e439e0bd445346be91b95b8ce69.zip |
:lipstick: Add themer-things, to be customized later
Diffstat (limited to 'themer/gen/themer-atom-ui/themer-dark-ui/styles/buttons.less')
-rw-r--r-- | themer/gen/themer-atom-ui/themer-dark-ui/styles/buttons.less | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/themer/gen/themer-atom-ui/themer-dark-ui/styles/buttons.less b/themer/gen/themer-atom-ui/themer-dark-ui/styles/buttons.less new file mode 100644 index 0000000..e33fd93 --- /dev/null +++ b/themer/gen/themer-atom-ui/themer-dark-ui/styles/buttons.less @@ -0,0 +1,52 @@ + +.btn { + color: lighten(@text-color, 6%); + background-color: @button-background-color; + &:hover, + &:focus { + color: @text-color-highlight; + background-color: @button-background-color-hover; + } + &:active { + color: fade(@text-color-selected, 66%); + background-color: darken(@button-background-color, 2%); + } + &.selected { + color: @text-color-selected; + background-color: @button-background-color-selected; + } + &:focus, + &:focus:active { + outline: none; + } +} + +.btn.btn-primary { .btn-color(@background-color-info); } +.btn.btn-info { .btn-color(@background-color-info); } +.btn.btn-success { .btn-color(@background-color-success); } +.btn.btn-warning { .btn-color(@background-color-warning); } +.btn.btn-error { .btn-color(@background-color-error); } + +.btn-color(@bg) { + color: @base-background-color; + background-color: @bg; + &:hover, + &:focus { + background-color: lighten(@bg, 4%); + color: @base-background-color; + } + &:active { + background-color: darken(@bg, 4%); + } + &.selected { + background-color: lighten(@bg, 4%); + } + &.selected:focus, + &.selected:hover { + background-color: lighten(@bg, 8%); + } +} + +.btn-group > .btn { + border-color: hsla(0,0%,0%,.2);; +} |