Skip to content

Commit 13ff3d6

Browse files
committed
Remove bugs from the mobile view of header
1 parent 9d657af commit 13ff3d6

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

themes/vocabulary_theme/templates/layout.html

+5-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1" />
44
<link rel="shortcut icon" type="image/x-icon" href="{{ '/static/favicon.ico'|url }}">
5-
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet"
6-
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
75
<link rel="stylesheet" href="{{ '/static/gen/style.css'|url }}">
86
<link rel="stylesheet" href="{{ get_pygments_stylesheet()|url }}">
9-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@creativecommons/vocabulary@1.0.0-beta.14/css/vocabulary.css">
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@creativecommons/vocabulary/css/vocabulary.css">
108
<meta property="og:site_name" content="Creative Commons" />
119
<meta property="og:title" content="{{ this.title }}" />
1210
{% if this.description %}
@@ -43,7 +41,7 @@
4341

4442
<body>
4543
<div class="ga-script">{{ generate_google_analytics() }}</div>
46-
<header class="margin-horizontal-xxl">
44+
<header class="bulma">
4745
<nav class="navbar">
4846
<div class="navbar-brand">
4947
{% set cc_logo = site.get('/').attachments.get('open_source.svg') %}
@@ -54,13 +52,13 @@
5452
preserveAspectRatio="xMidYMid meet"
5553
viewBox="0 0 304 73" src="{{ cc_logo|url }}">
5654
</a>
57-
<a role="button" class="navbar-burger is-active" aria-label="menu" aria-expanded="false">
55+
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
5856
<span aria-hidden="true"></span>
5957
<span aria-hidden="true"></span>
6058
<span aria-hidden="true"></span>
6159
</a>
6260
</div>
63-
<div class="navbar-menu is-active">
61+
<div class="navbar-menu">
6462
<div class="navbar-end">
6563
<a class="navbar-item {% if this.is_child_of('/blog') %} is-active{% endif%}" href="{{ '/blog'|url }}">
6664
Blog
@@ -81,7 +79,7 @@
8179
</div>
8280
<div class="navbar-item has-dropdown is-hoverable">
8381
<a class="navbar-link is-arrowless {% if this.is_child_of('/community') %} is-active{% endif%}">Community<i class="icon caret-down"></i></a>
84-
<div class="navbar-dropdown">
82+
<div class="navbar-dropdown is-active">
8583
{% for href, title in [
8684
['/community', 'Join the Community'],
8785
['/community/community-team', 'Community Team'],

webpack/js/main.js

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ $(document).ready(function () {
99

1010
patchAssetIntoDom('/assets/logos/cc/logomark.svg');
1111
patchAssetIntoDom('/assets/logos/cc/letterheart.svg');
12+
13+
// Check for click events on the navbar burger icon
14+
$(".navbar-burger").click(function() {
15+
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
16+
$(".navbar-burger").toggleClass("is-active");
17+
$(".navbar-menu").toggleClass("is-active");
18+
});
1219
});
1320

1421
const getFullyQualifiedUrl = (path, version) => {

webpack/sass/main.scss

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ $brand-theme-light: $orange;
1515
$text-color: $jet-black;
1616
$project-card-theme: $blue;
1717

18-
body {
19-
font-family: 'Source Sans Pro', sans-serif;
20-
}
21-
2218
h2 {
2319
font-weight: 600;
2420
padding-bottom: 0.5rem;
@@ -122,3 +118,4 @@ img {
122118
animation:octocat-wave 560ms ease-in-out
123119
}
124120
}
121+

0 commit comments

Comments
 (0)