Plugin Directory

Changeset 780905


Ignore:
Timestamp:
10/01/2013 02:51:05 PM (12 years ago)
Author:
nosman123
Message:

Updated lightbox to scale to viewport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sgt-carousel-gallery/trunk/sgt_carousel_gallery.php

    r748571 r780905  
    9494        #captionsWrapper{
    9595            min-height:20px;
    96             height:auto;
     96            height:100%;
     97            overflow:scroll;
    9798            position:relative;
    9899            width:100%;
     
    124125            overflow:auto;
    125126            background:#fff;
     127            text-align:center;
    126128        }
    127129       
    128130        .controlPanelFull{
    129131            display:block;
    130             margin-top:10px;
     132            margin-top:1%;
     133            margin-left:1%;
     134            margin-right:1%;
    131135            position:absolute;
    132             width:100%;
    133             bottom:0px;
     136            width:98%;
     137            bottom:1%;
    134138            min-height:30px;
    135139            height:auto;
     
    207211            display:inline;
    208212            background-color:#fff;
    209             float:left;
     213            //float:left;
    210214            width:auto;
    211             height:auto;
    212             margin-left:10px;
    213             margin-right:10px;
    214             margin-top:10px;
    215             max-width:800px;
    216             max-height:575px;
     215            max-width:69%;
     216            max-height:75%;
     217            margin-top:1%;
     218            overflow:hidden;
    217219            z-index:500001;
    218220        }
     
    222224            display:inline-block;
    223225            top:10px;
    224             position:relative;
    225             width:auto;
    226             height:625px;
     226            overflow:hidden;
     227            position:relative;
     228            width:95vw;
     229            height:95vh;
    227230            z-index:500001;
    228231        }
     
    231234            margin-top:30px;
    232235            dislay:inline;
    233             width:auto;
    234             height:auto;
    235             margin-left:10px;
    236             margin-right:10px;
     236            width:96%;
     237            height:100%;
     238            overflow:scroll;
     239            margin-left:2%;
     240            margin-right:2%;
    237241            padding-bottom:10px;
    238242        }
     
    258262       
    259263        #imgCaptionWrapper {
    260             display:inline-block;
     264            display:inline;
    261265            width:auto;
    262             overflow:auto;
     266            overflow:scroll;
    263267            position:relative;
    264268            margin-left:auto;
     
    294298            display:inline;
    295299            position:relative;
    296             margin-top:10px;
    297             margin-right:10px;
    298             height:575px;
    299             width:270px;
     300            margin-top:1%;
     301            margin-right:1%;
     302            max-height:50%;
     303            width:28%;
    300304            font-size:1em;
    301             float:left;
    302    
     305            float:right;
     306            overflow:scroll;
    303307            z-index:500001;
    304308        }
     
    471475}
    472476
     477function eighty_pc() {
     478    var height = $(window).height();
     479    var eighty = (80 * height) / 100;
     480    thirtypc = parseInt(eighty) + 'px';
     481    $("fullScreenImgDiv").css('height', eighty);
     482}
     483
     484/*jquery(document).ready(function() {
     485    thirty_pc();
     486    jquery(window).bind('resize', thirty_pc);
     487});*/
     488
    473489
    474490
Note: See TracChangeset for help on using the changeset viewer.