This repository was archived by the owner on Sep 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +30
-37
lines changed Expand file tree Collapse file tree 4 files changed +30
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
.dropdown .employ-toggle { text-decoration : none; }
13
13
.dropdown .employ-toggle .click {
14
14
border-radius : 30px ;
15
+ transition : all 0.1s ease-in-out;
15
16
font-size : 14px ;
16
17
padding : 2px 12px ;
17
- color : # 2d2d2d ;
18
+ color : # acacac ;
18
19
}
19
20
20
21
.dropdown .employ-toggle .click : hover {
21
- background-color : # d9d9d9 ;
22
+ background-color : white ;
22
23
}
23
24
24
25
.dropdown ul .expand-dropdown {
Original file line number Diff line number Diff line change 8
8
< title > CSS UI - Dropdown menu</ title >
9
9
10
10
<!-- CSS styles -->
11
- < link rel ="stylesheet " href ="css/style.css ">
11
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css ">
12
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css ">
13
+ < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Open+Sans:400,600&subset=latin-ext ">
14
+ < link rel ="stylesheet " href ="https://css-ui.github.io/css/cssui.min.css ">
15
+ < link rel ="stylesheet " href ="css/style.dropdown.css ">
16
+ < style >
17
+ body {
18
+ background-color : # f2f2f2 ;
19
+ font-family : 'Open Sans' , sans-serif;
20
+ }
21
+ </ style >
12
22
</ head >
13
23
< body >
14
24
< div class ="wrapper " style ="padding: 25px; width: 200px; ">
33
43
</ div >
34
44
35
45
<!-- javascript libraries and plugins -->
36
- < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js "> </ script >
37
- < script src ="js/jquery.dropdown.menu.js "> </ script >
46
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js "> </ script >
47
+ < script >
48
+ $ ( function ( ) {
49
+ $ ( '.employ-toggle' ) . on ( 'click' , function ( ) {
50
+ var dropdown = '.expand-dropdown' ;
51
+ var employ = '.employ-toggle' ;
52
+ $ ( dropdown ) . fadeToggle ( 'fast' ) ;
53
+ $ ( dropdown ) . on ( 'click' , function ( e ) {
54
+ var target = e . target ;
55
+ if ( ! $ ( target ) . is ( employ ) && ! $ ( target ) . parents ( ) . is ( employ ) ) {
56
+ $ ( dropdown ) . hide ( ) ;
57
+ }
58
+ } ) ;
59
+ } ) ;
60
+ } ) ;
61
+ </ script >
38
62
</ body >
39
63
</ html >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments