Empty list styling
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
.movies .movie.list_view:hover, .movies .movie.mass_edit_view:hover {
|
.movies .movie.list_view:hover, .movies .movie.mass_edit_view:hover {
|
||||||
background: rgba(255,255,255,0.03);
|
background: rgba(255,255,255,0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .movie_container {
|
.movies .movie_container {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@@ -313,7 +313,7 @@
|
|||||||
padding-bottom: 4px;
|
padding-bottom: 4px;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .movie .trailer_container {
|
.movies .movie .trailer_container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #000;
|
background: #000;
|
||||||
@@ -324,7 +324,7 @@
|
|||||||
.movies .movie .trailer_container.hide {
|
.movies .movie .trailer_container.hide {
|
||||||
height: 0 !important;
|
height: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .movie .hide_trailer {
|
.movies .movie .hide_trailer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -340,12 +340,12 @@
|
|||||||
.movies .movie .hide_trailer.hide {
|
.movies .movie .hide_trailer.hide {
|
||||||
top: -30px;
|
top: -30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .movie .try_container {
|
.movies .movie .try_container {
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .movie .try_container a {
|
.movies .movie .try_container a {
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
@@ -354,15 +354,15 @@
|
|||||||
.movies .movie .releases .next_release {
|
.movies .movie .releases .next_release {
|
||||||
border-left: 6px solid #2aa300;
|
border-left: 6px solid #2aa300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .movie .releases .next_release > :first-child {
|
.movies .movie .releases .next_release > :first-child {
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .movie .releases .last_release {
|
.movies .movie .releases .last_release {
|
||||||
border-left: 6px solid #ffa200;
|
border-left: 6px solid #ffa200;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .movie .releases .last_release > :first-child {
|
.movies .movie .releases .last_release > :first-child {
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
}
|
}
|
||||||
@@ -394,8 +394,8 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .alph_nav ul.numbers,
|
.movies .alph_nav ul.numbers,
|
||||||
.movies .alph_nav .counter,
|
.movies .alph_nav .counter,
|
||||||
.movies .alph_nav ul.actions {
|
.movies .alph_nav ul.actions {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0 0 1px;
|
padding: 0 0 1px;
|
||||||
@@ -518,7 +518,7 @@
|
|||||||
padding: 3px 7px;
|
padding: 3px 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movies .alph_nav .mass_edit_form .refresh,
|
.movies .alph_nav .mass_edit_form .refresh,
|
||||||
.movies .alph_nav .mass_edit_form .delete {
|
.movies .alph_nav .mass_edit_form .delete {
|
||||||
float: left;
|
float: left;
|
||||||
padding: 8px 0 0 8px;
|
padding: 8px 0 0 8px;
|
||||||
@@ -536,3 +536,17 @@
|
|||||||
.movies .alph_nav .more_menu > a {
|
.movies .alph_nav .more_menu > a {
|
||||||
background-position: center -158px;
|
background-position: center -158px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.movies .empty_wanted {
|
||||||
|
background-image: url('../images/emptylist.png');
|
||||||
|
height: 750px;
|
||||||
|
width: 800px;
|
||||||
|
padding-top: 260px;
|
||||||
|
margin-top: -50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movies .empty_manage {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 25px;
|
||||||
|
line-height: 150%;
|
||||||
|
}
|
||||||
|
|||||||
@@ -29,7 +29,20 @@ Page.Manage = new Class({
|
|||||||
'identifier': 'manage',
|
'identifier': 'manage',
|
||||||
'status': 'done',
|
'status': 'done',
|
||||||
'actions': MovieActions,
|
'actions': MovieActions,
|
||||||
'menu': [self.refresh_button, self.refresh_quick]
|
'menu': [self.refresh_button, self.refresh_quick],
|
||||||
|
'on_empty_element': new Element('div.empty_manage').adopt(
|
||||||
|
new Element('div', {
|
||||||
|
'text': 'Seems like you don\'t have anything in your library yet.'
|
||||||
|
}),
|
||||||
|
new Element('div', {
|
||||||
|
'text': 'Add your existing movie folders in '
|
||||||
|
}).adopt(
|
||||||
|
new Element('a', {
|
||||||
|
'text': 'Settings > Manage',
|
||||||
|
'href': App.createUrl('settings/manage')
|
||||||
|
})
|
||||||
|
)
|
||||||
|
)
|
||||||
});
|
});
|
||||||
$(self.list).inject(self.el);
|
$(self.list).inject(self.el);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ Page.Wanted = new Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// See if userscript can be installed
|
|
||||||
|
|
||||||
|
|
||||||
// Wanted movies
|
// Wanted movies
|
||||||
self.wanted = new MovieList({
|
self.wanted = new MovieList({
|
||||||
'identifier': 'wanted',
|
'identifier': 'wanted',
|
||||||
@@ -28,13 +25,7 @@ Page.Wanted = new Class({
|
|||||||
'actions': MovieActions,
|
'actions': MovieActions,
|
||||||
'add_new': true,
|
'add_new': true,
|
||||||
'menu': [self.manual_search],
|
'menu': [self.manual_search],
|
||||||
'on_empty_element': App.createUserscriptButtons().setStyles({
|
'on_empty_element': App.createUserscriptButtons().addClass('empty_wanted')
|
||||||
'background-image': "url('"+Api.createUrl('static/images/emptylist.png')+"')",
|
|
||||||
'height': 750,
|
|
||||||
'width': 800,
|
|
||||||
'padding-top': 260,
|
|
||||||
'margin-top': -50
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
$(self.wanted).inject(self.el);
|
$(self.wanted).inject(self.el);
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/uniform.css') }}" type="text/css">
|
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/uniform.css') }}" type="text/css">
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/page/settings.css') }}" type="text/css">
|
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/page/settings.css') }}" type="text/css">
|
||||||
<link rel="stylesheet" href="{{ url_for('web.static', filename='style/page/wanted.css') }}" type="text/css">
|
|
||||||
|
|
||||||
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools.js') }}"></script>
|
||||||
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools_more.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools_more.js') }}"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user