|
1 | 1 | @use "provider/colors" as *; |
2 | 2 | @use "provider/typography" as *; |
3 | | -@use 'sass:math'; |
| 3 | +@use "sass:math"; |
4 | 4 |
|
5 | | -@mixin internal-potato-button($color, $bgcolor, $border-color) { |
6 | | - font-size: $font-size-base; |
7 | | - background-color: $bgcolor; |
8 | | - border-radius: $border-radius-sm; |
9 | | - display: inline-block; |
10 | | - vertical-align: top; |
11 | | - margin: 0; |
12 | | - padding: line-height-times(math.div(1,3)) line-height-times(.5) !important; |
13 | | - border: $border-width solid $border-color; |
14 | | - color: $color; |
15 | | - text-decoration: none; |
16 | | - width: auto !important; |
17 | | - min-width: line-height-times(3); |
18 | | - cursor: pointer; |
19 | | - white-space: nowrap; |
20 | | - text-align: center !important; |
21 | | - height: line-height-times(1.5); |
22 | | - line-height: $line-height-sm; |
23 | | - appearance: none; |
24 | | - |
25 | | - &.big { |
26 | | - font-size: $font-size-lg; |
27 | | - } |
28 | | - |
29 | | - &:hover { |
30 | | - color: $bgcolor; |
31 | | - background-color: transparent; |
32 | | - } |
33 | | - |
34 | | -} |
35 | | - |
36 | | -table [type='submit']:not(.action, .pf-c-button, .pf-c-dropdown__menu-item) { |
37 | | - float: right; |
38 | | - |
39 | | - @include internal-potato-button($important-button-color, $important-button-bg-color, $important-button-border-color); |
40 | | -} |
41 | | - |
42 | | -table .disabled-button, |
43 | | -/* stylelint-disable-next-line no-descending-specificity -- FIXME */ |
44 | | -.disabled-button { |
45 | | - @include internal-potato-button($disabled-button-color, $disabled-button-bg-color, $disabled-button-border-color); |
46 | | - |
47 | | - cursor: default; |
48 | | -} |
49 | | - |
50 | | -.button.next, |
51 | | -a.next { |
52 | | - float: right; |
53 | | -} |
54 | | - |
55 | | -.confirm-or-cancel { |
56 | | - .button.next, |
57 | | - a.next { |
58 | | - clear: none; |
59 | | - } |
60 | | - |
61 | | - .button.cancel, |
62 | | - a.cancel { |
63 | | - float: left; |
64 | | - margin-top: line-height-times(2); |
| 5 | +.button, |
| 6 | +a { |
| 7 | + &.next { |
| 8 | + float: right; |
65 | 9 | } |
66 | | - |
67 | | -} |
68 | | - |
69 | | -form.formtastic .button-bar fieldset { |
70 | | - margin: 0; |
71 | 10 | } |
72 | 11 |
|
73 | | -// Lame but functional, improvements welcomed. |
74 | | -form.formtastic .button-bar, |
75 | | -/* stylelint-disable-next-line no-descending-specificity -- FIXME */ |
| 12 | +// TODO: remove this class |
76 | 13 | .button-bar { |
77 | 14 | position: relative; |
78 | 15 |
|
| 16 | + fieldset { |
| 17 | + margin: 0; |
| 18 | + } |
| 19 | + |
79 | 20 | & > fieldset { |
80 | | - /* stylelint-disable-next-line no-descending-specificity -- FIXME */ |
| 21 | + & > ol > li { |
| 22 | + display: inline-block; |
| 23 | + } |
| 24 | + |
81 | 25 | &.actions:first-child { |
82 | 26 | float: left; |
83 | 27 | margin: line-height-times(.5) 0 0; |
84 | 28 | padding: 0; |
85 | 29 | text-align: left !important; |
86 | 30 |
|
87 | | - /* stylelint-disable-next-line no-descending-specificity -- FIXME */ |
88 | 31 | & > ol > li { |
89 | 32 | margin-right: var(--pf-global--spacer--sm); |
90 | 33 | } |
91 | 34 | } |
92 | 35 |
|
93 | | - /* stylelint-disable-next-line no-descending-specificity -- FIXME */ |
94 | 36 | &.actions:last-child:not(:first-child) { |
95 | 37 | float: right; |
96 | 38 | margin: line-height-times(.5) 0 0; |
97 | 39 | padding: 0; |
98 | 40 |
|
99 | | - /* stylelint-disable-next-line no-descending-specificity -- FIXME */ |
100 | 41 | & > ol > li { |
101 | 42 | margin-left: var(--pf-global--spacer--sm); |
102 | 43 | } |
103 | | - |
104 | | - } |
105 | | - |
106 | | - /* stylelint-disable-next-line no-descending-specificity -- FIXME */ |
107 | | - & > ol > li { |
108 | | - display: inline-block; |
109 | 44 | } |
110 | 45 | } |
111 | | -} |
112 | 46 |
|
113 | | -/* stylelint-disable-next-line no-descending-specificity -- FIXME */ |
114 | | -.formtastic .button-bar { |
115 | 47 | display: flow-root; |
116 | 48 | } |
117 | 49 |
|
| 50 | +// TODO: remove outline-button |
118 | 51 | @mixin outline-button($color: $font-color, $border-color: $border-color) { |
119 | 52 | color: $color; |
120 | 53 | display: inline-block; |
|
0 commit comments