Ed Tanous | 9c72979 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 1 | @import 'bootstrap/dist/css/bootstrap.css'; |
| 2 | |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 3 | .btn { |
Derick Montague | 3f6710a | 2020-03-04 00:59:47 -0600 | [diff] [blame] | 4 | padding-top: $spacer / 2; |
| 5 | padding-right: $spacer; |
| 6 | padding-bottom: $spacer / 2; |
| 7 | padding-left: $spacer; |
Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 8 | display: inline-flex; |
| 9 | align-items: center; |
| 10 | justify-content: space-around; |
| 11 | svg { |
| 12 | margin-right: $spacer / 4; |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 13 | } |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 14 | &:disabled { |
| 15 | color: gray("600"); |
| 16 | fill: currentColor; |
| 17 | box-shadow: none !important; |
| 18 | &:not(.btn-link) { |
| 19 | border-color: gray("400"); |
| 20 | background-color: gray("400"); |
| 21 | } |
| 22 | } |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | .btn-primary { |
Derick Montague | 7f970a1 | 2020-03-02 17:56:09 -0600 | [diff] [blame] | 26 | fill: currentColor; |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 27 | &:focus, |
| 28 | &:not(:disabled):not(.disabled):active:focus { |
| 29 | border-color: $white; |
| 30 | box-shadow: inset 0 0 0 3px theme-color('primary'), inset 0 0 0 5px $white; |
| 31 | } |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | .btn-secondary { |
Derick Montague | 7f970a1 | 2020-03-02 17:56:09 -0600 | [diff] [blame] | 35 | fill: currentColor; |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 36 | &:focus, |
| 37 | &:not(:disabled):not(.disabled):active:focus { |
| 38 | border-color: $white; |
| 39 | box-shadow: inset 0 0 0 3px theme-color('secondary'), inset 0 0 0 5px $white; |
| 40 | } |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 41 | } |
| 42 | |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 43 | // Global style for all button link |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 44 | .btn-link { |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 45 | font-weight: $headings-font-weight; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 46 | fill: theme-color("primary"); |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 47 | text-decoration: none !important; |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 48 | &:hover { |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 49 | background-color: gray("200"); |
| 50 | color: theme-color("primary"); |
| 51 | } |
| 52 | &:active { |
| 53 | background-color: gray("300"); |
| 54 | } |
| 55 | &:focus { |
| 56 | box-shadow: inset 0 0 0 2px theme-color("primary"); |
| 57 | color: theme-color("primary"); |
| 58 | outline: none; |
| 59 | } |
| 60 | &:disabled { |
| 61 | box-shadow: $btn-focus-box-shadow; |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 62 | } |
Derick Montague | 3f6710a | 2020-03-04 00:59:47 -0600 | [diff] [blame] | 63 | } |
| 64 | |
Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 65 | // Icon only buttons |
| 66 | .btn-icon-only svg { |
| 67 | margin-right: 0; |
| 68 | } |
| 69 | |
| 70 | // Datepicker, clear search and Password toggle buttons |
| 71 | .input-action-btn, |
| 72 | .btn-datepicker { |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 73 | position: absolute; |
| 74 | right: 0; |
Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 75 | top: 0; |
Ed Tanous | 9c72979 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 76 | //z-index: $zindex-dropdown + 1; |
Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | // Contain input buttons within input |
| 80 | .btn-datepicker .dropdown-toggle, |
| 81 | .input-action-btn { |
| 82 | padding: 7px; |
| 83 | margin: 1px; |
Yoshie Muranaka | 996d2d5 | 2019-12-30 09:06:45 -0800 | [diff] [blame] | 84 | } |