PluginProbe
Extendify / 0.3.1
Extendify v0.3.1
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.3.1, at src/app.css

159 lines 4.2 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 focus:ring-wp focus:ring-wp-theme-500 outline-none focus:shadow-none;
21 }
22 .extendify select.button-focus,
23 .extendify input.button-focus {
24 @apply focus:border-transparent focus:outline-none focus:shadow-none;
25 }
26
27 .button-extendify-main {
28 @apply bg-extendify-main button-focus cursor-pointer transition duration-200 p-1.5 px-3 text-white hover:text-white no-underline hover:bg-extendify-main-dark active:bg-gray-900 active:text-white focus:text-white whitespace-nowrap rounded text-base;
29 }
30 #extendify-search-input:focus ~ svg,
31 #extendify-search-input:not(:placeholder-shown) ~ svg {
32 @apply hidden;
33 }
34 #extendify-search-input::-webkit-textfield-decoration-container {
35 @apply mr-3;
36 }
37
38 /* WP tweaks and overrides */
39 .extendify .components-panel__body > .components-panel__body-title {
40 /* Override WP aggressive boder:none and border:0 */
41 border-bottom: 1px solid #e0e0e0 !important;
42 @apply bg-transparent;
43 }
44 .extendify .components-modal__header {
45 @apply border-b border-gray-300;
46 }
47
48 /* A shim to ensure live previews w/o iframes display properly */
49 .block-editor-block-preview__content
50 .block-editor-block-list__layout.is-root-container
51 > .ext {
52 @apply max-w-none;
53 }
54
55 /* Ensure our patterns display fullwidth on old themes + < 5.9 */
56 .block-editor-block-list__layout.is-root-container
57 .ext.block-editor-block-list__block {
58 @apply max-w-full;
59 }
60
61 .block-editor-block-preview__content-iframe
62 .block-editor-block-list__layout.is-root-container
63 .ext.block-editor-block-list__block {
64 @apply max-w-none;
65 }
66
67 .extendify .block-editor-block-preview__container {
68 /* no important */
69 @apply opacity-0;
70 animation: extendifyOpacityIn 200ms cubic-bezier(0.694, 0, 0.335, 1)
71 forwards 0ms;
72 }
73
74 /* Remove excess margin for top-level patterns on < 5.9 */
75 .extendify .is-root-container > [data-block],
76 .extendify .is-root-container > [data-align="full"],
77 .extendify .is-root-container > [data-align="full"] > .wp-block {
78 @apply my-0 !important;
79 }
80
81 /* Remove excess margin for top-level patterns on 5.9+ */
82 .editor-styles-wrapper:not(.block-editor-writing-flow)
83 > .is-root-container
84 :where(.wp-block)[data-align="full"] {
85 @apply my-0 !important;
86 }
87
88 @keyframes extendifyOpacityIn {
89 0% {
90 opacity: 0;
91 }
92 100% {
93 opacity: 1;
94 }
95 }
96
97 .extendify .with-light-shadow::after {
98 content: "";
99 @apply absolute inset-0 border-0 shadow-inner-sm;
100 }
101 .extendify .with-light-shadow:hover::after {
102 @apply shadow-inner-md;
103 }
104
105 /* Fallback as FireFox does not support backdrop filter */
106 @supports not (
107 (-webkit-backdrop-filter: saturate(2) blur(24px)) or
108 (backdrop-filter: saturate(2) blur(24px))
109 ) {
110 div.extendify .bg-extendify-transparent-white {
111 @apply bg-gray-100;
112 }
113 }
114
115 /* Style contentType/pageType control in sidebar */
116 .components-panel__body.ext-type-control .components-panel__body-toggle {
117 @apply pl-0 pr-0;
118 }
119
120 .components-panel__body.ext-type-control .components-panel__body-title {
121 @apply m-0 border-b-0 px-5;
122 }
123
124 .components-panel__body.ext-type-control
125 .components-panel__body-title
126 .components-button {
127 @apply m-0 border-b-0 text-extendify-gray py-2 uppercase font-medium text-xss;
128 }
129
130 .components-panel__body.ext-type-control
131 .components-button
132 .components-panel__arrow {
133 @apply right-0 text-extendify-gray;
134 }
135
136 .extendify .animate-pulse {
137 animation: extendifyPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
138 }
139
140 @keyframes extendifyPulse {
141 0%,
142 100% {
143 opacity: 1;
144 }
145 50% {
146 opacity: 0.5;
147 }
148 }
149
150 .is-template--inactive::before,
151 .is-template--in-review::before {
152 content: "";
153 @apply absolute w-full h-full top-0 left-0 bottom-0 right-0 z-40 border-solid border-8 border-extendify-secondary;
154 }
155
156 .is-template--inactive::before {
157 border-color: #fdeab6;
158 }
159