PluginProbe
Extendify / 0.2.0
Extendify v0.2.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.2.0, at src/app.css

143 lines 3.8 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;
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 .extendify .block-editor-block-preview__container {
62 /* no important */
63 @apply opacity-0;
64 animation: extendifyOpacityIn 200ms cubic-bezier(0.694, 0, 0.335, 1)
65 forwards 0ms;
66 }
67
68 /* Remove excess margin for top-level patterns on < 5.9 */
69 .extendify .is-root-container > [data-block],
70 .extendify .is-root-container > [data-align="full"],
71 .extendify .is-root-container > [data-align="full"] > .wp-block {
72 @apply my-0 !important;
73 }
74
75 /* Remove excess margin for top-level patterns on 5.9+ */
76 .editor-styles-wrapper:not(.block-editor-writing-flow)
77 > .is-root-container
78 :where(.wp-block)[data-align="full"] {
79 @apply my-0 !important;
80 }
81
82 @keyframes extendifyOpacityIn {
83 0% {
84 opacity: 0;
85 }
86 100% {
87 opacity: 1;
88 }
89 }
90
91 .extendify .with-light-shadow::after {
92 content: "";
93 @apply absolute inset-0 border-0 shadow-inner-sm;
94 }
95 .extendify .with-light-shadow:hover::after {
96 @apply shadow-inner-md;
97 }
98
99 /* Style contentType/pageType control in sidebar */
100 .components-panel__body.ext-type-control .components-panel__body-toggle {
101 @apply pl-0 pr-0;
102 }
103
104 .components-panel__body.ext-type-control .components-panel__body-title {
105 @apply m-0 border-b-0 px-5;
106 }
107
108 .components-panel__body.ext-type-control
109 .components-panel__body-title
110 .components-button {
111 @apply m-0 border-b-0 text-extendify-gray py-2 uppercase font-medium text-xss;
112 }
113
114 .components-panel__body.ext-type-control
115 .components-button
116 .components-panel__arrow {
117 @apply right-0 text-extendify-gray;
118 }
119
120 .extendify .animate-pulse {
121 animation: extendifyPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
122 }
123
124 @keyframes extendifyPulse {
125 0%,
126 100% {
127 opacity: 1;
128 }
129 50% {
130 opacity: 0.5;
131 }
132 }
133
134 .is-template--inactive::before,
135 .is-template--in-review::before {
136 content: "";
137 @apply absolute w-full h-full top-0 left-0 bottom-0 right-0 z-40 border-solid border-8 border-extendify-secondary;
138 }
139
140 .is-template--inactive::before {
141 border-color: #fdeab6;
142 }
143