Skip to content

Commit 22ea1cf

Browse files
change viewmodel-state to sidebar-state
1 parent 1587fc6 commit 22ea1cf

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

src/scss/components/_body.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pagewrap {
5252
}
5353

5454

55-
body[data-viewmodel-state='sidebar-open'] & {
55+
body[data-sidebar-state='open'] & {
5656
transform: translate3d($spacing*2,0,0);
5757
}
5858
}
@@ -65,7 +65,7 @@ main {
6565
transition-property: opacity;
6666
transition-duration: $transition-duration;
6767

68-
body[data-viewmodel-state='sidebar-open'] & {
68+
body[data-sidebar-state='open'] & {
6969
opacity: 0.7;
7070
}
7171
}

src/scss/components/_header.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,9 @@ header {
2222
transition-delay: 0;
2323
}
2424

25-
body[data-viewmodel-state='sidebar-open'] &,
26-
body[data-viewmodel-position='hero'] & {
25+
body[data-sidebar-state='open'] & {
2726
transition-delay: 0;
2827
background: rgba($color-blue,0);
2928
transform: translate3d(0,0,0);
3029
}
31-
32-
body[data-viewmodel-state='sidebar-open'] & {
33-
transition-delay: 0;
34-
// transform: translate3d(10px,10px,0);
35-
}
3630
}

src/scss/components/_overlay.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ overlay {
1212
transition: opacity $transition-duration, transform $transition-duration ease $transition-duration;
1313
z-index: 80;
1414

15-
body[data-viewmodel-state='sidebar-open'] & {
15+
body[data-sidebar-state='open'] & {
1616
cursor: pointer;
1717
opacity: 0;
1818
transform: translate3d(0, 0, 0);

src/scss/components/hero/_base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ hero {
1616
transition-property: opacity;
1717
transition-duration: $transition-duration;
1818

19-
body[data-viewmodel-state='sidebar-open'] & {
19+
body[data-sidebar-state='open'] & {
2020
opacity: 0.7;
2121
transition-delay: $transition-duration;
2222
}

src/scss/components/sidebar/_base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sidebar {
2525
transition-duration: 0;
2626
}
2727

28-
body[data-viewmodel-state='sidebar-open'] & {
28+
body[data-sidebar-state='open'] & {
2929
transition-delay: $transition-duration-slower - $transition-duration-slow;
3030
transform: translate3d($spacing/2,$spacing/2,0);
3131
}

src/scss/components/sidebar/_toggle.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ toggle {
3232
height: 5px;
3333
}
3434

35-
body[data-viewmodel-state='sidebar-open'] & {
35+
body[data-sidebar-state='open'] & {
3636
transform: translate3d(5px,5px,0) rotate(0deg);
3737

3838
bar {

0 commit comments

Comments
 (0)