|
27 | 27 | }
|
28 | 28 |
|
29 | 29 | .kbq-checkbox__layout {
|
| 30 | + $padding-left: kbq-sum-series-css-variables( |
| 31 | + [checkbox-size-normal-width, |
| 32 | + checkbox-size-normal-horizontal-content-padding] |
| 33 | + ); |
| 34 | + |
| 35 | + // required for `.cdk-visually-hidden` input to be positioned correctly |
30 | 36 | position: relative;
|
31 | 37 |
|
32 | 38 | display: inline-flex;
|
33 | 39 |
|
| 40 | + max-width: calc(100% - $padding-left); |
| 41 | + |
34 | 42 | // `cursor: inherit` ensures that the wrapper element gets the same cursor as the kbq-checkbox
|
35 | 43 | // (e.g. pointer by default, regular when disabled), instead of the browser default.
|
36 | 44 | cursor: inherit;
|
|
39 | 47 |
|
40 | 48 | padding-bottom: var(--kbq-checkbox-size-normal-padding-bottom);
|
41 | 49 |
|
42 |
| - padding-left: kbq-sum-series-css-variables( |
43 |
| - [checkbox-size-normal-width, |
44 |
| - checkbox-size-normal-horizontal-content-padding] |
45 |
| - ); |
| 50 | + padding-left: $padding-left; |
46 | 51 |
|
47 | 52 | vertical-align: top;
|
48 | 53 | }
|
|
53 | 58 | position: absolute;
|
54 | 59 | top: var(--kbq-checkbox-size-normal-top);
|
55 | 60 | left: 0;
|
56 |
| - |
57 |
| - height: var(--kbq-checkbox-size-normal-width); |
58 |
| - width: var(--kbq-checkbox-size-normal-width); |
59 | 61 | }
|
60 | 62 |
|
61 | 63 | .kbq-checkbox {
|
|
64 | 66 | cursor: pointer;
|
65 | 67 | -webkit-tap-highlight-color: transparent;
|
66 | 68 |
|
| 69 | + max-width: 100%; |
| 70 | + |
67 | 71 | &.kbq-checked {
|
68 | 72 | .kbq-checkbox-checkmark {
|
69 | 73 | display: block;
|
|
99 | 103 |
|
100 | 104 | .kbq-checkbox.kbq-checkbox_big {
|
101 | 105 | & .kbq-checkbox__layout {
|
102 |
| - padding-left: kbq-sum-series-css-variables( |
| 106 | + $padding-left: kbq-sum-series-css-variables( |
103 | 107 | [ checkbox-size-normal-width,
|
104 | 108 | checkbox-size-normal-horizontal-content-padding]
|
105 | 109 | );
|
| 110 | + |
| 111 | + max-width: calc(100% - $padding-left); |
| 112 | + |
| 113 | + padding-left: $padding-left; |
106 | 114 | }
|
107 | 115 |
|
108 | 116 | & .kbq-checkbox__inner-container {
|
|
128 | 136 | .kbq-checkbox__text-container {
|
129 | 137 | display: flex;
|
130 | 138 | flex-direction: column;
|
| 139 | + |
| 140 | + max-width: 100%; |
131 | 141 | }
|
132 | 142 |
|
133 | 143 | .kbq-checkbox__inner-container_no-side-margin {
|
|
0 commit comments