Skip to content

Commit

Permalink
style : update for less.js 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pacome committed Mar 1, 2013
1 parent 8fe1073 commit 169f739
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web_static/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ font-family:'OSP_helvetica_serif';
@marginEXT : 10px;
@marginINT : 20px;
@bordermap : 1px;
@Wmap-wrapper: ~"100% - 2 * @{marginEXT}px";
@Hmap-wrapper: ~"100% - @{marginEXT}px - @{topH}px";
@WHmap-wrapper-2: ~"100% - 2 * @{marginINT}px - 2 * @{bordermap}px";
@Wmap-wrapper: ~"100% - 2 * @{marginEXT}";
@Hmap-wrapper: ~"100% - @{marginEXT} - @{topH}";
@WHmap-wrapper-2: ~"100% - 2 * @{marginINT} - 2 * @{bordermap}";

/* reset */
*, p, div, ul, li, h1, h2, h3, h4, h5, h6{padding:0; margin:0;}
Expand All @@ -125,26 +125,31 @@ body{height: 100%; border: 0px solid red;}
width: -calc(@Wmap-wrapper);
width: -webkit-calc(@Wmap-wrapper);
width: -moz-calc(@Wmap-wrapper);
width: -o-calc(@Wmap-wrapper);
height: -calc(@Hmap-wrapper);
height: -webkit-calc(@Hmap-wrapper);
height: -moz-calc(@Hmap-wrapper);
height: -o-calc(@Hmap-wrapper);
padding: @topH @marginEXT @marginEXT @marginEXT;
}

#map-wrapper-2 {
width: -calc(@WHmap-wrapper-2);
width: -webkit-calc(@WHmap-wrapper-2);
width: -moz-calc(@WHmap-wrapper-2);
width: -o-calc(@WHmap-wrapper-2);
height: -calc(@WHmap-wrapper-2);
height: -webkit-calc(@WHmap-wrapper-2);
height: -moz-calc(@WHmap-wrapper-2);
height: -o-calc(@WHmap-wrapper-2);
padding: @marginINT;
border: @bordermap dotted #000;
}

#map{
width:100%;
min-height:100%;
height: 100%;
left:0;
}

Expand Down

0 comments on commit 169f739

Please sign in to comment.