mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Make injection of theme scripts automatic
This commit is contained in:
parent
c2803b0927
commit
535dd5bb67
6 changed files with 11 additions and 13 deletions
9
scripts/bodgecss.sh
Executable file
9
scripts/bodgecss.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/env bash
|
||||
|
||||
imports=$(find src/static/themes/ -name *.css| sed "s/^src\/static\///" | sed "s/^.*$/@import url\('..\/\0'\);/")
|
||||
|
||||
shopt -s globstar
|
||||
|
||||
for css in $(ls build/static/css/**/*.css); do
|
||||
printf '%s\n%s\n' "$imports" "$(cat $css)" > $css
|
||||
done
|
|
@ -55,6 +55,8 @@ fi
|
|||
|
||||
wait
|
||||
|
||||
scripts/bodgecss.sh
|
||||
|
||||
if [ -e "$CLEANSLATE" ] ; then
|
||||
cp -v "$CLEANSLATE" build/static/css/cleanslate.css
|
||||
else
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
@import url('../themes/default/commandline.css');
|
||||
@import url('../themes/dark/commandline.css');
|
||||
@import url('../themes/greenmat/commandline.css');
|
||||
|
||||
body {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
@import url('../themes/default/content.css');
|
||||
@import url('../themes/dark/content.css');
|
||||
@import url('../themes/greenmat/content.css');
|
||||
|
||||
#cmdline_iframe {
|
||||
position: fixed !important;
|
||||
bottom: 0 !important;
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
@import url('../themes/default/content.css');
|
||||
@import url('../themes/dark/content.css');
|
||||
@import url('../themes/greenmat/content.css');
|
||||
|
||||
span.TridactylHint {
|
||||
position: absolute !important;
|
||||
font-family: var(--tridactyl-hintspan-font-family) !important;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#TridactylViewsourceElement {
|
||||
position: absolute !important;
|
||||
/* This is the z-index of hint.css and content.css -1 */
|
||||
|
|
Loading…
Add table
Reference in a new issue