diff --git a/src/scss/_placeholders.scss b/src/scss/_placeholders.scss index b088e85..afeb315 100644 --- a/src/scss/_placeholders.scss +++ b/src/scss/_placeholders.scss @@ -28,12 +28,12 @@ transition: color 0.2s ease-in, background-color 0.2s ease-in; &:hover, &.active { - background-color: #cccccc; + background-color: $global-focus-color; color: #222222; } &:focus { - outline-color: #cccccc; + outline-color: $global-focus-color; outline-width: 0.2rem; } @@ -42,6 +42,17 @@ color: #121212; } + &[disabled], &.disabled { + background-color: $global-disabled-background; + color: $global-disabled-text-color; + cursor: not-allowed; + + &:hover, &:focus, &:active { + background-color: $global-disabled-background; + color: $global-disabled-text-color; + } + } + .svg-icon { display: inline-block; width: 3rem; diff --git a/src/scss/_variables.scss b/src/scss/_variables.scss index 413c1f6..74b42f4 100644 --- a/src/scss/_variables.scss +++ b/src/scss/_variables.scss @@ -17,4 +17,8 @@ $global-text-color: #cccccc; $global-border-radius: 1rem; $global-background: #222222; -$global-focus-color: #cccccc; \ No newline at end of file +$global-focus-color: #cccccc; +$global-border-color: #333333; + +$global-disabled-background: #555555; +$global-disabled-text-color: #bbbbbb; \ No newline at end of file diff --git a/src/scss/leaflet/_controls.scss b/src/scss/leaflet/_controls.scss index 15fba0b..bf94098 100644 --- a/src/scss/leaflet/_controls.scss +++ b/src/scss/leaflet/_controls.scss @@ -35,7 +35,17 @@ a { border-radius: 0; - border-bottom: 0.1rem solid #333333; + border-bottom: 0.1rem solid $global-border-color; + + &.leaflet-disabled { + background-color: $global-disabled-background; + cursor: not-allowed; + + &:hover { + color: $global-disabled-text-color; + border-bottom-color: $global-border-color; + } + } } }