simov %!s(int64=2) %!d(string=hai) anos
pai
achega
bc069ce273
Modificáronse 1 ficheiros con 15 adicións e 3 borrados
  1. 15 3
      build/themes/fix.js

+ 15 - 3
build/themes/fix.js

@@ -3,12 +3,24 @@ var fs = require('fs')
 var path = require('path')
 var themes = path.resolve(__dirname, '../../themes/')
 
-var css = fs.readFileSync(path.resolve(themes, 'mini.css'), 'utf8')
-
 fs.writeFileSync(
   path.resolve(themes, 'mini.css'),
-  css
+  fs.readFileSync(path.resolve(themes, 'mini.css'), 'utf8')
     .replace('*,h5', 'body')
     .replace('*,html', 'body'),
   'utf8'
 )
+
+fs.writeFileSync(
+  path.resolve(themes, 'latex.css'),
+  fs.readFileSync(path.resolve(themes, 'latex.css'), 'utf8')
+    .replace('scroll-behavior:smooth', ''),
+  'utf8'
+)
+
+fs.writeFileSync(
+  path.resolve(themes, 'simple.css'),
+  fs.readFileSync(path.resolve(themes, 'simple.css'), 'utf8')
+    .replace('scroll-behavior:smooth', ''),
+  'utf8'
+)