PluginProbe
Extendify / 0.8.0
Extendify v0.8.0
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 0.7.0 All 126 releases
extendify / src / app.css

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

164 lines 4.5 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-title {
121 @apply my-0 -mx-4 border-b-0 px-5;
122 }
123
124 .extendify .animate-pulse {
125 animation: extendifyPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
126 }
127
128 @keyframes extendifyPulse {
129 0%,
130 100% {
131 opacity: 1;
132 }
133 50% {
134 opacity: 0.5;
135 }
136 }
137
138 .is-template--inactive::before,
139 .is-template--in-review::before {
140 content: "";
141 @apply absolute top-0 left-0 bottom-0 right-0 z-40 h-full w-full border-8 border-solid border-extendify-secondary;
142 }
143
144 .is-template--inactive::before {
145 border-color: #fdeab6;
146 }
147
148 .extendify-tooltip-default:not(.is-without-arrow)[data-y-axis="bottom"]::after {
149 border-bottom-color: #1e1e1e;
150 }
151 .extendify-tooltip-default:not(.is-without-arrow)::before {
152 @apply border-transparent;
153 }
154 .extendify-tooltip-default:not(.is-without-arrow) .components-popover__content {
155 min-width: 250px;
156 @apply border-transparent bg-gray-900 p-4 text-white;
157 }
158 .extendify-bottom-arrow::after {
159 content: "";
160 bottom: -15px;
161 @apply absolute inline-block h-0 w-0 -translate-y-px transform border-8 border-transparent;
162 border-top-color: #1e1e1e !important;
163 }
164