|
6 | 6 | /* prettier-ignore */ |
7 | 7 |
|
8 | 8 | #{classname.get($classname-items: 'joined-ui', $layer: 'organism')} { |
| 9 | + /* Buttons */ |
9 | 10 | $button-classname: classname.get($classname-items: 'button', $layer: 'atom'); |
10 | 11 | $button-border-top-left-radius-name: custom-property.get($items: ('button', 'border', 'top', 'left', 'radius')); |
11 | 12 | $button-border-top-right-radius-name: custom-property.get($items: ('button', 'border', 'top', 'right', 'radius')); |
|
14 | 15 | $button-border-width-name: custom-property.get($items: ('button', 'border', 'width')); |
15 | 16 | $button-box-shadow-name: custom-property.get($items: ('button', 'box-shadow')); |
16 | 17 |
|
| 18 | + /* Text inputs */ |
| 19 | + $input-text-border-top-left-radius-name: custom-property.get($items: ('input-text', 'border', 'top', 'left', 'radius')); |
| 20 | + $input-text-border-top-right-radius-name: custom-property.get($items: ('input-text', 'border', 'top', 'right', 'radius')); |
| 21 | + $input-text-border-bottom-right-radius-name: custom-property.get($items: ('input-text', 'border', 'bottom', 'right', 'radius')); |
| 22 | + $input-text-border-bottom-left-radius-name: custom-property.get($items: ('input-text', 'border', 'bottom', 'left', 'radius')); |
| 23 | + $input-text-border-width-name: custom-property.get($items: ('input-text', 'border', 'width')); |
| 24 | + $input-text-box-shadow-name: custom-property.get($items: ('input-text', 'box-shadow')); |
| 25 | + |
17 | 26 | border-radius: settings.$border-radius; |
18 | 27 | box-shadow: settings.$box-shadow; |
19 | 28 |
|
|
25 | 34 | margin-right: calc(var(#{$button-border-width-name}) * -1); |
26 | 35 | } |
27 | 36 |
|
| 37 | + > :first-child input, |
| 38 | + > input:first-child { |
| 39 | + #{$input-text-box-shadow-name}: none; |
| 40 | + #{$input-text-border-top-right-radius-name}: #{0}; |
| 41 | + #{$input-text-border-bottom-right-radius-name}: #{0}; |
| 42 | + margin-right: calc(var(#{$input-text-border-width-name}) * -1); |
| 43 | + } |
| 44 | + |
28 | 45 | > :last-child #{$button-classname}, |
29 | 46 | > #{$button-classname}:last-child { |
30 | 47 | #{$button-box-shadow-name}: none; |
|
33 | 50 | margin-right: 0; |
34 | 51 | } |
35 | 52 |
|
| 53 | + > :last-child input, |
| 54 | + > input:last-child { |
| 55 | + #{$input-text-box-shadow-name}: none; |
| 56 | + #{$input-text-border-top-left-radius-name}: #{0}; |
| 57 | + #{$input-text-border-bottom-left-radius-name}: #{0}; |
| 58 | + margin-right: 0; |
| 59 | + } |
| 60 | + |
36 | 61 | > :not(:first-child):not(:last-child) #{$button-classname}, |
37 | 62 | > #{$button-classname}:not(:first-child):not(:last-child) { |
38 | 63 | #{$button-border-top-left-radius-name}: #{0}; |
|
41 | 66 | #{$button-border-bottom-left-radius-name}: #{0}; |
42 | 67 | margin-right: calc(var(#{$button-border-width-name}) * -1); |
43 | 68 | } |
| 69 | + |
| 70 | + > :not(:first-child):not(:last-child) input, |
| 71 | + > input:not(:first-child):not(:last-child) { |
| 72 | + #{$input-text-border-top-left-radius-name}: #{0}; |
| 73 | + #{$input-text-border-top-right-radius-name}: #{0}; |
| 74 | + #{$input-text-border-bottom-right-radius-name}: #{0}; |
| 75 | + #{$input-text-border-bottom-left-radius-name}: #{0}; |
| 76 | + margin-right: calc(var(#{$input-text-border-width-name}) * -1); |
| 77 | + } |
44 | 78 | } |
0 commit comments