File tree 5 files changed +154
-10
lines changed
5 files changed +154
-10
lines changed Original file line number Diff line number Diff line change
1
+ .bootSelect {
2
+ position : fixed;
3
+ left : -15px ;
4
+ right : -15px ;
5
+ top : 0 ;
6
+ bottom : 15px ;
7
+ z-index : 88 ;
8
+ background-color : white;
9
+ }
10
+ .bootSelect * {
11
+ border-radius : 0px ;
12
+ }
13
+ .bootSelect .bootSelect-title {
14
+ font-size : 1.5em ;
15
+ text-transform : capitalize;
16
+ }
17
+ .bootSelect .list-container {
18
+ overflow : hidden;
19
+ overflow-y : scroll;
20
+ }
21
+ .bootSelect .list-container a {
22
+ display : block;
23
+ background-color : # fff ;
24
+ border-bottom : solid 1px # ddd ;
25
+ padding : 10px 20px ;
26
+ }
27
+ .bootSelect .list-container a : active {
28
+ background-color : # ddd ;
29
+ }
30
+ .bootSelect .list-container a : hover {
31
+ text-decoration : none;
32
+ }
33
+ .bootSelect .list-container [data-multiple = "true" ] a {
34
+ padding : 10px 20px 10px 10px ;
35
+ }
36
+ .bootSelect .list-container [data-multiple = "true" ] a : before {
37
+ content : '' ;
38
+ background-color : # eee ;
39
+ height : 22px ;
40
+ width : 22px ;
41
+ display : inline-block;
42
+ vertical-align : middle;
43
+ margin-top : -2px ;
44
+ margin-right : 10px ;
45
+ border : solid 1px # ddd ;
46
+ background-image : url ('../img/tick.png' );
47
+ background-repeat : no-repeat;
48
+ background-position : 21px 0px ;
49
+ -webkit-transition : all .2s ;
50
+ transition : all .2s ;
51
+ }
52
+ .bootSelect .list-container [data-multiple = "true" ] a .check : before {
53
+ background-position : 1px 0px ;
54
+ }
55
+ .bootSelect .list-container [data-multiple = "false" ] a .check {
56
+ background-color : # eee ;
57
+ }
Original file line number Diff line number Diff line change
1
+ .bootSelect {
2
+ position : fixed ;
3
+ left : -15px ;
4
+ right : -15px ;
5
+ top : 0 ;
6
+ bottom : 15px ;
7
+ z-index : 88 ;
8
+ background-color : white ;
9
+
10
+ * {
11
+ border-radius : 0px ;
12
+ }
13
+
14
+ .bootSelect-title {
15
+ font-size : 1.5em ;
16
+ text-transform : capitalize ;
17
+ }
18
+ .list-container {
19
+ overflow : hidden ;
20
+ overflow-y : scroll ;
21
+
22
+ a {
23
+ display : block ;
24
+ background-color : #fff ;
25
+ border-bottom : solid 1px #ddd ;
26
+ padding : 10px 20px ;
27
+
28
+ & :active {
29
+ background-color : #ddd ;
30
+ }
31
+ & :hover {
32
+ text-decoration : none ;
33
+ }
34
+
35
+ }
36
+ }
37
+
38
+ .list-container [data- multiple= " true" ]{
39
+ a {
40
+ padding : 10px 20px 10px 10px ;
41
+
42
+ & :before {
43
+ content : ' ' ;
44
+ background-color : #eee ;
45
+ height : 22px ;
46
+ width : 22px ;
47
+ display : inline-block ;
48
+ vertical-align : middle ;
49
+ margin-top : -2px ;
50
+ margin-right : 10px ;
51
+ border : solid 1px #ddd ;
52
+ background-image : url(' ../img/tick.png' ) ;
53
+ background-repeat : no-repeat ;
54
+ background-position : 21px 0px ;
55
+ transition : all .2s ;
56
+ }
57
+
58
+ & .check :before {
59
+ background-position : 1px 0px ;
60
+
61
+ }
62
+ }
63
+ }
64
+ .list-container [data- multiple= " false" ] {
65
+ a {
66
+ & .check {
67
+ background-color : #eee ;
68
+ }
69
+ }
70
+ }
71
+
72
+ }
73
+
Original file line number Diff line number Diff line change 7
7
display : block;
8
8
height : 20px ;
9
9
}
10
+ body * {
11
+ border-radius : 0px !important ;
12
+ }
10
13
.spacer15 {
11
14
height : 15px ;
12
15
}
20
23
background : # fff !important ;
21
24
}
22
25
.btn-download {
23
- background : # eee ;
24
- border : solid 1px # ddd ;
25
- color : # 555 ;
26
+ background : # 3498db ;
27
+ border : solid 1px # 2980b9 ;
28
+ color : # fff ;
26
29
}
27
30
.btn-download : hover {
28
- background : # ddd ;
31
+ background : # 2980b9 ;
32
+ color : # fff ;
33
+ }
34
+ body {
35
+ background-color : # eee ;
29
36
}
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ $(document).ready(function () {
10
10
} ) ;
11
11
$ ( window ) . scroll ( function ( ) {
12
12
var sti = $ ( '.sticky-alt' ) . parent ( ) . offset ( ) . top - 30
13
- console . log ( sti ) ;
13
+ // console.log(sti);
14
14
var scr = $ ( window ) . scrollTop ( )
15
- console . log ( scr ) ;
15
+ // console.log(scr);
16
16
17
17
if ( scr > sti ) {
18
18
$ ( '.sticky-alt' ) . css ( {
@@ -26,4 +26,11 @@ $(window).scroll(function(){
26
26
} ) ;
27
27
}
28
28
29
+ } ) ;
30
+ $ ( '.gotoSmooth' ) . click ( function ( ) {
31
+ var body = $ ( "html, body" ) ;
32
+ body . animate ( {
33
+ scrollTop : $ ( $ ( this ) . attr ( 'href' ) ) . offset ( ) . top - 10
34
+ } , '500' , 'swing' ) ;
35
+ return false ;
29
36
} ) ;
Original file line number Diff line number Diff line change 36
36
< div class ="logo-wrapper-project ">
37
37
< div class ="logo-wrapper-project "> </ div >
38
38
</ div >
39
- < nav class ="navbar navbar-default " role ="navigation ">
39
+ < nav class ="navbar navbar-default navbar-top-static " role ="navigation ">
40
40
< div class ="container-fluid ">
41
41
<!-- Brand and toggle get grouped for better mobile display -->
42
42
< div class ="navbar-header ">
84
84
< div class ="spacer15 "> </ div >
85
85
< div class ="panel panel-default ">
86
86
< div class ="list-group ">
87
- < a class ="list-group-item " href ="#introduction "> < i class ="fa fa-circle-o fa-fw "> </ i > Introduction / Download </ a >
88
- < a class ="list-group-item " href ="#usage "> < i class ="fa fa-circle-o fa-fw "> </ i > Usage</ a >
89
- < a class ="list-group-item " href ="#examples "> < i class ="fa fa-circle-o fa-fw "> </ i > Examples</ a >
87
+ < a class ="list-group-item gotoSmooth " href ="#introduction "> < i class ="fa fa-circle-o fa-fw "> </ i > Introduction</ a >
88
+ < a class ="list-group-item gotoSmooth " href ="#usage "> < i class ="fa fa-circle-o fa-fw "> </ i > Usage</ a >
89
+ < a class ="list-group-item gotoSmooth " href ="#examples "> < i class ="fa fa-circle-o fa-fw "> </ i > Examples</ a >
90
90
</ div >
91
91
</ div >
92
92
</ div >
You can’t perform that action at this time.
0 commit comments