From 0e814c6ffab2486405f60a1dfbfa048e76bba1f2 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 2 Jul 2015 12:30:29 +0000 Subject: [PATCH] little more "semantic markup" svn path=/trunk/; revision=67 --- templates/attendees.css.sh | 97 ++++++++++++++++++++----------------- templates/attendees.html.sh | 64 +++++++++++++----------- templates/edit_attendee.sh | 2 +- templates/frame.html.sh | 23 ++++----- 4 files changed, 99 insertions(+), 87 deletions(-) diff --git a/templates/attendees.css.sh b/templates/attendees.css.sh index ce0b82b..2aa7b40 100755 --- a/templates/attendees.css.sh +++ b/templates/attendees.css.sh @@ -1,4 +1,4 @@ -# Copyright 2014 Paul Hänsch +# Copyright 2014, 2015 Paul Hänsch # # This file is part of Confetti. # @@ -17,71 +17,80 @@ cat < .label { +.filter h1 { display: block; font-weight: bold; - font-size: 1.2em; + font-size: 1.25em; border-style: none none solid none; + border-radius: 4px 4px 0 0; border-width: 1px; - margin: 0em 0ex .5em 0ex; + margin: 0 -1.625ex .5em -1.625ex; + padding: .125em 1ex; background: #EEF; } - -.filter .search { - margin: 0em 2ex .5em 2ex; +.filter input[type="text"] { + width: 100%; + margin-bottom: .5em; +} +.filter fieldset { + border: none; + padding: 0 0 0 12ex; + margin: 0 0 -.5em 0; } -.filter .search .label { +.filter fieldset legend { display: inline-block; - width: 12ex; + font-size: 1em; font-weight: bold; - margin-top: .5em; + margin-left: -12ex; } -.filter .search input[type="radio"] { - margin-top: .5em; - margin-left: 1ex; +.filter input[type="radio"] + label { + display: inline-block; + position: relative; + top: -1.125em; + margin-left: 2ex; } -.filter .search button { +.filter button { margin-top: .5em; } -.filter .search input[type="text"] { - width: 124ex; -} - .newcard { display: block; - width: 126ex; border-width: 1px; border-style: solid; border-radius: 0 0 4px 4px; - margin: .25em auto 1em auto; + margin: .25em 2em 1em 2em; padding: .25em 2ex .25em 2ex; background: #EFF; } -.cardlist .card { +.card { display: block; - width: 130ex; border-style: solid; border-width: 1px; - margin: .25em auto; + margin: .25em 2em; padding: 0; overflow: auto; background: #FFF; } - -.cardlist .card .section { +.card .section { display: inline-block; float:left; width: 20ex; @@ -89,37 +98,37 @@ cat < - $(l10n filter_label) - - +
+

$(l10n filter_label)

+ + +
+
+ $(l10n filter_type): + + + + + + + +
+
+ $(l10n filter_order): + + + +
+ + +
-
-
+
-
-
$( [ -f "vcard/$edit" -o -f "temp/$edit" ] && edit_attendee "$edit" if [ "$?" = 0 ]; then @@ -69,7 +76,6 @@ fi |while read card; do view_attendee "$card" done ) -
EOF # vi:set filetype=html: diff --git a/templates/edit_attendee.sh b/templates/edit_attendee.sh index e505012..bf50455 100755 --- a/templates/edit_attendee.sh +++ b/templates/edit_attendee.sh @@ -122,7 +122,7 @@ echo '
' echo ' '$(l10n course_attendance)'' listcourses |while read each; do cname="$(sed -rn 's:^SUMMARY\:(.*)$:\1:p' "$_DATA/ical/$each")" - echo ' '$cname'' + echo ' ' done echo '
' echo '' diff --git a/templates/frame.html.sh b/templates/frame.html.sh index d6441d2..fafd0b2 100755 --- a/templates/frame.html.sh +++ b/templates/frame.html.sh @@ -23,10 +23,13 @@ cat <$($PAGE title) - + -
- $(. $PAGE body) -
+ $(. $PAGE body) EOF -- 2.39.2