Commit dff939224e0e2255fa9831810e88b8af05075a54
1 parent
9cc1b9a4
Moved the upload / download arrow into the background image.
PT: 1697902 Jira: KTS-4509 Committed by: Megan Watson
Showing
6 changed files
with
19 additions
and
23 deletions
lib/widgets/portlet.inc.php
| ... | ... | @@ -5,7 +5,7 @@ |
| 5 | 5 | * KnowledgeTree Community Edition |
| 6 | 6 | * Document Management Made Simple |
| 7 | 7 | * Copyright (C) 2008, 2009 KnowledgeTree Inc. |
| 8 | - * | |
| 8 | + * | |
| 9 | 9 | * |
| 10 | 10 | * This program is free software; you can redistribute it and/or modify it under |
| 11 | 11 | * the terms of the GNU General Public License version 3 as published by the |
| ... | ... | @@ -153,13 +153,12 @@ class KTActionPortlet extends KTPortlet { |
| 153 | 153 | |
| 154 | 154 | // Create button html |
| 155 | 155 | $button = "<div class='portlet_button'> |
| 156 | - <a href='$link'> | |
| 156 | + <a href='{$link}'> | |
| 157 | 157 | <div class='big_btn_left'></div> |
| 158 | 158 | <div class='big_btn_middle'> |
| 159 | 159 | <div class='btn_text'>{$text}</div> |
| 160 | - <div class='{$class}'></div> | |
| 161 | 160 | </div> |
| 162 | - <div class='big_btn_right'></div> | |
| 161 | + <div class='big_btn_right {$class}'></div> | |
| 163 | 162 | </a> |
| 164 | 163 | </div>"; |
| 165 | 164 | ... | ... |
resources/css/kt-framing.css
| ... | ... | @@ -1218,20 +1218,6 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes |
| 1218 | 1218 | text-decoration: none; |
| 1219 | 1219 | } |
| 1220 | 1220 | |
| 1221 | -.portlet_button a .arrow_download { | |
| 1222 | - background: transparent url(../../resources/graphics/download_arrow.gif) center right no-repeat; | |
| 1223 | - width: 20px; | |
| 1224 | - height: 47px; | |
| 1225 | - float: right; | |
| 1226 | -} | |
| 1227 | - | |
| 1228 | -.portlet_button a .arrow_upload { | |
| 1229 | - background: transparent url(../../resources/graphics/upload_arrow.gif) center right no-repeat; | |
| 1230 | - width: 20px; | |
| 1231 | - height: 47px; | |
| 1232 | - float: right; | |
| 1233 | -} | |
| 1234 | - | |
| 1235 | 1221 | .portlet_button a .big_btn_left { |
| 1236 | 1222 | background: transparent url(../../resources/graphics/btn_left.gif) top left no-repeat; |
| 1237 | 1223 | width: 10px; |
| ... | ... | @@ -1246,16 +1232,23 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes |
| 1246 | 1232 | text-align: center; |
| 1247 | 1233 | vertical-align: middle; |
| 1248 | 1234 | align: center; |
| 1249 | - width: 89%; | |
| 1235 | + width: 80%; | |
| 1250 | 1236 | } |
| 1251 | 1237 | |
| 1252 | 1238 | .portlet_button a .big_btn_right { |
| 1253 | - background: transparent url(../../resources/graphics/btn_right.gif) top right no-repeat; | |
| 1254 | 1239 | float: left; |
| 1255 | - width: 10px; | |
| 1240 | + width: 25px; | |
| 1256 | 1241 | height: 47px; |
| 1257 | 1242 | } |
| 1258 | 1243 | |
| 1244 | +.portlet_button a .arrow_upload{ | |
| 1245 | + background: transparent url(../../resources/graphics/btn_right_up.gif) top right no-repeat; | |
| 1246 | +} | |
| 1247 | + | |
| 1248 | +.portlet_button a .arrow_download{ | |
| 1249 | + background: transparent url(../../resources/graphics/btn_right_down.gif) top right no-repeat; | |
| 1250 | +} | |
| 1251 | + | |
| 1259 | 1252 | .portlet_button a:hover .big_btn_left { |
| 1260 | 1253 | background: transparent url(../../resources/graphics/btn_left_ro.gif) top left no-repeat; |
| 1261 | 1254 | } |
| ... | ... | @@ -1264,8 +1257,12 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes |
| 1264 | 1257 | background: transparent url(../../resources/graphics/btn_middle_ro.gif) repeat-x; |
| 1265 | 1258 | } |
| 1266 | 1259 | |
| 1267 | -.portlet_button a:hover .big_btn_right { | |
| 1268 | - background: transparent url(../../resources/graphics/btn_right_ro.gif) top right no-repeat; | |
| 1260 | +.portlet_button a:hover .arrow_upload { | |
| 1261 | + background: transparent url(../../resources/graphics/btn_right_ro_up.gif) top right no-repeat; | |
| 1262 | +} | |
| 1263 | + | |
| 1264 | +.portlet_button a:hover .arrow_download { | |
| 1265 | + background: transparent url(../../resources/graphics/btn_right_ro_down.gif) top right no-repeat; | |
| 1269 | 1266 | } |
| 1270 | 1267 | |
| 1271 | 1268 | ... | ... |
resources/graphics/btn_right_down.gif
0 → 100644
1.93 KB
resources/graphics/btn_right_ro_down.gif
0 → 100644
1.93 KB
resources/graphics/btn_right_ro_up.gif
0 → 100644
2.14 KB
resources/graphics/btn_right_up.gif
0 → 100644
2.14 KB