|
26 | 26 |
|
27 | 27 | @include deprecate('4.0.0', 'Please use slds-nubbin-{position} instead') {
|
28 | 28 |
|
29 |
| - .slds-dropdown { |
| 29 | + .slds-dropdown_nubbin-top, |
| 30 | + .slds-dropdown--nubbin-top { |
| 31 | + @include nubbin(top, 'before'); |
| 32 | + @include nubbin(top); |
| 33 | + margin-top: ($nubbin-size-default * 0.5); |
| 34 | + |
| 35 | + &:before { |
| 36 | + background: $color-background-alt; |
| 37 | + } |
30 | 38 |
|
31 |
| - &_nubbin-top, |
32 |
| - &--nubbin-top { |
33 |
| - @include nubbin(top, 'before'); |
34 |
| - @include nubbin(top); |
35 |
| - margin-top: ($nubbin-size-default * 0.5); |
| 39 | + &:after { |
| 40 | + background: $color-background-alt; |
| 41 | + box-shadow: -1px -1px 0 0 rgba(0, 0, 0, 0.16); |
| 42 | + z-index: -1; |
| 43 | + } |
36 | 44 |
|
37 |
| - &:before { |
38 |
| - background: $color-background-alt; |
39 |
| - } |
| 45 | + &.slds-dropdown_left, |
| 46 | + &.slds-dropdown--left { |
| 47 | + left: ($spacing-medium * -1); |
40 | 48 |
|
| 49 | + &:before, |
41 | 50 | &:after {
|
42 |
| - background: $color-background-alt; |
43 |
| - box-shadow: -1px -1px 0 0 rgba(0, 0, 0, 0.16); |
44 |
| - z-index: -1; |
45 |
| - } |
46 |
| - |
47 |
| - &.slds-dropdown_left, |
48 |
| - &.slds-dropdown--left { |
49 |
| - left: ($spacing-medium * -1); |
50 |
| - |
51 |
| - &:before, |
52 |
| - &:after { |
53 |
| - left: $spacing-large; |
54 |
| - margin-left: 0; |
55 |
| - } |
| 51 | + left: $spacing-large; |
| 52 | + margin-left: 0; |
56 | 53 | }
|
| 54 | + } |
57 | 55 |
|
58 |
| - &.slds-dropdown_right, |
59 |
| - &.slds-dropdown--right { |
60 |
| - right: ($spacing-medium * -1); |
| 56 | + &.slds-dropdown_right, |
| 57 | + &.slds-dropdown--right { |
| 58 | + right: ($spacing-medium * -1); |
61 | 59 |
|
62 |
| - &:before, |
63 |
| - &:after { |
64 |
| - left: auto; |
65 |
| - right: $spacing-large; |
66 |
| - margin-left: 0; |
67 |
| - } |
| 60 | + &:before, |
| 61 | + &:after { |
| 62 | + left: auto; |
| 63 | + right: $spacing-large; |
| 64 | + margin-left: 0; |
68 | 65 | }
|
69 | 66 | }
|
70 | 67 | }
|
|
77 | 74 | .slds-has-icon {
|
78 | 75 | position: relative;
|
79 | 76 |
|
80 |
| - &_left > a, |
81 |
| - &--left > a, |
82 |
| - &_left > span, |
83 |
| - &--left > span { |
84 |
| - padding-left: $spacing-x-large; |
85 |
| - } |
86 |
| - |
87 |
| - &_right > a, |
88 |
| - &--right > a, |
89 |
| - &_right > span, |
90 |
| - &--right > span { |
91 |
| - padding-right: $spacing-x-large; |
92 |
| - } |
93 |
| - |
94 |
| - &_left-right > a, |
95 |
| - &--left-right > a, |
96 |
| - &_left-right > span, |
97 |
| - &--left-right > span { |
98 |
| - padding: { |
99 |
| - left: $spacing-x-large; |
100 |
| - right: $spacing-x-large; |
101 |
| - } |
102 |
| - } |
103 |
| - |
104 | 77 | .slds-icon {
|
105 | 78 | @include square($square-icon-medium-content);
|
106 | 79 | position: absolute;
|
107 | 80 | top: 50%;
|
108 | 81 | margin-top: (($square-icon-medium-content * 0.5) * -1);
|
109 | 82 | fill: $color-text-icon-default;
|
| 83 | + } |
110 | 84 |
|
111 |
| - &_left, |
112 |
| - &--left { |
113 |
| - left: $spacing-small; |
114 |
| - } |
| 85 | + .slds-icon_left, |
| 86 | + .slds-icon--left { |
| 87 | + left: $spacing-small; |
| 88 | + } |
| 89 | + |
| 90 | + .slds-icon_right, |
| 91 | + .slds-icon--right { |
| 92 | + right: $spacing-small; |
| 93 | + } |
| 94 | + } |
| 95 | + |
| 96 | + .slds-has-icon_left > a, |
| 97 | + .slds-has-icon--left > a, |
| 98 | + .slds-has-icon_left > span, |
| 99 | + .slds-has-icon--left > span { |
| 100 | + padding-left: $spacing-x-large; |
| 101 | + } |
| 102 | + |
| 103 | + .slds-has-icon_right > a, |
| 104 | + .slds-has-icon--right > a, |
| 105 | + .slds-has-icon_right > span, |
| 106 | + .slds-has-icon--right > span { |
| 107 | + padding-right: $spacing-x-large; |
| 108 | + } |
115 | 109 |
|
116 |
| - &_right, |
117 |
| - &--right { |
118 |
| - right: $spacing-small; |
119 |
| - } |
| 110 | + .slds-has-icon_left-right > a, |
| 111 | + .slds-has-icon--left-right > a, |
| 112 | + .slds-has-icon_left-right > span, |
| 113 | + .slds-has-icon--left-right > span { |
| 114 | + padding: { |
| 115 | + left: $spacing-x-large; |
| 116 | + right: $spacing-x-large; |
120 | 117 | }
|
121 | 118 | }
|
122 | 119 | }
|
|
0 commit comments