-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
138 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.0.4 | ||
2.0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
assets/components/atoms/nav-toggle-mobile/nav-toggle-mobile.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* global $ */ | ||
|
||
$(document).ready(function($){ | ||
|
||
$('html').addClass('redpandas-will-rule-the-world'); | ||
|
||
$('#search-mobile-toggle').click(function(event){ | ||
|
||
var searchContainer = $('.search-mobile'); | ||
var searchField = searchContainer.find('.form-control'); | ||
|
||
searchContainer.toggleClass('show'); | ||
$('body').toggleClass('search-open'); | ||
|
||
if ( searchContainer.hasClass('show') ) { | ||
searchField.focus(); | ||
} | ||
|
||
}); | ||
|
||
$('#search-mobile-close').click(function(event){ | ||
|
||
var searchContainer = $('.search-mobile'); | ||
var searchField = searchContainer.find('.form-control'); | ||
|
||
searchContainer.removeClass('show'); | ||
$('body').removeClass('search-open'); | ||
|
||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
<form action="#" class="d-xl-none"> | ||
<a id="search-mobile-toggle" class="search-mobile-toggle searchform-controller" href="#"> | ||
{% include '@atoms/icon/icon.twig' with { icon: 'icon-search' } %} | ||
<span class="toggle-label sr-only">Afficher / masquer le formulaire de recherche</span> | ||
</a> | ||
<div class="input-group search-mobile" role="search"> | ||
<div class="input-group-prepend"> | ||
<span class="input-group-text"> | ||
{% include '@atoms/icon/icon.twig' with { icon: 'icon-search' } %} | ||
</span> | ||
</div> | ||
<label for="search" class="sr-only">Rechercher sur le site</label> | ||
<input type="text" class="form-control" name="search" placeholder="Rechercher"> | ||
<label for="search" class="sr-only">Rechercher sur le site</label> | ||
<input type="text" class="form-control" name="search" placeholder="Rechercher"> | ||
<div class="input-group-append"> | ||
<a id="search-mobile-close" class="search-mobile-close searchform-controller" href="#"> | ||
{% include '@atoms/icon/icon.twig' with { icon: 'icon-close' } %} | ||
<span class="toggle-label sr-only">Masquer le formulaire de recherche</span> | ||
</a> | ||
</div> | ||
</div> | ||
</form> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -343,7 +343,7 @@ a.nav-arrow { | |
} | ||
|
||
.nav-lang { | ||
bottom: 0; | ||
//bottom: 0; | ||
} | ||
|
||
.nav-lang-mobile { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters