Skip to content

Commit

Permalink
Dashboard: sticky header
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Mar 3, 2024
1 parent 214168e commit 4b69440
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions programs/server/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<style>
:root {
--color: black;
--background: linear-gradient(to bottom, #00CCFF, #00D0D0);
--background-color-1: #00CCFF;
--background: linear-gradient(to bottom, var(--background-color-1), #00D0D0);
--chart-background: white;
--shadow-color: rgba(0, 0, 0, 0.25);
--moving-shadow-color: rgba(0, 0, 0, 0.5);
Expand All @@ -33,7 +34,8 @@

[data-theme="dark"] {
--color: white;
--background: #151C2C;
--background-color-1: #151C2C;
--background: var(--background-color-1);
--chart-background: #1b2834;
--shadow-color: rgba(0, 0, 0, 0);
--moving-shadow-color: rgba(255, 255, 255, 0.25);
Expand Down Expand Up @@ -119,6 +121,18 @@
display: flex;
flex-flow: column nowrap;
justify-content: center;

position: sticky;
top: -1rem;
margin-top: -1rem;
margin-left: -1rem;
margin-right: -1rem;
border-top: 1rem solid var(--background-color-1);
border-left: 1rem solid var(--background-color-1);
border-right: 1rem solid var(--background-color-1);
box-sizing: content-box;
z-index: 1000;
background: var(--background-color-1);
}

.inputs.unconnected {
Expand Down

0 comments on commit 4b69440

Please sign in to comment.