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
69f44c94
Commit
69f44c94
authored
May 06, 2019
by
Goutte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Center the hamburger.
parent
d66cd3ec
Pipeline
#191
passed with stage
in 1 minute and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
custom.css
user/themes/textbook/css/custom.css
+18
-10
base.html.twig
user/themes/textbook/templates/partials/base.html.twig
+2
-2
No files found.
user/themes/textbook/css/custom.css
View file @
69f44c94
...
...
@@ -38,7 +38,7 @@ details summary {
cursor
:
pointer
;
}
/****/
/****
******************************************************************************************************************
/
/* Hotfix for https://github.com/getgrav/grav-theme-quark/issues/9 */
/* Must be below 3 or mobile will glitch
...
...
@@ -136,10 +136,13 @@ iframe.geogebra {
/** Mobile navigation without javascript ******************************************************************************/
/** We're using the checkbox hack. **/
.mobile-menu
.button_container
{
right
:
50%
;
}
.mobile-menu
.button_container
.top
,
.mobile-menu
.button_container
.middle
,
.mobile-menu
.button_container
.bottom
{
.mobile-menu
.button_container
.bottom
{
z-index
:
3
;
}
...
...
@@ -148,7 +151,9 @@ iframe.geogebra {
width
:
42px
;
height
:
42px
;
position
:
absolute
;
right
:
0.8em
;
/*right: 0.8em;*/
right
:
50%
;
right
:
calc
(
50%
-
7px
);
top
:
0.8em
;
z-index
:
200
;
...
...
@@ -181,8 +186,8 @@ iframe.geogebra {
text-align
:
left
;
word-break
:
break-word
;
line-height
:
2
rem
;
font-size
:
1.
8
rem
;
line-height
:
1.8
rem
;
font-size
:
1.
6
rem
;
padding
:
0
;
margin
:
0
;
...
...
@@ -196,14 +201,15 @@ iframe.geogebra {
padding-bottom
:
0.1em
;
}
.mobile-menu
ul
ul
ul
{
line-height
:
1.4rem
;
font-size
:
1.4rem
;
}
/*.mobile-menu ul ul ul {*/
/* line-height: 1.4rem;*/
/* font-size: 1.4rem;*/
/*}*/
.mobile-menu
li
summary
{
padding
:
.4em
0.05em
.2em
0.4em
;
}
.mobile-menu
li
>
a
{
padding
:
0.2em
0.1em
0.3em
0.4em
;
display
:
block
;
...
...
@@ -211,9 +217,11 @@ iframe.geogebra {
border-left
:
1px
solid
#424242
;
border-bottom
:
1px
solid
#424242
;
}
.mobile-menu
a
.active
{
font-style
:
italic
;
}
.mobile-menu
ul
{
padding-left
:
0.33rem
;
list-style
:
none
;
...
...
user/themes/textbook/templates/partials/base.html.twig
View file @
69f44c94
...
...
@@ -72,10 +72,10 @@
</section>
</section>
<input
id=
"mobile-navigation-toggle"
type=
"checkbox"
>
<input
id=
"mobile-navigation-toggle"
t
abindex=
"1"
t
ype=
"checkbox"
>
<div
class=
"mobile-menu"
>
<div
class=
"button_container"
id=
"toggle"
tabindex=
"0"
>
<div
class=
"button_container"
>
<span
class=
"top"
></span>
<span
class=
"middle"
></span>
<span
class=
"bottom"
></span>
...
...
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