]> git.plutz.net Git - lobster/commitdiff
make css files static
authorpaul <paul@plutz.net>
Mon, 4 Jul 2016 21:46:19 +0000 (21:46 +0000)
committerpaul <paul@plutz.net>
Mon, 4 Jul 2016 21:46:19 +0000 (21:46 +0000)
svn path=/trunk/; revision=120

static/cards.css [moved from templates/cards.css.sh with 99% similarity, mode: 0644]
static/categories.css [moved from templates/categories.css.sh with 98% similarity, mode: 0644]
static/courses.css [moved from templates/courses.css.sh with 99% similarity, mode: 0644]
static/email.css [moved from templates/email.css.sh with 98% similarity, mode: 0644]
static/prescriptions.css [moved from templates/prescriptions.css.sh with 99% similarity, mode: 0644]
static/therapy.css [moved from templates/therapy.css.sh with 99% similarity, mode: 0644]
templates/frame.html.sh

old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from templates/cards.css.sh
rename to static/cards.css
index b7c800e..d85123f
@@ -1,3 +1,4 @@
+/*
 # Copyright 2014, 2015 Paul Hänsch
 #
 # This file is part of Confetti.
@@ -14,8 +15,7 @@
 # 
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
-
-cat <<EOF
+*/
 
 .filter {
   display: block;
@@ -222,7 +222,3 @@ form.card .insurance input[type=radio]:checked + label + select + input {
   padding: .25ex 0;
   margin-top: -1px;
 }
-
-EOF
-
-# vi:set filetype=css:
old mode 100755 (executable)
new mode 100644 (file)
similarity index 98%
rename from templates/categories.css.sh
rename to static/categories.css
index 31381a5..6b855ab
@@ -1,3 +1,4 @@
+/*
 # Copyright 2014, 2015 Paul Hänsch
 #
 # This file is part of Confetti.
@@ -14,8 +15,7 @@
 # 
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
-
-cat <<EOF
+*/
 
 form.categories {
   display: block;
@@ -93,6 +93,3 @@ ul.namelist ul li {
   display: inline-block;
   margin: 0 1ex 0 0;
 }
-EOF
-
-# vi:set filetype=css:
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from templates/courses.css.sh
rename to static/courses.css
index 3d95162..a8a8cc3
@@ -1,3 +1,4 @@
+/*
 # Copyright 2014 Paul Hänsch
 #
 # This file is part of Confetti.
@@ -14,8 +15,7 @@
 # 
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
-
-cat <<EOF
+*/
 
 .sort {
   display: block;
@@ -193,6 +193,3 @@ cat <<EOF
 .course .section input[type="text"] { width: 100%; }
 .course .section textarea.COMMENT { min-height: 6em; width: 100%; overflow: auto; }
 
-EOF
-
-# vi:set filetype=css:
old mode 100755 (executable)
new mode 100644 (file)
similarity index 98%
rename from templates/email.css.sh
rename to static/email.css
index 07b8faa..e935189
@@ -1,3 +1,4 @@
+/*
 # Copyright 2014 Paul Hänsch
 #
 # This file is part of Confetti.
@@ -14,8 +15,7 @@
 # 
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
-
-cat <<EOF
+*/
 
 .filter {
   display: block;
@@ -155,6 +155,3 @@ cat <<EOF
   font-size: 1.2em;
 }
 
-EOF
-
-# vi:set filetype=css:
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from templates/prescriptions.css.sh
rename to static/prescriptions.css
index 3810eeb..0048655
@@ -1,4 +1,4 @@
-/*
+/*
 # Copyright 2016 Paul Hänsch
 #
 # This file is part of Confetti.
 # 
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
+*/
 
-. ${0%/*}/cards.css.sh
+@import url("?static=cards.css");
 
-cat <<EOF
-/**/
 body {padding-bottom: 3em; }
 
 .trailbtn { display: none; }
@@ -295,6 +294,3 @@ input[name=presctype][value^=altpractition]:checked  ~ fieldset,
   .controls button[value=cancel],
   .controls button[value=delete] { width: 25%;}
 
-EOF
-
-# vi:set filetype=css:
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from templates/therapy.css.sh
rename to static/therapy.css
index 3dba0ee..5a169d8
@@ -1,7 +1,3 @@
-#!/bin/sh
-
-cat <<EOF
-
 .trailbtn:checked + fieldset.trailbox { display: block;}
 
 * { box-sizing: border-box; }
@@ -326,6 +322,3 @@ div.tab > fieldset.note > input.color[value="#AA0"]:checked ~ textarea { backgro
 div.tab > fieldset.note > input.color[value="#FFF"]:checked ~ textarea { background-color: #FFF; }
 
 div.tab > button.delete {float: right; display: inline-block; margin-top: -1em;}
-EOF
-
-# vi:set filetype=css:
index 53c72697c491a5f33407deacce43e0f80d2d6988..c1d3b4c9f2be4c71779841fb9db407ff5973677f 100755 (executable)
@@ -28,11 +28,7 @@ cat <<EOF
     <title>$(l10n p_${PAGE})</title>
     <meta name="viewport" content="width=device-width">
     <link rel="stylesheet" href="?static=common.css">
-    <style type="text/css">
-    <!--
-$(debug CSS; [ -x "${CSS}" ] && . "${CSS}")
-    -->
-    </style>
+    <link rel="stylesheet" href="?static=${PAGE}.css">
   </head>
   <body class="$PAGE">
     <div class="NAVIGATION">