@webikon/webentor-core 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/pre-commit +40 -0
- package/.prettierrc.js +5 -0
- package/CHANGELOG.md +88 -0
- package/LICENCE.md +7 -0
- package/README.md +26 -0
- package/core-js/_alpine.ts +20 -0
- package/core-js/_slider.ts +232 -0
- package/core-js/_utils.ts +126 -0
- package/core-js/blocks-components/block-appender.tsx +36 -0
- package/core-js/blocks-components/button.tsx +424 -0
- package/core-js/blocks-components/custom-image-sizes-panel.tsx +197 -0
- package/core-js/blocks-components/index.ts +4 -0
- package/core-js/blocks-components/typography-picker-select.tsx +31 -0
- package/core-js/blocks-filters/_filter-core-typography.tsx +108 -0
- package/core-js/blocks-filters/_slider-settings.tsx +283 -0
- package/core-js/blocks-filters/index.ts +3 -0
- package/core-js/blocks-filters/responsive-settings/components/DisabledSliderInfo.tsx +10 -0
- package/core-js/blocks-filters/responsive-settings/constants.ts +11 -0
- package/core-js/blocks-filters/responsive-settings/index.tsx +196 -0
- package/core-js/blocks-filters/responsive-settings/settings/block-link/index.ts +1 -0
- package/core-js/blocks-filters/responsive-settings/settings/block-link/panel.tsx +47 -0
- package/core-js/blocks-filters/responsive-settings/settings/border/border/index.tsx +1 -0
- package/core-js/blocks-filters/responsive-settings/settings/border/border/properties.ts +27 -0
- package/core-js/blocks-filters/responsive-settings/settings/border/border/settings.tsx +310 -0
- package/core-js/blocks-filters/responsive-settings/settings/border/border-radius/index.tsx +1 -0
- package/core-js/blocks-filters/responsive-settings/settings/border/border-radius/properties.ts +31 -0
- package/core-js/blocks-filters/responsive-settings/settings/border/border-radius/settings.tsx +211 -0
- package/core-js/blocks-filters/responsive-settings/settings/border/index.ts +1 -0
- package/core-js/blocks-filters/responsive-settings/settings/border/panel.tsx +54 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/display/index.ts +2 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/display/properties.ts +167 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/display/settings.tsx +73 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/flexbox/index.ts +2 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/flexbox/properties.ts +187 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/flexbox/settings.tsx +131 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/grid/index.ts +2 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/grid/properties.ts +187 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/grid/settings.tsx +132 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/index.ts +4 -0
- package/core-js/blocks-filters/responsive-settings/settings/container/panel.tsx +92 -0
- package/core-js/blocks-filters/responsive-settings/settings/spacing/index.ts +3 -0
- package/core-js/blocks-filters/responsive-settings/settings/spacing/panel.tsx +45 -0
- package/core-js/blocks-filters/responsive-settings/settings/spacing/properties.ts +74 -0
- package/core-js/blocks-filters/responsive-settings/settings/spacing/settings.tsx +85 -0
- package/core-js/blocks-filters/responsive-settings/types/index.ts +68 -0
- package/core-js/blocks-filters/responsive-settings/utils.ts +321 -0
- package/core-js/blocks-utils/_use-block-parent.ts +27 -0
- package/core-js/blocks-utils/_use-post-types.ts +43 -0
- package/core-js/blocks-utils/_use-taxonomies.ts +29 -0
- package/core-js/blocks-utils/index.ts +3 -0
- package/core-js/config/webentor-config.ts +718 -0
- package/core-js/index.ts +14 -0
- package/core-js/types/_block-components.ts +7 -0
- package/core-js/types/_webentor-config.ts +182 -0
- package/package.json +98 -0
- package/resources/blocks/e-accordion/block.json +34 -0
- package/resources/blocks/e-accordion/e-accordion.block.tsx +125 -0
- package/resources/blocks/e-accordion/script.ts +1 -0
- package/resources/blocks/e-accordion/style.css +8 -0
- package/resources/blocks/e-accordion-group/block.json +56 -0
- package/resources/blocks/e-accordion-group/e-accordion-group.block.tsx +99 -0
- package/resources/blocks/e-breadcrumbs/block.json +41 -0
- package/resources/blocks/e-breadcrumbs/e-breadcrumbs.block.tsx +53 -0
- package/resources/blocks/e-button/block.json +32 -0
- package/resources/blocks/e-button/e-button.block.tsx +55 -0
- package/resources/blocks/e-gallery/block.json +90 -0
- package/resources/blocks/e-gallery/e-gallery.block.tsx +316 -0
- package/resources/blocks/e-icon-picker/block.json +37 -0
- package/resources/blocks/e-icon-picker/e-icon-picker.block.tsx +230 -0
- package/resources/blocks/e-icon-picker/style.css +17 -0
- package/resources/blocks/e-image/block.json +78 -0
- package/resources/blocks/e-image/e-image.block.tsx +331 -0
- package/resources/blocks/e-picker-query-loop/block.json +25 -0
- package/resources/blocks/e-picker-query-loop/e-picker-query-loop.block.tsx +189 -0
- package/resources/blocks/e-post-template/block.json +25 -0
- package/resources/blocks/e-post-template/e-post-template.block.tsx +100 -0
- package/resources/blocks/e-query-loop/block.json +36 -0
- package/resources/blocks/e-query-loop/constants.tsx +8 -0
- package/resources/blocks/e-query-loop/e-query-loop.block.tsx +270 -0
- package/resources/blocks/e-query-loop/taxonomy-controls.tsx +184 -0
- package/resources/blocks/e-slider/block.json +42 -0
- package/resources/blocks/e-slider/e-slider.block.tsx +100 -0
- package/resources/blocks/e-svg/block.json +37 -0
- package/resources/blocks/e-svg/e-svg.block.tsx +156 -0
- package/resources/blocks/e-tab-container/block.json +49 -0
- package/resources/blocks/e-tab-container/e-tab-container.block.tsx +123 -0
- package/resources/blocks/e-table/block.json +30 -0
- package/resources/blocks/e-table/e-table.block.tsx +120 -0
- package/resources/blocks/e-table/script.ts +48 -0
- package/resources/blocks/e-table-cell/block.json +40 -0
- package/resources/blocks/e-table-cell/e-table-cell.block.tsx +180 -0
- package/resources/blocks/e-table-row/block.json +28 -0
- package/resources/blocks/e-table-row/e-table-row.block.tsx +118 -0
- package/resources/blocks/e-tabs/block.json +27 -0
- package/resources/blocks/e-tabs/e-tabs.block.tsx +90 -0
- package/resources/blocks/l-404/block.json +51 -0
- package/resources/blocks/l-404/l-404.block.tsx +75 -0
- package/resources/blocks/l-flexible-container/block.json +34 -0
- package/resources/blocks/l-flexible-container/l-flexible-container.block.tsx +97 -0
- package/resources/blocks/l-footer/block.json +23 -0
- package/resources/blocks/l-footer/l-footer.block.tsx +51 -0
- package/resources/blocks/l-formatted-content/block.json +28 -0
- package/resources/blocks/l-formatted-content/l-formatted-content.block.tsx +97 -0
- package/resources/blocks/l-header/block.json +26 -0
- package/resources/blocks/l-header/l-header.block.tsx +100 -0
- package/resources/blocks/l-mobile-nav/block.json +15 -0
- package/resources/blocks/l-mobile-nav/l-mobile-nav.block.tsx +56 -0
- package/resources/blocks/l-mobile-nav/style.css +54 -0
- package/resources/blocks/l-nav-menu/block.json +27 -0
- package/resources/blocks/l-nav-menu/l-nav-menu.block.tsx +109 -0
- package/resources/blocks/l-nav-menu/style.css +134 -0
- package/resources/blocks/l-post-card/block.json +13 -0
- package/resources/blocks/l-post-card/l-post-card.block.tsx +52 -0
- package/resources/blocks/l-section/block.json +89 -0
- package/resources/blocks/l-section/l-section.block.tsx +316 -0
- package/resources/blocks/l-site-logo/block.json +15 -0
- package/resources/blocks/l-site-logo/l-site-logo.block.tsx +54 -0
- package/resources/core-components/slider/slider.script.ts +11 -0
- package/resources/core-components/slider/slider.style.css +134 -0
- package/resources/scripts/editor.ts +29 -0
- package/resources/styles/app.css +21 -0
- package/resources/styles/common/_editor.css +86 -0
- package/resources/styles/common/_form.css +83 -0
- package/resources/styles/common/_global.css +73 -0
- package/resources/styles/common/_theme.css +75 -0
- package/resources/styles/common/_utilities.css +33 -0
- package/resources/styles/common/_wordpress.css +110 -0
- package/resources/styles/components/_table.css +102 -0
- package/resources/styles/editor.css +16 -0
- package/resources/styles/partials/.gitkeep +0 -0
- package/resources/styles/partials/_header.css +21 -0
- package/resources/styles/partials/_pagination.css +35 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--form-field-label-color: #000;
|
|
3
|
+
--form-field-label-font-size: 16px;
|
|
4
|
+
--form-field-input-border: #000;
|
|
5
|
+
--form-field-input-background: #ffffff;
|
|
6
|
+
--form-field-placeholder-color: #000;
|
|
7
|
+
--form-field-font-size: 16px;
|
|
8
|
+
--form-confirmation-message-color: green;
|
|
9
|
+
--form-validation-error-color: red;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.gform_wrapper.gform-theme {
|
|
13
|
+
width: 100%;
|
|
14
|
+
align-self: center;
|
|
15
|
+
|
|
16
|
+
.gfield {
|
|
17
|
+
padding: 4px 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.gform_fields {
|
|
21
|
+
row-gap: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.gform_heading {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.gform_validation_errors,
|
|
29
|
+
.gform_submission_error {
|
|
30
|
+
font-size: 18px;
|
|
31
|
+
outline: none;
|
|
32
|
+
border: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.gfield_label {
|
|
36
|
+
color: var(--form-field-label-color);
|
|
37
|
+
font-size: var(--form-field-label-font-size);
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
margin-bottom: 4px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
input,
|
|
43
|
+
textarea {
|
|
44
|
+
border: 2px solid var(--form-field-input-border);
|
|
45
|
+
background-color: var(--form-field-input-background);
|
|
46
|
+
padding: 16px 16px;
|
|
47
|
+
font-size: var(--form-field-font-size);
|
|
48
|
+
line-height: 1.5;
|
|
49
|
+
border-radius: 0;
|
|
50
|
+
|
|
51
|
+
&::placeholder {
|
|
52
|
+
color: var(--form-field-placeholder-color);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.gform_footer {
|
|
57
|
+
margin-top: 20px;
|
|
58
|
+
justify-content: left;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.gform_confirmation_message {
|
|
62
|
+
color: var(--form-confirmation-message-color);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.gfield_required > span,
|
|
66
|
+
.gfield_description.validation_message,
|
|
67
|
+
.gform_submission_error,
|
|
68
|
+
.gform_validation_errors .gform-icon {
|
|
69
|
+
color: var(--form-validation-error-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.gform_validation_errors,
|
|
73
|
+
.gform_validation_errors .gform-icon {
|
|
74
|
+
background-color: transparent;
|
|
75
|
+
border-color: var(--form-validation-error-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.gfield_visibility_hidden {
|
|
79
|
+
left: -9999px;
|
|
80
|
+
position: absolute;
|
|
81
|
+
visibility: hidden;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
* {
|
|
3
|
+
-webkit-font-smoothing: antialiased;
|
|
4
|
+
-moz-osx-font-smoothing: grayscale;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html {
|
|
8
|
+
scroll-behavior: smooth;
|
|
9
|
+
font-family: var(--font-primary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Disable smooth scrolling when users have prefers-reduced-motion enabled
|
|
14
|
+
*/
|
|
15
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
16
|
+
html {
|
|
17
|
+
scroll-behavior: auto;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
a,
|
|
22
|
+
button,
|
|
23
|
+
label {
|
|
24
|
+
transition:
|
|
25
|
+
color 0.15s ease-out,
|
|
26
|
+
background-color 0.15s ease-out,
|
|
27
|
+
opacity 0.15s ease-out,
|
|
28
|
+
border-color 0.15s ease-out;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
svg {
|
|
32
|
+
transition: fill 0.15s ease-out, stroke 0.15s ease-out;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tabs-navigation ul {
|
|
37
|
+
list-style: none;
|
|
38
|
+
margin-left: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Fix for AlpineJS blip when page loads and we use x-show */
|
|
42
|
+
[x-cloak] {
|
|
43
|
+
display: none !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Loading state for Alpine.js AJAX requests */
|
|
47
|
+
[aria-busy='true'] {
|
|
48
|
+
cursor: wait;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
opacity: 0.7;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Loading spinner */
|
|
54
|
+
.loader {
|
|
55
|
+
width: 24px;
|
|
56
|
+
height: 24px;
|
|
57
|
+
border: 5px solid var(--color-white);
|
|
58
|
+
border-bottom-color: var(--color-primary);
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
display: inline-block;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
animation: rotation 1s linear infinite;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@keyframes rotation {
|
|
66
|
+
0% {
|
|
67
|
+
transform: rotate(0deg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
100% {
|
|
71
|
+
transform: rotate(360deg);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
/* Fonts */
|
|
3
|
+
--font-*: initial;
|
|
4
|
+
--font-primary:
|
|
5
|
+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
|
6
|
+
'Segoe UI Symbol', 'Noto Color Emoji';
|
|
7
|
+
--font-secondary: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
|
|
8
|
+
--font-heading:
|
|
9
|
+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
|
10
|
+
'Segoe UI Symbol', 'Noto Color Emoji';
|
|
11
|
+
--font-mono:
|
|
12
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
|
|
13
|
+
'Courier New', monospace;
|
|
14
|
+
--default-font-family: var(--font-primary);
|
|
15
|
+
|
|
16
|
+
--font-weight-300: 300;
|
|
17
|
+
--font-weight-400: 400;
|
|
18
|
+
--font-weight-500: 500;
|
|
19
|
+
--font-weight-600: 600;
|
|
20
|
+
--font-weight-700: 700;
|
|
21
|
+
--font-weight-900: 900;
|
|
22
|
+
|
|
23
|
+
--leading-*: initial;
|
|
24
|
+
--leading-100: 1;
|
|
25
|
+
--leading-110: 1.1;
|
|
26
|
+
--leading-125: 1.25;
|
|
27
|
+
--leading-150: 1.5;
|
|
28
|
+
|
|
29
|
+
--text-*: initial;
|
|
30
|
+
--text-10: 0.625rem;
|
|
31
|
+
--text-12: 0.75rem;
|
|
32
|
+
--text-14: 0.875rem;
|
|
33
|
+
--text-16: 1rem;
|
|
34
|
+
--text-18: 1.125rem;
|
|
35
|
+
--text-20: 1.25rem;
|
|
36
|
+
--text-22: 1.375rem;
|
|
37
|
+
--text-24: 1.5rem;
|
|
38
|
+
--text-26: 1.625rem;
|
|
39
|
+
--text-28: 1.75rem;
|
|
40
|
+
--text-30: 1.875rem;
|
|
41
|
+
--text-32: 2rem;
|
|
42
|
+
--text-34: 2.125rem;
|
|
43
|
+
--text-36: 2.25rem;
|
|
44
|
+
--text-38: 2.375rem;
|
|
45
|
+
--text-40: 2.5rem;
|
|
46
|
+
--text-44: 2.75rem;
|
|
47
|
+
--text-48: 3rem;
|
|
48
|
+
--text-50: 3.125rem;
|
|
49
|
+
--text-56: 3.5rem;
|
|
50
|
+
--text-60: 3.75rem;
|
|
51
|
+
--text-80: 5rem;
|
|
52
|
+
|
|
53
|
+
/* Breakpoints */
|
|
54
|
+
--breakpoint-*: initial;
|
|
55
|
+
--breakpoint-sm: 30rem; /* 480px */
|
|
56
|
+
--breakpoint-md: 48rem; /* 768px */
|
|
57
|
+
--breakpoint-lg: 64rem; /* 1024px */
|
|
58
|
+
--breakpoint-xl: 75rem; /* 1200px */
|
|
59
|
+
--breakpoint-2xl: 100rem; /* 1600px */
|
|
60
|
+
|
|
61
|
+
/* Colors */
|
|
62
|
+
--color-editor-border: #ddd;
|
|
63
|
+
|
|
64
|
+
/* Borders */
|
|
65
|
+
--radius-*: initial;
|
|
66
|
+
--radius-none: 0;
|
|
67
|
+
--radius-xs: 2px;
|
|
68
|
+
--radius-sm: 4px;
|
|
69
|
+
--radius-md: 6px;
|
|
70
|
+
--radius-lg: 8px;
|
|
71
|
+
--radius-xl: 12px;
|
|
72
|
+
--radius-2xl: 16px;
|
|
73
|
+
--radius-3xl: 24px;
|
|
74
|
+
--radius-full: 9999px;
|
|
75
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.bg-image-underlay {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
&::before {
|
|
5
|
+
position: absolute;
|
|
6
|
+
display: block;
|
|
7
|
+
inset: 0;
|
|
8
|
+
background-color: var(--color-gray-900);
|
|
9
|
+
opacity: 0.2;
|
|
10
|
+
content: '';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> * {
|
|
14
|
+
z-index: 1;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Border utilities */
|
|
19
|
+
@utility border-t-* {
|
|
20
|
+
border-top-style: --value('none', 'solid', 'dashed', 'dotted', 'double');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@utility border-r-* {
|
|
24
|
+
border-right-style: --value('none', 'solid', 'dashed', 'dotted', 'double');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@utility border-b-* {
|
|
28
|
+
border-bottom-style: --value('none', 'solid', 'dashed', 'dotted', 'double');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@utility border-l-* {
|
|
32
|
+
border-left-style: --value('none', 'solid', 'dashed', 'dotted', 'double');
|
|
33
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* WordPress Core
|
|
2
|
+
-------------------------------------------------------------- */
|
|
3
|
+
.alignnone {
|
|
4
|
+
margin: 5px 20px 20px 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.aligncenter,
|
|
8
|
+
div.aligncenter {
|
|
9
|
+
display: block;
|
|
10
|
+
margin: 5px auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.alignright {
|
|
14
|
+
float: right;
|
|
15
|
+
margin: 5px 0 20px 20px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.alignleft {
|
|
19
|
+
float: left;
|
|
20
|
+
margin: 5px 20px 20px 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
a img.alignright {
|
|
24
|
+
float: right;
|
|
25
|
+
margin: 5px 0 20px 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a img.alignnone {
|
|
29
|
+
margin: 5px 20px 20px 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
a img.alignleft {
|
|
33
|
+
float: left;
|
|
34
|
+
margin: 5px 20px 20px 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
a img.aligncenter {
|
|
38
|
+
display: block;
|
|
39
|
+
margin-left: auto;
|
|
40
|
+
margin-right: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.wp-caption {
|
|
44
|
+
background: #fff;
|
|
45
|
+
border: 1px solid #f0f0f0;
|
|
46
|
+
max-width: 96%; /* Image does not overflow the content area */
|
|
47
|
+
padding: 5px 3px 10px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.wp-caption.alignnone {
|
|
52
|
+
margin: 5px 20px 20px 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.wp-caption.alignleft {
|
|
56
|
+
margin: 5px 20px 20px 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.wp-caption.alignright {
|
|
60
|
+
margin: 5px 0 20px 20px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.wp-caption img {
|
|
64
|
+
border: 0 none;
|
|
65
|
+
height: auto;
|
|
66
|
+
margin: 0;
|
|
67
|
+
max-width: 98.5%;
|
|
68
|
+
padding: 0;
|
|
69
|
+
width: auto;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.wp-caption p.wp-caption-text {
|
|
73
|
+
font-size: 11px;
|
|
74
|
+
line-height: 17px;
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0 4px 5px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Text meant only for screen readers. */
|
|
80
|
+
.screen-reader-text {
|
|
81
|
+
border: 0;
|
|
82
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
83
|
+
clip-path: inset(50%);
|
|
84
|
+
height: 1px;
|
|
85
|
+
margin: -1px;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
padding: 0;
|
|
88
|
+
position: absolute !important;
|
|
89
|
+
width: 1px;
|
|
90
|
+
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.screen-reader-text:focus {
|
|
94
|
+
background-color: #eee;
|
|
95
|
+
clip: auto !important;
|
|
96
|
+
clip-path: none;
|
|
97
|
+
color: #444;
|
|
98
|
+
display: block;
|
|
99
|
+
font-size: 1em;
|
|
100
|
+
height: auto;
|
|
101
|
+
left: 5px;
|
|
102
|
+
line-height: normal;
|
|
103
|
+
padding: 15px 23px 14px;
|
|
104
|
+
text-decoration: none;
|
|
105
|
+
top: 5px;
|
|
106
|
+
width: auto;
|
|
107
|
+
z-index: 100000;
|
|
108
|
+
|
|
109
|
+
/* Above WP toolbar. */
|
|
110
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* TODO adjust variables */
|
|
3
|
+
--wbtr-table-row-border-width: 1px;
|
|
4
|
+
--wbtr-table-row-border-color: #e5e5e5;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.table-scroll-shadow {
|
|
8
|
+
&.has-scroll {
|
|
9
|
+
position: relative;
|
|
10
|
+
&::after {
|
|
11
|
+
content: '';
|
|
12
|
+
position: absolute;
|
|
13
|
+
z-index: 1;
|
|
14
|
+
top: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
width: 16px; /* same as cell right padding */
|
|
17
|
+
height: 100%;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
background-image: linear-gradient(
|
|
20
|
+
270deg,
|
|
21
|
+
var(--color-white) 0%,
|
|
22
|
+
rgba(255 255 255 / 0%) 100%
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
@media (min-width: theme(--breakpoint-sm)) {
|
|
26
|
+
width: 24px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (min-width: theme(--breakpoint-md)) {
|
|
30
|
+
width: 36px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (min-width: theme(--breakpoint-lg)) {
|
|
34
|
+
width: 48px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.table,
|
|
41
|
+
.wp-block-table {
|
|
42
|
+
width: 100%;
|
|
43
|
+
display: block;
|
|
44
|
+
overflow-x: auto;
|
|
45
|
+
position: relative;
|
|
46
|
+
|
|
47
|
+
table {
|
|
48
|
+
width: 100%;
|
|
49
|
+
font-family: var(--font-primary);
|
|
50
|
+
text-align: left;
|
|
51
|
+
}
|
|
52
|
+
thead {
|
|
53
|
+
border-bottom: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
th,
|
|
57
|
+
td {
|
|
58
|
+
padding-right: 16px;
|
|
59
|
+
border: none;
|
|
60
|
+
border-bottom: var(--wbtr-table-row-border-width) solid
|
|
61
|
+
var(--wbtr-table-row-border-color);
|
|
62
|
+
max-width: 200px;
|
|
63
|
+
|
|
64
|
+
@media (min-width: theme(--breakpoint-sm)) {
|
|
65
|
+
padding-right: 24px;
|
|
66
|
+
max-width: 400px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (min-width: theme(--breakpoint-md)) {
|
|
70
|
+
padding-right: 36px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (min-width: theme(--breakpoint-lg)) {
|
|
74
|
+
padding-right: 48px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
th {
|
|
79
|
+
padding-top: 24px;
|
|
80
|
+
padding-bottom: 24px;
|
|
81
|
+
font-size: 16px;
|
|
82
|
+
font-weight: var(--font-weight-bold);
|
|
83
|
+
|
|
84
|
+
@media (min-width: theme(--breakpoint-sm)) {
|
|
85
|
+
font-size: 18px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
td {
|
|
90
|
+
padding-top: 12px;
|
|
91
|
+
padding-bottom: 12px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
table.has-fixed-layout {
|
|
95
|
+
table-layout: fixed;
|
|
96
|
+
|
|
97
|
+
th,
|
|
98
|
+
td {
|
|
99
|
+
white-space: normal;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@import 'tailwindcss' prefix(wbtr);
|
|
2
|
+
@source "../views/";
|
|
3
|
+
@source "../core-components/";
|
|
4
|
+
@source "../blocks/";
|
|
5
|
+
@source "../../app/";
|
|
6
|
+
|
|
7
|
+
/* Tailwind Config */
|
|
8
|
+
@import './common/_theme';
|
|
9
|
+
@import './common/_utilities';
|
|
10
|
+
|
|
11
|
+
/** Common **/
|
|
12
|
+
@import './common/_global';
|
|
13
|
+
@import './common/_editor';
|
|
14
|
+
|
|
15
|
+
/** Components */
|
|
16
|
+
@import './components/_table';
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.header {
|
|
2
|
+
&.is-sticky {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
z-index: 50;
|
|
8
|
+
transition: transform 0.2s ease-in-out;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.admin-bar {
|
|
13
|
+
.header.is-sticky {
|
|
14
|
+
padding-top: 32px;
|
|
15
|
+
|
|
16
|
+
/* stylelint-disable-next-line */
|
|
17
|
+
@media screen and (max-width: 782px) {
|
|
18
|
+
padding-top: 46px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* Post loop pagination */
|
|
2
|
+
.wp-block-query-pagination {
|
|
3
|
+
display: flex;
|
|
4
|
+
position: relative;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
color: var(--color-primary);
|
|
7
|
+
font-size: 1rem;
|
|
8
|
+
|
|
9
|
+
a:hover {
|
|
10
|
+
text-decoration: underline;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wp-block-query-pagination-previous {
|
|
14
|
+
position: absolute;
|
|
15
|
+
left: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.wp-block-query-pagination-next {
|
|
19
|
+
position: absolute;
|
|
20
|
+
right: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.page-numbers.current {
|
|
24
|
+
color: var(--color-primary);
|
|
25
|
+
font-size: 1.125rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wp-block-query & {
|
|
29
|
+
> .wp-block-query-pagination-numbers,
|
|
30
|
+
> .wp-block-query-pagination-previous,
|
|
31
|
+
> .wp-block-query-pagination-next {
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|