Skip to content

Commit af660b2

Browse files
committed
create affix menu
1 parent 5633997 commit af660b2

8 files changed

Lines changed: 359 additions & 257 deletions

File tree

dist/assets/css/main.css

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,28 @@ Website: http://www.onokumus.com
4444

4545
/*********************************************************/
4646

47+
::-webkit-scrollbar {
48+
width: 12px;
49+
height: 12px;
50+
}
51+
52+
::-webkit-scrollbar-thumb {
53+
border-radius: 1em;
54+
}
55+
56+
::-webkit-scrollbar-thumb:hover {
57+
background-color: #999;
58+
}
59+
60+
::-webkit-scrollbar-track {
61+
background: transparent;
62+
border-radius: 1em;
63+
}
64+
65+
::-webkit-scrollbar-track:hover {
66+
background: rgba(110, 110, 110, 0.25);
67+
}
68+
4769
body.padTop53 {
4870
padding-top: 95px;
4971
overflow: visible;
@@ -84,9 +106,28 @@ body.padTop53 {
84106

85107
@media (min-width: 768px) {
86108
#left {
109+
position: relative;
87110
float: left;
88111
width: 100px;
89112
}
113+
#left #menu.affix {
114+
position: fixed;
115+
top: 0;
116+
width: 100px;
117+
overflow-x: hidden;
118+
overflow-y: hidden;
119+
-webkit-overflow-scrolling: touch;
120+
}
121+
#left #menu.affix:hover {
122+
overflow-y: scroll;
123+
}
124+
#left #menu.affix > li:last-child > a:last-child {
125+
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
126+
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
127+
}
128+
body.padTop53 #left #menu.affix {
129+
top: 53px;
130+
}
90131
.side-right #left {
91132
float: right;
92133
}
@@ -106,9 +147,15 @@ body.padTop53 {
106147
#left {
107148
width: 220px;
108149
}
150+
#left #menu.affix {
151+
width: 220px;
152+
}
109153
.mini-sidebar #left {
110154
width: 100px;
111155
}
156+
.mini-sidebar #left #menu.affix {
157+
width: 100px;
158+
}
112159
#content {
113160
margin-left: 220px;
114161
}
@@ -396,8 +443,7 @@ body.padTop53 {
396443

397444
@media (min-width: 768px) {
398445
#menu.collapse {
399-
display: block !important;
400-
height: auto !important;
446+
display: inherit !important;
401447
}
402448
}
403449

dist/assets/css/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/js/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ $(function() {
1111
e.preventDefault();
1212
});
1313

14+
15+
1416
$('a[data-toggle=tooltip]').tooltip();
1517
$('a[data-tooltip=tooltip]').tooltip();
1618

0 commit comments

Comments
 (0)