1 /** |
1 .wp-block-navigation .block-list-appender{ |
2 * Colors |
2 position:relative; |
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 /** |
|
78 * Submenus. |
|
79 */ |
|
80 .wp-block-navigation .has-child { |
|
81 cursor: pointer; |
|
82 } |
3 } |
83 .wp-block-navigation .has-child .wp-block-navigation__submenu-container { |
4 .wp-block-navigation .has-child{ |
84 z-index: 28; |
5 cursor:pointer; |
85 } |
6 } |
86 .wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container { |
7 .wp-block-navigation .has-child .wp-block-navigation__submenu-container{ |
87 z-index: 29; |
8 z-index:28; |
88 } |
9 } |
89 .wp-block-navigation .has-child.is-selected > .wp-block-navigation__submenu-container, .wp-block-navigation .has-child.has-child-selected > .wp-block-navigation__submenu-container { |
10 .wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{ |
90 visibility: visible !important; |
11 z-index:29; |
91 opacity: 1 !important; |
12 } |
92 min-width: 200px !important; |
13 .wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{ |
93 height: auto !important; |
14 height:auto !important; |
94 width: auto !important; |
15 min-width:200px !important; |
95 overflow: visible !important; |
16 opacity:1 !important; |
|
17 overflow:visible !important; |
|
18 visibility:visible !important; |
|
19 width:auto !important; |
|
20 } |
|
21 .wp-block-navigation-item .wp-block-navigation-item__content{ |
|
22 cursor:text; |
|
23 } |
|
24 .wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{ |
|
25 min-width:20px; |
|
26 } |
|
27 .wp-block-navigation-item .block-list-appender{ |
|
28 margin:16px 16px 16px auto; |
96 } |
29 } |
97 |
30 |
98 /** |
31 .wp-block-navigation-link__invalid-item{ |
99 * Navigation Items. |
32 color:#000; |
100 */ |
|
101 .wp-block-navigation-item .wp-block-navigation-item__content { |
|
102 cursor: text; |
|
103 } |
33 } |
104 .wp-block-navigation-item.is-editing, .wp-block-navigation-item.is-selected { |
34 .wp-block-navigation-link__placeholder{ |
105 min-width: 20px; |
35 background-image:none !important; |
|
36 box-shadow:none !important; |
|
37 position:relative; |
|
38 text-decoration:none !important; |
106 } |
39 } |
107 .wp-block-navigation-item .block-list-appender { |
40 .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{ |
108 margin-top: 16px; |
41 --wp-underline-color:var(--wp-admin-theme-color); |
109 margin-left: auto; |
42 background-image:linear-gradient(-45deg, #0000 20%, var(--wp-underline-color) 30%, var(--wp-underline-color) 36%, #0000 46%), linear-gradient(-135deg, #0000 54%, var(--wp-underline-color) 64%, var(--wp-underline-color) 70%, #0000 80%); |
110 margin-bottom: 16px; |
43 background-position:100% 100%; |
111 margin-right: 16px; |
44 background-repeat:repeat-x; |
|
45 background-size:6px 3px; |
|
46 padding-bottom:.1em; |
|
47 } |
|
48 .is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{ |
|
49 --wp-underline-color:#fff; |
|
50 } |
|
51 .wp-block-navigation-link__placeholder.wp-block-navigation-item__content{ |
|
52 cursor:pointer; |
|
53 } |
|
54 .link-control-transform{ |
|
55 border-top:1px solid #ccc; |
|
56 padding:0 16px 8px; |
112 } |
57 } |
113 |
58 |
114 .wp-block-navigation-link__invalid-item { |
59 .link-control-transform__subheading{ |
115 color: #000; |
60 color:#1e1e1e; |
|
61 font-size:11px; |
|
62 font-weight:500; |
|
63 margin-bottom:1.5em; |
|
64 text-transform:uppercase; |
116 } |
65 } |
117 |
66 |
118 .wp-block-navigation-link__missing_text-tooltip { |
67 .link-control-transform__items{ |
119 position: absolute; |
68 display:flex; |
120 width: 1px; |
69 justify-content:space-between; |
121 height: 1px; |
|
122 padding: 0; |
|
123 margin: -1px; |
|
124 overflow: hidden; |
|
125 } |
70 } |
126 |
71 |
127 /** |
72 .link-control-transform__item{ |
128 * Menu item setup state. Is shown when a menu item has no URL configured. |
73 flex-basis:33%; |
129 */ |
74 flex-direction:column; |
130 .wp-block-navigation-link__placeholder { |
75 gap:8px; |
131 position: relative; |
76 height:auto; |
132 text-decoration: none !important; |
|
133 box-shadow: none !important; |
|
134 background-image: none !important; |
|
135 } |
77 } |
136 .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span { |
|
137 --wp-underline-color: var(--wp-admin-theme-color); |
|
138 background-image: linear-gradient(-45deg, transparent 20%, var(--wp-underline-color) 30%, var(--wp-underline-color) 36%, transparent 46%), linear-gradient(-135deg, transparent 54%, var(--wp-underline-color) 64%, var(--wp-underline-color) 70%, transparent 80%); |
|
139 background-position: 100% 100%; |
|
140 background-size: 6px 3px; |
|
141 background-repeat: repeat-x; |
|
142 padding-bottom: 0.1em; |
|
143 } |
|
144 .is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span { |
|
145 --wp-underline-color: #fff; |
|
146 } |
|
147 .wp-block-navigation-link__placeholder.wp-block-navigation-item__content { |
|
148 cursor: pointer; |
|
149 } |
|
150 |
|
151 /** |
|
152 * Link Control Transforms |
|
153 */ |
|
154 .link-control-transform { |
|
155 border-top: 1px solid #ccc; |
|
156 padding: 0 16px 8px 16px; |
|
157 } |
|
158 |
|
159 .link-control-transform__subheading { |
|
160 font-size: 11px; |
|
161 text-transform: uppercase; |
|
162 font-weight: 500; |
|
163 color: #1e1e1e; |
|
164 margin-bottom: 1.5em; |
|
165 } |
|
166 |
|
167 .link-control-transform__items { |
|
168 display: flex; |
|
169 justify-content: space-between; |
|
170 } |
|
171 |
|
172 .link-control-transform__item { |
|
173 flex-basis: 33%; |
|
174 flex-direction: column; |
|
175 gap: 8px; |
|
176 height: auto; |
|
177 } |
|