blob: 597766ce8dd2780356ec2cb6c438a320468a065d [file] [log] [blame]
Ed Tanous9c729792024-03-23 14:56:34 -07001@import 'bootstrap/dist/css/bootstrap.css';
2
Yoshie Muranaka996d2d52019-12-30 09:06:45 -08003.btn {
Derick Montague3f6710a2020-03-04 00:59:47 -06004 padding-top: $spacer / 2;
5 padding-right: $spacer;
6 padding-bottom: $spacer / 2;
7 padding-left: $spacer;
Dixsie Wolmers30f11f82020-11-10 16:07:56 -06008 display: inline-flex;
9 align-items: center;
10 justify-content: space-around;
11 svg {
12 margin-right: $spacer / 4;
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080013 }
SurenNewaredc618a82020-08-17 18:42:20 +053014 &: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 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 {
SurenNewaredc618a82020-08-17 18:42:20 +053049 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 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 {
67 margin-right: 0;
68}
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;
74 right: 0;
Dixsie Wolmers30f11f82020-11-10 16:07:56 -060075 top: 0;
Ed Tanous9c729792024-03-23 14:56:34 -070076 //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}