chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

disk-partitions.html (3534B)


      1 <html>
      2 <head>
      3 <style>
      4 
      5 body {
      6   background-color:#e8e8e8;
      7 }
      8 
      9 .partition {
     10   position:relative;
     11   width:100%;
     12   float: left;
     13   background: white;
     14   border-radius: 3px;
     15 }
     16 .partition-cell {
     17   position:relative;
     18   margin: 2px 5px 2px 0;
     19   padding: 1px;
     20   float: left;
     21   background: #9c9c9c;
     22   border-radius: 3px;
     23 }
     24 .partition-text {
     25   position:absolute;
     26   top:10;
     27   text-align: center;
     28   width=100px;
     29   white-space: nowrap;
     30   text-overflow: ellipsis;
     31   left: 0;
     32   right: 0;
     33   margin: 0 auto;
     34   font-size:12px;
     35   font-weight: bold;
     36   color:#ffffff;
     37   text-shadow: 1px 1px 1px #000;
     38 }
     39 .partition-os {
     40   position:absolute;
     41   top:30;
     42   text-align: center;
     43   width=100px;
     44   white-space: nowrap;
     45   text-overflow: ellipsis;
     46   left: 0;
     47   right: 0;
     48   margin: 0 auto;
     49   font-size:10px;
     50   color:#ffffff;
     51   text-shadow: 1px 1px 1px #000;
     52 }
     53 .fat, .fat16, .fat32, .exfat {
     54   background-color: #b4d59b;
     55   background-image: -webkit-gradient(linear, left top, left bottom, from(#b4d59b), to(#47872a));
     56   background-image: -webkit-linear-gradient(top, #b4d59b, #47872a);
     57   background-image: -moz-linear-gradient(top, #b4d59b, #47872a);
     58 }
     59 .ntfs {
     60   background-color: #c9e3e4;
     61   background-image: -webkit-gradient(linear, left top, left bottom, from(#c9e3e4), to(#66a6a8));
     62   background-image: -webkit-linear-gradient(top,#c9e3e4, #66a6a8);
     63   background-image: -moz-linear-gradient(top, #c9e3e4, #66a6a8);}
     64 .ext, .ext2, .ext3 {
     65   background-color: #98d4e0;
     66   background-image: -webkit-gradient(linear, left top, left bottom, from(#98d4e0), to(#2582a0));
     67   background-image: -webkit-linear-gradient(top, #98d4e0, #2582a0);
     68   background-image: -moz-linear-gradient(top, #98d4e0, #2582a0);}
     69 .ext4 {
     70   background-color: #95c4de;
     71   background-image: -webkit-gradient(linear, left top, left bottom, from(#95c4de), to(#21619e));
     72   background-image: -webkit-linear-gradient(top, #95c4de, #21619e);
     73   background-image: -moz-linear-gradient(top, #95c4de, #21619e);}
     74 .swap {
     75   background-color: #eaaca9;
     76   background-image: -webkit-gradient(linear, left top, left bottom, from(#eaaca9), to(#be3a37));
     77   background-image: -webkit-linear-gradient(top, #eaaca9, #be3a37);
     78   background-image: -moz-linear-gradient(top, #eaaca9, #be3a37);}
     79 .unknown, .btrfs, .hfs, .jfs, .reiserfs, .ufs, .xfs, .zfs {
     80   background-color: #c8c8c8;
     81   background-image: -webkit-gradient(linear, left top, left bottom, from(#c8c8c8), to(#636363));
     82   background-image: -webkit-linear-gradient(top, #c8c8c8, #636363);
     83   background-image: -moz-linear-gradient(top, #c8c8c8, #636363);}
     84 .shine {
     85   position: relative;
     86   opacity: .2; 
     87   top: 0;
     88   right: 0;
     89   bottom: 0;
     90   left: 0;
     91   background: #fff;
     92   -moz-border-radius: 0px;
     93   -webkit-border-radius: 0px;
     94   border-radius: 0px;
     95   margin:1px;
     96 }
     97 </style>
     98 </head>
     99 <body>
    100 
    101 <table width='100%'><tr>
    102 
    103 <!-- <td class='partition-cell' title='title' width='30%'>
    104   <div class='partition swap'> 
    105     <div class='shine' style='width: 40%; height: 50px'></div> 
    106     <div class='partition-text'>/dev/sda1</div>
    107     <div class='partition-os'>Chamesle Linux</div>
    108   </div>
    109 </td> -->
    110 
    111 
    112 <!-- Expected format for each partition: CUT_HERE
    113 
    114 <td class='partition-cell' title='{0.name}{0.os_fs_info}' width='{0.size_percent}%'>
    115   <div class='partition {0.style}'> 
    116     <div class='shine' style='width: {0.used_percent}%; height: 50px'></div> 
    117     <div class='partition-text'>{0.html_name}</div>
    118     <div class='partition-os'>{0.html_description}</div>
    119   </div>
    120 </td>
    121 
    122 CUT_HERE (← and don't remove these markers ↑) -->
    123 
    124 {PARTITIONS_HTML}
    125 
    126 </tr></table>
    127 
    128 </body>
    129 </html>