File tree Expand file tree Collapse file tree 5 files changed +30
-12
lines changed Expand file tree Collapse file tree 5 files changed +30
-12
lines changed Original file line number Diff line number Diff line change 8
8
.col-md-6
9
9
div( data-hook ='stats-subview' )
10
10
div( data-hook ='refine-bar' )
11
- .column-container
11
+ .column-container ( data-hook = 'json-sidebar-toggle-class' )
12
12
.column.main
13
13
div( data-hook ='fields-subview' )
14
14
.splitter
15
- button.btn.btn-link.splitter-button
15
+ button.btn.btn-link.splitter-button.splitter-button-open
16
16
i.fa.fa-caret-left
17
17
|
18
18
i.fa.fa-file-text-o
19
- button.btn.btn-link.splitter-button.hidden
19
+ button.btn.btn-link.splitter-button.splitter-button-close
20
20
i.fa.fa-file-text-o
21
21
|
22
22
i.fa.fa-caret-right
23
- .column.side ( data-hook = 'collection-side' )
23
+ .column.side
24
24
div( data-hook ='documents-subview' )
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ module.exports = AmpersandView.extend({
29
29
} ,
30
30
'open' : {
31
31
type : 'booleanClass' ,
32
- yes : 'is -open' ,
33
- hook : 'collection-side '
32
+ yes : 'sidebar -open' ,
33
+ hook : 'json-sidebar-toggle-class '
34
34
}
35
35
} ,
36
36
children : {
Original file line number Diff line number Diff line change 116
116
font-size : 11px ;
117
117
border-left : 2px solid @gray7 ;
118
118
right : -12px ;
119
-
120
- & .is-open {
121
- width : 400px ;
122
- }
119
+ top : 30px ;
123
120
}
124
121
125
122
.splitter {
126
123
width : 20px ;
127
124
height : 20px ;
128
125
position : relative ;
129
- right : 20px ;
126
+ right : 10px ;
127
+ transition : right 250ms ease ;
130
128
}
131
129
.splitter-button {
132
130
outline : none ;
141
139
color : @green2 ;
142
140
}
143
141
}
142
+ .splitter-button-close {
143
+ display : none ;
144
+ }
145
+ .column-container.sidebar-open {
146
+ .side {
147
+ width : 33% ;
148
+ }
149
+ .splitter {
150
+ right : -15px ;
151
+ }
152
+ .splitter-button-open {
153
+ display : none ;
154
+ }
155
+ .splitter-button-close {
156
+ display : inline-block ;
157
+ }
158
+ }
144
159
}
145
160
Original file line number Diff line number Diff line change 22
22
23
23
font-family : @font-family-monospace ;
24
24
font-size : 11px ;
25
+ padding-bottom : 10px ;
26
+ margin-bottom : 10px ;
27
+ border-bottom : 1px solid @gray7 ;
25
28
26
29
.jsobject {
27
30
margin-left : 8px ;
Original file line number Diff line number Diff line change 1
- .jsobject
1
+ .jsobject.clearfix
2
2
div( data-hook ='members-container' )
You can’t perform that action at this time.
0 commit comments