Skip to content

Commit

Permalink
Added small animation to switching sources/files in codeMirror editor (
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhhelgeson authored Dec 4, 2023
1 parent 6ab3292 commit 21b1a14
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/SampleLayout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,21 @@ nav.sourceFileNav li a {
background-color: #403e3e;
}

nav.sourceFileNav li:hover {
height: 100%;
box-shadow: 0 -10px 0 0 rgb(167, 167, 167);
border-radius: 10px
}

nav.sourceFileNav li a[data-active=true] {
background-color: #282823;
}

nav.sourceFileNav li:has(a[data-active=true]) {
box-shadow: 0 -10px 0 0 rgb(167, 167, 167);
border-radius: 10px;
}

.sourceFileContainer {
overflow: hidden;
height: 0;
Expand All @@ -47,4 +58,4 @@ nav.sourceFileNav li a[data-active=true] {

.sourceFileContainer :global(.CodeMirror) {
margin-top: 0;
}
}

0 comments on commit 21b1a14

Please sign in to comment.