Prototype #1

Merged
alk-spriet merged 14 commits from prototype into master 2022-02-03 15:23:26 +01:00
12 changed files with 91 additions and 54 deletions

View File

@ -6,24 +6,18 @@ domain("ltg-admin.alkemics.com") {
--color2: hsl(261, 80%, 59%); --color2: hsl(261, 80%, 59%);
--duration: 30s; --duration: 30s;
} }
.Navbar::before { .AuthLayoutFooter,
z-index: -10; .Navbar.navbar.bg-inverse {
content: ""; background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color1) 75%);
position: absolute;
top: 0;
left: 0;
width: calc(100% + var(--stripe-size));
height: 100%;
background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color2) 50%, var(--color1) 50%, var(--color1) 75%);
background-size: var(--stripe-size) var(--stripe-size); background-size: var(--stripe-size) var(--stripe-size);
animation: stripeTransform var(--duration) linear infinite; animation: alkegrad var(--duration) linear infinite;
} }
@keyframes stripeTransform { @keyframes alkegrad {
0% { from {
transform: translateX(0); background-position: 0 0;
} }
100% { to {
transform: translateX(calc(var(--stripe-size) * -1)); background-position: var(--stripe-size) 0;
} }
} }
} }

View File

@ -1,28 +1,22 @@
@-moz-document domain("int.alkemics.com") { @-moz-document domain("int.alkemics.com") {
:root { :root {
--stripe-size: 100px; --stripe-size: 100px;
--color1: hsl(195, 70%, 45%); --color1: hsl(205, 70%, 45%);
--color2: hsl(195, 70%, 50%); --color2: hsl(205, 70%, 50%);
--duration: 30s; --duration: 30s;
} }
.Navbar::before { .AuthLayoutFooter,
z-index: -10; .Navbar.navbar.bg-inverse {
content: ""; background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color1) 75%);
position: absolute;
top: 0;
left: 0;
width: calc(100% + var(--stripe-size));
height: 100%;
background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color2) 50%, var(--color1) 50%, var(--color1) 75%);
background-size: var(--stripe-size) var(--stripe-size); background-size: var(--stripe-size) var(--stripe-size);
animation: stripeTransform var(--duration) linear infinite; animation: alkegrad var(--duration) linear infinite;
} }
@keyframes stripeTransform { @keyframes alkegrad {
0% { from {
transform: translateX(0); background-position: 0 0;
} }
100% { to {
transform: translateX(calc(var(--stripe-size) * -1)); background-position: var(--stripe-size) 0;
} }
} }
} }

View File

@ -1,28 +1,27 @@
@-moz-document domain("ppr-stream.alkemics.com") { @-moz-document domain("ppr-stream.alkemics.com"),
domain("ppr-admin.alkemics.com") {
:root { :root {
--stripe-size: 100px; --stripe-size: 100px;
--color1: hsl(194, 71%, 30%); --color1: hsl(194, 71%, 30%);
--color2: hsl(194, 77%, 35%); --color2: hsl(194, 77%, 35%);
--duration: 30s; --duration: 20s;
} }
.Navbar::before { .AuthLayoutFooter,
z-index: -10; .Navbar.navbar.Navbar--PPR.bg-inverse {
content: ""; background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color1) 50%, var(--color1) 75%);
position: absolute;
top: 0;
left: 0;
width: calc(100% + var(--stripe-size));
height: 100%;
background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color2) 50%, var(--color1) 50%, var(--color1) 75%);
background-size: var(--stripe-size) var(--stripe-size); background-size: var(--stripe-size) var(--stripe-size);
animation: stripeTransform var(--duration) linear infinite; animation: alkegrad var(--duration) linear infinite;
} }
@keyframes stripeTransform { .AuthLayoutFooter {
0% { --stripe-size: 200px;
transform: translateX(0); --duration: 40s;
} }
100% { @keyframes alkegrad {
transform: translateX(calc(var(--stripe-size) * -1)); from {
background-position: 0 0;
}
to {
background-position: var(--stripe-size) 0;
} }
} }
} }

View File

@ -1,5 +1,7 @@
@-moz-document domain("stream.alkemics.com") { @-moz-document domain("stream.alkemics.com"),
.Navbar.bg-inverse { domain("admin.alkemics.com") {
.AuthLayoutFooter,
.Navbar.navbar.bg-inverse {
background: linear-gradient(-45deg, #00e1d0, #00c4ff, #0562e8, #8a25f9); background: linear-gradient(-45deg, #00e1d0, #00c4ff, #0562e8, #8a25f9);
background-size: 400% 100% !important; background-size: 400% 100% !important;
animation: salsigrad 60s linear infinite !important; animation: salsigrad 60s linear infinite !important;

View File

@ -1,6 +1,10 @@
# xStyle custom CSS for Alkemics front # xStyle custom CSS for Alkemics front
This content aims to change a little the Alkemics interface to help you recognise at glance certains informations. It also refresh the interface a little. ## What is this?
This content aims to change a little the Alkemics interface to help you recognise at a glance certains informations. It also refresh the interface a little. Changes are made inside your broswer via an extension, so it doesn't reflect elsewhere.
![example of banner](/public/illustration.png)
## Give me an example ## Give me an example

View File

@ -2,7 +2,7 @@
domain("ppr-stream.alkemics.com"), domain("ppr-stream.alkemics.com"),
domain("ltg-stream.alkemics.com"), domain("ltg-stream.alkemics.com"),
domain("int.alkemics.com") { domain("int.alkemics.com") {
.mdi-account::before { #navbar-profile .dropdown-toggle .mdi-account::before {
content: "\F4DC"; content: "\F4DC";
color: orange; color: orange;
} }

View File

@ -2,7 +2,7 @@
domain("ppr-stream.alkemics.com"), domain("ppr-stream.alkemics.com"),
domain("ltg-stream.alkemics.com"), domain("ltg-stream.alkemics.com"),
domain("int.alkemics.com") { domain("int.alkemics.com") {
.mdi-account::before { #navbar-profile .dropdown-toggle .mdi-account::before {
content: "\F20F"; content: "\F20F";
color: turquoise; color: turquoise;
} }

BIN
public/illustration.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
public/user-orange-shop.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

28
testing/test.css Normal file
View File

@ -0,0 +1,28 @@
:root {
--stripe-size: 100px;
--color1: hsl(194, 71%, 30%);
--color2: hsl(194, 77%, 35%);
--duration: 20s;
}
div {
height: var(--stripe-size);
width: calc(var(--stripe-size) * 7);
margin: auto;
border: 1px solid black;
}
div {
background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color1) 50%, var(--color1) 75%);
background-size: var(--stripe-size) var(--stripe-size);
animation: alkegrad var(--duration) linear infinite;
}
@keyframes alkegrad {
from {
background-position: 0 0;
}
to {
background-position: var(--stripe-size) 0;
}
}

16
testing/test.html Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="./test.css" rel="stylesheet">
</head>
<body>
<div></div>
</body>
</html>