1
Fork 0

Fix usercss output folder

This commit is contained in:
Bauke 2018-06-29 19:37:26 +02:00
parent f2034b8323
commit 22a824ec25
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
5 changed files with 1684 additions and 1688 deletions

View File

@ -1,7 +1,7 @@
/* ==UserStyle==
@name Notabug Dracula
@namespace notabug.io
@version 1.0.4
@version 1.0.5
@author Bauke
@description Dracula theme for notabug.io
@homepageURL https://gitlab.com/Bauke/styles

View File

@ -1,7 +1,7 @@
/* ==UserStyle==
@name Tildes Compact
@namespace tildes.net
@version 1.0.3
@version 1.0.4
@author Bauke
@description Removes some elements and changes some sizes to make the Tildes.net layout a little more compact.
@homepageURL https://gitlab.com/Bauke/styles

View File

@ -1,7 +1,7 @@
/* ==UserStyle==
@name Tildes Dracula
@namespace tildes.net
@version 2.0.2
@version 2.0.3
@author Bauke
@description Dracula theme for Tildes.net
@homepageURL https://gitlab.com/Bauke/styles

View File

@ -1,7 +1,7 @@
/* ==UserStyle==
@name Tildes Monokai
@namespace tildes.net
@version 1.1.3
@version 1.1.4
@author Bauke
@description Monokai theme for Tildes.net
@homepageURL https://gitlab.com/Bauke/styles
@ -680,49 +680,45 @@
.is-topic-mine {
border-left-color: #AE81FF !important;
}
body {
font-family: sans-serif;
}
a,footer a,.article-summary h2 a {
color: #E6DB74;
}
a:hover,a:active,a:focus,footer a:hover,footer a:active,footer a:focus,.article-summary h2 a:hover,.article-summary h2 a:active,.article-summary h2 a:focus {
color: #F92672;
}
a:visited,footer a:visited,.article-summary h2 a:visited {
color: #E6DB74;
}
a:visited:hover,a:visited:active,a:visited:focus,footer a:visited:hover,footer a:visited:active,footer a:visited:focus,.article-summary h2 a:visited:hover,.article-summary h2 a:visited:active,.article-summary h2 a:visited:focus {
color: #F92672;
}
footer,#page-list,.highlight {
color: #E6E6E6;
background-color: #383830;
}
div.toc {
color: #E6E6E6;
background-color: #272822;
}
code,pre {
border: none;
}
.date-info {
color: #89BDFF;
}
@-moz-document domain('docs.tildes.net') {
body {
font-family: sans-serif;
}
a,footer a,.article-summary h2 a {
color: #E6DB74;
}
a:hover,a:active,a:focus,footer a:hover,footer a:active,footer a:focus,.article-summary h2 a:hover,.article-summary h2 a:active,.article-summary h2 a:focus {
color: #F92672;
}
a:visited,footer a:visited,.article-summary h2 a:visited {
color: #E6DB74;
}
a:visited:hover,a:visited:active,a:visited:focus,footer a:visited:hover,footer a:visited:active,footer a:visited:focus,.article-summary h2 a:visited:hover,.article-summary h2 a:visited:active,.article-summary h2 a:visited:focus {
color: #F92672;
}
footer,#page-list,.highlight {
color: #E6E6E6;
background-color: #383830;
}
div.toc {
color: #E6E6E6;
background-color: #272822;
}
code,pre {
border: none;
}
.date-info {
color: #89BDFF;
}
}
@-moz-document domain('blog.tildes.net') {
body {
font-family: sans-serif;
}

View File

@ -99,8 +99,8 @@ gulp.task('generate', ['lint:js', 'lint:sass', 'build:dev', 'build:prod'], () =>
}
// Create the css path and generate the .user.css file with the options
const cssPath = path.join(cssDirectory, descriptor.folder, descriptor.entry)
const outPath = path.join('css', descriptor.folder, descriptor.entry)
let styleFile = `@-moz-document domain('${descriptor.options.namespace}') {`
const outPath = path.join(__dirname, 'css', descriptor.folder)
let styleFile = `@-moz-document domain('${descriptor.options.namespace}') {\n`
styleFile += fs.readFileSync(cssPath, {encoding: 'UTF-8'})
styleFile += '}'
fs.writeFileSync(cssPath, styleFile, {encoding: 'UTF-8'})