Ignore:
Timestamp:
Jun 30, 2014, 9:02:54 PM (10 years ago)
Author:
mistic100
Message:

improve display of files list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/plugin_lang_analysis/template/style.css

    r26607 r28876  
     1[name=plugin_id] + .selectize-control{
     2  max-width:300px;
     3}
     4
    15.text-common {
    26  color:#5E9100 !important;
     
    4448    }
    4549
    46 .files {
    47   border-collapse:separate;
    48   border-spacing:10px 0;
    49   text-align:left !important;
     50.files, .files * {
    5051  margin:0;
    51 }
     52  padding:0;
     53  -moz-box-sizing:border-box;
     54  box-sizing:border-box;
     55}
     56.files.level-0 {
     57  width:80%;
     58  overflow:hidden;
     59}
     60  .files table {
     61    border-collapse:collapse;
     62    border-spacing:0;
     63    text-align:left !important;
     64    width:100%;
     65  }
     66  .files th, .files td {
     67    padding:0 5px;
     68    height:30px;
     69    line-height:10px;
     70  }
     71 
     72  .files tbody > tr:nth-child(2n) {
     73    background:#f5f5f5;
     74  }
     75  .files tbody > tr:nth-child(2n+1) {
     76    background:#efefef;
     77  }
     78 
     79  .files tr.folder > td.filename {
     80    font-weight:bold;
     81  }
     82  .files tr.folder > td {
     83    background:#888;
     84    color:#fff;
     85  }
     86  .files tr.nested > td {
     87    padding:0;
     88    background:#ddd;
     89  }
     90    .files tr.nested .files {
     91      margin-left:30px;
     92      width:calc(100% - 30px);
     93      position:relative;
     94    }
     95      /* the before is used to display marks */
     96      .files tr.nested .files:before {
     97        content:"";
     98        position:absolute;
     99        width:15px;
     100        height:calc(100% - 14px);
     101        top:0; left:-44px;
     102        border-left:29px solid #ddd;
     103        background-image:linear-gradient(to bottom, white 1px, transparent 1px), linear-gradient(to right, white 1px, transparent 1px);
     104        background-position:0px 15px;
     105        background-size:15px 30px;
     106      }
     107      /* the after is used to hide useless marks of the parent */
     108      .files tr.nested tr.nested:last-child  > td > .files:after {
     109        content:"";
     110        position:absolute;
     111        background:#ddd;
     112        top:-14px; left:-50px;
     113        width:15px;
     114        height:calc(100% + 14px);
     115      }
     116   
     117  .files th.ignore, .files td.ignore {
     118    width:70px;
     119  }
     120  .files th.type, .files td.type {
     121    width:140px;
     122  }
     123  .files th.other, .files td.other {
     124    width:240px;
     125  }
     126 
     127 
    52128
    53129.strings {
Note: See TracChangeset for help on using the changeset viewer.