Changeset 7877
- Timestamp:
- Nov 25, 2010, 10:26:29 PM (13 years ago)
- Location:
- trunk/themes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/Sylvia/theme.css
r7869 r7877 8 8 #comments form.filter input[type="submit"] { margin-top:1.8em; } 9 9 /* Sylvia Theme is close to the Roma Admin theme */ 10 BODY, H1, H3, DT, .rateButtonSelected, H2, #menubar DT {10 BODY, H1, H3, DT, INPUT.rateButtonSelected, H2, #menubar DT { 11 11 color:#666; 12 12 } -
trunk/themes/clear/theme.css
r7869 r7877 2 2 /* text color */ 3 3 BODY, H1, H2, H3, DT, 4 .rateButtonSelected /* <= why IE doesn't inherit this ? */ {4 INPUT.rateButtonSelected /* <= why IE doesn't inherit this ? */ { 5 5 color:#696969; /* dimgray */ 6 6 } … … 50 50 51 51 /* links */ 52 A, .rateButton {52 A, INPUT.rateButton { 53 53 color: #005e89; 54 54 background: transparent; 55 55 } 56 56 57 A:hover, .rateButton:hover {57 A:hover, INPUT.rateButton:hover { 58 58 color: #858460; 59 59 } -
trunk/themes/dark/theme.css
r7869 r7877 2 2 /* text color */ 3 3 BODY, H1, H3, 4 .rateButtonSelected /* <= why IE doesn't inherit this ? */ {4 INPUT.rateButtonSelected /* <= why IE doesn't inherit this ? */ { 5 5 color:#d0d0d0; 6 6 } … … 66 66 67 67 /* links */ 68 A, .rateButton {68 A, INPUT.rateButton { 69 69 color: #fff; 70 70 border: 0; -
trunk/themes/default/template/comment_list.tpl
r5682 r7877 3 3 {foreach from=$comments item=comment name=comment_loop} 4 4 <li> 5 <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 6 {if isset($comment.TN_SRC)} 7 <div class="illustration"> 8 <a href="{$comment.U_PICTURE}"> 9 <img src="{$comment.TN_SRC}" alt="{$comment.ALT}"> 10 </a> 11 </div> 12 {/if} 13 <div class="description" style="height:{if isset($comment.IN_EDIT)}200{/if}px"> 14 {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } 15 <ul class="actions" style="float:right"> 16 {if isset($comment.U_DELETE)} 17 <li> 18 <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> 19 <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" alt="[delete]"> 20 </a> 21 </li> 22 {/if} 23 {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} 24 <li> 25 <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> 26 <img src="{$ROOT_URL}{$themeconf.icon_dir}/edit.png" class="button" alt="[edit]"> 27 </a> 28 </li> 29 {/if} 30 {if isset($comment.U_VALIDATE)} 31 <li> 32 <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> 33 <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]"> 34 </a> 35 </li> 36 {/if} 37 </ul> 38 {/if} 39 <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> 40 {if isset($comment.IN_EDIT)} 41 <a name="edit_comment"></a> 42 <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> 43 <fieldset> 44 <legend>{'Edit a comment'|@translate}</legend> 45 <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label> 46 <input type="hidden" name="key" value="{$comment.KEY}"> 47 <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> 48 <input class="submit" type="submit" value="{'Submit'|@translate}"> 49 </fieldset> 50 </form> 51 {else} 52 <blockquote><div>{$comment.CONTENT}</div></blockquote> 53 {/if} 54 </div> 55 </div> 5 <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 6 {if isset($comment.TN_SRC)} 7 <div class="illustration"> 8 <a href="{$comment.U_PICTURE}"> 9 <img src="{$comment.TN_SRC}" alt="{$comment.ALT}"> 10 </a> 11 </div> 12 {/if} 13 <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}> 14 {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } 15 <ul class="actions" style="float:right"> 16 {if isset($comment.U_DELETE)} 17 <li> 18 <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> 19 <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" alt="[delete]"> 20 </a> 21 </li> 22 {/if} 23 {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} 24 <li> 25 <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> 26 <img src="{$ROOT_URL}{$themeconf.icon_dir}/edit.png" class="button" alt="[edit]"> 27 </a> 28 </li> 29 {/if} 30 {if isset($comment.U_VALIDATE)} 31 <li> 32 <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> 33 <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]"> 34 </a> 35 </li> 36 {/if} 37 </ul> 38 {/if} 39 40 <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> 41 {if isset($comment.IN_EDIT)} 42 <a name="edit_comment"></a> 43 <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> 44 <fieldset> 45 <legend>{'Edit a comment'|@translate}</legend> 46 <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label> 47 <input type="hidden" name="key" value="{$comment.KEY}"> 48 <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> 49 <input class="submit" type="submit" value="{'Submit'|@translate}"> 50 </fieldset> 51 </form> 52 {else} 53 <blockquote><div>{$comment.CONTENT}</div></blockquote> 54 {/if} 55 </div> 56 </div> 56 57 </li> 57 58 {/foreach} -
trunk/themes/default/template/picture_nav_buttons.tpl
r5305 r7877 64 64 </div> 65 65 66 <script type="text/javascript">// <![CDATA[ 67 {literal} 68 function keyboardNavigation(e) 66 <script type="text/javascript">// <![CDATA[ {literal} 67 document.onkeydown = function(e) 69 68 { 70 if(!e) e=window.event;69 e=e||window.event; 71 70 if (e.altKey) return true; 72 var target = e.target ||e.srcElement;71 var target = e.target||e.srcElement; 73 72 if (target && target.type) return true; //an input editable element 74 var keyCode =e.keyCode ||e.which;73 var keyCode = e.keyCode||e.which; 75 74 var docElem = document.documentElement; 75 var url; 76 76 switch(keyCode) { 77 77 {/literal} 78 78 {if isset($next)} 79 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&", "&" ); return false; }break;79 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG|@escape:jasvascript}"; break; 80 80 {/if} 81 81 {if isset($previous)} 82 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0) {ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&","&"); return false; }break;82 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG|@escape:jasvascript}"; break; 83 83 {/if} 84 84 {if isset($first)} 85 /*Home*/case 36: if (e.ctrlKey) {ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&","&"); return false; }break;85 /*Home*/case 36: if (e.ctrlKey)url="{$first.U_IMG|@escape:jasvascript}"; break; 86 86 {/if} 87 87 {if isset($last)} 88 /*End*/case 35: if (e.ctrlKey) {ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&","&"); return false; }break;88 /*End*/case 35: if (e.ctrlKey)url="{$last.U_IMG|@escape:jasvascript}"; break; 89 89 {/if} 90 90 {if isset($U_UP) and !isset($slideshow)} 91 /*Up*/case 38: if (e.ctrlKey) {ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; }break;91 /*Up*/case 38: if (e.ctrlKey)url="{$U_UP|@escape:jasvascript}"; break; 92 92 {/if} 93 93 94 94 {if isset($slideshow.U_START_PLAY)} 95 /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&","&"); return false; }break;95 /*Pause*/case 32: url="{$slideshow.U_START_PLAY|@escape:jasvascript}"; break; 96 96 {/if} 97 97 {if isset($slideshow.U_STOP_PLAY)} 98 /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&","&"); return false; }break;98 /*Play*/case 32: url="{$slideshow.U_STOP_PLAY|@escape:jasvascript}"; break; 99 99 {/if} 100 100 } 101 if (url) {ldelim}window.location=url.replace("&","&"); return false;} 101 102 return true; 102 103 } 103 document.onkeydown=keyboardNavigation;104 104 // ]]></script> -
trunk/themes/default/theme.css
r7869 r7877 301 301 display: table-cell;/* block prevents vertical-align here */ 302 302 vertical-align: middle;/* Ok with Opera and Geko not IE6 */ 303 border-radius: 4px 4px; /* round corners with CSS3 compliant browsers */303 border-radius: 4px; /* round corners with CSS3 compliant browsers */ 304 304 -moz-border-radius: 4px; /* round corners with Geko */ 305 305 -webkit-border-radius: 4px; /* Safari webkit project */ … … 400 400 padding:0; 401 401 border:0; 402 color:inherit; 403 background-color:transparent !important; /* Konqueror doesn't accept transparent here */ 402 404 } 403 405 … … 418 420 background: url('icon/rating-stars.gif') no-repeat scroll; background-position:0 center; width:16px; 419 421 } 422 420 423 421 424 /** … … 652 655 } 653 656 654 #thePopuphelpPage P { 655 text-align: justify; 657 #thePopuphelpPage P, #theNotificationPage P { 656 658 padding: 0.5em; 657 659 } 658 660 659 #thePopuphelpPage LI { 660 margin-bottom: 0.5em; 661 } 662 663 #theNotificationPage P { 664 padding: 0.5em; 661 #theNotificationPage DL, #thePopuphelpPage DL { 662 margin: 0 25px 25px; 665 663 } 666 664 … … 696 694 697 695 #theHeader {text-align: center;} 698 699 #theNotificationPage DL, #thePopuphelpPage DL {700 margin: 0 25px 25px;701 }702 696 703 697 .content #comments UL.thumbnailCategories LI { width:99%; } … … 772 766 } 773 767 774 /* rate buttons displayed like links */775 .rateButton, .rateButtonSelected, .rateButtonStarFull, .rateButtonStarEmpty {776 color:inherit;777 background-color:transparent !important; /* Konqueror doesn't accept transparent here */778 }779 768 780 769 .errors { /* Errors display */
Note: See TracChangeset
for help on using the changeset viewer.