Skip to content

Commit b56e751

Browse files
committed
Tweaks styling; fixes minor bug
1 parent 13a8810 commit b56e751

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

router/static/sc-router.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class SCRouter extends HTMLElement {
4747
if (this._currentView) {
4848
// ...and it's the one we already have, just update it.
4949
if (this._currentView === this._newView) {
50+
// No transitions, so remove the boolean gate.
51+
this._isTransitioningBetweenViews = false;
52+
5053
return this._currentView.update(data);
5154
}
5255

router/static/superstyles.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ sc-view {
3838
transform: scale(0.95);
3939
transition: transform 0.3s cubic-bezier(0,0,0.3,1),
4040
opacity 0.3s cubic-bezier(0,0,0.3,1);
41+
font-size: 20vh;
42+
display: flex;
43+
flex-direction: row;
44+
justify-content: center;
45+
align-items: center;
46+
color: white;
4147
}
4248

4349
sc-view.visible {
@@ -47,20 +53,19 @@ sc-view.visible {
4753
}
4854

4955
.view-home {
50-
background: red;
56+
background: rgb(128,00,64);
5157
}
5258

5359
.view-contact {
54-
background: blue;
60+
background: rgb(00,128,64);
5561
}
5662

5763
.view-about {
58-
background: black;
59-
color: white;
64+
background: rgb(00,64,128);
6065
}
6166

6267
.view-misc {
63-
background: green;
68+
background: rgb(128,64,0);
6469
}
6570

6671
nav {

0 commit comments

Comments
 (0)