Fix usercss output folder
This commit is contained in:
parent
f2034b8323
commit
22a824ec25
|
@ -1,7 +1,7 @@
|
||||||
/* ==UserStyle==
|
/* ==UserStyle==
|
||||||
@name Notabug Dracula
|
@name Notabug Dracula
|
||||||
@namespace notabug.io
|
@namespace notabug.io
|
||||||
@version 1.0.4
|
@version 1.0.5
|
||||||
@author Bauke
|
@author Bauke
|
||||||
@description Dracula theme for notabug.io
|
@description Dracula theme for notabug.io
|
||||||
@homepageURL https://gitlab.com/Bauke/styles
|
@homepageURL https://gitlab.com/Bauke/styles
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* ==UserStyle==
|
/* ==UserStyle==
|
||||||
@name Tildes Compact
|
@name Tildes Compact
|
||||||
@namespace tildes.net
|
@namespace tildes.net
|
||||||
@version 1.0.3
|
@version 1.0.4
|
||||||
@author Bauke
|
@author Bauke
|
||||||
@description Removes some elements and changes some sizes to make the Tildes.net layout a little more compact.
|
@description Removes some elements and changes some sizes to make the Tildes.net layout a little more compact.
|
||||||
@homepageURL https://gitlab.com/Bauke/styles
|
@homepageURL https://gitlab.com/Bauke/styles
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* ==UserStyle==
|
/* ==UserStyle==
|
||||||
@name Tildes Dracula
|
@name Tildes Dracula
|
||||||
@namespace tildes.net
|
@namespace tildes.net
|
||||||
@version 2.0.2
|
@version 2.0.3
|
||||||
@author Bauke
|
@author Bauke
|
||||||
@description Dracula theme for Tildes.net
|
@description Dracula theme for Tildes.net
|
||||||
@homepageURL https://gitlab.com/Bauke/styles
|
@homepageURL https://gitlab.com/Bauke/styles
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* ==UserStyle==
|
/* ==UserStyle==
|
||||||
@name Tildes Monokai
|
@name Tildes Monokai
|
||||||
@namespace tildes.net
|
@namespace tildes.net
|
||||||
@version 1.1.3
|
@version 1.1.4
|
||||||
@author Bauke
|
@author Bauke
|
||||||
@description Monokai theme for Tildes.net
|
@description Monokai theme for Tildes.net
|
||||||
@homepageURL https://gitlab.com/Bauke/styles
|
@homepageURL https://gitlab.com/Bauke/styles
|
||||||
|
@ -680,49 +680,45 @@
|
||||||
.is-topic-mine {
|
.is-topic-mine {
|
||||||
border-left-color: #AE81FF !important;
|
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 {
|
body {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
// Create the css path and generate the .user.css file with the options
|
||||||
const cssPath = path.join(cssDirectory, descriptor.folder, descriptor.entry)
|
const cssPath = path.join(cssDirectory, descriptor.folder, descriptor.entry)
|
||||||
const outPath = path.join('css', descriptor.folder, descriptor.entry)
|
const outPath = path.join(__dirname, 'css', descriptor.folder)
|
||||||
let styleFile = `@-moz-document domain('${descriptor.options.namespace}') {`
|
let styleFile = `@-moz-document domain('${descriptor.options.namespace}') {\n`
|
||||||
styleFile += fs.readFileSync(cssPath, {encoding: 'UTF-8'})
|
styleFile += fs.readFileSync(cssPath, {encoding: 'UTF-8'})
|
||||||
styleFile += '}'
|
styleFile += '}'
|
||||||
fs.writeFileSync(cssPath, styleFile, {encoding: 'UTF-8'})
|
fs.writeFileSync(cssPath, styleFile, {encoding: 'UTF-8'})
|
||||||
|
|
Loading…
Reference in New Issue