Move theme helpers to theme class
[phpmyadmin/madhuracj.git] / themes / pmahomme / css / theme_left.css.php
blob461329d95c471b0b18263080935e7b923786d3fd
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * navigation css file from theme Original
6 * @package phpMyAdmin-theme
7 * @subpackage pmahomme
8 */
10 // unplanned execution path
11 if (!defined('PMA_MINIMUM_COMMON')) {
12 exit();
15 /******************************************************************************/
16 /* general tags */
17 html {
18 font-size: <?php echo (null !== $GLOBALS['PMA_Config']->get('fontsize') ? $GLOBALS['PMA_Config']->get('fontsize') : $_COOKIE['pma_fontsize']); ?>;
21 input, select, textarea {
22 font-size: 1em;
25 body {
26 <?php if (! empty($GLOBALS['cfg']['FontFamily'])) { ?>
27 font-family: <?php echo $GLOBALS['cfg']['FontFamily']; ?>;
28 <?php } ?>
29 background: url(./themes/pmahomme/img/left_nav_bg.png) repeat-y right 0% #f3f3f3;
30 border-right: 1px solid #aaa;
31 color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
32 margin: 0;
33 padding: 0;
36 a img {
37 border: 0;
40 a:link,
41 a:visited,
42 a:active {
43 text-decoration: none;
44 color: #0000FF;
47 ul {
48 margin:0;
51 form {
52 margin: 0;
53 padding: 0;
54 display: inline;
57 select#select_server,
58 select#lightm_db {
59 width: 100%;
62 /* buttons in some browsers (eg. Konqueror) are block elements,
63 this breaks design */
64 button {
65 display: inline;
68 /* Icon sprites */
70 .icon {
71 /* leave some space between icons and text */
72 vertical-align: middle;
73 margin-right: 0.3em;
74 margin-left: 0.3em;
75 width:16px;
76 height:16px;
77 background: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>iconsprites.png) no-repeat top left;
80 .ic_b_home { background-position: -357px 0; }
81 .ic_b_selboard { background-position: -754px 0; }
82 .ic_b_docs { background-position: -136px 0; }
83 .ic_b_sqlhelp { background-position: -856px 0; }
84 .ic_s_reload { background-position: -1761px 0; }
85 .ic_s_loggoff { background-position: -1698px 0; }
86 .ic_b_browse, .ic_b_sbrowse { background-position: -34px 0; }
87 .ic_b_view { background-position: -1077px 0; }
88 .ic_b_plus { background-position: -573px 0; }
89 .ic_b_minus { background-position: -471px 0; }
91 .ic_b_views, .ic_s_views { background-position: -1094px 0; }
92 .ic_b_snewtbl { background-position: -788px 0; }
94 /******************************************************************************/
95 /* classes */
97 .navi_dbName {
98 font-weight: bold;
99 color: <?php echo $GLOBALS['cfg']['NaviDatabaseNameColor']; ?>;
102 /******************************************************************************/
103 /* specific elements */
105 div#pmalogo {
106 <?php //better echo $GLOBALS['cfg']['logoBGC']; ?>
109 div#recentTableList {
110 text-align: center;
111 margin: 20px 10px 0px 10px;
114 div#recentTableList select {
115 width: 100%;
118 div#pmalogo,
119 div#leftframelinks,
120 div#databaseList {
121 text-align: center;
122 margin: 5px 10px 0px 10px;
125 ul#databaseList {
126 margin: 0.8em 0px;
127 padding-bottom: 0.5em;
128 padding-<?php echo $left; ?>: 0.3em;
129 font-style: italic;
132 ul#databaseList span {
133 padding: 5px;
136 ul#databaseList a {
137 color: #333;
138 background: url(./themes/pmahomme/img/database.png) no-repeat 0 5px transparent;
139 display: block;
140 text-indent: 0;
141 padding: 5px 5px 5px 25px;
142 font-style: normal;
145 div#navidbpageselector {
146 margin: 0.1em;
147 text-align: center;
150 div#navidbpageselector a,
151 div#navidbpageselector select{
152 color: #333;
153 margin: 0.2em;
156 ul#databaseList ul {
157 margin: 0;
158 padding: 0;
161 ul#databaseList li {
162 list-style: none;
163 text-indent: 20px;
164 margin: 0;
165 padding: 0;
168 ul#databaseList a:hover {
169 background-color: #e4e4e4;
172 ul#databaseList li.selected a {
173 background: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>;
174 color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>;
177 div#leftframelinks .icon {
178 padding: 0;
179 margin: 0;
182 div#reloadlink a img,
183 div#leftframelinks a img.icon {
184 margin: 0.3em;
185 margin-top: 0.7em;
186 border: 0;
189 div#leftframelinks a:hover img {
193 /* serverlist */
194 #body_leftFrame #list_server {
195 list-style-image: url(<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_host.png);
196 list-style-position: inside;
197 list-style-type: none;
198 margin: 0;
199 padding: 0;
202 #body_leftFrame #list_server li {
203 margin: 0;
204 padding: 0;
207 div#left_tableList {margin:10px 10px 0 10px;}
208 div#left_tableList ul {
209 list-style-type: none;
210 list-style-position: outside;
211 margin: 0;
212 padding: 0;
215 div#left_tableList ul ul {
216 font-size: 100%;
219 div#left_tableList a {
220 color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
221 text-decoration: none;
224 div#left_tableList a:hover {
225 background: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>;
226 color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
227 text-decoration: underline;
230 div#left_tableList li {
231 margin: 0;
232 padding: 2px 0;
233 white-space: nowrap;
236 #newtable {
237 margin-top: 15px !important;
240 #newtable a {
241 display: block;
242 padding: 1px;
243 <?php echo $_SESSION['PMA_Theme']->getCssGradient('ffffff', 'cccccc'); ?>
244 border: 1px solid #aaa;
245 -moz-border-radius: 20px;
246 -webkit-border-radius: 20px;
247 border-radius: 20px;
250 #newtable li:hover {
251 background: transparent !important;
254 #newtable a:hover {
255 <?php echo $_SESSION['PMA_Theme']->getCssGradient('cccccc', 'dddddd'); ?>
258 #newtable li a:hover {
259 text-decoration: none;
262 select{
263 -moz-border-radius:2px 2px 2px 2px;
264 -moz-box-shadow:0 1px 2px #DDDDDD;
265 border:1px solid #aaa;
266 color:#333333;
267 padding:3px;
268 background:url(./themes/pmahomme/img/input_bg.gif);
271 <?php if ($GLOBALS['cfg']['BrowseMarkerColor']) { ?>
272 /* marked items */
273 div#left_tableList > ul li.marked > a,
274 div#left_tableList > ul li.marked {
275 background: #e4e4e4;
276 color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>;
278 <?php } ?>
280 <?php if ($GLOBALS['cfg']['LeftPointerEnable']) { ?>
281 div#left_tableList > ul li:hover > a,
282 div#left_tableList > ul li:hover {
283 background: #e4e4e4;
284 color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
286 <?php } ?>
288 div#left_tableList img {
289 padding: 0;
290 vertical-align: middle;
293 div#left_tableList ul ul {
294 margin-<?php echo $left; ?>: 0;
295 padding-<?php echo $left; ?>: 0.1em;
296 border-<?php echo $left; ?>: 0.1em solid <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
297 padding-bottom: 0.1em;
298 border-bottom: 0.1em solid <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
301 /* for the servers list in navi panel */
302 #serverinfo .item {
303 white-space: nowrap;
304 color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
306 #serverinfo a:hover {
307 background: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
308 color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
310 #reloadlink {
311 clear: both;
312 float: <?php echo $right; ?>;
313 display: block;
314 padding: 1em;
317 #NavFilter {
318 display: none;
321 #clear_fast_filter {
322 background: white;
323 color: black;
324 cursor: pointer;
325 padding: 0;
326 margin: 0;
327 position: relative;
328 right: 3ex;
331 #fast_filter {
332 width: 85%;
333 padding: 0.1em;