Created
November 9, 2014 04:51
-
-
Save kylecannon/9a936a22f56cce72d416 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<div class="ds-row"> | |
<div class="ds-grid-header"> | |
test | |
</div> | |
</div> | |
<div class="ds-row"> | |
<div class="ds-grid-15x100"> | |
test | |
</div> | |
</div> | |
<div class="ds-row"> | |
<div class="ds-grid-footer"> | |
test | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
$screenWidth: 100% | |
$screenHeight: 100% | |
$screenWidth: 1920px !default | |
$screenHeight: 1080px !default | |
html, body | |
height: 100% !important | |
$debug: true | |
=clearfix | |
&:after | |
content: "" | |
display: table | |
clear: both | |
=debug-border | |
border: 1px solid red | |
.ds-grid-footer | |
bottom: 0 | |
=ds-panel-pct($widthPct,$heightPct) | |
width: ($widthPct/100)*$screenWidth | |
height: ($heightPct/100)*$screenHeight | |
@if $widthPct < 100 | |
float: left | |
@if $debug | |
@include debug-border | |
.ds-row | |
@include clearfix | |
.ds-panel-01 | |
@include ds-panel-pct(100,100) | |
.ds-panel-02 | |
@include ds-panel-pct(25,100) | |
.ds-panel-03 | |
@include ds-panel-pct(75,100) | |
.ds-panel-04 | |
@include ds-panel-pct(50,100) | |
.ds-panel-05 | |
@include ds-panel-pct(100,25) | |
.ds-panel-06 | |
@include ds-panel-pct(100,75) | |
.ds-panel-07 | |
@include ds-panel-pct(100,50) | |
.ds-panel-08 | |
@include ds-panel-pct(25,75) | |
.ds-panel-09 | |
@include ds-panel-pct(75,75) | |
.ds-panel-10 | |
@include ds-panel-pct(50,75) | |
.ds-panel-11 | |
@include ds-panel-pct(75,50) | |
.ds-panel-12 | |
@include ds-panel-pct(25,50) | |
.ds-panel-13 | |
@include ds-panel-pct(50,50) | |
.ds-panel-14 | |
width: $screenWidth | |
height: $screenHeight*.1851851852 | |
@if $debug | |
@include debug-border | |
.ds-panel-15 | |
width: $screenWidth | |
height: $screenHeight*.06481481481 | |
@if $debug | |
@include debug-border | |
.ds-panel-16 | |
@include ds-panel-pct(100,20) | |
.ds-panel-17 | |
@include ds-panel-pct(100,10) | |
.ds-panel-18 | |
@include ds-panel-pct(100,15) | |
.ds-panel-19 | |
@include ds-panel-pct(10,100) | |
.ds-panel-20 | |
@include ds-panel-pct(15,100) | |
.ds-grid-100x100 | |
@extend .ds-panel-01 | |
.ds-grid-25x100 | |
@extend .ds-panel-02 | |
.ds-grid-75x100 | |
@extend .ds-panel-03 | |
.ds-grid-50x100 | |
@extend .ds-panel-04 | |
.ds-grid-100x25 | |
@extend .ds-panel-05 | |
.ds-grid-100x75 | |
@extend .ds-panel-06 | |
.ds-grid-100x50 | |
@extend .ds-panel-07 | |
.ds-grid-25x75 | |
@extend .ds-panel-08 | |
.ds-grid-75x75 | |
@extend .ds-panel-09 | |
.ds-grid-50x75 | |
@extend .ds-panel-10 | |
.ds-grid-75x50 | |
@extend .ds-panel-11 | |
.ds-grid-25x50 | |
@extend .ds-panel-12 | |
.ds-grid-50x50 | |
@extend .ds-panel-13 | |
.ds-grid-header | |
@extend .ds-panel-14 | |
.ds-grid-footer | |
@extend .ds-panel-15 | |
.ds-grid-100x20 | |
@extend .ds-panel-16 | |
.ds-grid-100x10 | |
@extend .ds-panel-17 | |
.ds-grid-100x15 | |
@extend .ds-panel-18 | |
.ds-grid-10x100 | |
@extend .ds-panel-19 | |
.ds-grid-15x100 | |
@extend .ds-panel-20 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
height: 100% !important; | |
} | |
.ds-grid-footer { | |
bottom: 0; | |
} | |
.ds-row:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
.ds-panel-01, .ds-grid-100x100 { | |
width: 100%; | |
height: 100%; | |
border: 1px solid red; | |
} | |
.ds-panel-02, .ds-grid-25x100 { | |
width: 25%; | |
height: 100%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-03, .ds-grid-75x100 { | |
width: 75%; | |
height: 100%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-04, .ds-grid-50x100 { | |
width: 50%; | |
height: 100%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-05, .ds-grid-100x25 { | |
width: 100%; | |
height: 25%; | |
border: 1px solid red; | |
} | |
.ds-panel-06, .ds-grid-100x75 { | |
width: 100%; | |
height: 75%; | |
border: 1px solid red; | |
} | |
.ds-panel-07, .ds-grid-100x50 { | |
width: 100%; | |
height: 50%; | |
border: 1px solid red; | |
} | |
.ds-panel-08, .ds-grid-25x75 { | |
width: 25%; | |
height: 75%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-09, .ds-grid-75x75 { | |
width: 75%; | |
height: 75%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-10, .ds-grid-50x75 { | |
width: 50%; | |
height: 75%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-11, .ds-grid-75x50 { | |
width: 75%; | |
height: 50%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-12, .ds-grid-25x50 { | |
width: 25%; | |
height: 50%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-13, .ds-grid-50x50 { | |
width: 50%; | |
height: 50%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-14, .ds-grid-header { | |
width: 100%; | |
height: 18.51852%; | |
border: 1px solid red; | |
} | |
.ds-panel-15, .ds-grid-footer { | |
width: 100%; | |
height: 6.48148%; | |
border: 1px solid red; | |
} | |
.ds-panel-16, .ds-grid-100x20 { | |
width: 100%; | |
height: 20%; | |
border: 1px solid red; | |
} | |
.ds-panel-17, .ds-grid-100x10 { | |
width: 100%; | |
height: 10%; | |
border: 1px solid red; | |
} | |
.ds-panel-18, .ds-grid-100x15 { | |
width: 100%; | |
height: 15%; | |
border: 1px solid red; | |
} | |
.ds-panel-19, .ds-grid-10x100 { | |
width: 10%; | |
height: 100%; | |
float: left; | |
border: 1px solid red; | |
} | |
.ds-panel-20, .ds-grid-15x100 { | |
width: 15%; | |
height: 100%; | |
float: left; | |
border: 1px solid red; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<div class="ds-row"> | |
<div class="ds-grid-header"> | |
test | |
</div> | |
</div> | |
<div class="ds-row"> | |
<div class="ds-grid-15x100"> | |
test | |
</div> | |
</div> | |
<div class="ds-row"> | |
<div class="ds-grid-footer"> | |
test | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment