wemersonrv

Widget to make collapsible

Jan 24th, 2013
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.46 KB | None | 0 0
  1. <!-- HTML -->
  2. <div class="widget-container">
  3.     <div class="well">
  4.         <div class="navbar navbar-static navbar_as_heading">
  5.             <div class="navbar-inner">
  6.                 <div class="container">
  7.                     <span class="brand brand-small">Conexão</span>
  8.                     <span class="container pull-right">
  9.                         <ul class="nav widget-collapse" style="background: none">
  10.                             <li class="divider-vertical"></li>
  11.                             <li class="brand brand-small"><i class="icon-chevron-up"></i></li>
  12.                         </ul>
  13.                     </span>
  14.                 </div>
  15.             </div>
  16.         </div>
  17.                    
  18.         <table class="table">
  19.             <tbody>
  20.                 <tr>
  21.                     <td>1</td>
  22.                     <td><a href="#">http://www.servidor1.com</a></td>
  23.                     <td><i class="icon-large icon-chat"></i> <a href="#">189.123.4.56</a></td>
  24.                 </tr>
  25.                 <tr>
  26.                     <td>1</td>
  27.                     <td><a href="#">http://www.servidor2.com</a></td>
  28.                     <td><i class="icon-large icon-chat"></i> <a href="#">189.123.4.57</a></td>
  29.                 </tr>
  30.             </tbody>
  31.         </table>
  32.         <a href="#" class="btn btn-primary btn-small">Cadastrar Novo</a>
  33.     </div>
  34. </div>
  35.  
  36. <!-- CSS -->
  37. <style>
  38. /*****************************
  39. //
  40. // Ajustes no boostrapper específicos para este projeto
  41. //
  42. ******************************/
  43. .brand-small{
  44.     font-size: 100% !important;
  45.     font-weight: bold !important;
  46. }
  47.  
  48. .widget-container {
  49.     padding:5px;
  50.     margin-bottom:20px;
  51.     background:rgba(0,0,0,0.1);
  52. }
  53.    
  54. .widget-container .well {
  55.     -webkit-border-radius: 5px;
  56.     -moz-border-radius:  5px;
  57.     border-radius: 5px;
  58.     margin-bottom:0;
  59. }
  60.  
  61. .widget-container .navbar{
  62.     margin:-20px -20px 20px -20px; 
  63. }
  64.  
  65. .widget-container .navbar-inner {
  66.     -moz-border-radius-topleft: 5px;
  67.     -moz-border-radius-topright:5px;
  68.     -moz-border-radius-bottomleft:0;
  69.     -moz-border-radius-bottomright:0;
  70.  
  71.     -webkit-border-top-left-radius:5px;
  72.     -webkit-border-top-right-radius:5;
  73.     -webkit-border-bottom-left-radius:0;
  74.     -webkit-border-bottom-right-radius:0;
  75.    
  76.     border-top-left-radius:5px;
  77.     border-top-right-radius:5px;
  78.     border-bottom-left-radius:0;
  79.     border-bottom-right-radius:0;
  80. }
  81.  
  82. .widget-container .widget-collapse{
  83.     margin: 0 -27px 0;
  84. }
  85. </style>
Advertisement
Add Comment
Please, Sign In to add comment