Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Netzschleuder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Furkan Gursoy
Netzschleuder
Commits
8c631c11
Commit
8c631c11
authored
Sep 13, 2020
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix header spacing in mobile
This also adds some usability tips.
parent
b9733a1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
25 deletions
+63
-25
static/css/custom.css
static/css/custom.css
+35
-0
templates/main.html
templates/main.html
+28
-25
No files found.
static/css/custom.css
View file @
8c631c11
...
...
@@ -13,6 +13,41 @@ body {
max-width
:
1800px
;
}
@media
screen
and
(
max-width
:
1024px
)
{
.search-header
{
clear
:
both
;
width
:
100%
;
display
:
inline
;
}
.search-bar
{
width
:
100%
;
}
.legend
{
position
:
relative
;
}
.ink-navigation
{
font-size
:
12px
;
}
}
@media
screen
and
(
min-width
:
1025px
)
{
.search-header
{
clear
:
both
;
width
:
100%
;
display
:
inline-block
;
position
:
relative
;
}
.search-bar
{
width
:
30%
;
}
.legend
{
position
:
absolute
;
bottom
:
0
;
width
:
70%
;
}
}
p
,
dd
,
li
{
line-height
:
1.4em
;
}
...
...
templates/main.html
View file @
8c631c11
...
...
@@ -8,33 +8,36 @@ active
{% block content %}
<div
class=
"column-group"
>
<div
class=
"xlarge-100 large-100 small-100 bottom-space"
style=
"padding-right:1em"
>
<form
class=
"ink-form push-right"
style=
"width: 30%;"
action=
"/"
method=
"get"
>
<div
class=
"control-group all-100"
style=
"margin-bottom: 0.5em"
>
<div
class=
"control append-button"
role=
"search"
>
<span>
{% if search is none %}
<input
type=
"text"
name=
"search"
id=
"search"
>
{% else %}
<input
type=
"text"
name=
"search"
id=
"search"
,
value=
"{{search}}"
>
{% endif %}
</span>
<button
class=
"ink-button"
>
Search
</button>
<div
class=
"xlarge-100 large-100 small-100 bottom-space"
>
<div
class=
"search-header"
>
<form
class=
"ink-form push-right search-bar"
action=
"/"
method=
"get"
>
<div
class=
"control-group all-100"
style=
"margin-bottom: 0"
>
<div
class=
"control append-button"
role=
"search"
>
<span>
{% if search is none %}
<input
type=
"text"
name=
"search"
id=
"search"
placeholder=
"Enter arbitrary regexp term"
>
{% else %}
<input
type=
"text"
name=
"search"
id=
"search"
,
value=
"{{search}}"
>
{% endif %}
</span>
<button
class=
"ink-button"
>
Search
</button>
</div>
</div>
</form>
<div
class=
"legend"
>
{% if tags is not none %}
Showing only entries with tags:
{% for tag in tags %}
<span
class=
"ink-label grey"
>
{{ tag }}
</span>
{% endfor %}
<br/>
{% endif %}
{% if search is not none %}
Showing only entries that match regexp: {{search}}
<br/>
{% endif %}
<span
style=
"font-size:x-small"
>
Tip: click on the table header to sort the list. Hover your mouse to obtain a legend.
</span>
</div>
</form>
{% if tags is not none %}
Showing only entries with tags:
{% for tag in tags %}
<span
class=
"ink-label grey"
>
{{ tag }}
</span>
{% endfor %}
{% endif %}
{% if search is not none %}
{% if tags is not none %}
<br/>
{% endif %}
Showing only entries that match regexp: {{search}}
{% endif %}
</div>
<table
class=
"ink-table hover sortable"
>
<thead>
<tr>
...
...
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