Skip to content

Commit

Permalink
Fix top background during animation (desktop and mobile)
Browse files Browse the repository at this point in the history
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
  • Loading branch information
rdwebdesign committed Aug 25, 2022
1 parent c939e32 commit 07866de
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions style/themes/lcars.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*** Main variables ***/
:root {
--sidebar-width: 230px;
--gradient-pos: 300px;
--gradient-pos: 304px;
--primary-color: #48f;
--text-color: #9ab;
--net-never-color: #000;
Expand All @@ -18,7 +18,7 @@
}

.sidebar-open {
--gradient-pos: 70px;
--gradient-pos: 74px;
}

/*** General ***/
Expand Down Expand Up @@ -661,11 +661,7 @@ p.login-box-msg,
}

.content-wrapper {
background-image: linear-gradient(
to right,
#cce6ff calc(300px - var(--sidebar-width)),
#000 calc(300px - var(--sidebar-width))
),
background-image: linear-gradient(to left, #000 4px, #cce6ff 4px),
linear-gradient(
to left,
#48f 359.5px,
Expand Down Expand Up @@ -1051,7 +1047,7 @@ footer a:focus {
}

.main-footer > div {
margin: 5px;
margin: 5px !important;
}

.main-footer > div div {
Expand Down Expand Up @@ -1656,17 +1652,9 @@ table.dataTable {
border-radius: 0;
}
.content-wrapper {
background-image: linear-gradient(to right, #000 4px, #48f 4px),
linear-gradient(
to right,
#cce6ff var(--gradient-pos),
#000 var(--gradient-pos),
#000 calc(4px + var(--gradient-pos)),
transparent
);
background-size: 100% 50px, var(--gradient-pos) 50px;
background-image: linear-gradient(to left, #000 4px, #cce6ff 4px), linear-gradient(#48f, #48f);
background-size: var(--gradient-pos) 50px, 100% 50px;
background-repeat: no-repeat;
background-position: calc(var(--gradient-pos)) 4px, 0 4px;
}
.content {
padding: 20px;
Expand Down

0 comments on commit 07866de

Please sign in to comment.