Selaa lähdekoodia

CSS style for SELECT elements

pecesama 16 vuotta sitten
vanhempi
commit
f0653b5e23
3 muutettua tiedostoa jossa 12 lisäystä ja 20 poistoa
  1. 7 13
      admin/css/style.css
  2. 5 6
      admin/options.php
  3. 0 1
      admin/settings.php

+ 7 - 13
admin/css/style.css Näytä tiedosto

@@ -63,25 +63,19 @@ body{ background: #fff; text-align:center; font-family:"Trebuchet Ms", Verdana,
63 63
 
64 64
 form.newpost{ width:500px; margin:0 auto; padding:0;}
65 65
 form.newpost ul{ list-style-type:none; margin:20px 0 10px 0; padding:0;}
66
-form.newpost li{ margin:4px 0; padding:0;}
66
+form.newpost li{ margin:4px 0; padding:0; position:relative;}
67
+form.newpost li.select{ margin:6px 0;}
67 68
 form.newpost label{}
68 69
 form.newpost input{ margin-bottom:10px;}
69 70
 form.newpost input.txt{ background: #fff url(images/grad-small.png) top left repeat-x; height:15px; border:1px solid #999; width:490px; padding:5px;}
70 71
 form.newpost input.btn{ }
71 72
 form.newpost textarea{background: #fff url(images/grad-big.png) top left repeat-x; height:190px; border:1px solid #999; width:490px; padding:5px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:0.8em;}
73
+form.newpost select{ position:absolute; right:10px; top:1px;}
74
+html > body form.newpost select{min-width:100px;}
72 75
 
73
-legend.install{
74
-	font: normal 16.5px/17px georgia, "times new roman", serif;
75
-	border: 0;
76
-	margin-top: 0px;
77
-	padding-top:0;
78
-	margin-bottom: 0;
79
-	padding-bottom: 0;	
80
-	color: #c60;
81
-	margin-bottom: 10px;
82
-}
83
-
84
-.tabla{ background-color:#FFFBFF; margin:20px 15px; }
76
+legend.install{font: normal 16.5px/17px georgia, "times new roman", serif; border: 0; margin-top: 0px; padding-top:0; margin-bottom: 0; padding-bottom: 0; color: #c60; margin-bottom: 10px;}
77
+
78
+.tabla{  margin:15px 15px; }
85 79
 .entry{ background-color:#efefef; border:1px solid #ccc; margin:20px 15px;}
86 80
 .info{ border-bottom:1px solid #aaa; position:relative; display:block; padding:4px 10px; height:20px; }
87 81
 .info p{font-size:0.8em; color:#297aab; display:inline;}

+ 5 - 6
admin/options.php Näytä tiedosto

@@ -99,7 +99,6 @@ if ($user->isAdmin()) {
99 99
 					<li><a href="settings.php"><?php echo __("Settings")?></a></li>
100 100
 					<li class="selected"><a><?php echo __("Options")?></a></li>
101 101
 					</ul>
102
-					<p>&nbsp;</p>
103 102
 <?php
104 103
 					if (isset($_GET["modified"])) {
105 104
 						if ($_GET["modified"]=="true") {
@@ -117,25 +116,25 @@ if ($user->isAdmin()) {
117 116
 						<form action="options.php" method="post" id="options_form" autocomplete="off" class="newpost">							
118 117
 							<fieldset>								
119 118
 								<ul>																	
120
-									<li><label for="rich_text"><?php echo __("Rich text editor:")?></label>
119
+									<li class="select"><label for="rich_text"><?php echo __("Rich text editor:")?></label>
121 120
 										<select name="rich_text" id="rich_text">
122 121
 											<option value="1" <?php if($conf->richText) echo "selected"; ?>><?php echo __("Active")?></option>
123 122
 											<option value="0" <?php if(!$conf->richText) echo "selected"; ?>><?php echo __("Deactive")?></option>
124 123
 										</select>
125 124
 									</li>
126
-									<li><label for="url_friendly"><?php echo __("URL friendly:")?></label>
125
+									<li class="select"><label for="url_friendly"><?php echo __("URL friendly:")?></label>
127 126
 										<select name="url_friendly" id="url_friendly">
128 127
 											<option value="1" <?php if($conf->urlFriendly) echo "selected"; ?>><?php echo __("Active")?></option>
129 128
 											<option value="0" <?php if(!$conf->urlFriendly) echo "selected"; ?>><?php echo __("Deactive")?></option>
130 129
 										</select>
131 130
 									</li>
132
-									<li><label for="allow_comments"><?php echo __("Allow readers comments:")?></label>
131
+									<li class="select"><label for="allow_comments"><?php echo __("Allow readers comments:")?></label>
133 132
 										<select name="allow_comments" id="allow_comments">
134 133
 											<option value="1" <?php if($conf->allowComments) echo "selected"; ?>><?php echo __("Active")?></option>
135 134
 											<option value="0" <?php if(!$conf->allowComments) echo "selected"; ?>><?php echo __("Deactive")?></option>
136 135
 										</select>
137 136
 									</li>
138
-									<li><label for="time_offsets"><?php echo __("Time Offset:")?></label>
137
+									<li class="select"><label for="time_offsets"><?php echo __("Time Offset:")?></label>
139 138
 										<select id="time_offsets" name="time_offsets">
140 139
 											<option value="-12,Pacific/Kwajalein" <?php echo ($conf->offsetCity=="Pacific/Kwajalein")? "selected=\"selected\"":"" ?>>(GMT -12:00) International Date Line West</option>
141 140
 											<option value="-11,Pacific/Samoa" <?php echo ($conf->offsetCity=="Pacific/Samoa")? "selected=\"selected\"":"" ?>>(GMT -11:00) Midway Island, Samoa</option>
@@ -194,7 +193,7 @@ if ($user->isAdmin()) {
194 193
 											<option value="9.50,Australia/Adelaide" <?php echo ($conf->offsetCity=="Australia/Adelaide")? "selected=\"selected\"":"" ?>>(GMT +9:30) Adelaide</option>
195 194
 											<option value="9.50,Australia/Darwin" <?php echo ($conf->offsetCity=="Australia/Darwin")? "selected=\"selected\"":"" ?>>(GMT +9:30) Darwin</option>
196 195
 											<option value="10,Australia/Brisbane" <?php echo ($conf->offsetCity=="Australia/Brisbane")? "selected=\"selected\"":"" ?>>(GMT +10:00) Brisbane, Guam, Port Moresby</option>
197
-											<option value="10,Australia/Canberra" <?php echo ($conf->offsetCity=="Australia/Canberra")? "selected=\"selected\"":"" ?>>(GMT +10:00) Canberra, Hobart, Melbourne, Sydney, Vladivostok</option>
196
+											<option value="10,Australia/Canberra" <?php echo ($conf->offsetCity=="Australia/Canberra")? "selected=\"selected\"":"" ?>>(GMT +10:00) Canberra,Melbourne, Sydney, Vladivostok</option>
198 197
 											<option value="11,Asia/Magadan" <?php echo ($conf->offsetCity=="Asia/Magadan")? "selected=\"selected\"":"" ?>>(GMT +11:00) Magadan, Soloman Is., New Caledonia</option>
199 198
 											<option value="12,Pacific/Auckland" <?php echo ($conf->offsetCity=="Pacific/Auckland")? "selected=\"selected\"":"" ?>>(GMT +12:00) Auckland, Wellington</option>
200 199
 											<option value="12,Pacific/Fiji" <?php echo ($conf->offsetCity=="Pacific/Fiji")? "selected=\"selected\"":"" ?>>(GMT +12:00) Fiji, Kamchatka, Marshall Is.</option>

+ 0 - 1
admin/settings.php Näytä tiedosto

@@ -73,7 +73,6 @@ if ($user->isAdmin()) {
73 73
 					<li><a href="options.php"><?php echo __("Options")?></a></li>
74 74
 					<li class="selected"><a><?php echo __("Settings")?></a></li>
75 75
 					</ul>
76
-					<p>&nbsp;</p>
77 76
 <?php
78 77
 					if (isset($_GET["modified"])) {
79 78
 						if ($_GET["modified"]=="true") {