OSDN Git Service

立ち絵背景時、文字の背景を半透明透かしに変更
authorCake <cake_67@users.sourceforge.jp>
Fri, 9 Apr 2010 02:57:24 +0000 (11:57 +0900)
committerCake <cake_67@users.sourceforge.jp>
Fri, 9 Apr 2010 02:57:24 +0000 (11:57 +0900)
app/views/elements/character_picture_full.ctp
app/views/elements/character_view.ctp
app/views/helpers/profiledisp.php
app/webroot/css/box.css
app/webroot/css/character-sheet.css

index abc7327..2cb0038 100644 (file)
@@ -30,7 +30,6 @@ $url = $medium->url($file, true);
 <!--
 .fullLength {
        background-image: url(<?php echo $url ?>);
-       background-position: 90px top;
 }
 table.CharacterSheet tr,
 table.CharacterSheet tr td {
@@ -39,6 +38,24 @@ table.CharacterSheet tr td {
 table.CharacterSheet {
        background: transparent url('/chara-shee/img/character_sheet/transparent_bg.gif') repeat;
 }
+table.CharacterSheet table.System td,
+table.CharacterSheet tr td.table td,
+table.CharacterSheet tr td div.text a,
+table.CharacterSheet tr td div span,
+table.CharacterSheet tr td div span.text a {
+       background-color: #FFF;
+}
+table.CharacterSheet table.System td,
+table.CharacterSheet tr th,
+table.CharacterSheet tr td.table th,
+table.CharacterSheet tr td.table td,
+table.CharacterSheet tr td div.text a,
+table.CharacterSheet tr td div span,
+table.CharacterSheet tr td div span.text a {
+       filter: alpha(opacity=80);
+       -moz-opacity:0.80;
+       opacity:0.80;
+}
 
 -->
 </style>
index 54e0afd..22429f1 100644 (file)
@@ -19,7 +19,7 @@ echo $this->renderElement('character_picture_full', array(
        echo $html->tag(
                'span',
                $html->link(__('Edit', true), array('action' => 'edit', $character['Character']['id'])),
-               array('class' => 'link')
+               array('class' => 'text')
        ); 
 ?>
 <?php endif; ?>
@@ -127,7 +127,7 @@ echo $this->renderElement('character_picture_full', array(
 </div>
 <?php
        if ($isOwner) {
-               echo $html->div('editImageLink', 
+               echo $html->div('editImageLink text', 
                        $html->link(__('Edit Image', true), $url)
                );
        }
@@ -144,7 +144,9 @@ echo $this->renderElement('character_picture_full', array(
 <td class="CharacterBasicData">
 <div id="CharacterName">
 <?php 
-       echo $character['Character']['name'];
+       echo $html->tag('span',
+               $character['Character']['name']
+       );
 ?>
 </div>
 </td>
@@ -158,7 +160,7 @@ echo $this->renderElement('character_picture_full', array(
 <td class="CharacterBasicData">
 <div id="UserName">
 <?php 
-       echo $html->link(
+       echo $html->tag('span', $html->link(
                $character['User']['name'], 
                array(
                        'controller' => 'users', 
@@ -168,7 +170,7 @@ echo $this->renderElement('character_picture_full', array(
                array(), 
                false, 
                false
-       );
+       ));
 ?>
 </div>
 </td>
@@ -202,14 +204,22 @@ echo $this->renderElement('character_picture_full', array(
        }
 
        if (count($character['CharacterPicture']) > 0) {
-               echo $html->link(
-                       __(' ...More', true),
-                       $url = array('controller' => 'character_pictures', 'action' => 'index', $character['Character']['id'])
+               echo $html->tag(
+                       'span',
+                       $html->link(
+                               __(' ...More', true),
+                               $url = array('controller' => 'character_pictures', 'action' => 'index', $character['Character']['id'])
+                       ),
+                       array('class' => 'text')
                );
        } elseif ($isOwner) {
-               echo $html->link(
-                       __('Add Pictures', true),
-                       $url = array('controller' => 'character_pictures', 'action' => 'index', $character['Character']['id'])
+               echo $html->tag(
+                       'span',
+                       $html->link(
+                               __('Add Pictures', true),
+                               $url = array('controller' => 'character_pictures', 'action' => 'index', $character['Character']['id'])
+                       ),
+                       array('class' => 'text')
                );
        }
 ?>
@@ -249,7 +259,9 @@ foreach($profiles as $key =>$profile):
 <td colspan="3" class="CharacterProfileData">
 <div id="Notes">
 <?php 
-       echo $character['Character']['notes'];
+       echo $html->tag('span',
+                $character['Character']['notes']
+       );
  ?>
 </div>
 </td>
@@ -264,7 +276,7 @@ foreach($profiles as $key =>$profile):
        echo $html->tag(
                'span',
                $html->link(__('Edit Character', true), array('action' => 'edit', $character['Character']['id'])),
-               array('class' => 'link')
+               array('class' => 'text')
        ); 
 ?>
 <?php endif; ?>
index 4434a11..2c2a6a7 100644 (file)
@@ -567,7 +567,7 @@ class ProfiledispHelper extends Helper {
                        echo '</table>';
                        if ($disp_add_link) {
                                echo $this->Html->div(
-                                       'editLink', 
+                                       'editLink text', 
                                        $this->Html->link(
                                                __('Edit Data', true),
                                                array(
@@ -600,10 +600,10 @@ class ProfiledispHelper extends Helper {
                        foreach ($profile['CharactersHasProfile'] as $v) {
                                if (!empty($v['value'])) {
                                        if ($num > 0) {
-                                               echo ",&nbsp;";
+                                               echo "&nbsp;";
                                        }
 
-                                       echo $v['value'];
+                                       echo $this->Html->tag('span', $v['value']);
                                        $num++;
                                }
                        }
@@ -625,7 +625,7 @@ class ProfiledispHelper extends Helper {
                        echo '</table>';
                        if ($disp_add_link) {
                                echo $this->Html->div(
-                                       'editLink', 
+                                       'editLink text', 
                                        $this->Html->link(
                                                __('Edit Data', true),
                                                array(
index 66e2097..16159ac 100644 (file)
 }
 .boxBody table td
  {
-       padding: 5px;
+       padding: 3px;
+}
+.boxBody table td div span
+ {
+       padding: 2px;
 }
 .boxFooter {
+       margin: 7px;
 }
 .boxFooter a,
 .boxFooter a:visited,
index 3f8d5f6..376b75f 100644 (file)
@@ -25,6 +25,7 @@
 
 .characters .boxBody table {
        display: block;
+       margin-bottom: 0;
 }
 
 /* テーブル表示 */
@@ -58,10 +59,6 @@ table.CharacterSheet tr td.table td
 {
        overflow: hidden;
 }
-table.CharacterSheet tr td.table td
-{
-       background: #fff;
-}
 tr td.table tr td input,
 table.CharacterSheet tr td.table tr td input
 {