PluginProbe
Extendify / 0.6.0
Extendify v0.6.0
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / app.css

app.css in Extendify 0.6.0, at src/app.css

180 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Adding CSS classes should be done with consideration and rarely */
2 @tailwind base;
3 @tailwind components;
4 @tailwind utilities;
5
6 .extendify {
7 --tw-ring-inset: var(--tw-empty, /*!*/ /*!*/);
8 --tw-ring-offset-width: 0px;
9 --tw-ring-offset-color: transparent;
10 --tw-ring-color: var(--wp-admin-theme-color);
11 }
12
13 .extendify *,
14 .extendify *:after,
15 .extendify *:before {
16 box-sizing: border-box;
17 border: 0 solid #e5e7eb;
18 }
19 .extendify .button-focus {
20 @apply outline-none focus:shadow-none focus:ring-wp focus:ring-wp-theme-500;
21 }
22 .extendify select.button-focus,
23 .extendify input.button-focus {
24 @apply focus:outline-none focus:border-transparent focus:shadow-none;
25 }
26
27 div.extendify button.extendify-skip-to-sr-link:focus {
28 @apply fixed top-0 z-high bg-white p-4;
29 }
30
31 .button-extendify-main {
32 @apply button-focus cursor-pointer whitespace-nowrap rounded bg-extendify-main p-1.5 px-3 text-base text-white no-underline transition duration-200 hover:bg-extendify-main-dark hover:text-white focus:text-white active:bg-gray-900 active:text-white;
33 }
34 #extendify-search-input:focus ~ svg,
35 #extendify-search-input:not(:placeholder-shown) ~ svg {
36 @apply hidden;
37 }
38 #extendify-search-input::-webkit-textfield-decoration-container {
39 @apply mr-3;
40 }
41
42 /* WP tweaks and overrides */
43 .extendify .components-panel__body > .components-panel__body-title {
44 /* Override WP aggressive boder:none and border:0 */
45 border-bottom: 1px solid #e0e0e0 !important;
46 @apply bg-transparent;
47 }
48 .extendify .components-modal__header {
49 @apply border-b border-gray-300;
50 }
51
52 /* A shim to ensure live previews w/o iframes display properly */
53 .block-editor-block-preview__content
54 .block-editor-block-list__layout.is-root-container
55 > .ext {
56 @apply max-w-none;
57 }
58
59 /* Ensure our patterns display fullwidth on old themes + < 5.9 */
60 .block-editor-block-list__layout.is-root-container
61 .ext.block-editor-block-list__block {
62 @apply max-w-full;
63 }
64
65 .block-editor-block-preview__content-iframe
66 .block-editor-block-list__layout.is-root-container
67 .ext.block-editor-block-list__block {
68 @apply max-w-none;
69 }
70
71 .extendify .block-editor-block-preview__container {
72 /* no important */
73 @apply opacity-0;
74 animation: extendifyOpacityIn 200ms cubic-bezier(0.694, 0, 0.335, 1)
75 forwards 0ms;
76 }
77
78 /* Remove excess margin for top-level patterns on < 5.9 */
79 .extendify .is-root-container > [data-block],
80 .extendify .is-root-container > [data-align="full"],
81 .extendify .is-root-container > [data-align="full"] > .wp-block {
82 @apply my-0 !important;
83 }
84
85 /* Remove excess margin for top-level patterns on 5.9+ */
86 .editor-styles-wrapper:not(.block-editor-writing-flow)
87 > .is-root-container
88 :where(.wp-block)[data-align="full"] {
89 @apply my-0 !important;
90 }
91
92 @keyframes extendifyOpacityIn {
93 0% {
94 opacity: 0;
95 }
96 100% {
97 opacity: 1;
98 }
99 }
100
101 .extendify .with-light-shadow::after {
102 content: "";
103 @apply absolute inset-0 border-0 shadow-inner-sm;
104 }
105 .extendify .with-light-shadow:hover::after {
106 @apply shadow-inner-md;
107 }
108
109 /* Fallback as FireFox does not support backdrop filter */
110 @supports not (
111 (-webkit-backdrop-filter: saturate(2) blur(24px)) or
112 (backdrop-filter: saturate(2) blur(24px))
113 ) {
114 div.extendify .bg-extendify-transparent-white {
115 @apply bg-gray-100;
116 }
117 }
118
119 /* Style contentType/pageType control in sidebar */
120 .components-panel__body.ext-type-control .components-panel__body-toggle {
121 @apply pl-0 pr-0;
122 }
123
124 .components-panel__body.ext-type-control .components-panel__body-title {
125 @apply m-0 border-b-0 px-5;
126 }
127
128 .components-panel__body.ext-type-control
129 .components-panel__body-title
130 .components-button {
131 @apply m-0 border-b-0 py-2 text-xss font-medium uppercase text-extendify-gray;
132 }
133
134 .components-panel__body.ext-type-control
135 .components-button
136 .components-panel__arrow {
137 @apply right-0 text-extendify-gray;
138 }
139
140 .extendify .animate-pulse {
141 animation: extendifyPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
142 }
143
144 @keyframes extendifyPulse {
145 0%,
146 100% {
147 opacity: 1;
148 }
149 50% {
150 opacity: 0.5;
151 }
152 }
153
154 .is-template--inactive::before,
155 .is-template--in-review::before {
156 content: "";
157 @apply absolute top-0 left-0 bottom-0 right-0 z-40 h-full w-full border-8 border-solid border-extendify-secondary;
158 }
159
160 .is-template--inactive::before {
161 border-color: #fdeab6;
162 }
163
164 .extendify-tooltip-default:not(.is-without-arrow)[data-y-axis="bottom"]::after {
165 border-bottom-color: #1e1e1e;
166 }
167 .extendify-tooltip-default:not(.is-without-arrow)::before {
168 @apply border-transparent;
169 }
170 .extendify-tooltip-default:not(.is-without-arrow) .components-popover__content {
171 min-width: 250px;
172 @apply border-transparent bg-gray-900 p-4 text-white;
173 }
174 .extendify-bottom-arrow::after {
175 content: "";
176 bottom: -15px;
177 @apply absolute inline-block h-0 w-0 -translate-y-px transform border-8 border-transparent;
178 border-top-color: #1e1e1e !important;
179 }
180