Skip to content

Commit 6cd729d

Browse files
committed
started working on sidebar open, close interaction
1 parent 8030cde commit 6cd729d

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
.list-group-item
1+
div
22
div(data-hook='doc-subview')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.list-group(data-hook='documents-container')
1+
div(data-hook='documents-container')

scout-ui/src/home/collection.jade

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
.column-container
1212
.column.main
1313
div(data-hook='fields-subview')
14+
.splitter
15+
button.btn.btn-link.splitter-button
16+
i.fa.fa-caret-left
17+
|
18+
i.fa.fa-file-text-o
1419
.column.side
15-
.splitter
16-
i.fa.fa-lg.fa-rotate-90.fa-sort
1720
div(data-hook='documents-subview')

scout-ui/src/home/index.less

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
}
8787
}
8888
.column-container {
89-
padding-right: 20px;
9089
display: flex;
9190
overflow: hidden;
9291
height: 100vh;
@@ -103,6 +102,7 @@
103102
-webkit-overflow-scrolling: touch;
104103
-ms-overflow-style: none;
105104
position: relative;
105+
transition: width 250ms ease;
106106
}
107107

108108
.main {
@@ -114,11 +114,28 @@
114114
width: 350px;
115115
font-family: @font-family-monospace;
116116
font-size: 11px;
117+
border-left: 2px solid @gray7;
118+
right: -12px;
117119
}
118120

119121
.splitter {
120122
width: 20px;
121123
height: 20px;
124+
position: relative;
125+
right: 20px;
126+
}
127+
.splitter-button {
128+
outline: none;
129+
color: @gray1;
130+
text-decoration: none;
131+
132+
&:hover {
133+
text-decoration: none;
134+
}
135+
&:active {
136+
outline: none;
137+
color: @green2;
138+
}
122139
}
123140
}
124141

0 commit comments

Comments
 (0)