Switch to npm and less.js

This commit is contained in:
Alexander Weidinger
2018-06-10 23:22:57 +02:00
parent 0a78cc58c8
commit e1af2821af
6 changed files with 51 additions and 25 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,2 @@
crunchyroll-dark.css crunchyroll-dark.css
crunchyroll-dark.css.map node_modules/*

View File

@@ -1,4 +0,0 @@
all:
sass crunchyroll-dark.scss crunchyroll-dark.css
clean:
rm crunchyroll-dark.css{,.map}

View File

@@ -1,70 +1,83 @@
@import "nord/src/nord.scss"; @import "nord/src/nord.less";
$orange: #f78c25; @orange: #f78c25;
/* buttons */
#source_home .queue-to-top {
background: data-uri('img/queue_arrow_without-background.png') -3px 0 no-repeat;
}
#source_home .dropdown-collection {
background: data-uri('img/queue_dropdown_arrow_without-background.png') 0 0 no-repeat;
}
.collection-carousel-arrow {
background: data-uri('img/collection_arrow_noalpha_without-background.png') no-repeat -40px 42px;
}
/* Queue, Random and Profile icon */ /* Queue, Random and Profile icon */
.header-userpanel .header-icon { .header-userpanel .header-icon {
color: $nord4; color: @nord4;
fill: $nord4; fill: @nord4;
} }
/* Shows, Manga, News, ... */ /* Shows, Manga, News, ... */
.header-menubar li a, .new-template-body a.block-link, .old-template-body a.block-link, a.block-link, .new-template-body { .header-menubar li a, .new-template-body a.block-link, .old-template-body a.block-link, a.block-link, .new-template-body {
color: $nord4; color: @nord4;
} }
/* Header */ /* Header */
.site-header { .site-header {
background: $nord3; background: @nord3;
} }
/* main site */ /* main site */
#template_body.old-template-body { #template_body.old-template-body {
background-color: $nord3; background-color: @nord3;
} }
/* Overall background */ /* Overall background */
body.main-page { body.main-page {
background: $nord0; background: @nord0;
} }
#template_container.template-container { #template_container.template-container {
background: $nord0; background: @nord0;
} }
/* My Queue, History */ /* My Queue, History */
.main-tabs a.selected, .main-tabs a.selected:hover { .main-tabs a.selected, .main-tabs a.selected:hover {
background: $nord3; background: @nord3;
} }
#tabs { #tabs {
background: $nord3; background: @nord3;
} }
/* Footer */ /* Footer */
#footer_menu { #footer_menu {
background: $nord0; background: @nord0;
} }
/* History items */ /* History items */
/* background */ /* background */
.portrait-element { .portrait-element {
background: $nord3; background: @nord3;
} }
/* Queue items */ /* Queue items */
/* background */ /* background */
#source_home #main_content .landscape-grid li .wrapper { #source_home #main_content .landscape-grid li .wrapper {
background: $nord3; background: @nord3;
} }
#main_content .landscape-element { #main_content .landscape-element {
background: $nord3; background: @nord3;
} }
/* title */ /* title */
.new-template-body .block-link:hover, .new-template-body .pagination a, .new-template-body .para-div a, .new-template-body .sub-tabs .selectors a.text-link, .new-template-body .text-link, .new-template-body .wrapper a:hover a, .new-template-body a:hover h4, .new-template-body li a, .new-template-body p a, .new-template-body span a { .new-template-body .block-link:hover, .new-template-body .pagination a, .new-template-body .para-div a, .new-template-body .sub-tabs .selectors a.text-link, .new-template-body .text-link, .new-template-body .wrapper a:hover a, .new-template-body a:hover h4, .new-template-body li a, .new-template-body p a, .new-template-body span a {
color: $nord7; color: @nord7;
} }
/* more options */ /* more options */
#source_home .more-options { #source_home .more-options {
border-top: 1px solid $nord1; border-top: 1px solid @nord1;
} }
/****************** /******************
@@ -73,7 +86,7 @@ body.main-page {
/* submenu episodes */ /* submenu episodes */
#main_content_white, .white-wrapper { #main_content_white, .white-wrapper {
background: $nord3; background: @nord3;
} }
/********************** /**********************
@@ -87,5 +100,5 @@ body.main-page {
* borders * * borders *
***********/ ***********/
.welcome-block h1, .welcome-title-list h1 { .welcome-block h1, .welcome-title-list h1 {
border-bottom: 1px solid $nord1; border-bottom: 1px solid @nord1;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

2
nord

Submodule nord updated: 27a78e8762...7eae58e58b

17
package.json Normal file
View File

@@ -0,0 +1,17 @@
{
"name": "crunchyroll-dark",
"version": "1.0.0",
"description": "Dark Crunchyroll style",
"devDependencies": {
"less": "^3.0.4"
},
"scripts": {
"clean": "rm -f crunchyroll-dark.css",
"build": "./node_modules/less/bin/lessc crunchyroll-dark.less crunchyroll-dark.css"
},
"repository": {
"type": "git",
"url": "git@git.scriptfish.org:alex/Crunchyroll-Dark.git"
},
"license": "GPL-3.0-or-later"
}