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
42707a19
Commit
42707a19
authored
Mar 14, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cosmetics
parent
8c751eb5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
233 additions
and
240 deletions
+233
-240
listen.css
cps/static/css/listen.css
+2
-9
main.css
cps/static/css/main.css
+184
-182
style.css
cps/static/css/style.css
+41
-43
edit_books.js
cps/static/js/edit_books.js
+1
-1
filter_grid.js
cps/static/js/filter_grid.js
+4
-4
main.js
cps/static/js/main.js
+1
-1
No files found.
cps/static/css/listen.css
View file @
42707a19
...
...
@@ -66,19 +66,12 @@ body {
right
:
40px
;
}
xmp
,
pre
,
plaintext
{
pre
{
display
:
block
;
font-family
:
-moz-fixed
;
white-space
:
pre
;
margin
:
1em
0
;
}
pre
{
white-space
:
pre-wrap
;
word-wrap
:
break-word
;
font-family
:
-moz-fixed
;
font-family
:
-moz-fixed
,
sans-serif
;
column-count
:
2
;
-webkit-columns
:
2
;
-moz-columns
:
2
;
...
...
cps/static/css/main.css
View file @
42707a19
This diff is collapsed.
Click to expand it.
cps/static/css/style.css
View file @
42707a19
...
...
@@ -28,6 +28,11 @@ html.http-error {
height
:
100%
;
}
body
{
background
:
#f2f2f2
;
margin-bottom
:
40px
;
}
.http-error
body
{
margin
:
0
;
height
:
100%
;
...
...
@@ -41,11 +46,6 @@ html.http-error {
text-align
:
center
;
}
body
{
background
:
#f2f2f2
;
margin-bottom
:
40px
;
}
body
h2
{
font-weight
:
normal
;
color
:
#444
;
...
...
@@ -56,10 +56,16 @@ a,
.book-remove
,
.editable-empty
,
.editable-empty
:hover
{
color
:
#45b29d
;
}
.book-remove
:hover
{
color
:
#23527c
;
}
.user-remove
:hover
{
color
:
#23527c
;
}
.btn-default
a
{
color
:
#444
;
}
.panel-title
>
a
{
text-decoration
:
none
;
}
.navigation
li
a
{
color
:
#444
;
text-decoration
:
none
;
display
:
block
;
padding
:
10px
;
}
.btn-default
a
:hover
{
color
:
#45b29d
;
...
...
@@ -85,11 +91,17 @@ a.editable-click:hover { border-bottom: None; }
padding-top
:
20px
;
}
.navigation
li
a
{
color
:
#444
;
.book-meta
.tags
a
{
display
:
inline
;
}
table
.bg-primary
a
{
color
:
#fff
;
}
table
.bg-dark-danger
a
{
color
:
#fff
;
}
.book-meta
.identifiers
a
{
display
:
inline
;
}
.navigation
.create-shelf
a
{
color
:
#fff
;
background
:
#45b29d
;
padding
:
10px
20px
;
border-radius
:
5px
;
text-decoration
:
none
;
display
:
block
;
padding
:
10px
;
}
.navigation
li
a
:hover
{
...
...
@@ -105,14 +117,6 @@ a.editable-click:hover { border-bottom: None; }
text-align
:
center
;
}
.navigation
.create-shelf
a
{
color
:
#fff
;
background
:
#45b29d
;
padding
:
10px
20px
;
border-radius
:
5px
;
text-decoration
:
none
;
}
.row.display-flex
{
display
:
flex
;
flex-wrap
:
wrap
;
...
...
@@ -134,17 +138,32 @@ a.editable-click:hover { border-bottom: None; }
display
:
flex
;
flex-direction
:
column
;
}
.cover
{
margin-bottom
:
10px
;
}
.container-fluid
.book
.cover
{
height
:
225px
;
position
:
relative
;
}
.author-link
img
{
display
:
block
;
height
:
100%
;
}
.container-fluid
.book
.cover
span
.img
{
bottom
:
0
;
height
:
100%
;
position
:
absolute
;
}
.author-bio
img
{
margin
:
0
1em
1em
0
;
}
.container-fluid
.single
.cover
img
{
border
:
1px
solid
#fff
;
box-sizing
:
border-box
;
-webkit-box-shadow
:
0
5px
8px
-6px
#777
;
-moz-box-shadow
:
0
5px
8px
-6px
#777
;
box-shadow
:
0
5px
8px
-6px
#777
;
}
.container-fluid
.book
.cover
span
img
{
position
:
relative
;
...
...
@@ -159,6 +178,7 @@ a.editable-click:hover { border-bottom: None; }
}
.container-fluid
.book
.meta
{
margin-top
:
10px
;
}
.media-body
p
{
text-align
:
justify
;
}
.container-fluid
.book
.meta
p
{
margin
:
0
;
}
.container-fluid
.book
.meta
.title
{
...
...
@@ -208,20 +228,9 @@ span.glyphicon.glyphicon-tags {
}
.book-meta
{
padding-bottom
:
20px
;
}
.book-meta
.tags
a
{
display
:
inline
;
}
.book-meta
.identifiers
a
{
display
:
inline
;
}
.container-fluid
.single
.cover
img
{
border
:
1px
solid
#fff
;
box-sizing
:
border-box
;
-webkit-box-shadow
:
0
5px
8px
-6px
#777
;
-moz-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
;
}
.cover
{
margin-bottom
:
10px
;
}
.cover
.badge
{
position
:
absolute
;
...
...
@@ -308,10 +317,8 @@ table .bg-dark-danger {
background-color
:
#d9534f
;
color
:
#fff
;
}
table
.bg-dark-danger
a
{
color
:
#fff
;
}
table
.bg-dark-danger
:hover
{
background-color
:
#c9302c
;
}
table
.bg-primary
:hover
{
background-color
:
#1c5484
;
}
table
.bg-primary
a
{
color
:
#fff
;
}
.block-label
{
display
:
block
;
}
.fake-input
{
...
...
@@ -345,19 +352,12 @@ input.pill:checked + label {
input
.pill
:not
(
:checked
)
+
label
.glyphicon
{
display
:
none
;
}
.author-bio
img
{
margin
:
0
1em
1em
0
;
}
.author-link
{
display
:
inline-block
;
margin-top
:
10px
;
width
:
100px
;
}
.author-link
img
{
display
:
block
;
height
:
100%
;
}
#remove-from-shelves
.btn
,
#shelf-action-errors
{
margin-left
:
5px
;
}
...
...
@@ -371,7 +371,6 @@ input.pill:not(:checked) + label .glyphicon { display: none; }
}
.media-list
{
padding-right
:
15px
;
}
.media-body
p
{
text-align
:
justify
;
}
#meta-info
img
{
max-height
:
150px
;
...
...
@@ -384,7 +383,7 @@ input.pill:not(:checked) + label .glyphicon { display: none; }
#btn-upload-format
{
display
:
none
;
}
.upload-cover-input-text
{
display
:
initial
;
}
#btn-upload-cover
{
display
:
none
;
}
.panel-title
>
a
{
text-decoration
:
none
;
}
.editable-buttons
{
display
:
inline-block
;
margin-left
:
7px
;
...
...
@@ -417,4 +416,3 @@ div.log {
white-space
:
nowrap
;
padding
:
0.5em
;
}
cps/static/js/edit_books.js
View file @
42707a19
...
...
@@ -265,7 +265,7 @@ $("#search").on("change input.typeahead:selected", function(event) {
}
});
$
(
"#include_tag option:selected"
).
each
(
function
()
{
$
(
"#exclude_tag"
).
find
(
"[value="
+
$
(
this
).
val
()
+
"]"
).
prop
(
"disabled"
,
true
);
$
(
"#exclude_tag"
).
find
(
"[value="
+
$
(
this
).
val
()
+
"]"
).
prop
(
"disabled"
,
true
);
});
$
(
"#include_tag"
).
selectpicker
(
"refresh"
);
$
(
"#exclude_tag"
).
selectpicker
(
"refresh"
);
...
...
cps/static/js/filter_grid.js
View file @
42707a19
...
...
@@ -56,15 +56,15 @@ $("#asc").click(function() {
$
(
"#all"
).
click
(
function
()
{
// go through all elements and make them visible
$list
.
isotope
({
filter
:
function
()
{
return
true
;
}
return
true
;
}
});
});
$
(
".char"
).
click
(
function
()
{
var
character
=
this
.
innerText
;
$list
.
isotope
({
filter
:
function
()
{
return
this
.
attributes
[
"data-id"
].
value
.
charAt
(
0
).
toUpperCase
()
==
character
;
}
return
this
.
attributes
[
"data-id"
].
value
.
charAt
(
0
).
toUpperCase
()
=
==
character
;
}
});
});
cps/static/js/main.js
View file @
42707a19
...
...
@@ -55,7 +55,7 @@ $(document).on("change", "select[data-control]", function() {
$
(
document
).
on
(
"change"
,
"select[data-controlall]"
,
function
()
{
var
$this
=
$
(
this
);
var
name
=
$this
.
data
(
"controlall"
);
var
showOrHide
=
parseInt
(
$this
.
val
());
var
showOrHide
=
parseInt
(
$this
.
val
()
,
10
);
if
(
showOrHide
)
{
$
(
"[data-related="
+
name
+
"]"
).
show
();
}
else
{
...
...
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