Skip to content

Commit 9741472

Browse files
authored
Merge pull request #229 from canjs/revert
Revert all my bad style changes :(
2 parents f06c8d6 + b2f7681 commit 9741472

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

static/mobile.less

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,24 @@ label[for="nav-trigger"] {
1717
font-weight: 700;
1818
.border-radius;
1919
z-index: 99;
20-
transition: background @transition-speed;
20+
transition: background .25s;
2121
}
2222
label:hover{
2323
background: @border-color;
2424
}
2525
.nav-trigger:checked + label{
26-
left: @sidebar-width + @gutter*2;
27-
transition: left @transition-speed*2;
26+
left: @sidebar-width + @gutter*2;
2827
}
2928
.nav-trigger ~ #everything #right {
3029
width: 100%;
3130
}
3231
.nav-trigger:checked ~ #everything #right {
33-
@media screen and (max-width: @breakpoint){
34-
flex-shrink: 0;
35-
width: auto;
36-
position: fixed;
37-
left: @sidebar-width;
38-
overflow-x: hidden;
39-
z-index: 50;
40-
}
32+
flex-shrink: 0;
33+
width: auto;
34+
position: fixed;
35+
left: @sidebar-width;
36+
overflow-x: hidden;
37+
z-index: 50;
4138
}
4239
.nav-trigger + label {
4340
.transition-left

static/sidebar.less

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,11 @@
1010
color: white;
1111
font-weight: 300;
1212
}
13-
@media screen and (min-width: @breakpoint) {
14-
display: block;
13+
@media screen and (min-width: @breakpoint) {
14+
display: block;
1515
}
1616
}
1717

18-
#everything #left{
19-
@media screen and (min-width: @breakpoint){
20-
display: none;
21-
}
22-
}
23-
2418
// ----- SOCIAL BUTTONS FOR MOBILE VIEW -----
2519
ul.social-side{
2620
margin: 0;

static/variables.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
@gutter: 15px;
1515
@breakpoint: 1000px;
1616
@sidebar-width: 250px;
17-
@transition-speed: .25s;
1817

1918
/*----- TYPE -----*/
2019
@font-weight-heading: 500;

0 commit comments

Comments
 (0)