|
23 | 23 | @include reduce-motion("transition"); |
24 | 24 |
|
25 | 25 | .is-selected > & { |
26 | | - opacity: 0.1; |
27 | | - } |
28 | | - |
29 | | - // Show more opaque in dark themes. |
30 | | - .is-dark-theme .is-selected & { |
31 | | - opacity: 0.4; |
| 26 | + opacity: 0; |
| 27 | + width: 0; // This allows the appender to sit on the left as it should. |
32 | 28 | } |
33 | 29 |
|
34 | 30 | // Use the first link to set the height. |
|
57 | 53 | } |
58 | 54 | } |
59 | 55 |
|
| 56 | + & + .block-list-appender { |
| 57 | + box-shadow: inset 0 0 0 $border-width $gray-700; |
| 58 | + } |
| 59 | + |
60 | 60 | .wp-social-link::before { |
61 | 61 | content: ""; |
62 | 62 | display: block; |
|
71 | 71 | } |
72 | 72 |
|
73 | 73 | // Polish the Appender. |
74 | | -.wp-block-social-links .wp-block-social-links__social-placeholder + .block-list-appender { |
75 | | - position: absolute; |
76 | | -} |
77 | | - |
78 | 74 | .wp-block-social-links .block-list-appender { |
79 | | - padding: 0; |
| 75 | + // Match the overall silhouette of social links. |
| 76 | + margin: 4px auto 4px 0; |
| 77 | + border-radius: 9999px; // This works as both circular and pill shapes. |
80 | 78 |
|
81 | | - &::before { |
82 | | - content: ""; |
83 | | - display: block; |
| 79 | + // Treat just like a social icon. |
| 80 | + .block-editor-inserter { |
| 81 | + display: flex; |
| 82 | + align-items: center; |
| 83 | + justify-content: center; |
| 84 | + font-size: inherit; |
84 | 85 | width: 1em; |
85 | 86 | height: 1em; |
86 | 87 | } |
87 | 88 |
|
88 | | - .block-editor-inserter { |
89 | | - position: absolute; |
90 | | - top: 0; |
| 89 | + // Duplicate the font sizes from style.scss to size the appender. |
| 90 | + .has-small-icon-size & { |
| 91 | + font-size: 16px; // 16 makes for a quarter-padding that keeps the icon centered. |
91 | 92 | } |
92 | | -} |
93 | 93 |
|
94 | | -.wp-block-social-links.is-style-logos-only .block-list-appender { |
95 | | - padding: 4px; |
96 | | -} |
| 94 | + // Normal/default. |
| 95 | + .has-normal-icon-size & { |
| 96 | + font-size: 24px; |
| 97 | + } |
| 98 | + |
| 99 | + // Large. |
| 100 | + .has-large-icon-size & { |
| 101 | + font-size: 36px; |
| 102 | + } |
97 | 103 |
|
| 104 | + // Huge. |
| 105 | + .has-huge-icon-size & { |
| 106 | + font-size: 48px; |
| 107 | + } |
| 108 | + |
| 109 | + &::before { |
| 110 | + content: none; |
| 111 | + } |
| 112 | +} |
98 | 113 |
|
99 | 114 | // Center flex items. This has an equivalent in style.scss. |
100 | 115 | .wp-block[data-align="center"] > .wp-block-social-links { |
|
0 commit comments