changeset 139:2aba556fe52d

replaced "_" to "-" in css class names
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 30 Jun 2008 11:05:06 +0200
parents 66edb441a93b
children b529fec613c2
files data/plugin/action/arnica_slides.py data/plugin/parser/text_x_arnica.py htdocs/modern/css/arnica_slides.css htdocs/modern/css/text_x_arnica.css
diffstat 4 files changed, 26 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Mon Jun 30 00:58:56 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Mon Jun 30 11:05:06 2008 +0200
@@ -235,7 +235,7 @@
 
     html = '''
 <div class="arnica">
-<div class="navigation_animation">
+<div class="navigation-animation">
 <form name=slideform method="POST" action="">
 <div>
 <input type="hidden" name="flag" value="webnail">
@@ -250,7 +250,7 @@
 </div>
 </form>
 </div>
-<div class="navigation_button">
+<div class="navigation-button">
 <span id="arnica_first_slide"><a class="first_slide" onclick="arnica_first_slide();" name="fs"  title="first slide" ></a></span>
 <a class="previous_slide" onclick="arnica_previous_slide();"  title="previous slide"></a>
 <a class="next_slide" onClick="arnica_next_slide();"  title="next slide"></a>
@@ -259,7 +259,7 @@
 <div class="image">
 <img src="%(server)s%(this_image)s" name="show" alt="%(this_alias_text)s,%(this_exif_date_text)s">
 </div>
-<div class="image_description">
+<div class="image-description">
 <span id="arnica_alias_text">%(this_alias_text)s</span>,
 <span id="arnica_exif_date_text">%(this_exif_date_text)s</span>
 </div>
--- a/data/plugin/parser/text_x_arnica.py	Mon Jun 30 00:58:56 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Mon Jun 30 11:05:06 2008 +0200
@@ -251,7 +251,7 @@
 
         return '''
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
-            <div class="rotate_to_left">
+            <div class="rotate-to-left">
                 <input type="hidden" name="action" value="arnica_slides">
                 <input type="hidden" name="do" value="rotate_left">
                 <input type="hidden" name="target" value="%(this_target)s">
@@ -259,7 +259,7 @@
             </div>
         </form>
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
-            <div class="rotate_to_right">
+            <div class="rotate-to-right">
                 <input type="hidden" name="action" value="arnica_slides">
                 <input type="hidden" name="do" value="rotate_right">
                  <input type="hidden" name="target" value="%(this_target)s">
@@ -267,7 +267,7 @@
             </div>
         </form>
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
-             <div class="delete_image">
+             <div class="delete-image">
                  <input type="hidden" name="action" value="arnica_slides">
                  <input type="hidden" name="do" value="delete">
                  <input type="hidden" name="target" value="%(this_target)s">
@@ -287,7 +287,7 @@
         this_image = self.full[idx]
         text = '''
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
-            <div class="get_image">
+            <div class="get-image">
                 <input type="hidden" name="action" value="AttachFile">
                 <input type="hidden" name="do" value="get">
                 <input type="hidden" name="target" value="%(this_target)s">
@@ -295,7 +295,7 @@
             </div>
         </form>
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
-            <div class="slide_show">
+            <div class="slide-show">
                 <input type="hidden" name="action" value="arnica_slides">
                 <input type="hidden" name="do" value="slide_show">
                 <input type="hidden" name="alias" value="%(description)s">
@@ -328,7 +328,7 @@
         """ shows toolbox """
         text = ''
         if self.show_tools:
-            text = '<div class="html_show_tools">%(tools)s</div>' % {
+            text = '<div class="html-show-tools">%(tools)s</div>' % {
                 "style": self.td_style,
                 "tools": self.html_tools(idx)}
         return text
@@ -337,7 +337,7 @@
         """ shows date """
         text = ''
         if self.show_date:
-            text = '<div class="html_show_date">%(this_exif_date)s</div>' % {
+            text = '<div class="html-show-date">%(this_exif_date)s</div>' % {
                 "this_exif_date": self.exif_date[idx]}
         return text
 
@@ -345,7 +345,7 @@
         """ view mode 1 alias text below image """
         text = ''
         if self.show_text:
-            text = '<div class="html_show_alias"> %(this_alias)s</div>' % {
+            text = '<div class="html-show-alias"> %(this_alias)s</div>' % {
                     "this_alias": self.to_wikitext(self.description[idx])}
         return text
 
@@ -356,7 +356,7 @@
             title = '<div class="title">%(n)d images (%(album_title)s)</div>' % {"n": len(self.full),
                                                         "album_title": self.album_title or self.pagename}
         text = '''
-<div class="arrange_thumbnails">
+<div class="arrange-thumbnails">
     <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
         <div class="image"> %(title)s
              <input type="hidden" name="action" value="arnica_slides">
@@ -571,7 +571,7 @@
             Copy the following listitems into the script.
             Replace alias with the label you want.
             Afterwards disable template_itemlist by setting it to False:"""))
-            self.request.write('<div class="template_itemlist">')
+            self.request.write('<div class="template-itemlist">')
             for image in self.full:
                 self.request.write('<br> * [[%(image)s|%(alias)s]]\n' % {
                                    'image': image,
--- a/htdocs/modern/css/arnica_slides.css	Mon Jun 30 00:58:56 2008 +0200
+++ b/htdocs/modern/css/arnica_slides.css	Mon Jun 30 11:05:06 2008 +0200
@@ -30,13 +30,13 @@
     margin: 2em;
 }
 
-.arnica .navigation_animation {
+.arnica .navigation-animation {
     text-align: center;
     vertical-align: middle;
     margin: 0.5em;
 }
 
-.arnica .navigation_button {
+.arnica .navigation-button {
     text-align: center;
     vertical-align: middle;
     margin: 0.5em;
@@ -48,7 +48,7 @@
     margin: 0.5em;
 }
 
-.arnica .image_description {
+.arnica .image-description {
     text-align: center;
     padding: 0.5em;
     line-height: 1.2;
--- a/htdocs/modern/css/text_x_arnica.css	Mon Jun 30 00:58:56 2008 +0200
+++ b/htdocs/modern/css/text_x_arnica.css	Mon Jun 30 11:05:06 2008 +0200
@@ -20,7 +20,7 @@
     border: none;
 }
 
-.arrange_thumbnails {
+.arrange-thumbnails {
     position: relative;
     display: block;
     text-align: center;
@@ -36,7 +36,7 @@
     padding: 0.2em;
 }
 
-.arnica .text .template_itemlist {
+.arnica .text .template-itemlist {
     position:  relative;
     background: #ff0;
     text-align: left;
@@ -56,21 +56,21 @@
     margin: 0.2em;
 }
 
-.arnica .html_show_alias {
+.arnica .html-show-alias {
     text-align: left;
     padding: 0.2em;
     line-height: 1.2;
     font-size: 90%;
 }
 
-.arnica .html_show_date {
+.arnica .html-show-date {
     text-align: center;
     padding: 0.2em;
     line-height: 1.2;
     font-size: 90%;
  }
  
-.arnica .html_show_tools {
+.arnica .html-show-tools {
     position: relative;
     text-align: middle;
     vertical-align: middle;
@@ -78,7 +78,7 @@
     margin: 0.25em;
 }
 
-.arnica .html_show_tools .get_image {
+.arnica .html-show-tools .get-image {
     position: absolute;
     margin: 0em;
     left: 5%;
@@ -86,7 +86,7 @@
     vertical-align: middle;
 }
 
-.arnica  .html_show_tools .slide_show {
+.arnica  .html-show-tools .slide-show {
     position: absolute;
     margin: 0em;
     left: 25%;
@@ -94,7 +94,7 @@
     vertical-align: middle;
 }
 
-.arnica  .html_show_tools .rotate_to_left {
+.arnica  .html-show-tools .rotate-to-left {
     position: absolute;
     margin: 0em;
     left: 45%;
@@ -102,7 +102,7 @@
     vertical-align: middle;
 }
 
-.arnica  .html_show_tools .rotate_to_right {
+.arnica  .html-show-tools .rotate-to-right {
     position: absolute;
     margin:0em;
     left: 65%;
@@ -110,7 +110,7 @@
     vertical-align: middle;
 }
 
-.arnica  .html_show_tools .delete_image {
+.arnica  .html-show-tools .delete-image {
     position: absolute;
     margin: 0em;
     left: 85%;