matcha-theme 20.184.0 → 20.186.0
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/components/matcha-page-builder.scss +172 -0
- package/main.scss +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// matcha-page-builder — Estilos globais para o editor GrapesJS
|
|
3
|
+
// Extraído do index-cdn.html e adaptado como mixin de tema.
|
|
4
|
+
// =============================================================================
|
|
5
|
+
|
|
6
|
+
@mixin matcha-page-builder($theme) {
|
|
7
|
+
|
|
8
|
+
matcha-page-builder {
|
|
9
|
+
display: block;
|
|
10
|
+
height: 1000px;
|
|
11
|
+
min-height: 800px;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.matcha-page-builder {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
.editor-shell {
|
|
22
|
+
flex: 1;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
position: relative;
|
|
25
|
+
|
|
26
|
+
[id^="gjs-"] {
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.editor-controls {
|
|
32
|
+
padding: 16px;
|
|
33
|
+
background: #f5f5f5;
|
|
34
|
+
border-top: 1px solid #ddd;
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: flex-end;
|
|
37
|
+
|
|
38
|
+
button {
|
|
39
|
+
min-width: 80px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Variáveis CSS do GrapesJS
|
|
45
|
+
:root {
|
|
46
|
+
--gjs-main-color: #00970d;
|
|
47
|
+
--gjs-primary-color: #afadb8;
|
|
48
|
+
--gjs-secondary-color: #ddd;
|
|
49
|
+
--gjs-tertiary-color: #804f7b;
|
|
50
|
+
--gjs-quaternary-color: #d278c9;
|
|
51
|
+
--gjs-font-color: #ddd;
|
|
52
|
+
--gjs-font-color-active: #f8f8f8;
|
|
53
|
+
--gjs-main-dark-color: rgba(0, 0, 0, 0.2);
|
|
54
|
+
--gjs-secondary-dark-color: rgba(0, 0, 0, 0.1);
|
|
55
|
+
--gjs-main-light-color: rgba(255, 255, 255, 0.1);
|
|
56
|
+
--gjs-secondary-light-color: rgba(255, 255, 255, 0.7);
|
|
57
|
+
--gjs-soft-light-color: rgba(255, 255, 255, 0.015);
|
|
58
|
+
--gjs-color-blue: #3b97e3;
|
|
59
|
+
--gjs-color-red: #dd3636;
|
|
60
|
+
--gjs-color-yellow: #ffca6f;
|
|
61
|
+
--gjs-color-green: #62c462;
|
|
62
|
+
--gjs-left-width: 15%;
|
|
63
|
+
--gjs-color-highlight: #71b7f1;
|
|
64
|
+
--gjs-color-warn: #ffca6f;
|
|
65
|
+
--gjs-handle-margin: -5px;
|
|
66
|
+
--gjs-light-border: rgba(255, 255, 255, 0.05);
|
|
67
|
+
--gjs-arrow-color: rgba(255, 255, 255, 0.7);
|
|
68
|
+
--gjs-dark-text-shadow: rgba(0, 0, 0, 0.2);
|
|
69
|
+
--gjs-color-input-padding: 22px;
|
|
70
|
+
--gjs-input-padding: 5px;
|
|
71
|
+
--gjs-animation-duration: 0.2s;
|
|
72
|
+
--gjs-main-font: Helvetica, sans-serif;
|
|
73
|
+
--gjs-font-size: 0.75rem;
|
|
74
|
+
--gjs-placeholder-background-color: var(--gjs-color-green);
|
|
75
|
+
--gjs-canvas-top: 40px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Layout principal dos painéis GrapesJS
|
|
79
|
+
.gjs-pn-views-layer,
|
|
80
|
+
.gjs-cv-canvas {
|
|
81
|
+
transition: width 0.3s ease-in-out;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.gjs-pn-buttons {
|
|
85
|
+
align-items: center;
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: start;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.gjs-pn-views-layer {
|
|
91
|
+
box-shadow: initial;
|
|
92
|
+
border-top: 2px solid rgba(0, 0, 0, 0.2);
|
|
93
|
+
top: 40px;
|
|
94
|
+
padding-top: 0;
|
|
95
|
+
height: calc(100% - 40px);
|
|
96
|
+
z-index: 4;
|
|
97
|
+
left: 0;
|
|
98
|
+
width: 15%;
|
|
99
|
+
overflow: auto;
|
|
100
|
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.gjs-pn-views-layers {
|
|
104
|
+
left: 0;
|
|
105
|
+
right: unset;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.gjs-pn-devices-c {
|
|
109
|
+
left: 45%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.gjs-pn-opcoes,
|
|
113
|
+
#gjs-breadcrumbs {
|
|
114
|
+
left: 15%;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.gjs-pn-opcoes.fechado,
|
|
118
|
+
#gjs-breadcrumbs.fechado {
|
|
119
|
+
left: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.gjs-cv-canvas.layer-aberto {
|
|
123
|
+
width: 70%;
|
|
124
|
+
left: 15%;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.gjs-cv-canvas.layer-aberto.code-editor-aberto {
|
|
128
|
+
width: 50%;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.gjs-cv-canvas.code-editor-aberto {
|
|
132
|
+
width: 65%;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.gjs-pn-views-container.code-editor-aberto {
|
|
136
|
+
width: 35%;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Cores utilitárias do GrapesJS
|
|
140
|
+
.gjs-bg-main,
|
|
141
|
+
.gjs-off-prv,
|
|
142
|
+
.gjs-sm-colorp-c {
|
|
143
|
+
background-color: var(--gjs-main-color);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.gjs-color-main,
|
|
147
|
+
.gjs-off-prv,
|
|
148
|
+
.gjs-sm-stack #gjs-sm-add {
|
|
149
|
+
color: var(--gjs-font-color);
|
|
150
|
+
fill: var(--gjs-font-color);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.gjs-color-active {
|
|
154
|
+
color: var(--gjs-font-color-active);
|
|
155
|
+
fill: var(--gjs-font-color-active);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.gjs-color-warn {
|
|
159
|
+
color: var(--gjs-color-warn);
|
|
160
|
+
fill: var(--gjs-color-warn);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.gjs-color-hl {
|
|
164
|
+
color: var(--gjs-color-highlight);
|
|
165
|
+
fill: var(--gjs-color-highlight);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Wrapper do componente Angular
|
|
169
|
+
matcha-page-builder {
|
|
170
|
+
display: block;
|
|
171
|
+
}
|
|
172
|
+
}
|
package/main.scss
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
@import "./components/matcha-chip.scss"; // matcha-chip($theme)
|
|
63
63
|
@import "./components/matcha-date.scss"; // matcha-date($theme)
|
|
64
64
|
@import "./components/matcha-date-range.scss"; // matcha-date-range($theme)
|
|
65
|
+
@import "./components/matcha-page-builder.scss"; // matcha-page-builder($theme)
|
|
65
66
|
|
|
66
67
|
// VENDORS
|
|
67
68
|
@import "./vendors/angular-editor.scss";
|
|
@@ -180,4 +181,5 @@
|
|
|
180
181
|
@include matcha-slider-theme($theme);
|
|
181
182
|
@include matcha-highlight-theme($theme);
|
|
182
183
|
@include matcha-divider-theme($theme);
|
|
184
|
+
@include matcha-page-builder($theme);
|
|
183
185
|
}
|