SoapboxConfig: site preview
This commit is contained in:
parent
58d5b1940e
commit
93d2e83584
8 changed files with 113 additions and 80 deletions
Binary file not shown.
BIN
app/soapbox/features/soapbox_config/components/site_preview.js
Normal file
BIN
app/soapbox/features/soapbox_config/components/site_preview.js
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -5,6 +5,7 @@
|
|||
flex: 0 0 auto;
|
||||
overflow-y: auto;
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
|
|
|
@ -705,3 +705,33 @@ code {
|
|||
cursor: pointer;
|
||||
color: $error-red;
|
||||
}
|
||||
|
||||
.site-preview {
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
height: 164px;
|
||||
border: 1px solid;
|
||||
margin-bottom: 40px;
|
||||
background: var(--background-color);
|
||||
|
||||
* {
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.ui {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.page {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
body.halloween {
|
||||
.halloween,
|
||||
.site-preview.halloween {
|
||||
// Set brand color to orange
|
||||
--brand-color_h: 29.727272727272727;
|
||||
--brand-color_s: 100%;
|
||||
|
@ -14,8 +15,8 @@ body.halloween {
|
|||
// Full-screen pseudo-elements to hold BG graphics
|
||||
&::before,
|
||||
&::after,
|
||||
.app-holder::before,
|
||||
.app-holder::after {
|
||||
> .app-holder::before,
|
||||
> .app-holder::after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: fixed;
|
||||
|
@ -42,7 +43,7 @@ body.halloween {
|
|||
animation: halloween-twinkle 200s linear infinite;
|
||||
}
|
||||
|
||||
.app-holder {
|
||||
> .app-holder {
|
||||
// Vignette
|
||||
&::before {
|
||||
background-image: radial-gradient(
|
||||
|
@ -58,7 +59,6 @@ body.halloween {
|
|||
background: transparent url("../images/halloween/clouds.png") repeat top center;
|
||||
animation: halloween-clouds 200s linear infinite;
|
||||
}
|
||||
}
|
||||
|
||||
// Dangling spider
|
||||
.ui .page__top::after,
|
||||
|
@ -144,6 +144,7 @@ body.halloween {
|
|||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Animations
|
||||
|
|
|
@ -24,7 +24,8 @@ Examples:
|
|||
--primary-text-color--faint
|
||||
*/
|
||||
|
||||
body {
|
||||
body,
|
||||
.site-preview {
|
||||
// Primary variables
|
||||
--brand-color: hsl(var(--brand-color_hsl));
|
||||
--accent-color: hsl(var(--accent-color_hsl));
|
||||
|
@ -56,7 +57,7 @@ body {
|
|||
--warning-color--faint: hsla(var(--warning-color_hsl), 0.5);
|
||||
}
|
||||
|
||||
body.theme-mode-light {
|
||||
.theme-mode-light {
|
||||
// Primary variables
|
||||
--foreground-color: #ffffff;
|
||||
--highlight-text-color: hsl(
|
||||
|
@ -85,7 +86,7 @@ body.theme-mode-light {
|
|||
);
|
||||
}
|
||||
|
||||
body.theme-mode-dark {
|
||||
.theme-mode-dark {
|
||||
// Primary variables
|
||||
--foreground-color: #222222;
|
||||
--highlight-text-color: hsl(
|
||||
|
|
Loading…
Reference in a new issue