Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
A couple more css fixes, and fix variant setting load order
Browse files Browse the repository at this point in the history
  • Loading branch information
scooterpsu committed Mar 27, 2019
1 parent c4bd891 commit 3b810ba
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 22 deletions.
33 changes: 16 additions & 17 deletions comixology2/themeScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,29 @@ var bookmarkLocation = "Ubooquity_Bookmarks2";
var Bookmarks = [];
var cacheLocation = "Ubooquity_IDcache2";
var IDcache = {"books": [], "comics": []};


var themeVariant;
var themeVariants = ['dark-a', 'dark-b'];

/* Load theme settings from settings.js. */
loadScript(proxyPrefix+"/theme/settings.js");
loadScript(proxyPrefix+"/theme/settings.js", function(){
if(themeVariant === null){
themeVariant='default';
}
if(typeof Storage !== "undefined"){
if (localStorage.getItem('UbooquityThemeVariant') !== null) {
themeVariant=localStorage.getItem('UbooquityThemeVariant');
}else{
localStorage.setItem('UbooquityThemeVariant', 'default');
}
}
});

/* Load JQuery and JQuery UI, then rebuild pages. */
loadScript(proxyPrefix+"/theme/js/jquery-3.3.1.min.js", function(){
loadScript(proxyPrefix+"/theme/js/jquery-ui.min.js", function(){

$.ajaxSetup({ cache: false });
$('head').append('<link rel="stylesheet" href="'+proxyPrefix+'/theme/comixology.css" type="text/css" />');

/* Theme variant load/store. */
var themeVariants = ['dark-a', 'dark-b'];
if(typeof themeVariant === "undefined"){
var themeVariant='default';
}
if(typeof Storage !== "undefined"){
if (localStorage.getItem('UbooquityThemeVariant') !== null) {
themeVariant=localStorage.getItem('UbooquityThemeVariant');
}else{
localStorage.setItem('UbooquityThemeVariant', themeVariant);
}
}

if(typeof Storage !== "undefined"){
if (localStorage.getItem(bookmarkLocation) !== null) {
Bookmarks=JSON.parse(localStorage.getItem(bookmarkLocation));
Expand Down
11 changes: 8 additions & 3 deletions comixology2/themes/dark-a/dark-a.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ body {
background-color: #011628 !important;
}

#loginform {
border: none;
background-color: #1F1F1F;
box-shadow: 0 0 13px rgba(0,0,0,.5);
}

.list-container {
border: none !important;
box-shadow: 0 0 13px rgba(0,0,0,.5);
Expand Down Expand Up @@ -388,7 +394,7 @@ footer a {

/*Files END*/

/* additonal tweaks */
/* additional tweaks */
.content-title {
font-size: 12px;
}
Expand All @@ -408,5 +414,4 @@ footer a {
.unlimited-header.unlimited-v2 {
box-shadow: 0 0 13px rgba(0,0,0,.5);
}

/* additonal tweaks end */
/* additional tweaks end */
10 changes: 8 additions & 2 deletions comixology2/themes/dark-b/dark-b.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ body {
background-color: #000 !important;
}

#loginform {
border: none;
background-color: #1F1F1F;
box-shadow: 0 0 13px rgba(0,0,0,.5);
}

.list-container {
border: none !important;
box-shadow: 0 0 13px rgba(0,0,0,.5);
Expand Down Expand Up @@ -391,7 +397,7 @@ footer a {

/*Files END*/

/* additonal tweaks */
/* additional tweaks */
.content-title {
font-size: 12px;
}
Expand All @@ -412,4 +418,4 @@ footer a {
box-shadow: 0 0 13px rgba(0,0,0,.5);
}

/* additonal tweaks end */
/* additional tweaks end */

0 comments on commit 3b810ba

Please sign in to comment.