Dotclear

Changeset 2133:5ba259352620 for admin


Ignore:
Timestamp:
09/24/13 15:05:39 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
Branch:
Ticket #1548
Parents:
2132:014b3b5a019f (diff), 2061:77a99aa76c10 (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.
Message:

Fusion avec default

Location:
admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/posts.php

    r2048 r2133  
    210210     /* DISPLAY 
    211211     -------------------------------------------------------- */ 
    212      $starting_script = dcPage::jsLoad('js/_posts_list.js'); 
    213      if (!$show_filters) { 
    214           $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 
    215      } 
    216  
    217      dcPage::open(__('Entries'),$starting_script, 
     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>", 
    218223          dcPage::breadcrumb( 
    219224               array( 
     
    230235     { 
    231236          echo 
    232           '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 
    233            
    234           if (!$show_filters) { 
    235                echo '<p><a id="filter-control" class="form-control" href="#">'. 
    236                __('Filter posts list').'</a></p>'; 
    237           } 
    238            
    239           echo 
     237          '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 
    240238          '<form action="posts.php" method="get" id="filters-form">'. 
    241           '<h3 class="hidden">'.__('Filter posts list').'</h3>'. 
    242  
     239          '<h3 class="out-of-screen-if-js">'.__('Filters and display options').'</h3>'. 
     240      
    243241          '<div class="table">'. 
    244242          '<div class="cell">'. 
     
    301299          $core->formNonce(). 
    302300          '</div>'. 
    303           '</form>' 
     301          '</form>', 
     302          $show_filters 
    304303          ); 
    305304     } 
  • admin/posts.php

    r2130 r2133  
    106106$posts_actions_page = new dcPostsActionsPage($core,'posts.php'); 
    107107 
    108 $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']; 
    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; 
    140 } else { 
    141      $user_id=''; 
    142 } 
    143  
    144 # - Categories filter 
    145 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 filter 
    153 if ($status !== '' && in_array($status,$status_combo)) { 
    154      $params['post_status'] = $status; 
    155      $show_filters = true; 
    156 } else { 
    157      $status=''; 
    158 } 
    159  
    160 # - Selected filter 
    161 if ($selected !== '' && in_array($selected,$selected_combo)) { 
    162      $params['post_selected'] = $selected; 
    163      $show_filters = true; 
    164 } else { 
    165      $selected=''; 
    166 } 
    167  
    168 # - Month filter 
    169 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 filter 
    178 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 filter 
    186 if ($sortby !== '' && in_array($sortby,$sortby_combo)) { 
    187      if ($order !== '' && in_array($order,$order_combo)) { 
    188           $params['order'] = $sortby.' '.$order; 
    189      } else { 
     108if (!$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']; 
     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; 
     140     } else { 
     141          $user_id=''; 
     142     } 
     143 
     144     # - Categories filter 
     145     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 filter 
     153     if ($status !== '' && in_array($status,$status_combo)) { 
     154          $params['post_status'] = $status; 
     155          $show_filters = true; 
     156     } else { 
     157          $status=''; 
     158     } 
     159 
     160     # - Selected filter 
     161     if ($selected !== '' && in_array($selected,$selected_combo)) { 
     162          $params['post_selected'] = $selected; 
     163          $show_filters = true; 
     164     } else { 
     165          $selected=''; 
     166     } 
     167 
     168     # - Month filter 
     169     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 filter 
     178     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 filter 
     186     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'; 
    190198          $order='desc'; 
    191199     } 
    192       
    193      if ($sortby != 'post_dt' || $order != 'desc') { 
    194           $show_filters = true; 
    195      } 
    196 } else { 
    197      $sortby='post_dt'; 
    198      $order='desc'; 
    199 } 
    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()); 
    208 } 
    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(); 
     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()); 
     208     } 
     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} 
    308309?> 
  • admin/style/default.css

    r2053 r2133  
    12991299     color: #000; 
    13001300     } 
     1301a.form-control.open { 
     1302     background: url(../images/hide.png) no-repeat 4px center; 
     1303     } 
    13011304#filters-form { 
    13021305     border: 1px dashed #999; 
  • admin/style/default.css

    r2132 r2133  
    2525     display: table; 
    2626     } 
    27 #wrapper, #wrapper.with-prelude { 
     27#wrapper { 
    2828     position: relative; 
    2929     padding-top: 1.5em; 
     
    490490     box-shadow: 1px 1px 2px #F1F1F1 inset; 
    491491     padding: 3px;  
     492     vertical-align: top; 
    492493     } 
    493494     input:focus, textarea:focus, select:focus { 
     
    517518               background: transparent url(../images/check-on.png) no-repeat 0 50%; 
    518519               } 
     520          option.sub-option1 { 
     521               margin-left: .5em; 
     522          } 
     523          option.sub-option2 { 
     524               margin-left: 1.5em; 
     525          } 
     526          option.sub-option3 { 
     527               margin-left: 2.5em; 
     528          } 
     529          option.sub-option4 { 
     530               margin-left: 3.5em; 
     531          } 
     532          option.sub-option5 { 
     533               margin-left: 4.5em; 
     534          } 
     535          option.sub-option6 { 
     536               margin-left: 5.5em; 
     537          } 
     538          option.sub-option7 { 
     539               margin-left: 6.5em; 
     540          } 
     541          option.sub-option8 { 
     542               margin-left: 7.5em; 
     543          } 
     544          option.sub-option1:before, option.sub-option2:before, option.sub-option3:before, option.sub-option4:before, 
     545          option.sub-option5:before, option.sub-option6:before, option.sub-option7:before, option.sub-option8:before { 
     546               content: "\002022\0000a0"; 
     547          } 
    519548     input.invalid, textarea.invalid, select.invalid { 
    520549          border: 1px solid red; 
     
    571600          display: inline-block; 
    572601          width: 14em; 
     602          } 
     603     p.field.wide label { 
     604          width: 21em; 
    573605          } 
    574606     p.field input, p.field select { 
     
    605637     border: 1px solid #ccc; 
    606638     font-family: "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; 
    607      padding: 4px 10px; 
     639     padding: 3px 10px; 
    608640     line-height: normal !important; 
    609641     display: inline-block; 
     
    849881          background: #A2CBE9; 
    850882          color: #000; 
    851           border-bottom-color: #A2CBE9; 
    852           } 
     883          text-decoration: underline; 
     884          } 
     885     #prelude li a:hover, #prelude li a:focus { 
     886          background: #FFF; 
     887          } 
     888/* si le prélude est affiché on repousse les trucs dessous */ 
     889#wrapper.with-prelude {  
     890     padding-top: 1em; 
     891     } 
     892#help-button.with-prelude, #collapser.with-prelude { 
     893     top: 1em; 
     894     } 
    853895/* header global h1, form#top-info-blog, ul#top-info-user */ 
    854896#header a { 
     
    875917          top: 0; 
    876918          left: 0; 
    877           width: 174px; /* ie < 9 sucks */ 
    878           width: 17.4rem; 
     919          width: 15em; 
    879920          height: 36px; /* ie < 9 sucks */ 
    880921          height: 3.6rem; 
     
    922963     border-bottom-color: #fff; 
    923964     margin: 0; 
    924      padding: 16px .5em; 
     965     padding: 18px .5em; 
    925966     background-color: #fff; 
    926967     color: #333; 
     
    13101351     background: transparent url(dc_logos/w-dotclear240.png) no-repeat top left; 
    13111352     height: 66px; 
     1353     width: 20em; 
    13121354     margin-bottom: .5em; 
    13131355     margin-left: 0; 
     
    20862128     } 
    20872129/* password indicator */ 
    2088 .install .pw-table, .install .pw-cell, .install .pwindicator { 
    2089      display: block; 
    2090      } 
    20912130.pw-table { 
    20922131     display: table; 
     
    23322371/* ------------------------------------------------------------------------------------ 
    23332372                                                                           UN POIL DE MEDIA QUERIES 
    2334 ------------------------------------------------------------------------------------ 
    2335 @media screen and (max-width: 920px) { 
    2336      #top, #top h1 a { 
    2337           width: 42px !important;  
    2338           height:100%;  
    2339           overflow: hidden; 
    2340           } 
    2341           #top h1 a:link { 
    2342                background: transparent url(dc_logos/b-dotclear120.png) no-repeat -180px 6px; 
    2343                border-right: 1px solid #ccc; 
    2344                } 
    2345           #top h1 a:hover, #top h1 a:focus { 
    2346                background: url(dc_logos/b-dotclear120.png) no-repeat -180px -94px; 
    2347                border-right: 1px solid #A2CBE9; 
    2348                } 
    2349      } 
    2350 @media screen and (max-width: 800px) { 
    2351      #top, #info-boxes, #info-box1, #info-box2 { 
    2352           display:inline-block; 
    2353           vertical-align:middle; 
    2354           margin:0; 
    2355           padding:0; 
    2356           line-height: 32px; line-height: 3.2rem; 
    2357           } 
    2358           #info-box1 { margin-left: .75em; } 
    2359           #info-box1 select { width: 140px; width: 14rem; } 
    2360      #main-menu, #main, #content, #content h2, #entry-wrapper, #entry-sidebar, #entry-content,  
    2361      .two-cols .col, .three-cols .col, .two-cols .col30, .two-cols .col70, .two-boxes, .three-boxes { 
    2362           display:block !important; 
    2363           width: 98% !important; 
    2364           margin:0 auto !important; 
    2365           padding:0; 
    2366           float:none; 
    2367           text-align: left; 
    2368           clear: both; 
    2369           } 
    2370      #content { 
     2373------------------------------------------------------------------------------------ */ 
     2374@media screen and (max-width: 1000px) { 
     2375     #header { 
     2376          display: block; 
    23712377          width: 100%; 
    2372           padding-top: .5em; 
    2373           } 
    2374      } 
    2375 @media screen and (max-width: 720px) { 
    2376      .smallscreen { display: none; } 
    2377      #info-box2 { float:none; } 
    2378      #help-button { 
    2379           height:26px;  
    2380           width:26px;  
    2381           background-color: #A2CBE9;  
    2382           padding: 0;  
     2378          text-align: right; 
     2379          background: #333; 
     2380          }  
     2381     #header h1, #header h1 a { 
     2382          width: 120px; 
     2383          padding: 0; 
     2384          margin: 0; 
     2385          } 
     2386     h1, #top-info-blog { 
     2387          display: inline-block; 
     2388          vertical-align: top; 
     2389          margin-right: 1em; 
     2390          } 
     2391     #top-info-user { 
     2392          display: block; 
     2393          width: 100%; 
     2394          background: #676e78; 
     2395          padding-right: 0; 
     2396          } 
     2397     #top-info-user li:last-child { 
     2398          padding-right: 1em; 
     2399          } 
     2400     #top-info-user a.active { 
     2401          padding: 2px 8px; 
     2402          }  
     2403     .three-boxes, .three-boxes .box, 
     2404     .three-boxes:first-child, .three-boxes.first-child, 
     2405     .three-boxes:last-child, .three-boxes.last-child, 
     2406     .two-cols .col70, .two-cols .col30 { 
     2407          width: 100%; 
     2408          margin-left: 0; 
     2409          margin-right: 0;  
     2410          } 
     2411     } 
     2412@media screen and (max-width: 700px) { 
     2413      #help-button { 
     2414          height:26px; 
     2415          width:26px; 
     2416          background-color: #A2CBE9; 
     2417          padding: 0; 
    23832418          margin: 0; 
    23842419          font-size: 10px; font-size: 1rem; 
    23852420          line-height: 68px; 
    23862421          overflow: hidden; 
    2387           } 
    2388      .one-box, .two-boxes, .three-boxes { 
     2422          }     
     2423     #content.with-help #help-button { 
     2424          top: 77px; 
     2425          } 
     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     .one-box, .two-boxes, 
     2465     .one-box .box, .two-boxes .box, 
     2466     .two-boxes:first-child, .two-boxes.odd, .two-boxes.odd:last-child, 
     2467     .two-boxes.even:last-child, .two-boxes.even, 
     2468     .two-cols .col { 
    23892469          width: 100%; 
    23902470          margin-left: 0; 
     
    23922472          } 
    23932473     } 
    2394 @media screen and (max-width: 492px) { 
    2395      #header { height: 36px; height: 3.6rem; } 
    2396      #wrapper { font-size: 16px; font-size: 1.6rem; } 
    2397      .page-title, #info-boxes { display: inline-block; } 
    2398      #info-box1 select { 
    2399           width: 120px; width: 12rem;  
    2400           margin-right: .6rem; 
    2401           } 
    2402      #info-box1 p.nomobile, label.nomobile { display: none; } 
    2403      } 
    2404 */ 
     2474@media screen and (max-width: 500px) { 
     2475     h1, h1 a { 
     2476          padding: 0; 
     2477          border-right: #333 !important; 
     2478          } 
     2479     #top-info-blog label, .nomobile { 
     2480          display: none; 
     2481          } 
     2482     #top-info-blog select { 
     2483          margin-bottom: .5em; 
     2484          margin-right: 0 !important; 
     2485          } 
     2486     #top-info-blog p { 
     2487          display: block; 
     2488          } 
     2489     #dashboard-boxes .box { /* a revoir quand le dashboard sera fini */ 
     2490          margin: 10px 0; 
     2491          min-width: 280px; 
     2492          width: 280px; 
     2493          } 
     2494     #content.with-help #help-button { 
     2495          top: 101px; 
     2496          } 
     2497     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map