blob: 008f08dc1ff0b41392d2fcb828a0240ee7fe6eb8 [file] [log] [blame]
Ed Tanous7d6b44c2024-03-23 14:56:34 -07001@import 'bootstrap/dist/css/bootstrap.css';
2
Yoshie Muranaka996d2d52019-12-30 09:06:45 -08003.btn {
jason westoverd36ac8a2025-11-03 20:58:59 -06004 padding-top: calc($spacer / 2);
5 padding-inline-end: $spacer;
6 padding-bottom: calc($spacer / 2);
7 padding-inline-start: $spacer;
Dixsie Wolmers30f11f82020-11-10 16:07:56 -06008 display: inline-flex;
9 align-items: center;
10 justify-content: space-around;
11 svg {
jason westoverd36ac8a2025-11-03 20:58:59 -060012 margin-inline-end: calc($spacer / 4);
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080013 }
SurenNewaredc618a82020-08-17 18:42:20 +053014 &:disabled {
jason westoverd36ac8a2025-11-03 20:58:59 -060015 color: $gray-600;
SurenNewaredc618a82020-08-17 18:42:20 +053016 fill: currentColor;
17 box-shadow: none !important;
18 &:not(.btn-link) {
jason westoverd36ac8a2025-11-03 20:58:59 -060019 border-color: $gray-400;
20 background-color: $gray-400;
SurenNewaredc618a82020-08-17 18:42:20 +053021 }
22 }
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080023}
24
25.btn-primary {
Derick Montague7f970a12020-03-02 17:56:09 -060026 fill: currentColor;
SurenNewaredc618a82020-08-17 18:42:20 +053027 &: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 Muranaka996d2d52019-12-30 09:06:45 -080032}
33
34.btn-secondary {
Derick Montague7f970a12020-03-02 17:56:09 -060035 fill: currentColor;
SurenNewaredc618a82020-08-17 18:42:20 +053036 &: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 Muranaka996d2d52019-12-30 09:06:45 -080041}
42
SurenNewaredc618a82020-08-17 18:42:20 +053043// Global style for all button link
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080044.btn-link {
SurenNewaredc618a82020-08-17 18:42:20 +053045 font-weight: $headings-font-weight;
Yoshie Muranaka01da8182020-07-08 15:46:43 -070046 fill: theme-color("primary");
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080047 text-decoration: none !important;
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080048 &:hover {
jason westoverd36ac8a2025-11-03 20:58:59 -060049 background-color: $gray-200;
SurenNewaredc618a82020-08-17 18:42:20 +053050 color: theme-color("primary");
51 }
52 &:active {
jason westoverd36ac8a2025-11-03 20:58:59 -060053 background-color: $gray-300;
SurenNewaredc618a82020-08-17 18:42:20 +053054 }
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 Muranaka996d2d52019-12-30 09:06:45 -080062 }
Derick Montague3f6710a2020-03-04 00:59:47 -060063}
64
Dixsie Wolmers30f11f82020-11-10 16:07:56 -060065// Icon only buttons
66.btn-icon-only svg {
jason westoverd36ac8a2025-11-03 20:58:59 -060067 margin-inline-end: 0;
Dixsie Wolmers30f11f82020-11-10 16:07:56 -060068}
69
70// Datepicker, clear search and Password toggle buttons
71.input-action-btn,
72.btn-datepicker {
SurenNewaredc618a82020-08-17 18:42:20 +053073 position: absolute;
jason westoverd36ac8a2025-11-03 20:58:59 -060074 inset-inline-end: 0;
Dixsie Wolmers30f11f82020-11-10 16:07:56 -060075 top: 0;
suryav972424b377d2025-01-24 15:06:35 +053076 z-index: $zindex-dropdown + 1;
Dixsie Wolmers30f11f82020-11-10 16:07:56 -060077}
78
79// Contain input buttons within input
80.btn-datepicker .dropdown-toggle,
81.input-action-btn {
82 padding: 7px;
83 margin: 1px;
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080084}