File tree 3 files changed +34
-4
lines changed
themes/vocabulary_theme/templates
3 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 4
4
< link rel ="shortcut icon " type ="image/x-icon " href ="{{ '/static/favicon.ico'|url }} ">
5
5
< link rel ="stylesheet " href ="{{ '/static/gen/style.css'|url }} ">
6
6
< link rel ="stylesheet " href ="{{ get_pygments_stylesheet()|url }} ">
7
- < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/@creativecommons/vocabulary/css/vocabulary.css ">
8
7
< meta property ="og:site_name " content ="Creative Commons " />
9
8
< meta property ="og:title " content ="{{ this.title }} " />
10
9
{% if this.description %}
41
40
42
41
< body >
43
42
< div class ="ga-script "> {{ generate_google_analytics() }}</ div >
44
- < header class =" bulma " >
43
+ < header >
45
44
< nav class ="navbar ">
46
45
< div class ="navbar-brand ">
47
46
{% set cc_logo = site.get('/').attachments.get('open_source.svg') %}
Original file line number Diff line number Diff line change @@ -16,6 +16,22 @@ $(document).ready(function () {
16
16
$ ( ".navbar-burger" ) . toggleClass ( "is-active" ) ;
17
17
$ ( ".navbar-menu" ) . toggleClass ( "is-active" ) ;
18
18
} ) ;
19
+
20
+ $ ( ".navbar-item.has-dropdown" ) . click ( function ( ) {
21
+ if ( $ ( ".navbar-burger" ) . is ( ':visible' ) ) {
22
+ $ ( this ) . toggleClass ( "is-active" ) ;
23
+ }
24
+ } ) ;
25
+ $ ( ".navbar-item > .navbar-link" ) . click ( function ( e ) {
26
+ if ( $ ( ".navbar-burger" ) . is ( ':visible' ) ) {
27
+ e . preventDefault ( ) ;
28
+ }
29
+ } ) ;
30
+ $ ( window ) . resize ( function ( ) {
31
+ if ( ! $ ( ".navbar-burger" ) . is ( ':visible' ) && $ ( ".navbar-item.has-dropdown.is-active" ) . length ) {
32
+ $ ( ".navbar-item.has-dropdown.is-active" ) . removeClass ( 'is-active' ) ;
33
+ }
34
+ } ) ;
19
35
} ) ;
20
36
21
37
const getFullyQualifiedUrl = ( path , version ) => {
Original file line number Diff line number Diff line change
1
+ @import " ../node_modules/@creativecommons/vocabulary/css/vocabulary.css" ;
2
+
1
3
// Color Variables
2
4
$pumpkin : #e15803 ;
3
5
$orange : #FB7928 ;
4
6
$candy : #EE5B32 ;
5
7
$jet-black : #333333 ;
6
8
$grey : rgba (255 , 255 , 255 , 0.6 );
7
9
$blue : #00b5da ;
8
- $white : #fff ;
10
+ $white : #ffffff ;
9
11
10
12
// Color Configs
11
13
$brand-theme : $candy ;
@@ -15,6 +17,20 @@ $brand-theme-light: $orange;
15
17
$text-color : $jet-black ;
16
18
$project-card-theme : $blue ;
17
19
20
+
21
+ .navbar-item {
22
+ & .has-dropdown {
23
+ .navbar-dropdown {
24
+ display : none ;
25
+ }
26
+ & .is-active {
27
+ .navbar-dropdown {
28
+ display : block ;
29
+ }
30
+ }
31
+ }
32
+ }
33
+
18
34
h2 {
19
35
font-weight : 600 ;
20
36
padding-bottom : 0.5rem ;
@@ -118,4 +134,3 @@ img {
118
134
animation :octocat- wave 560ms ease-in-out
119
135
}
120
136
}
121
-
You can’t perform that action at this time.
0 commit comments