diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-02 11:39:14 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-02 11:39:14 +0200 |
commit | a6d5ff7604a3c2a94ff8814e2df7ca7bb2b48634 (patch) | |
tree | d8b27f30741ae3c9a2a72c68210644c16cd8d9b3 /client/src/sass/bootstrap.scss | |
parent | 21973012ab06a93dd901821dbbe078eb793bac4d (diff) | |
download | PeerTube-a6d5ff7604a3c2a94ff8814e2df7ca7bb2b48634.tar.gz PeerTube-a6d5ff7604a3c2a94ff8814e2df7ca7bb2b48634.tar.zst PeerTube-a6d5ff7604a3c2a94ff8814e2df7ca7bb2b48634.zip |
Use form-control to display box-shadow on form inputs/selects upon focus
Diffstat (limited to 'client/src/sass/bootstrap.scss')
-rw-r--r-- | client/src/sass/bootstrap.scss | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 297f1f18a..f0357b579 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss | |||
@@ -230,3 +230,20 @@ ngb-tooltip-window { | |||
230 | background-color: var(--secondaryColor); | 230 | background-color: var(--secondaryColor); |
231 | } | 231 | } |
232 | } | 232 | } |
233 | |||
234 | // input box-shadow on focus | ||
235 | .form-control { | ||
236 | font-size: 15px; | ||
237 | color: var(--mainForegroundColor); | ||
238 | background-color: var(--inputBackgroundColor); | ||
239 | outline: none; | ||
240 | |||
241 | &:focus-within, | ||
242 | &:focus { | ||
243 | box-shadow: 0 0 0 .2rem var(--mainColorLightest); | ||
244 | |||
245 | &.input-error { | ||
246 | box-shadow: 0 0 0 .2rem #{scale-color($red, $alpha: -75%)}; | ||
247 | } | ||
248 | } | ||
249 | } | ||