Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tei-reader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Mark Hall
tei-reader
Commits
c9e4192e
Commit
c9e4192e
authored
6 years ago
by
Mark Hall
Browse files
Options
Downloads
Patches
Plain Diff
Updated docs to include small screen details
parent
da054848
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/styling.rst
+55
-2
55 additions, 2 deletions
doc/styling.rst
with
55 additions
and
2 deletions
doc/styling.rst
+
55
−
2
View file @
c9e4192e
...
...
@@ -112,6 +112,52 @@ Full example:
<ul>
</nav>
Small devices
-------------
On small devices the navigation layout changes and moves the navigation to the top of the screen. Only the current
navigation entry is shown by default. To see the other items, the user must click on the menu icon. The basic structure
is as follows:
.. code-block:: html
<nav>
<div class="menu-toggle">
<svg viewBox="0 0 24 24">
<path d="..."/>
</svg>
</div>
<div class="menu-container">
<ul>
<!-- Just the current navigation entry as described above -->
</ul>
</div>
</nav>
After the user clicks on the menu icon, the HTML structure is updated to the following:
.. code-block:: html
<nav>
<div class="menu-toggle">
<svg viewBox="0 0 24 24">
<path d="..."/>
</svg>
</div>
<div class="menu-container">
<ul>
<!-- Just the current navigation entry as described above -->
</ul>
<div class="menu-overlay">
<div class="full-menu">
<ul>
<-- Full list of navigation entries as above -->
</ul>
</div>
</div>
</div>
</nav>
Annotations
===========
...
...
@@ -134,7 +180,7 @@ Each annotation is structured as follows:
<div class="action">
<a>
<svg viewBox="0 0 24 24">
<path d="..."
></path
>
<path d="..."
/
>
</svg>
</a>
</div>
...
...
@@ -157,7 +203,7 @@ Full example:
<div class="action">
<a>
<svg viewBox="0 0 24 24">
<path d="..."
></path
>
<path d="..."
/
>
</svg>
</a>
</div>
...
...
@@ -165,3 +211,10 @@ Full example:
<dd>This is what an example annotation can look like.</dd>
</dl>
</aside>
Small devices
-------------
There is no difference in the generated HTML structure between large and small device sizes. However, for small
devices, annotations are shown at the bottom of the display, only one annotation is visible at any time, and the
annotation HTML is only generated when an annotation has been selected by the user.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment