Skip to content

Commit 3ef962e

Browse files
committed
squash! updated IDE stylings
1 parent c0c6fcd commit 3ef962e

3 files changed

Lines changed: 20 additions & 16 deletions

File tree

src/components/demo-sidebar/DemoHeader.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ export const DemoHeader = ({
4949
return (
5050
<div className={classNames("chapter-pill", "rounded-pill")}>
5151
<FontAwesomeIcon icon={"layer-group"} />
52-
<span aria-label={`Chapter ${activeChapter + 1} out of ${headings.length}`}>
52+
<span
53+
aria-label={`Chapter ${activeChapter + 1} out of ${
54+
headings.length
55+
}`}
56+
>
5357
{activeChapter + 1}/{headings?.length}
5458
</span>
5559
</div>
@@ -60,7 +64,9 @@ export const DemoHeader = ({
6064
return (
6165
<Button
6266
aria-label={"Expand or collapse chapters navigation menu"}
63-
className={classNames("w-auto", "caret", "p-0", "ms-2")}
67+
className={classNames("w-auto", "caret", "p-0", "ms-2", {
68+
isNavigationExpanded,
69+
})}
6470
key={"nav-caret"}
6571
id={"nav-caret"}
6672
ref={navCaretRef}

src/demo-sidebar.scss

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,16 @@ $chapter-navigation-link-height: 3rem;
264264

265265
#nav-caret {
266266
border: none;
267+
transition: transform 0.3s cubic-bezier(.25, .8, .25, 1),
268+
background-color 0.3s cubic-bezier(.25, .8, .25, 1);
269+
270+
&.isNavigationExpanded {
271+
transform: rotateZ(180deg);
272+
}
273+
274+
&:hover {
275+
color: $pytch-colour-main-yellow;
276+
}
267277
}
268278
}
269279

@@ -358,18 +368,6 @@ $chapter-navigation-link-height: 3rem;
358368
}
359369
}
360370

361-
.nav-caret {
362-
transition: transform 0.3s cubic-bezier(.25, .8, .25, 1);
363-
364-
&.isNavigationExpanded {
365-
transform: rotateZ(180deg);
366-
}
367-
368-
&:hover {
369-
color: $pytch-colour-main-yellow;
370-
}
371-
}
372-
373371
.loading {
374372
cursor: progress;
375373
}

src/pytch-jr-ide.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
}
199199

200200
height: 100%;
201-
padding: 6px;
201+
padding: 6px 6px 12px;
202202
}
203203

204204
.StageAndActorsOrAssets {
@@ -351,7 +351,7 @@
351351
}
352352

353353
.Junior-InfoPanel-container {
354-
//border-top: $panel-divider-border-spec;
354+
margin-top: 6px;
355355

356356
button.collapse-button {
357357
font-size: 0.75rem;

0 commit comments

Comments
 (0)