Created
February 16, 2016 22:05
-
-
Save lrobeson/ee077b4eebd2487589e8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
<h1>Panels Layout: Sidebar Right</h1> | |
<!-- Using the .no-flexbox class added by Modernizr. --> | |
<!--<div class="no-flexbox">--> | |
<!-- <div class="layout-panels-sidebar-left">--> | |
<!-- <div class="layout-preface">--> | |
<!-- <h1>Preface Region</h1>--> | |
<!-- <p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p>--> | |
<!-- <p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>--> | |
<!-- </div>--> | |
<!-- <aside class="layout-sidebar">--> | |
<!-- <h1>Sidebar Region</h1>--> | |
<!-- <ul>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- </ul>--> | |
<!-- </aside>--> | |
<!-- <div class="layout-main">--> | |
<!-- <h1>Main Region</h1>--> | |
<!-- <p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>--> | |
<!-- <p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p>--> | |
<!-- <p>Nori grape silver beet broccoli kombu beet greens fava bean potato quandong celery. Bunya nuts black-eyed pea prairie turnip leek lentil turnip greens parsnip. Sea lettuce lettuce water chestnut eggplant winter purslane fennel azuki bean earthnut pea sierra leone bologi leek soko chicory celtuce parsley jícama salsify.</p>--> | |
<!-- </div>--> | |
<!-- </div>--> | |
<!--</div>--> | |
<hr> | |
<!-- Using the .flexbox class added by Modernizr. --> | |
<div class="flexbox"> | |
<div class="layout-panels-sidebar-right"> | |
<div class="layout-preface"> | |
<h1>Preface Region</h1> | |
<p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p> | |
<p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p> | |
</div> | |
<aside class="layout-sidebar"> | |
<h1>Sidebar Region</h1> | |
<ul> | |
<li><a href="#">Nav item</a></li> | |
<li><a href="#">Nav item</a></li> | |
<li><a href="#">Nav item</a></li> | |
<li><a href="#">Nav item</a></li> | |
<li><a href="#">Nav item</a></li> | |
</ul> | |
</aside> | |
<div class="layout-main"> | |
<h1>Main Region</h1> | |
<p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p> | |
<p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p> | |
<p>Nori grape silver beet broccoli kombu beet greens fava bean potato quandong celery. Bunya nuts black-eyed pea prairie turnip leek lentil turnip greens parsnip. Sea lettuce lettuce water chestnut eggplant winter purslane fennel azuki bean earthnut pea sierra leone bologi leek soko chicory celtuce parsley jícama salsify.</p> | |
</div> | |
</div> | |
</div> |
This file contains 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.21) | |
// Compass (v1.0.3) | |
// Breakpoint (v2.6.1) | |
// Singularity.gs (v1.6.2) | |
// ---- | |
// Dependencies | |
@import "singularitygs"; | |
@import "breakpoint"; | |
@mixin clearfix { | |
&:after { | |
display: table; | |
content: ""; | |
} | |
&:after { | |
clear: both; | |
} | |
} | |
%clearfix { | |
@include clearfix; | |
} | |
.layout-panels-sidebar-right { | |
.flexbox & { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
@include breakpoint(700px) { | |
.layout-preface { | |
flex: 1 100%; | |
} | |
.layout-main { | |
flex: 2; | |
} | |
.layout-sidebar { | |
flex: 1; | |
order: 1; | |
} | |
} | |
} | |
.no-flexbox & { | |
@include add-grid(12 at 700px); | |
@include add-gutter(1); | |
@include breakpoint(700px) { | |
.layout-main { | |
@include grid-span(8,1); | |
} | |
.layout-sidebar { | |
@include grid-span(4,9); | |
} | |
} | |
} | |
} | |
/* ================================= | |
* Base Element Styles | |
*==================================== */ | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
font-family: "Varela Round", sans-serif; | |
line-height: 1.6; | |
color: #3a3a3a; | |
margin: 0; | |
} | |
ul { | |
margin: 0; | |
padding: 0; | |
list-style: none; | |
} | |
h2, | |
h3, | |
a { | |
color: lightblue; | |
} | |
h1, | |
h2, | |
h3 { | |
color: darkgray; | |
margin-top: 0; | |
} | |
a { | |
text-decoration: none; | |
} | |
hr { | |
@extend %clearfix; | |
} |
This file contains 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
hr:after { | |
display: table; | |
content: ""; | |
} | |
hr:after { | |
clear: both; | |
} | |
.flexbox .layout-panels-sidebar-right { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
} | |
@media (min-width: 700px) { | |
.flexbox .layout-panels-sidebar-right .layout-preface { | |
flex: 1 100%; | |
} | |
.flexbox .layout-panels-sidebar-right .layout-main { | |
flex: 2; | |
} | |
.flexbox .layout-panels-sidebar-right .layout-sidebar { | |
flex: 1; | |
order: 1; | |
} | |
} | |
@media (min-width: 700px) { | |
.no-flexbox .layout-panels-sidebar-right .layout-main { | |
width: 65.2173913%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
clear: none; | |
} | |
.no-flexbox .layout-panels-sidebar-right .layout-sidebar { | |
width: 30.43478261%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: none; | |
} | |
} | |
/* ================================= | |
* Base Element Styles | |
*==================================== */ | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
font-family: "Varela Round", sans-serif; | |
line-height: 1.6; | |
color: #3a3a3a; | |
margin: 0; | |
} | |
ul { | |
margin: 0; | |
padding: 0; | |
list-style: none; | |
} | |
h2, | |
h3, | |
a { | |
color: lightblue; | |
} | |
h1, | |
h2, | |
h3 { | |
color: darkgray; | |
margin-top: 0; | |
} | |
a { | |
text-decoration: none; | |
} |
This file contains 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
<h1>Panels Layout: Sidebar Right</h1> | |
<!-- Using the .no-flexbox class added by Modernizr. --> | |
<!--<div class="no-flexbox">--> | |
<!-- <div class="layout-panels-sidebar-left">--> | |
<!-- <div class="layout-preface">--> | |
<!-- <h1>Preface Region</h1>--> | |
<!-- <p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p>--> | |
<!-- <p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>--> | |
<!-- </div>--> | |
<!-- <aside class="layout-sidebar">--> | |
<!-- <h1>Sidebar Region</h1>--> | |
<!-- <ul>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- <li><a href="#">Nav item</a></li>--> | |
<!-- </ul>--> | |
<!-- </aside>--> | |
<!-- <div class="layout-main">--> | |
<!-- <h1>Main Region</h1>--> | |
<!-- <p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>--> | |
<!-- <p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p>--> | |
<!-- <p>Nori grape silver beet broccoli kombu beet greens fava bean potato quandong celery. Bunya nuts black-eyed pea prairie turnip leek lentil turnip greens parsnip. Sea lettuce lettuce water chestnut eggplant winter purslane fennel azuki bean earthnut pea sierra leone bologi leek soko chicory celtuce parsley jícama salsify.</p>--> | |
<!-- </div>--> | |
<!-- </div>--> | |
<!--</div>--> | |
<hr> | |
<!-- Using the .flexbox class added by Modernizr. --> | |
<div class="flexbox"> | |
<div class="layout-panels-sidebar-right"> | |
<div class="layout-preface"> | |
<h1>Preface Region</h1> | |
<p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p> | |
<p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p> | |
</div> | |
<aside class="layout-sidebar"> | |
<h1>Sidebar Region</h1> | |
<ul> | |
<li><a href="#">Nav item</a></li> | |
<li><a href="#">Nav item</a></li> | |
<li><a href="#">Nav item</a></li> | |
<li><a href="#">Nav item</a></li> | |
<li><a href="#">Nav item</a></li> | |
</ul> | |
</aside> | |
<div class="layout-main"> | |
<h1>Main Region</h1> | |
<p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p> | |
<p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p> | |
<p>Nori grape silver beet broccoli kombu beet greens fava bean potato quandong celery. Bunya nuts black-eyed pea prairie turnip leek lentil turnip greens parsnip. Sea lettuce lettuce water chestnut eggplant winter purslane fennel azuki bean earthnut pea sierra leone bologi leek soko chicory celtuce parsley jícama salsify.</p> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment