@silexlabs/silex 3.0.0-alpha.62 → 3.0.0-alpha.63
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/dist/client/css/admin.css +13 -13
- package/dist/client/js/main.js +1 -1
- package/package.json +1 -1
- package/src/css/_variables.scss +15 -6
- package/src/css/index.scss +0 -9
|
@@ -307,6 +307,15 @@ template {
|
|
|
307
307
|
display: none;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
+
:root {
|
|
311
|
+
--primaryColor: #333333;
|
|
312
|
+
--secondaryColor: #ddd;
|
|
313
|
+
--tertiaryColor: #8873FE;
|
|
314
|
+
--quaternaryColor: #56E3FF;
|
|
315
|
+
--darkerPrimaryColor: #292929;
|
|
316
|
+
--lighterPrimaryColor: #575757;
|
|
317
|
+
}
|
|
318
|
+
|
|
310
319
|
/* stylelint-disable */ /* BASICS */
|
|
311
320
|
.CodeMirror {
|
|
312
321
|
/* Set height, width, borders, and global font properties here */
|
|
@@ -3986,7 +3995,7 @@ form.silex-form footer {
|
|
|
3986
3995
|
margin: 20px 0 0;
|
|
3987
3996
|
}
|
|
3988
3997
|
form.silex-form button, form.silex-form input, form.silex-form optgroup, form.silex-form select, form.silex-form textarea {
|
|
3989
|
-
background-color: #
|
|
3998
|
+
background-color: #292929;
|
|
3990
3999
|
color: #ddd;
|
|
3991
4000
|
padding: 5px;
|
|
3992
4001
|
border: none;
|
|
@@ -4180,13 +4189,13 @@ iframe.enable-squeeze.silex-squeeze-left {
|
|
|
4180
4189
|
}
|
|
4181
4190
|
.page-panel-container .pages .pages__main {
|
|
4182
4191
|
flex: 1;
|
|
4183
|
-
border: 1px solid #
|
|
4192
|
+
border: 1px solid #292929;
|
|
4184
4193
|
background-color: #333333;
|
|
4185
4194
|
}
|
|
4186
4195
|
.page-panel-container .pages .pages__page {
|
|
4187
4196
|
display: flex;
|
|
4188
4197
|
align-items: center;
|
|
4189
|
-
background-color: #
|
|
4198
|
+
background-color: #292929;
|
|
4190
4199
|
border-bottom: 1px solid rgba(0, 0, 0, 0.25);
|
|
4191
4200
|
cursor: pointer;
|
|
4192
4201
|
}
|
|
@@ -4239,7 +4248,7 @@ iframe.enable-squeeze.silex-squeeze-left {
|
|
|
4239
4248
|
line-height: 1;
|
|
4240
4249
|
min-width: 100px;
|
|
4241
4250
|
border: 1px solid #575757;
|
|
4242
|
-
background-color: #
|
|
4251
|
+
background-color: #292929;
|
|
4243
4252
|
}
|
|
4244
4253
|
|
|
4245
4254
|
#gjs {
|
|
@@ -4469,15 +4478,6 @@ iframe.enable-squeeze.silex-squeeze-left {
|
|
|
4469
4478
|
}
|
|
4470
4479
|
/* Normalize css */
|
|
4471
4480
|
/* Silex styles imports */
|
|
4472
|
-
:root {
|
|
4473
|
-
--primaryColor: $primaryColor;
|
|
4474
|
-
--secondaryColor: $secondaryColor;
|
|
4475
|
-
--tertiaryColor: $tertiaryColor;
|
|
4476
|
-
--quaternaryColor: $quaternaryColor;
|
|
4477
|
-
--darkerPrimaryColor: $darkerPrimaryColor;
|
|
4478
|
-
--lighterPrimaryColor: $lighterPrimaryColor;
|
|
4479
|
-
}
|
|
4480
|
-
|
|
4481
4481
|
.container-png::before {
|
|
4482
4482
|
content: " ";
|
|
4483
4483
|
background-image: url("../assets/container.png");
|
package/dist/client/js/main.js
CHANGED
|
@@ -97,7 +97,7 @@ var silex;(()=>{var t={357:function(t){var e;"undefined"!=typeof globalThis?glob
|
|
|
97
97
|
><span>${e.text}</span></div>
|
|
98
98
|
`))}
|
|
99
99
|
</header>
|
|
100
|
-
`,r),document.body.appendChild(r),t.on("load",(()=>{n.view.el.appendChild(r)}))),t.Commands.add(e.command,{run(){e.link&&window.open(e.link),e.attributes.containerClassName&&(n.set("visible",!0),r.classList.remove("gjs-hidden"),t.Canvas.getFrameEl().classList.add("silex-squeeze-left"))},stop(){e.attributes.containerClassName&&(n.set("visible",!1),r.classList.add("gjs-hidden"),t.Canvas.getFrameEl().classList.remove("silex-squeeze-left"))}})})),t.on("load device:select page",(()=>{!function(){const e=n.view.el,r=t.Canvas.getFrameEl();r.classList.remove("enable-squeeze"),setTimeout((()=>{const t=r.getClientRects()[0]?.left,n=e.getClientRects()[0]?.right;t<n||!n?r.classList.add("enable-squeeze"):r.classList.remove("enable-squeeze")}),400),n.get("visible")?r.classList.add("silex-squeeze-left"):r.classList.remove("silex-squeeze-left")}()}))},Nn=document.createElement("div");let In;const Dn="open-settings";let $n="v3";const Rn=nt.plugins.add("settings-dialog",((t,e)=>{try{$n="3.0.0-alpha.
|
|
100
|
+
`,r),document.body.appendChild(r),t.on("load",(()=>{n.view.el.appendChild(r)}))),t.Commands.add(e.command,{run(){e.link&&window.open(e.link),e.attributes.containerClassName&&(n.set("visible",!0),r.classList.remove("gjs-hidden"),t.Canvas.getFrameEl().classList.add("silex-squeeze-left"))},stop(){e.attributes.containerClassName&&(n.set("visible",!1),r.classList.add("gjs-hidden"),t.Canvas.getFrameEl().classList.remove("silex-squeeze-left"))}})})),t.on("load device:select page",(()=>{!function(){const e=n.view.el,r=t.Canvas.getFrameEl();r.classList.remove("enable-squeeze"),setTimeout((()=>{const t=r.getClientRects()[0]?.left,n=e.getClientRects()[0]?.right;t<n||!n?r.classList.add("enable-squeeze"):r.classList.remove("enable-squeeze")}),400),n.get("visible")?r.classList.add("silex-squeeze-left"):r.classList.remove("silex-squeeze-left")}()}))},Nn=document.createElement("div");let In;const Dn="open-settings";let $n="v3";const Rn=nt.plugins.add("settings-dialog",((t,e)=>{try{$n="3.0.0-alpha.63"}catch(t){}console.info("Silex version:",$n),t.Commands.add(Dn,{run:(e,n,{page:r})=>{In=t.Modal.open({title:r?"Page settings":"Site Settings",content:"",attributes:{class:"settings-dialog"}}).onceClose((()=>{n.set("active",0),t.stopCommand(Dn)})),function(t,e,n=t.getModel()){const r=n.get("settings")||{};n.set("settings",r),we(ne`
|
|
101
101
|
<p>The page settings will override site settings, <a href="https://github.com/silexlabs/Silex/wiki/Settings" target="_blank">more info about settings here</a>.</p>
|
|
102
102
|
<form class="silex-form">
|
|
103
103
|
<h2>General settings</h2>
|
package/package.json
CHANGED
package/src/css/_variables.scss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// All colors
|
|
2
2
|
// /!\ Duplicated in the grapesjs/index.ts too => keep in sync
|
|
3
|
-
$primaryColor: #333333
|
|
4
|
-
$secondaryColor: #ddd
|
|
5
|
-
$tertiaryColor: #8873FE
|
|
6
|
-
$quaternaryColor: #56E3FF
|
|
7
|
-
$darkerPrimaryColor: #
|
|
8
|
-
$lighterPrimaryColor: #575757
|
|
3
|
+
$primaryColor: #333333;
|
|
4
|
+
$secondaryColor: #ddd;
|
|
5
|
+
$tertiaryColor: #8873FE;
|
|
6
|
+
$quaternaryColor: #56E3FF;
|
|
7
|
+
$darkerPrimaryColor: #292929;
|
|
8
|
+
$lighterPrimaryColor: #575757;
|
|
9
9
|
|
|
10
10
|
$topBarHeight: 40px;
|
|
11
11
|
$projectBarWidth: 35px;
|
|
@@ -22,3 +22,12 @@ $z-dialog-inline: 10;
|
|
|
22
22
|
$z-loader: 10;
|
|
23
23
|
|
|
24
24
|
$fontFamily: 'Ubuntu', sans-serif;
|
|
25
|
+
|
|
26
|
+
:root {
|
|
27
|
+
--primaryColor: #{$primaryColor};
|
|
28
|
+
--secondaryColor: #{$secondaryColor};
|
|
29
|
+
--tertiaryColor: #{$tertiaryColor};
|
|
30
|
+
--quaternaryColor: #{$quaternaryColor};
|
|
31
|
+
--darkerPrimaryColor: #{$darkerPrimaryColor};
|
|
32
|
+
--lighterPrimaryColor: #{$lighterPrimaryColor};
|
|
33
|
+
}
|
package/src/css/index.scss
CHANGED
|
@@ -20,15 +20,6 @@
|
|
|
20
20
|
// Ubuntu Fonts
|
|
21
21
|
@use "@fontsource/ubuntu";
|
|
22
22
|
|
|
23
|
-
:root {
|
|
24
|
-
--primaryColor: $primaryColor;
|
|
25
|
-
--secondaryColor: $secondaryColor;
|
|
26
|
-
--tertiaryColor: $tertiaryColor;
|
|
27
|
-
--quaternaryColor: $quaternaryColor;
|
|
28
|
-
--darkerPrimaryColor: $darkerPrimaryColor;
|
|
29
|
-
--lighterPrimaryColor: $lighterPrimaryColor;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
23
|
.container-png::before {
|
|
33
24
|
content: " ";
|
|
34
25
|
background-image: url("../assets/container.png");
|