File tree Expand file tree Collapse file tree 4 files changed +53
-4
lines changed Expand file tree Collapse file tree 4 files changed +53
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
< li class ="main-menu-item {% if current[1] == 'ecosystem' or current[1] == 'hub' %}active{% endif %} ">
8
8
9
- < div class ="ecosystem-dropdown ">
10
- < a id =" dropdownMenuButton " data-toggle =" ecosystem-dropdown ">
9
+ < div id =" dropdownMenuButton " data-toggle =" ecosystem-dropdown " class ="ecosystem-dropdown ">
10
+ < a class =" ecosystem-option with-right-white-arrow ">
11
11
Ecosystem
12
12
</ a >
13
13
< div class ="ecosystem-dropdown-menu ">
41
41
42
42
< li class ="main-menu-item {% if current[1] == 'resources' or current[1] == 'features' %}active{% endif %} ">
43
43
44
- < div class ="resources-dropdown ">
45
- < a id =" resourcesDropdownButton " data-toggle =" resources-dropdown ">
44
+ < div id =" resourcesDropdownButton " data-toggle =" resources-dropdown " class ="resources-dropdown ">
45
+ < a class =" resource-option with-right-white-arrow ">
46
46
Resources
47
47
</ a >
48
48
< div class ="resources-dropdown-menu ">
Original file line number Diff line number Diff line change 242
242
cursor : pointer ;
243
243
}
244
244
245
+ .ecosystem-dropdown , .resources-dropdown {
246
+ .with-right-white-arrow {
247
+ padding-right : rem (32px );
248
+ position : relative ;
249
+ background-image : url ($baseurl + " /assets/images/chevron-right-white.svg" );
250
+ background-size : 7px 12px ;
251
+ background-position : top 7px right 15px ;
252
+ background-repeat : no-repeat ;
253
+ & :hover {
254
+ background-image : url ($baseurl + " /assets/images/chevron-right-orange.svg" );
255
+ }
256
+ }
257
+
258
+ .with-down-white-arrow {
259
+ padding-right : rem (32px );
260
+ position : relative ;
261
+ background-image : url ($baseurl + " /assets/images/chevron-down-white.svg" );
262
+ background-size : 13px 13px ;
263
+ background-position : top 7px right 10px ;
264
+ background-repeat : no-repeat ;
265
+ & :hover {
266
+ background-image : url ($baseurl + " /assets/images/chevron-down-orange.svg" );
267
+ }
268
+ }
269
+ }
270
+
245
271
.dropdown-menu {
246
272
border-radius : 0 ;
247
273
padding : 0 ;
Original file line number Diff line number Diff line change 1
1
$ ( "[data-toggle='ecosystem-dropdown']" ) . on ( "click" , function ( ) {
2
2
toggleDropdown ( $ ( this ) . attr ( "data-toggle" ) ) ;
3
+ toggleArrowClass ( ".ecosystem-option" ) ;
3
4
} ) ;
4
5
5
6
$ ( "[data-toggle='resources-dropdown']" ) . on ( "click" , function ( ) {
6
7
toggleDropdown ( $ ( this ) . attr ( "data-toggle" ) ) ;
8
+ toggleArrowClass ( ".resource-option" ) ;
7
9
} ) ;
8
10
9
11
function toggleDropdown ( menuToggle ) {
@@ -17,3 +19,7 @@ function toggleDropdown(menuToggle) {
17
19
$ ( menuClass ) . addClass ( showMenuClass ) ;
18
20
}
19
21
}
22
+
23
+ function toggleArrowClass ( dropdown ) {
24
+ $ ( dropdown ) . toggleClass ( "with-right-white-arrow with-down-white-arrow" ) ;
25
+ }
You can’t perform that action at this time.
0 commit comments