Changeset 2134:b3b9847a5d45 for admin
- Timestamp:
- 09/27/13 19:03:25 (12 years ago)
- Branch:
- Ticket #1548
- Parents:
- 2133:5ba259352620 (diff), 2113:a134102bfd9a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r2072 r2134 212 212 /* DISPLAY 213 213 -------------------------------------------------------- */ 214 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 215 if (!$show_filters) { 216 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 217 } 218 219 dcPage::open(__('Entries'),$starting_script, 214 215 dcPage::open(__('Entries'), 216 dcPage::jsLoad('js/_posts_list.js'). 217 dcPage::jsLoad('js/filter-controls.js'). 218 '<script type="text/javascript">'."\n". 219 "//<![CDATA["."\n". 220 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 221 dcPage::jsVar('dotclear.msg.filter_posts_list',__('Filter posts list'))."\n". 222 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 223 "//]]>". 224 "</script>", 220 225 dcPage::breadcrumb( 221 226 array( … … 232 237 { 233 238 echo 234 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 235 236 if (!$show_filters) { 237 echo '<p><a id="filter-control" class="form-control" href="#">'. 238 __('Filter posts list').'</a></p>'; 239 } 240 241 echo 239 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 242 240 '<form action="posts.php" method="get" id="filters-form">'. 243 '<h3 class=" hidden">'.__('Filter posts list').'</h3>'.241 '<h3 class="out-of-screen-if-js">'.__('Filters and display options').'</h3>'. 244 242 245 243 '<div class="table">'. … … 303 301 $core->formNonce(). 304 302 '</div>'. 305 '</form>' 303 '</form>', 304 $show_filters 306 305 ); 307 306 } -
admin/posts.php
r2133 r2134 106 106 $posts_actions_page = new dcPostsActionsPage($core,'posts.php'); 107 107 108 if ( !$posts_actions_page->process()) {109 110 /* Get posts 111 -------------------------------------------------------- */ 112 $user_id = !empty($_GET['user_id']) ? $_GET['user_id'] : ''; 113 $cat_id = !empty($_GET['cat_id']) ? $_GET['cat_id'] : ''; 114 $status = isset($_GET['status']) ? $_GET['status'] : '';115 $selected = isset($_GET['selected']) ? $_GET['selected'] : '';116 $month = !empty($_GET['month']) ? $_GET['month'] : '';117 $lang = !empty($_GET['lang']) ? $_GET['lang'] : '';118 $sortby = !empty($_GET['sortby']) ? $_GET['sortby'] : 'post_dt';119 $order = !empty($_GET['order']) ? $_GET['order'] : 'desc';120 121 $show_filters = false;122 123 $page = !empty($_GET['page']) ? max(1,(integer) $_GET['page']) : 1;124 $nb_per_page = 30; 125 126 if (!empty($_GET['nb']) && (integer) $_GET['nb'] > 0) { 127 if ($nb_per_page != $_GET['nb']) { 128 $show_filters = true; 129 }130 $ nb_per_page = (integer) $_GET['nb'];108 if ($posts_actions_page->process()) { 109 return; 110 } 111 112 /* Get posts 113 -------------------------------------------------------- */ 114 $user_id = !empty($_GET['user_id']) ? $_GET['user_id'] : ''; 115 $cat_id = !empty($_GET['cat_id']) ? $_GET['cat_id'] : ''; 116 $status = isset($_GET['status']) ? $_GET['status'] : ''; 117 $selected = isset($_GET['selected']) ? $_GET['selected'] : ''; 118 $month = !empty($_GET['month']) ? $_GET['month'] : ''; 119 $lang = !empty($_GET['lang']) ? $_GET['lang'] : ''; 120 $sortby = !empty($_GET['sortby']) ? $_GET['sortby'] : 'post_dt'; 121 $order = !empty($_GET['order']) ? $_GET['order'] : 'desc'; 122 123 $show_filters = false; 124 125 $page = !empty($_GET['page']) ? max(1,(integer) $_GET['page']) : 1; 126 $nb_per_page = 30; 127 128 if (!empty($_GET['nb']) && (integer) $_GET['nb'] > 0) { 129 if ($nb_per_page != $_GET['nb']) { 130 $show_filters = true; 131 131 } 132 133 $params['limit'] = array((($page-1)*$nb_per_page),$nb_per_page); 134 $params['no_content'] = true; 135 136 # - User filter 137 if ($user_id !== '' && in_array($user_id,$users_combo)) { 138 $params['user_id'] = $user_id; 139 $show_filters = true; 132 $nb_per_page = (integer) $_GET['nb']; 133 } 134 135 $params['limit'] = array((($page-1)*$nb_per_page),$nb_per_page); 136 $params['no_content'] = true; 137 138 # - User filter 139 if ($user_id !== '' && in_array($user_id,$users_combo)) { 140 $params['user_id'] = $user_id; 141 $show_filters = true; 142 } else { 143 $user_id=''; 144 } 145 146 # - Categories filter 147 if ($cat_id !== '' && isset($categories_values[$cat_id])) { 148 $params['cat_id'] = $cat_id; 149 $show_filters = true; 150 } else { 151 $cat_id=''; 152 } 153 154 # - Status filter 155 if ($status !== '' && in_array($status,$status_combo)) { 156 $params['post_status'] = $status; 157 $show_filters = true; 158 } else { 159 $status=''; 160 } 161 162 # - Selected filter 163 if ($selected !== '' && in_array($selected,$selected_combo)) { 164 $params['post_selected'] = $selected; 165 $show_filters = true; 166 } else { 167 $selected=''; 168 } 169 170 # - Month filter 171 if ($month !== '' && in_array($month,$dt_m_combo)) { 172 $params['post_month'] = substr($month,4,2); 173 $params['post_year'] = substr($month,0,4); 174 $show_filters = true; 175 } else { 176 $month=''; 177 } 178 179 # - Lang filter 180 if ($lang !== '' && in_array($lang,$lang_combo)) { 181 $params['post_lang'] = $lang; 182 $show_filters = true; 183 } else { 184 $lang=''; 185 } 186 187 # - Sortby and order filter 188 if ($sortby !== '' && in_array($sortby,$sortby_combo)) { 189 if ($order !== '' && in_array($order,$order_combo)) { 190 $params['order'] = $sortby.' '.$order; 140 191 } else { 141 $user_id='';142 }143 144 # - Categories filter145 if ($cat_id !== '' && isset($categories_values[$cat_id])) {146 $params['cat_id'] = $cat_id;147 $show_filters = true;148 } else {149 $cat_id='';150 }151 152 # - Status filter153 if ($status !== '' && in_array($status,$status_combo)) {154 $params['post_status'] = $status;155 $show_filters = true;156 } else {157 $status='';158 }159 160 # - Selected filter161 if ($selected !== '' && in_array($selected,$selected_combo)) {162 $params['post_selected'] = $selected;163 $show_filters = true;164 } else {165 $selected='';166 }167 168 # - Month filter169 if ($month !== '' && in_array($month,$dt_m_combo)) {170 $params['post_month'] = substr($month,4,2);171 $params['post_year'] = substr($month,0,4);172 $show_filters = true;173 } else {174 $month='';175 }176 177 # - Lang filter178 if ($lang !== '' && in_array($lang,$lang_combo)) {179 $params['post_lang'] = $lang;180 $show_filters = true;181 } else {182 $lang='';183 }184 185 # - Sortby and order filter186 if ($sortby !== '' && in_array($sortby,$sortby_combo)) {187 if ($order !== '' && in_array($order,$order_combo)) {188 $params['order'] = $sortby.' '.$order;189 } else {190 $order='desc';191 }192 193 if ($sortby != 'post_dt' || $order != 'desc') {194 $show_filters = true;195 }196 } else {197 $sortby='post_dt';198 192 $order='desc'; 199 193 } 200 201 # Get posts 202 try { 203 $posts = $core->blog->getPosts($params); 204 $counter = $core->blog->getPosts($params,true); 205 $post_list = new adminPostList($core,$posts,$counter->f(0)); 206 } catch (Exception $e) { 207 $core->error->add($e->getMessage()); 194 195 if ($sortby != 'post_dt' || $order != 'desc') { 196 $show_filters = true; 208 197 } 209 210 /* DISPLAY 211 -------------------------------------------------------- */ 212 213 dcPage::open(__('Entries'), 214 dcPage::jsLoad('js/_posts_list.js'). 215 dcPage::jsLoad('js/filter-controls.js'). 216 '<script type="text/javascript">'."\n". 217 "//<![CDATA["."\n". 218 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 219 dcPage::jsVar('dotclear.msg.filter_posts_list',__('Filter posts list'))."\n". 220 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 221 "//]]>". 222 "</script>", 223 dcPage::breadcrumb( 224 array( 225 html::escapeHTML($core->blog->name) => '', 226 '<span class="page-title">'.__('Entries').'</span>' => '' 227 )) 228 ); 229 if (!empty($_GET['upd'])) { 230 dcPage::success(__('Selected entries have been successfully updated.')); 231 } elseif (!empty($_GET['del'])) { 232 dcPage::success(__('Selected entries have been successfully deleted.')); 233 } 234 if (!$core->error->flag()) 235 { 236 echo 237 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 238 '<form action="posts.php" method="get" id="filters-form">'. 239 '<h3 class="out-of-screen-if-js">'.__('Filters and display options').'</h3>'. 240 241 '<div class="table">'. 242 '<div class="cell">'. 243 '<h4>'.__('Filters').'</h4>'. 244 '<p><label for="user_id" class="ib">'.__('Author:').'</label> '. 245 form::combo('user_id',$users_combo,$user_id).'</p>'. 246 '<p><label for="cat_id" class="ib">'.__('Category:').'</label> '. 247 form::combo('cat_id',$categories_combo,$cat_id).'</p>'. 248 '<p><label for="status" class="ib">'.__('Status:').'</label> ' . 249 form::combo('status',$status_combo,$status).'</p> '. 250 '</div>'. 251 252 '<div class="cell filters-sibling-cell">'. 253 '<p><label for="selected" class="ib">'.__('Selected:').'</label> '. 254 form::combo('selected',$selected_combo,$selected).'</p>'. 255 '<p><label for="month" class="ib">'.__('Month:').'</label> '. 256 form::combo('month',$dt_m_combo,$month).'</p>'. 257 '<p><label for="lang" class="ib">'.__('Lang:').'</label> '. 258 form::combo('lang',$lang_combo,$lang).'</p> '. 259 '</div>'. 260 261 '<div class="cell filters-options">'. 262 '<h4>'.__('Display options').'</h4>'. 263 '<p><label for="sortby" class="ib">'.__('Order by:').'</label> '. 264 form::combo('sortby',$sortby_combo,$sortby).'</p>'. 265 '<p><label for="order" class="ib">'.__('Sort:').'</label> '. 266 form::combo('order',$order_combo,$order).'</p>'. 267 '<p><span class="label ib">'.__('Show').'</span> <label for="nb" class="classic">'. 268 form::field('nb',3,3,$nb_per_page).' '. 269 __('entries per page').'</label></p>'. 270 '</div>'. 271 '</div>'. 272 273 '<p><input type="submit" value="'.__('Apply filters and display options').'" />'. 274 '<br class="clear" /></p>'. //Opera sucks 275 '</form>'; 276 277 # Show posts 278 $post_list->display($page,$nb_per_page, 279 '<form action="posts.php" method="post" id="form-entries">'. 280 281 '%s'. 282 283 '<div class="two-cols">'. 284 '<p class="col checkboxes-helpers"></p>'. 285 286 '<p class="col right"><label for="action" class="classic">'.__('Selected entries action:').'</label> '. 287 form::combo('action',$posts_actions_page->getCombo()). 288 '<input type="submit" value="'.__('ok').'" /></p>'. 289 form::hidden(array('user_id'),$user_id). 290 form::hidden(array('cat_id'),$cat_id). 291 form::hidden(array('status'),$status). 292 form::hidden(array('selected'),$selected). 293 form::hidden(array('month'),$month). 294 form::hidden(array('lang'),$lang). 295 form::hidden(array('sortby'),$sortby). 296 form::hidden(array('order'),$order). 297 form::hidden(array('page'),$page). 298 form::hidden(array('nb'),$nb_per_page). 299 $core->formNonce(). 300 '</div>'. 301 '</form>', 302 $show_filters 303 ); 304 } 305 306 dcPage::helpBlock('core_posts'); 307 dcPage::close(); 308 } 198 } else { 199 $sortby='post_dt'; 200 $order='desc'; 201 } 202 203 # Get posts 204 try { 205 $posts = $core->blog->getPosts($params); 206 $counter = $core->blog->getPosts($params,true); 207 $post_list = new adminPostList($core,$posts,$counter->f(0)); 208 } catch (Exception $e) { 209 $core->error->add($e->getMessage()); 210 } 211 212 /* DISPLAY 213 -------------------------------------------------------- */ 214 215 dcPage::open(__('Entries'), 216 dcPage::jsLoad('js/_posts_list.js'). 217 dcPage::jsLoad('js/filter-controls.js'). 218 '<script type="text/javascript">'."\n". 219 "//<![CDATA["."\n". 220 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 221 dcPage::jsVar('dotclear.msg.filter_posts_list',__('Filter posts list'))."\n". 222 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 223 "//]]>". 224 "</script>", 225 dcPage::breadcrumb( 226 array( 227 html::escapeHTML($core->blog->name) => '', 228 '<span class="page-title">'.__('Entries').'</span>' => '' 229 )) 230 ); 231 if (!empty($_GET['upd'])) { 232 dcPage::success(__('Selected entries have been successfully updated.')); 233 } elseif (!empty($_GET['del'])) { 234 dcPage::success(__('Selected entries have been successfully deleted.')); 235 } 236 if (!$core->error->flag()) 237 { 238 echo 239 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 240 '<form action="posts.php" method="get" id="filters-form">'. 241 '<h3 class="out-of-screen-if-js">'.__('Filters and display options').'</h3>'. 242 243 '<div class="table">'. 244 '<div class="cell">'. 245 '<h4>'.__('Filters').'</h4>'. 246 '<p><label for="user_id" class="ib">'.__('Author:').'</label> '. 247 form::combo('user_id',$users_combo,$user_id).'</p>'. 248 '<p><label for="cat_id" class="ib">'.__('Category:').'</label> '. 249 form::combo('cat_id',$categories_combo,$cat_id).'</p>'. 250 '<p><label for="status" class="ib">'.__('Status:').'</label> ' . 251 form::combo('status',$status_combo,$status).'</p> '. 252 '</div>'. 253 254 '<div class="cell filters-sibling-cell">'. 255 '<p><label for="selected" class="ib">'.__('Selected:').'</label> '. 256 form::combo('selected',$selected_combo,$selected).'</p>'. 257 '<p><label for="month" class="ib">'.__('Month:').'</label> '. 258 form::combo('month',$dt_m_combo,$month).'</p>'. 259 '<p><label for="lang" class="ib">'.__('Lang:').'</label> '. 260 form::combo('lang',$lang_combo,$lang).'</p> '. 261 '</div>'. 262 263 '<div class="cell filters-options">'. 264 '<h4>'.__('Display options').'</h4>'. 265 '<p><label for="sortby" class="ib">'.__('Order by:').'</label> '. 266 form::combo('sortby',$sortby_combo,$sortby).'</p>'. 267 '<p><label for="order" class="ib">'.__('Sort:').'</label> '. 268 form::combo('order',$order_combo,$order).'</p>'. 269 '<p><span class="label ib">'.__('Show').'</span> <label for="nb" class="classic">'. 270 form::field('nb',3,3,$nb_per_page).' '. 271 __('entries per page').'</label></p>'. 272 '</div>'. 273 '</div>'. 274 275 '<p><input type="submit" value="'.__('Apply filters and display options').'" />'. 276 '<br class="clear" /></p>'. //Opera sucks 277 '</form>'; 278 279 # Show posts 280 $post_list->display($page,$nb_per_page, 281 '<form action="posts.php" method="post" id="form-entries">'. 282 283 '%s'. 284 285 '<div class="two-cols">'. 286 '<p class="col checkboxes-helpers"></p>'. 287 288 '<p class="col right"><label for="action" class="classic">'.__('Selected entries action:').'</label> '. 289 form::combo('action',$posts_actions_page->getCombo()). 290 '<input type="submit" value="'.__('ok').'" /></p>'. 291 form::hidden(array('user_id'),$user_id). 292 form::hidden(array('cat_id'),$cat_id). 293 form::hidden(array('status'),$status). 294 form::hidden(array('selected'),$selected). 295 form::hidden(array('month'),$month). 296 form::hidden(array('lang'),$lang). 297 form::hidden(array('sortby'),$sortby). 298 form::hidden(array('order'),$order). 299 form::hidden(array('page'),$page). 300 form::hidden(array('nb'),$nb_per_page). 301 $core->formNonce(). 302 '</div>'. 303 '</form>', 304 $show_filters 305 ); 306 } 307 308 dcPage::helpBlock('core_posts'); 309 dcPage::close(); 310 309 311 ?> -
admin/style/default.css
r2111 r2134 1299 1299 color: #000; 1300 1300 } 1301 a.form-control.open { 1302 background: url(../images/hide.png) no-repeat 4px center; 1303 } 1301 1304 #filters-form { 1302 1305 border: 1px dashed #999; -
admin/style/default.css
r2133 r2134 385 385 border-style: solid; 386 386 border-color: #ddd; 387 background: # f3f3ff;387 background: #eef1ec; 388 388 padding: .4em 1em .4em .5em; 389 389 vertical-align: top; 390 390 text-align: left; 391 text-transform: uppercase;392 font-size: 10px;393 font-size: 1rem;394 391 } 395 392 td { … … 415 412 clear: both; 416 413 } 417 pre, code {414 pre, code, #debug { 418 415 font: 100% "Andale Mono","Courier New",monospace; 416 } 417 code { 418 background: #FAFAD1; 419 419 } 420 420 pre { … … 930 930 max-width: 20em; 931 931 } 932 .with-js #top-info-blog select, .no-js #top-info-blog input[type=submit]{933 margin- right: 1.33em;932 #top-info-blog a { 933 margin-left: 1.5em; 934 934 } 935 935 #top-info-blog input[type=submit] { … … 1227 1227 margin: 0; 1228 1228 } 1229 tr.line input { 1229 tr.line input[type=text] { 1230 background: #FFF; 1231 } 1232 tr.line input, tr.line select { 1230 1233 vertical-align: middle; 1234 -webkit-box-shadow: none; 1235 box-shadow: none; 1236 } 1237 tr.line select { 1238 width: 6em; 1231 1239 } 1232 1240 tr.line:hover { … … 1255 1263 } 1256 1264 table.settings, table.prefs { 1257 width: 80%;1258 border: 1px solid #ccc;1259 1265 margin-bottom: 3em; 1260 1266 } 1261 table.settings th, table.prefs th {1262 background: #f3f3ff;1263 }1264 1267 table.settings th:first-child, table.prefs th:first-child { 1265 1268 width: 20%; … … 1280 1283 tr.expand td { 1281 1284 border-bottom: none; 1282 }1283 .dragable {1284 border-collapse: separate;1285 1285 } 1286 1286 .handle { … … 1394 1394 } 1395 1395 #icons p { 1396 width: 207px;1396 width: 170px; 1397 1397 text-align: center; 1398 1398 margin: 1em 0 2em; … … 1466 1466 } 1467 1467 #dashboard-boxes .box { 1468 min-width: 300px;1469 max-width: 580px;1470 1468 padding: 10px; 1471 1469 border: 1px solid #ccc; … … 1476 1474 } 1477 1475 .box.small { 1478 width: 280px; 1476 width: 300px; 1477 } 1478 .box.medium { 1479 width: 640px; 1479 1480 } 1480 1481 .box.large { 1481 width: 580px;1482 width: 100%; 1482 1483 } 1483 1484 .dc-box { … … 1745 1746 vertical-align: top; 1746 1747 min-height: 140px; 1748 word-wrap: break-word; 1747 1749 } 1748 1750 .media-item p { … … 2092 2094 margin-left: 0; 2093 2095 } 2094 2096 /* --------------------------------------------------------------------- _charte.php */ 2097 .guideline #content h2 { 2098 color: #D33800; 2099 padding: 2em 0 0 0; 2100 margin: 1em 0; 2101 font-size: 2em; 2102 } 2103 .guideline h3 { 2104 margin-top: 2em; 2105 } 2106 .guideline .one-box .box { 2107 border: 1px solid #ddd; 2108 padding: 2px .5em; 2109 } 2095 2110 /* ------------------------------------------------------------------------------------ 2096 2111 CLASSES … … 2172 2187 color: #000; 2173 2188 padding: 4px 1em; 2189 } 2190 .anchor-nav label { 2191 vertical-align: bottom; 2174 2192 } 2175 2193 /* nav links */ … … 2354 2372 width: 100%; 2355 2373 height: 4px; 2356 background: # d99;2374 background: #ff6; 2357 2375 } 2358 2376 #debug div { … … 2365 2383 #debug:hover { 2366 2384 height: auto; 2385 padding: 2px 1em; 2386 z-index: 100; 2367 2387 } 2368 2388 #debug:hover div { … … 2373 2393 ------------------------------------------------------------------------------------ */ 2374 2394 @media screen and (max-width: 1000px) { 2395 #top-info-blog #switchblog { 2396 max-width: 16em; 2397 } 2398 #top-info-blog a { 2399 margin-left: 2em; 2400 } 2401 } 2402 @media screen and (max-width: 960px) { 2375 2403 #header { 2376 2404 display: block; … … 2424 2452 top: 77px; 2425 2453 } 2426 }2427 @media screen and (max-width: 600px) {2428 #header h1, #header h1 a {2429 width: 42px !important;2430 height: 42px;2431 }2432 h1 a:link {2433 background: transparent url(dc_logos/b-dotclear120.png) no-repeat -180px 6px;2434 border-right: 1px solid #ccc;2435 }2436 h1 a:hover, h1 a:focus {2437 background: url(dc_logos/b-dotclear120.png) no-repeat -180px -94px;2438 border-right: 1px solid #A2CBE9;2439 }2440 #wrapper, #main, #main-menu {2441 display: block;2442 float: none;2443 width: 100%;2444 margin: 0;2445 }2446 #main-menu a {2447 display: block;2448 width: 100%;2449 }2450 #main-menu h3 a {2451 display: inline;2452 }2453 #content {2454 margin: 0;2455 padding: 0 .5em;2456 }2457 #collapser {2458 display: none;2459 }2460 #main #content > h2 {2461 margin: 0;2462 padding: 6px 0;2463 }2464 2454 .one-box, .two-boxes, 2465 .one-box .box, .two-boxes .box, 2455 .one-box .box, .two-boxes .box, .two-boxes.odd, .two-boxes.even, 2466 2456 .two-boxes:first-child, .two-boxes.odd, .two-boxes.odd:last-child, 2467 2457 .two-boxes.even:last-child, .two-boxes.even, … … 2472 2462 } 2473 2463 } 2464 @media screen and (max-width: 600px) { 2465 #header h1, #header h1 a { 2466 width: 42px !important; 2467 height: 42px; 2468 } 2469 h1 a:link { 2470 background: transparent url(dc_logos/b-dotclear120.png) no-repeat -180px 6px; 2471 border-right: 1px solid #ccc; 2472 } 2473 h1 a:hover, h1 a:focus { 2474 background: url(dc_logos/b-dotclear120.png) no-repeat -180px -94px; 2475 border-right: 1px solid #A2CBE9; 2476 } 2477 #wrapper, #main, #main-menu { 2478 display: block; 2479 float: none; 2480 width: 100%; 2481 margin: 0; 2482 } 2483 #main-menu a { 2484 display: block; 2485 width: 100%; 2486 } 2487 #main-menu h3 a { 2488 display: inline; 2489 } 2490 #content { 2491 margin: 0; 2492 padding: 0 .5em !important; 2493 } 2494 #collapser { 2495 display: none; 2496 } 2497 #main #content > h2 { 2498 margin: 0; 2499 padding: 6px 0; 2500 } 2501 #dashboard-boxes .box.medium, 2502 #dashboard-boxes .box.small, 2503 #dashboard-boxes .box.large { 2504 width: 90%; 2505 margin: 10px auto; 2506 } 2507 } 2474 2508 @media screen and (max-width: 500px) { 2475 2509 h1, h1 a { … … 2487 2521 display: block; 2488 2522 } 2489 #dashboard-boxes .box { /* a revoir quand le dashboard sera fini */ 2490 margin: 10px 0; 2491 min-width: 280px; 2492 width: 280px; 2523 #icons p { 2524 width: 150px; 2493 2525 } 2494 2526 #content.with-help #help-button { … … 2496 2528 } 2497 2529 } 2530 /* ---------------------------------------------- Couleurs ajoutées via javascript 2531 /* color-picker.js */ 2532 .color-color-picker { 2533 border: 1px solid #000; 2534 width: 195px; 2535 background: #fff; 2536 } 2537 /* _blog_theme.js */ 2538 .select-button { 2539 font-weight: bold; 2540 } 2541 /* _media_item.js */ 2542 .color-div { 2543 border: 1px solid #ccc; 2544 } 2545 /* fadings ('color' est utilisé comme variable, pas comme text color) */ 2546 .colorBeginPassword, .colorBeginValidatorErr, .colorBeginUserMail { 2547 color: #fff; 2548 } 2549 .colorEndPassword, .colorEndError, .colorEndValidatorErr, .colorEndUserMail { 2550 color: #ffbaba; 2551 } 2552 .colorBeginMessage { 2553 color: #ccc; 2554 } 2555 .colorEndMessage, .colorBeginValidatorMsg { 2556 color: #676e78; 2557 } 2558 .colorBeginError { 2559 color: #ffdec8; 2560 } 2561 .colorBeginSuccess { 2562 color: #9BCA1C; 2563 } 2564 .colorEndSuccess { 2565 color: #bee74b; 2566 } 2567 .colorEndValidatorMsg { 2568 color: #ffcc00; 2569 }
Note: See TracChangeset
for help on using the changeset viewer.