UNPKG

3.76 kBCSSView Raw
1/**
2 * Colors
3 */
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}
84
85.wp-social-link:hover {
86 transform: none;
87}
88
89.editor-styles-wrapper .wp-block-social-links {
90 padding: 0;
91}
92
93.wp-block-social-links__social-placeholder {
94 display: flex;
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}
129
130.wp-block-social-links .wp-block-social-links__social-prompt {
131 min-height: 24px;
132 list-style: none;
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}
142
143.wp-block[data-align=center] > .wp-block-social-links {
144 justify-content: center;
145}
146
147.block-editor-block-preview__content .components-button:disabled {
148 opacity: 1;
149}
150
151.wp-social-link.wp-social-link__is-incomplete {
152 opacity: 0.5;
153}
154@media (prefers-reduced-motion: reduce) {
155 .wp-social-link.wp-social-link__is-incomplete {
156 transition-duration: 0s;
157 transition-delay: 0s;
158 }
159}
160
161.wp-block-social-links .is-selected .wp-social-link__is-incomplete,
162.wp-social-link.wp-social-link__is-incomplete:hover,
163.wp-social-link.wp-social-link__is-incomplete:focus {
164 opacity: 1;
165}
\No newline at end of file