Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
captainwong
douban-api-proxy
Commits
e7126496
Commit
e7126496
authored
Feb 18, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvement for #83, higher contrast of hamburger menu
Improvement for #84, search is excluded from mobile view
parent
ad40a2b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
style.css
cps/static/css/style.css
+2
-0
layout.html
cps/templates/layout.html
+13
-11
No files found.
cps/static/css/style.css
View file @
e7126496
...
@@ -36,6 +36,8 @@ span.glyphicon.glyphicon-tags {padding-right: 5px;color: #999;vertical-align: te
...
@@ -36,6 +36,8 @@ span.glyphicon.glyphicon-tags {padding-right: 5px;color: #999;vertical-align: te
-moz-box-shadow
:
0
5px
8px
-6px
#777
;
-moz-box-shadow
:
0
5px
8px
-6px
#777
;
box-shadow
:
0
5px
8px
-6px
#777
;
box-shadow
:
0
5px
8px
-6px
#777
;
}
}
.navbar-default
.navbar-toggle
.icon-bar
{
background-color
:
#000
;}
.navbar-default
.navbar-toggle
{
border-color
:
#000
;}
.btn-file
{
position
:
relative
;
overflow
:
hidden
;}
.btn-file
{
position
:
relative
;
overflow
:
hidden
;}
.btn-file
input
[
type
=
file
]
{
position
:
absolute
;
top
:
0
;
right
:
0
;
min-width
:
100%
;
min-height
:
100%
;
font-size
:
100px
;
text-align
:
right
;
filter
:
alpha
(
opacity
=
0
);
opacity
:
0
;
outline
:
none
;
background
:
white
;
cursor
:
inherit
;
display
:
block
;}
.btn-file
input
[
type
=
file
]
{
position
:
absolute
;
top
:
0
;
right
:
0
;
min-width
:
100%
;
min-height
:
100%
;
font-size
:
100px
;
text-align
:
right
;
filter
:
alpha
(
opacity
=
0
);
opacity
:
0
;
outline
:
none
;
background
:
white
;
cursor
:
inherit
;
display
:
block
;}
...
...
cps/templates/layout.html
View file @
e7126496
...
@@ -52,17 +52,19 @@
...
@@ -52,17 +52,19 @@
</button>
</button>
<a
class=
"navbar-brand"
href=
"{{url_for('index')}}"
>
Calibre Web
</a>
<a
class=
"navbar-brand"
href=
"{{url_for('index')}}"
>
Calibre Web
</a>
</div>
</div>
{% if g.user.is_authenticated or g.user.is_anonymous() %}
<form
class=
"navbar-form navbar-left"
role=
"search"
action=
"{{url_for('search')}}"
method=
"GET"
>
<div
class=
"form-group input-group input-group-sm"
>
<input
type=
"text"
class=
"form-control"
name=
"query"
placeholder=
"{{_('Search')}}"
>
<span
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"btn btn-default"
>
{{_('Go!')}}
</button>
</span>
</div>
</form>
{% endif %}
<div
class=
"navbar-collapse collapse"
>
<div
class=
"navbar-collapse collapse"
>
{% if g.user.is_authenticated or g.user.is_anonymous() %}
{% if g.user.is_authenticated or g.user.is_anonymous() %}
<ul
class=
"nav navbar-nav "
>
<ul
class=
"nav navbar-nav "
>
<li>
<form
class=
"navbar-form navbar-left"
role=
"search"
action=
"{{url_for('search')}}"
method=
"GET"
>
<div
class=
"form-group"
>
<input
type=
"text"
class=
"form-control"
name=
"query"
placeholder=
"{{_('Search')}}"
>
</div>
<button
type=
"submit"
class=
"btn btn-default"
>
{{_('Go!')}}
</button>
</form>
</li>
<li><a
href=
"{{url_for('advanced_search')}}"
><span
class=
"glyphicon glyphicon-search"
></span>
{{_('Advanced Search')}}
</a></li>
<li><a
href=
"{{url_for('advanced_search')}}"
><span
class=
"glyphicon glyphicon-search"
></span>
{{_('Advanced Search')}}
</a></li>
</ul>
</ul>
{% endif %}
{% endif %}
...
@@ -80,11 +82,11 @@
...
@@ -80,11 +82,11 @@
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if g.user.role_admin() %}
{% if g.user.role_admin() %}
<li><a
id=
"top_admin"
href=
"{{url_for('admin')}}"
><span
class=
"glyphicon glyphicon-dashboard"
></span>
{{_('Admin')}}
</a></li>
<li><a
id=
"top_admin"
href=
"{{url_for('admin')}}"
><span
class=
"glyphicon glyphicon-dashboard"
></span>
<span
class=
"hidden-sm"
>
{{_('Admin')}}
</span>
</a></li>
{% endif %}
{% endif %}
<li><a
id=
"top_user"
href=
"{{url_for('profile')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
{{g.user.nickname}}
</a></li>
<li><a
id=
"top_user"
href=
"{{url_for('profile')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
<span
class=
"hidden-sm"
>
{{g.user.nickname}}
</span>
</a></li>
{% if not g.user.is_anonymous() %}
{% if not g.user.is_anonymous() %}
<li><a
id=
"logout"
href=
"{{url_for('logout')}}"
><span
class=
"glyphicon glyphicon-log-out"
></span>
{{_('Logout')}}
</a></li>
<li><a
id=
"logout"
href=
"{{url_for('logout')}}"
><span
class=
"glyphicon glyphicon-log-out"
></span>
<span
class=
"hidden-sm"
>
{{_('Logout')}}
</span>
</a></li>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if g.allow_registration and not g.user.is_authenticated %}
{% if g.allow_registration and not g.user.is_authenticated %}
...
...
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