Whitespace cleanup
This commit is contained in:
@@ -2,7 +2,7 @@ var File = new Class({
|
||||
|
||||
initialize: function(file){
|
||||
var self = this;
|
||||
|
||||
|
||||
if(!file){
|
||||
self.el = new Element('div');
|
||||
return
|
||||
@@ -17,7 +17,7 @@ var File = new Class({
|
||||
|
||||
createImage: function(){
|
||||
var self = this;
|
||||
|
||||
|
||||
var file_name = self.data.path.replace(/^.*[\\\/]/, '');
|
||||
|
||||
self.el = new Element('div', {
|
||||
|
||||
@@ -60,6 +60,6 @@
|
||||
color: lightgrey;
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
|
||||
.page.log .container .time:last-child { display: none; }
|
||||
|
||||
|
||||
@@ -5,18 +5,18 @@ Page.Log = new Class({
|
||||
name: 'log',
|
||||
title: 'Show recent logs.',
|
||||
has_tab: false,
|
||||
|
||||
|
||||
initialize: function(options){
|
||||
var self = this;
|
||||
self.parent(options)
|
||||
|
||||
|
||||
|
||||
|
||||
App.getBlock('more').addLink(new Element('a', {
|
||||
'href': App.createUrl(self.name),
|
||||
'text': self.name.capitalize(),
|
||||
'title': self.title
|
||||
}))
|
||||
|
||||
|
||||
},
|
||||
|
||||
indexAction: function(){
|
||||
|
||||
@@ -200,7 +200,7 @@ var MovieList = new Class({
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Add menu or hide
|
||||
if (self.options.menu.length > 0)
|
||||
self.options.menu.each(function(menu_item){
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
.movies .movie.list_view:hover, .movies .movie.mass_edit_view:hover {
|
||||
background: rgba(255,255,255,0.03);
|
||||
}
|
||||
|
||||
|
||||
.movies .data {
|
||||
padding: 20px;
|
||||
height: 180px;
|
||||
@@ -43,11 +43,11 @@
|
||||
border: 0;
|
||||
background: none;
|
||||
}
|
||||
|
||||
|
||||
.movies .movie .check {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.movies.mass_edit_list .movie .check {
|
||||
float: left;
|
||||
display: block;
|
||||
@@ -62,21 +62,21 @@
|
||||
height: 180px;
|
||||
border-radius: 4px 0 0 4px;
|
||||
transition: all 0.2s linear;
|
||||
|
||||
|
||||
}
|
||||
.movies .list_view .poster, .movies .mass_edit_view .poster {
|
||||
.movies .list_view .poster, .movies .mass_edit_view .poster {
|
||||
width: 20px;
|
||||
height: 30px;
|
||||
}
|
||||
.movies.mass_edit_list .poster {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.movies .poster img, .options .poster img {
|
||||
width: 101%;
|
||||
height: 101%;
|
||||
}
|
||||
|
||||
|
||||
.movies .info .title {
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
@@ -91,7 +91,7 @@
|
||||
text-overflow: ellipsis;
|
||||
width: 64%;
|
||||
}
|
||||
|
||||
|
||||
.movies .info .year {
|
||||
font-size: 30px;
|
||||
margin-bottom: 10px;
|
||||
@@ -105,7 +105,7 @@
|
||||
font-size: 16px;
|
||||
width: 6%;
|
||||
}
|
||||
|
||||
|
||||
.movies .info .rating {
|
||||
font-size: 30px;
|
||||
margin-bottom: 10px;
|
||||
@@ -114,7 +114,7 @@
|
||||
width: 5%;
|
||||
padding: 0 0 0 3%;
|
||||
}
|
||||
|
||||
|
||||
.movies .info .description {
|
||||
clear: both;
|
||||
height: 80px;
|
||||
@@ -126,13 +126,13 @@
|
||||
.movies .list_view .info .description, .movies .mass_edit_view .info .description {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.movies .data .quality {
|
||||
display: block;
|
||||
min-height: 20px;
|
||||
vertical-align: mid;
|
||||
}
|
||||
|
||||
|
||||
.movies .data .quality span {
|
||||
padding: 2px 3px;
|
||||
font-weight: bold;
|
||||
@@ -154,39 +154,39 @@
|
||||
float: right;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
|
||||
.movies .data .quality .available, .movies .data .quality .snatched {
|
||||
opacity: 1;
|
||||
box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
.movies .data .quality .available { background-color: #578bc3; }
|
||||
.movies .data .quality .snatched { background-color: #369545; }
|
||||
.movies .data .quality .done {
|
||||
background-color: #369545;
|
||||
opacity: 1;
|
||||
}
|
||||
.movies .data .quality .finish {
|
||||
.movies .data .quality .finish {
|
||||
background-image: url('../images/sprite.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 2px;
|
||||
padding-left: 14px;
|
||||
background-size: 14px
|
||||
}
|
||||
|
||||
|
||||
.movies .data .actions {
|
||||
line-height: 0;
|
||||
clear: both;
|
||||
float: right;
|
||||
margin-top: -25px;
|
||||
}
|
||||
.movies .data:hover .action { opacity: 0.6; }
|
||||
.movies .data:hover .action { opacity: 0.6; }
|
||||
.movies .data:hover .action:hover { opacity: 1; }
|
||||
.movies.mass_edit_list .data .actions {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.movies .data .action {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
@@ -196,12 +196,12 @@
|
||||
padding: 3px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
||||
.movies .list_view .data:hover .actions, .movies .mass_edit_view .data:hover .actions {
|
||||
margin: -34px 2px 0 0;
|
||||
background: #4e5969;
|
||||
}
|
||||
|
||||
|
||||
.movies .delete_container {
|
||||
clear: both;
|
||||
text-align: center;
|
||||
@@ -223,23 +223,23 @@
|
||||
color: #fff;
|
||||
background-color: #d32917;
|
||||
}
|
||||
|
||||
|
||||
.movies .options {
|
||||
position: absolute;
|
||||
margin-left: 120px;
|
||||
width: 840px;
|
||||
}
|
||||
|
||||
|
||||
.movies .options .form {
|
||||
margin: 70px 20px 0;
|
||||
float: left;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
|
||||
.movies .options .form select {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
|
||||
.movies .options .table {
|
||||
height: 180px;
|
||||
overflow: auto;
|
||||
@@ -255,15 +255,15 @@
|
||||
.movies .options .table .item.ignored .delete {
|
||||
background-image: url('../images/icon.undo.png');
|
||||
}
|
||||
|
||||
|
||||
.movies .options .table .item:last-child { border: 0; }
|
||||
.movies .options .table .item:nth-child(even) {
|
||||
.movies .options .table .item:nth-child(even) {
|
||||
background: rgba(255,255,255,0.05);
|
||||
}
|
||||
.movies .options .table .item:not(.head):hover {
|
||||
.movies .options .table .item:not(.head):hover {
|
||||
background: rgba(255,255,255,0.03);
|
||||
}
|
||||
|
||||
|
||||
.movies .options .table .item > * {
|
||||
display: inline-block;
|
||||
padding: 0 5px;
|
||||
@@ -290,7 +290,7 @@
|
||||
.movies .options .table.files .name { width: 605px; }
|
||||
.movies .options .table .type { width: 130px; }
|
||||
.movies .options .table .is_available { width: 90px; }
|
||||
|
||||
|
||||
.movies .options .table a {
|
||||
width: 30px !important;
|
||||
height: 20px;
|
||||
@@ -307,7 +307,7 @@
|
||||
padding-bottom: 4px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
||||
.movies .load_more {
|
||||
display: block;
|
||||
padding: 10px;
|
||||
@@ -363,14 +363,14 @@
|
||||
.movies .alph_nav li.available {
|
||||
color: rgba(255,255,255,0.8);
|
||||
font-weight: bolder;
|
||||
|
||||
|
||||
}
|
||||
.movies .alph_nav li.active.available, .movies .alph_nav li.available:hover {
|
||||
color: #fff;
|
||||
font-size: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav input {
|
||||
padding: 6px 5px;
|
||||
margin: 0 0 0 6px;
|
||||
@@ -378,16 +378,16 @@
|
||||
width: 155px;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .actions {
|
||||
margin: 0 6px 0 0;
|
||||
-moz-user-select: none;
|
||||
}
|
||||
.movies .alph_nav .actions li {
|
||||
.movies .alph_nav .actions li {
|
||||
border-radius: 1px;
|
||||
width: auto;
|
||||
}
|
||||
.movies .alph_nav .actions li.active {
|
||||
.movies .alph_nav .actions li.active {
|
||||
background: none;
|
||||
border: 1px solid transparent;
|
||||
box-shadow: none;
|
||||
@@ -398,15 +398,15 @@
|
||||
width: 25px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .actions li.mass_edit span {
|
||||
background-position: 3px 3px;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .actions li.list span {
|
||||
background-position: 3px -95px;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .actions li.thumbs span {
|
||||
background-position: 3px -74px;
|
||||
}
|
||||
@@ -417,7 +417,7 @@
|
||||
.movies .alph_nav .actions li:last-child {
|
||||
border-radius: 0 3px 3px 0;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .mass_edit_form {
|
||||
clear: both;
|
||||
text-align: center;
|
||||
@@ -439,7 +439,7 @@
|
||||
font-weight: bold;
|
||||
margin: 0 3px 0 10px;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .mass_edit_form .quality {
|
||||
float: left;
|
||||
padding: 8px 0 0;
|
||||
@@ -452,21 +452,20 @@
|
||||
.movies .alph_nav .mass_edit_form .button {
|
||||
padding: 3px 7px;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .mass_edit_form .delete {
|
||||
float: left;
|
||||
padding: 8px 0 0 8px;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .mass_edit_form .delete span {
|
||||
margin: 0 10px 0 0;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .more_menu {
|
||||
margin-left: 48px;
|
||||
}
|
||||
|
||||
|
||||
.movies .alph_nav .more_menu > a {
|
||||
background-position: center -157px;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
.search_form input:focus {
|
||||
padding-right: 83px;
|
||||
}
|
||||
|
||||
|
||||
.search_form .input .enter {
|
||||
background: #369545 url('../images/sprite.png') right -188px no-repeat;
|
||||
padding: 0 20px 0 4px;
|
||||
@@ -36,7 +36,7 @@
|
||||
.search_form.focused.filled .input .enter {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
.search_form .input a {
|
||||
width: 17px;
|
||||
height: 20px;
|
||||
@@ -50,7 +50,7 @@
|
||||
transition: all 0.2s ease-in-out;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
.search_form.filled .input a {
|
||||
opacity: 1;
|
||||
}
|
||||
@@ -68,7 +68,7 @@
|
||||
.search_form.shown.filled .results_container {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
.search_form .results_container:before {
|
||||
content: ' ';
|
||||
height: 0;
|
||||
@@ -146,7 +146,7 @@
|
||||
}
|
||||
|
||||
.movie_result:last-child .data { border-bottom: 0; }
|
||||
|
||||
|
||||
.movie_result .in_wanted, .movie_result .in_library {
|
||||
position: absolute;
|
||||
margin-top: 105px;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
padding: 14px;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
|
||||
.profile .qualities {
|
||||
min-height: 80px;
|
||||
}
|
||||
@@ -40,36 +40,36 @@
|
||||
.profile .wait_for input {
|
||||
margin: 0 5px !important;
|
||||
}
|
||||
|
||||
|
||||
.profile .types {
|
||||
padding: 0;
|
||||
margin: 0 20px 0 -4px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
||||
.profile .types li {
|
||||
padding: 3px 5px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.2);
|
||||
list-style: none;
|
||||
}
|
||||
.profile .types li:last-child { border: 0; }
|
||||
|
||||
|
||||
.profile .types li > * {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
line-height: 0;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
||||
.profile .quality_type select {
|
||||
width: 186px;
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
|
||||
.profile .types li.is_empty .check, .profile .types li.is_empty .delete, .profile .types li.is_empty .handle {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
.profile .types .type .handle {
|
||||
background: url('./handle.png') center;
|
||||
display: inline-block;
|
||||
@@ -80,7 +80,7 @@
|
||||
cursor: -webkit-grab;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
.profile .types .type .delete {
|
||||
background-position: left center;
|
||||
height: 20px;
|
||||
@@ -88,13 +88,13 @@
|
||||
visibility: hidden;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
.profile .types .type:hover:not(.is_empty) .delete {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
|
||||
#profile_ordering {
|
||||
|
||||
|
||||
}
|
||||
|
||||
#profile_ordering ul {
|
||||
@@ -112,19 +112,19 @@
|
||||
padding: 0 5px;
|
||||
}
|
||||
#profile_ordering li:last-child { border: 0; }
|
||||
|
||||
|
||||
#profile_ordering li .check {
|
||||
margin: 2px 10px 0 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
||||
#profile_ordering li > span {
|
||||
display: inline-block;
|
||||
height: 20px;
|
||||
vertical-align: top;
|
||||
line-height: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
|
||||
#profile_ordering li .handle {
|
||||
background: url('./handle.png') center;
|
||||
width: 20px;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.group_sizes {
|
||||
|
||||
|
||||
}
|
||||
|
||||
.group_sizes .head {
|
||||
@@ -15,7 +15,7 @@
|
||||
.group_sizes .label {
|
||||
max-width: 120px;
|
||||
}
|
||||
|
||||
|
||||
.group_sizes .min, .group_sizes .max {
|
||||
text-align: center;
|
||||
width: 50px;
|
||||
|
||||
@@ -93,7 +93,7 @@ var QualityBase = new Class({
|
||||
var data = data || {'id': randomString()}
|
||||
var profile = new Profile(data)
|
||||
self.profiles.include(profile)
|
||||
|
||||
|
||||
return profile;
|
||||
},
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ var StatusBase = new Class({
|
||||
self.statuses = statuses;
|
||||
|
||||
},
|
||||
|
||||
|
||||
get: function(id){
|
||||
return this.statuses.filter(function(status){
|
||||
return status.id == id
|
||||
|
||||
@@ -72,7 +72,7 @@ var UserscriptSettingTab = new Class({
|
||||
catch(e){
|
||||
userscript = Browser.chrome === true;
|
||||
}
|
||||
|
||||
|
||||
var host_url = window.location.protocol + '//' + window.location.host;
|
||||
|
||||
self.settings.createGroup({
|
||||
|
||||
@@ -31,14 +31,14 @@
|
||||
margin: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
.page.wizard .tabs li {
|
||||
display: inline-block;
|
||||
}
|
||||
.page.wizard .tabs li a {
|
||||
padding: 20px 30px;
|
||||
}
|
||||
|
||||
|
||||
.page.wizard .tab_wrapper .pointer {
|
||||
border-right: 10px solid transparent;
|
||||
border-left: 10px solid transparent;
|
||||
@@ -47,7 +47,7 @@
|
||||
position: absolute;
|
||||
top: 60px;
|
||||
}
|
||||
|
||||
|
||||
.page.wizard .tab_content {
|
||||
margin: 20px 0 160px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user