Plugin Directory

Changeset 984967


Ignore:
Timestamp:
09/09/2014 05:44:26 AM (12 years ago)
Author:
chriswallace
Message:

Updated responsive CSS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freefolio/trunk/css/portfolio-shortcode.css

    r984871 r984967  
    1818}
    1919
    20 .column-2 .portfolio-entry {
     20.column-2 .portfolio-entry,
     21.column-3 .portfolio-entry {
    2122    max-width: 48%;
    2223    max-width: -webkit-calc(50% - 20px);
     
    2425}
    2526
    26 .column-3 .portfolio-entry {
    27     max-width: 32%;
    28     max-width: -webkit-calc(33.3% - 20px);
    29     max-width: calc(33.3% - 20px);
     27.column-4 .portfolio-entry,
     28.column-5 .portfolio-entry,
     29.column-6 .portfolio-entry{
     30    max-width: 48%;
     31    max-width: -webkit-calc(50% - 20px);
     32    max-width: calc(50% - 20px);
    3033}
    3134
    32 .column-4 .portfolio-entry {
    33     max-width: 23%;
    34     max-width: -webkit-calc(25% - 20px);
    35     max-width: calc(25% - 20px);
    36 }
    37 
    38 .column-5 .portfolio-entry {
    39     max-width: 19%;
    40     max-width: -webkit-calc(20% - 20px);
    41     max-width: calc(20% - 20px);
    42 }
    43 
    44 .column-6 .portfolio-entry {
    45     max-width: 15%;
    46     max-width: -webkit-calc(16.7% - 20px);
    47     max-width: calc(16.7% - 20px);
    48 }
    4935.portfolio-entry.first-item-row {
    5036    clear: both;
    5137}
     38
    5239.portfolio-entry.last-item-row {
    5340    margin-right: 0;
     41}
     42
     43@media screen and ( min-width: 640px ){
     44
     45    .column-3 .portfolio-entry{
     46        max-width: 48%;
     47        max-width: -webkit-calc(50% - 20px);
     48        max-width: calc(50% - 20px);
     49    }
     50
     51}
     52
     53@media screen and ( min-width: 760px ){
     54
     55    .column-4 .portfolio-entry {
     56        max-width: 23%;
     57        max-width: -webkit-calc(25% - 20px);
     58        max-width: calc(25% - 20px);
     59    }
     60
     61    .column-5 .portfolio-entry {
     62        max-width: 19%;
     63        max-width: -webkit-calc(20% - 20px);
     64        max-width: calc(20% - 20px);
     65    }
     66
     67    .column-6 .portfolio-entry {
     68        max-width: 15%;
     69        max-width: -webkit-calc(16.7% - 20px);
     70        max-width: calc(16.7% - 20px);
     71    }
     72
    5473}
    5574
Note: See TracChangeset for help on using the changeset viewer.