mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update theme
This commit is contained in:
parent
1ac9bfe5aa
commit
4670ba6fbf
7 changed files with 66 additions and 5 deletions
|
@ -31,14 +31,14 @@
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/PolymerElements/paper-ripple",
|
"homepage": "https://github.com/polymerelements/paper-ripple",
|
||||||
"_release": "1.0.3",
|
"_release": "1.0.3",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.3",
|
"tag": "v1.0.3",
|
||||||
"commit": "c6e9664ca79c74bbd4219077438c4d163d6be962"
|
"commit": "c6e9664ca79c74bbd4219077438c4d163d6be962"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-ripple.git",
|
"_source": "git://github.com/polymerelements/paper-ripple.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/paper-ripple"
|
"_originalSource": "polymerelements/paper-ripple"
|
||||||
}
|
}
|
|
@ -136,7 +136,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.libraryMenuButtonText {
|
.libraryMenuButtonText {
|
||||||
color: #fff !important;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: 400 !important;
|
font-weight: 400 !important;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
-o-transition: all 500ms ease;
|
-o-transition: all 500ms ease;
|
||||||
-ms-transition: all 500ms ease;
|
-ms-transition: all 500ms ease;
|
||||||
transition: all 500ms ease;
|
transition: all 500ms ease;
|
||||||
|
color: inherit!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tileItem .starRating {
|
.tileItem .starRating {
|
||||||
|
@ -43,7 +44,6 @@
|
||||||
.tileContent {
|
.tileContent {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
color: #fff;
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
@ -1935,6 +1935,21 @@ var AppInfo = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function loadTheme() {
|
||||||
|
|
||||||
|
var name = getParameterByName('theme');
|
||||||
|
if (name) {
|
||||||
|
require(['themes/' + name + '/theme']);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var date = new Date();
|
||||||
|
if (date.getMonth() == 9 && date.getDate() == 31) {
|
||||||
|
require(['themes/halloween/theme']);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function onDocumentReady() {
|
function onDocumentReady() {
|
||||||
|
|
||||||
// Do these now to prevent a flash of content
|
// Do these now to prevent a flash of content
|
||||||
|
@ -1947,6 +1962,8 @@ var AppInfo = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loadTheme();
|
||||||
|
|
||||||
if ($.browser.safari && $.browser.mobile) {
|
if ($.browser.safari && $.browser.mobile) {
|
||||||
initFastClick();
|
initFastClick();
|
||||||
}
|
}
|
||||||
|
|
BIN
dashboard-ui/themes/halloween/bg.jpg
Normal file
BIN
dashboard-ui/themes/halloween/bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 133 KiB |
25
dashboard-ui/themes/halloween/style.css
Normal file
25
dashboard-ui/themes/halloween/style.css
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
.ui-body-b h1, .ui-body-b h2 {
|
||||||
|
color: #FF9100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewMenuBar, .barsMenuButton {
|
||||||
|
color: #FF9100 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.libraryViewNav .ui-btn-active {
|
||||||
|
border-bottom-color: #FF9100 !important;
|
||||||
|
color: #FF9100 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
paper-button[raised].more {
|
||||||
|
background: #FF9100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.channelTimeslotHeader, .timeslotHeader {
|
||||||
|
background: #FF9100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.channelTimeslotHeader {
|
||||||
|
border-right-color: #FF9100;
|
||||||
|
}
|
20
dashboard-ui/themes/halloween/theme.js
Normal file
20
dashboard-ui/themes/halloween/theme.js
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
(function () {
|
||||||
|
|
||||||
|
Dashboard.importCss('themes/halloween/style.css');
|
||||||
|
|
||||||
|
|
||||||
|
function onPageShow() {
|
||||||
|
var page = this;
|
||||||
|
|
||||||
|
if (!$.browser.mobile) {
|
||||||
|
Backdrops.setBackdropUrl(page, 'themes/halloween/bg.jpg');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pageClassOn('pageshow', "libraryPage", onPageShow);
|
||||||
|
|
||||||
|
if ($($.mobile.activePage)[0].classList.contains('libraryPage')) {
|
||||||
|
onPageShow.call($($.mobile.activePage)[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
})();
|
Loading…
Add table
Add a link
Reference in a new issue