OSDN Git Service

コラムとNOTEのスタイルを修正。
authortakezoe <takezoe@871d6764-1e22-0410-b313-a55050885396>
Mon, 29 Aug 2011 23:46:17 +0000 (23:46 +0000)
committertakezoe <takezoe@871d6764-1e22-0410-b313-a55050885396>
Mon, 29 Aug 2011 23:46:17 +0000 (23:46 +0000)
takezoe/plugin/book/Column.pm
takezoe/plugin/book/Install.pm
takezoe/plugin/book/Note.pm

index b29715d..686b6fe 100644 (file)
@@ -31,8 +31,9 @@ sub block {
        
        $self->{'count'}++;
        
-       return '<div class="column-title"><a name="c'.($self->{'count'} - 1).'">¥³¥é¥à: '.Util::escapeHTML($title).'</a></div>'.
-               '<div class="column-body">'.$wiki->process_wiki($content).'</div>';
+       return '<div class="column"><div class="column-title">".
+               "<a name="c'.($self->{'count'} - 1).'">¥³¥é¥à: '.Util::escapeHTML($title).'</a></div>'.
+               '<div class="column-body">'.$wiki->process_wiki($content).'</div></div>';
 }
 
 1;
index bfd4fa7..fd02863 100644 (file)
@@ -103,45 +103,40 @@ img {
   border: 1px solid silver;
 }
 
+div.column {
+  border: 1px solid gray;
+  margin-left: 20px;
+  margin-right: 20px;
+  margin-top: 10px;
+  margin-bottom: 20px;
+}
+
 div.column-title {
-  border-top: 1px solid gray;
-  border-left: 1px solid gray;
-  border-right: 1px solid gray;
-  padding: 4px;
   background-color: silver;
   font-weight: bold;
-  margin-left: 20px;
-  margin-right: 20px;
+  padding: 4px;
 }
 
 div.column-body {
-  border-bottom: 1px solid gray;
-  border-left: 1px solid gray;
-  border-right: 1px solid gray;
   padding: 4px;
+}
+
+div.note {
+  border: 2px dotted #FF8888;
+  background-color: #FFEEEE;
+  margin-bottom: 20px;
   margin-left: 20px;
+  margin-top: 10px;
   margin-right: 20px;
-  margin-bottom: 20px;
 }
 
 div.note-title {
-  border-top: 1px dotted gray;
-  border-left: 1px dotted gray;
-  border-right: 1px dotted gray;
-  padding: 4px;
   font-weight: bold;
-  margin-left: 20px;
-  margin-right: 20px;
+  padding: 4px;
 }
 
 div.note-body {
-  border-bottom: 1px dotted gray;
-  border-left: 1px dotted gray;
-  border-right: 1px dotted gray;
   padding: 4px;
-  margin-left: 20px;
-  margin-right: 20px;
-  margin-bottom: 20px;
 }
 
 span.keyword {
index 0720a23..5d23bac 100644 (file)
@@ -27,8 +27,8 @@ sub block {
        my $wiki    = shift;
        my $content = shift;
        
-       return '<div class="note-title">Note</div>'.
-               '<div class="note-body">'.$wiki->process_wiki($content).'</div>';
+       return '<div class="note"><div class="note-title">Note</div>'.
+               '<div class="note-body">'.$wiki->process_wiki($content).'</div></div>';
 }
 
 1;