From 83f1c769dba0895d65151e675ef6b09d04561000 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 19 Jun 2021 18:33:29 +0200 Subject: css update --- components/play-skip.tsx | 38 +++++++++++++++++++------------------- pages/editor.tsx | 1 + styles/editor.css | 14 +++++++++++--- 3 files changed, 31 insertions(+), 22 deletions(-) diff --git a/components/play-skip.tsx b/components/play-skip.tsx index c63afe7..77e1f9f 100644 --- a/components/play-skip.tsx +++ b/components/play-skip.tsx @@ -1,7 +1,7 @@ export default function PlaySkipIconAni() { return
- + @@ -14,7 +14,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -27,7 +27,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -40,7 +40,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -53,7 +53,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -66,7 +66,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -79,7 +79,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -92,7 +92,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -105,7 +105,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -118,7 +118,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -131,7 +131,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -144,7 +144,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -157,7 +157,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -170,7 +170,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -183,7 +183,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -196,7 +196,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -209,7 +209,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -222,7 +222,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + @@ -235,7 +235,7 @@ export default function PlaySkipIconAni() { fill-rule='evenodd' /> - + diff --git a/pages/editor.tsx b/pages/editor.tsx index 177ec9f..0ab0307 100644 --- a/pages/editor.tsx +++ b/pages/editor.tsx @@ -615,6 +615,7 @@ function TimelineEditor(props: { ; } +// https://material.io/design/navigation/navigation-transitions.html#peer-transitions function DefaultSettings() { var setPlaying = usePlaying((st: any) => st.setPlaying); var setWorkingTimeline = useWorkingTimeline((st: any) => st.setTimeline); diff --git a/styles/editor.css b/styles/editor.css index 296a6b7..7c7bd86 100644 --- a/styles/editor.css +++ b/styles/editor.css @@ -41,6 +41,7 @@ display: block; } +.MuiSwitch-root { margin: -6px 0px; } .settings .inner .section > * { margin-bottom: 8px; } .settings .inner .scroll { top: 32px; @@ -54,11 +55,18 @@ background-color: var(--piss); color: var(--bg); } -.settings .inner .section .settings { - display: grid; - grid-auto-flow: column; +.settings .inner .section .body { + font-size: .875em; + font-weight: 500; } +.MuiSwitch-root .MuiSwitch-thumb { color: var(--c700); } +.MuiSwitch-root .MuiSwitch-track { background-color: var(--c700); } +.MuiSwitch-root .Mui-checked .MuiSwitch-thumb { color: var(--gruble); } +.MuiSwitch-root .Mui-checked + .MuiSwitch-track { background-color: var(--gruble) !important; } +.MuiSwitch-root .Mui-checked { color: var(--gruble) !important; } +.MuiSwitch-root .Mui-checked:hover { background-color: rgba(93, 233, 174, 0.04) !important; } + .settings ::-webkit-scrollbar-track, .settings ::-webkit-scrollbar-track-piece, .settings ::-webkit-scrollbar { -- cgit v1.2.3