Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M3P2 HTML Generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3P2
M3P2 HTML Generator
Commits
09dc654e
Commit
09dc654e
authored
May 05, 2019
by
Goutte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force the menu to be the mobile menu.
This is a simple fix, but it does the job.
parent
ad9dd409
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
14 deletions
+47
-14
custom.css
user/themes/textbook/css/custom.css
+36
-1
base.html.twig
user/themes/textbook/templates/partials/base.html.twig
+11
-13
No files found.
user/themes/textbook/css/custom.css
View file @
09dc654e
...
...
@@ -101,6 +101,37 @@ iframe.geogebra {
/* margin: 0;*/
/*}*/
/** Desktop header navigation *****************************************************************************************/
/*nav.dropmenu > ul > li > ul > li {*/
/* font-size: 0.8em;*/
/*}*/
/*nav.dropmenu > ul > li ul li a {*/
/* min-width: 11rem;*/
/*}*/
/*nav.dropmenu ul {*/
/* white-space: initial;*/
/*}*/
.mobile-menu
{
display
:
block
;
}
.mobile-menu
details
[
open
]
>
summary
~
*
{
animation
:
sweep
.5s
ease-in-out
;
}
@keyframes
sweep
{
0
%
{
opacity
:
0
;
margin-left
:
-10px
}
100
%
{
opacity
:
1
;
margin-left
:
0px
}
}
/*.relative{position:relative!important}*/
/*#header {*/
/* padding-right: 4em;*/
/*}*/
/** Mobile navigation without javascript ******************************************************************************/
/** We're using the checkbox hack. **/
...
...
@@ -116,7 +147,7 @@ iframe.geogebra {
cursor
:
pointer
;
width
:
42px
;
height
:
42px
;
position
:
fixed
;
position
:
absolute
;
right
:
0.8em
;
top
:
0.8em
;
z-index
:
200
;
...
...
@@ -124,6 +155,10 @@ iframe.geogebra {
opacity
:
0
;
}
#mobile-navigation-toggle
:checked
{
position
:
fixed
;
}
.mobile-menu
.button_container
:hover
{
opacity
:
.95
;
}
#mobile-navigation-toggle
:checked
~
.mobile-menu
.button_container
{
position
:
fixed
;
}
...
...
user/themes/textbook/templates/partials/base.html.twig
View file @
09dc654e
...
...
@@ -47,19 +47,17 @@
{%
include
'partials/logo.html.twig'
%}
</section>
<section
class=
"navbar-section desktop-menu"
>
<nav
class=
"dropmenu animated"
>
{%
block
header_navigation
%}
{%
include
'partials/navigation.html.twig'
%}
{%
endblock
%}
</nav>
{%
if
config.plugins.login.enabled
and
grav.user.username
%}
<span
class=
"login-status-wrapper"
><i
class=
"fa fa-user"
></i>
{%
include
'partials/login-status.html.twig'
%}
</span>
{%
endif
%}
</section>
{# The old desktop menu, oh so buggy with big titles and going off-screen #}
{# <section class="navbar-section desktop-menu">#}
{# <nav class="dropmenu animated">#}
{#
{
% block header_navigation %}#}
{#
{
% include 'partials/navigation.html.twig' %}#}
{#
{
% endblock %}#}
{# </nav>#}
{#
{
% if config.plugins.login.enabled and grav.user.username %}#}
{# <span class="login-status-wrapper"><i class="fa fa-user"></i>
{
% include 'partials/login-status.html.twig' %}</span>#}
{#
{
% endif %}#}
{# </section>#}
{%
block
header_language_selection_section
%}
<section
class=
"navbar-section"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment