1 /** |
1 .wp-block-social-links div.block-editor-url-input{ |
2 * Colors |
2 display:inline-block; |
3 */ |
3 margin-right:8px; |
4 /** |
|
5 * Breakpoints & Media Queries |
|
6 */ |
|
7 /** |
|
8 * SCSS Variables. |
|
9 * |
|
10 * Please use variables from this sheet to ensure consistency across the UI. |
|
11 * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
|
12 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
|
13 */ |
|
14 /** |
|
15 * Colors |
|
16 */ |
|
17 /** |
|
18 * Fonts & basic variables. |
|
19 */ |
|
20 /** |
|
21 * Grid System. |
|
22 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
|
23 */ |
|
24 /** |
|
25 * Dimensions. |
|
26 */ |
|
27 /** |
|
28 * Shadows. |
|
29 */ |
|
30 /** |
|
31 * Editor widths. |
|
32 */ |
|
33 /** |
|
34 * Block & Editor UI. |
|
35 */ |
|
36 /** |
|
37 * Block paddings. |
|
38 */ |
|
39 /** |
|
40 * React Native specific. |
|
41 * These variables do not appear to be used anywhere else. |
|
42 */ |
|
43 /** |
|
44 * Converts a hex value into the rgb equivalent. |
|
45 * |
|
46 * @param {string} hex - the hexadecimal value to convert |
|
47 * @return {string} comma separated rgb values |
|
48 */ |
|
49 /** |
|
50 * Breakpoint mixins |
|
51 */ |
|
52 /** |
|
53 * Long content fade mixin |
|
54 * |
|
55 * Creates a fading overlay to signify that the content is longer |
|
56 * than the space allows. |
|
57 */ |
|
58 /** |
|
59 * Focus styles. |
|
60 */ |
|
61 /** |
|
62 * Applies editor left position to the selector passed as argument |
|
63 */ |
|
64 /** |
|
65 * Styles that are reused verbatim in a few places |
|
66 */ |
|
67 /** |
|
68 * Allows users to opt-out of animations via OS-level preferences. |
|
69 */ |
|
70 /** |
|
71 * Reset default styles for JavaScript UI based pages. |
|
72 * This is a WP-admin agnostic reset |
|
73 */ |
|
74 /** |
|
75 * Reset the WP Admin page styles for Gutenberg-like pages. |
|
76 */ |
|
77 .wp-block-social-links div.block-editor-url-input { |
|
78 display: inline-block; |
|
79 margin-right: 8px; |
|
80 } |
|
81 .wp-block-social-links.wp-block-social-links { |
|
82 background: none; |
|
83 } |
4 } |
84 |
5 |
85 .wp-social-link:hover { |
6 .wp-social-link:hover{ |
86 transform: none; |
7 transform:none; |
87 } |
8 } |
88 |
9 |
89 .editor-styles-wrapper .wp-block-social-links { |
10 :root :where(.wp-block-social-links),:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link){ |
90 padding: 0; |
11 padding:0; |
91 } |
12 } |
92 |
13 |
93 .wp-block-social-links__social-placeholder { |
14 :root :where(.wp-block-social-links__social-placeholder .wp-social-link){ |
94 display: flex; |
15 padding:.25em; |
95 opacity: 0.8; |
|
96 list-style: none; |
|
97 } |
|
98 .wp-block-social-links__social-placeholder > .wp-social-link { |
|
99 padding-right: 0 !important; |
|
100 margin-right: 0 !important; |
|
101 padding-left: 0 !important; |
|
102 margin-left: 0 !important; |
|
103 width: 0 !important; |
|
104 visibility: hidden; |
|
105 } |
|
106 .wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons { |
|
107 display: flex; |
|
108 } |
|
109 .wp-block-social-links__social-placeholder .wp-social-link { |
|
110 padding: 0.25em; |
|
111 } |
|
112 .is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link { |
|
113 padding-right: calc((2/3) * 1em); |
|
114 padding-left: calc((2/3) * 1em); |
|
115 } |
|
116 .is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link { |
|
117 padding: 0; |
|
118 } |
|
119 .wp-block-social-links__social-placeholder .wp-social-link::before { |
|
120 content: ""; |
|
121 display: block; |
|
122 width: 1em; |
|
123 height: 1em; |
|
124 border-radius: 50%; |
|
125 } |
|
126 .is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link::before { |
|
127 background: currentColor; |
|
128 } |
16 } |
129 |
17 |
130 .wp-block-social-links .wp-block-social-links__social-prompt { |
18 :root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link){ |
131 min-height: 24px; |
19 padding-left:.66667em; |
132 list-style: none; |
20 padding-right:.66667em; |
133 order: 2; |
|
134 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
|
135 font-size: 13px; |
|
136 line-height: 24px; |
|
137 margin-top: auto; |
|
138 margin-bottom: auto; |
|
139 cursor: default; |
|
140 padding-left: 8px; |
|
141 } |
21 } |
142 |
22 |
143 .wp-block[data-align=center] > .wp-block-social-links { |
23 .wp-block-social-links__social-placeholder{ |
144 justify-content: center; |
24 display:flex; |
|
25 list-style:none; |
|
26 opacity:.8; |
|
27 } |
|
28 .wp-block-social-links__social-placeholder>.wp-social-link{ |
|
29 margin-left:0 !important; |
|
30 margin-right:0 !important; |
|
31 padding-left:0 !important; |
|
32 padding-right:0 !important; |
|
33 visibility:hidden; |
|
34 width:0 !important; |
|
35 } |
|
36 .wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{ |
|
37 display:flex; |
|
38 } |
|
39 .wp-block-social-links__social-placeholder .wp-social-link:before{ |
|
40 border-radius:50%; |
|
41 content:""; |
|
42 display:block; |
|
43 height:1em; |
|
44 width:1em; |
|
45 } |
|
46 .is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{ |
|
47 background:currentColor; |
145 } |
48 } |
146 |
49 |
147 .block-editor-block-preview__content .components-button:disabled { |
50 .wp-block-social-links .wp-block-social-links__social-prompt{ |
148 opacity: 1; |
51 cursor:default; |
|
52 font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif; |
|
53 font-size:13px; |
|
54 line-height:24px; |
|
55 list-style:none; |
|
56 margin-bottom:auto; |
|
57 margin-top:auto; |
|
58 min-height:24px; |
|
59 padding-left:8px; |
149 } |
60 } |
150 |
61 |
151 .wp-social-link.wp-social-link__is-incomplete { |
62 .wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{ |
152 opacity: 0.5; |
63 justify-content:center; |
153 } |
64 } |
154 @media (prefers-reduced-motion: reduce) { |
65 |
155 .wp-social-link.wp-social-link__is-incomplete { |
66 .block-editor-block-preview__content .components-button:disabled{ |
156 transition-duration: 0s; |
67 opacity:1; |
157 transition-delay: 0s; |
68 } |
|
69 |
|
70 .wp-social-link.wp-social-link__is-incomplete{ |
|
71 opacity:.5; |
|
72 } |
|
73 @media (prefers-reduced-motion:reduce){ |
|
74 .wp-social-link.wp-social-link__is-incomplete{ |
|
75 transition-delay:0s; |
|
76 transition-duration:0s; |
158 } |
77 } |
159 } |
78 } |
160 |
79 |
161 .wp-block-social-links .is-selected .wp-social-link__is-incomplete, |
80 .wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{ |
162 .wp-social-link.wp-social-link__is-incomplete:hover, |
81 opacity:1; |
163 .wp-social-link.wp-social-link__is-incomplete:focus { |
|
164 opacity: 1; |
|
165 } |
82 } |