Skip to content

Instantly share code, notes, and snippets.

@lrobeson
Created February 18, 2016 01:51
Show Gist options
  • Save lrobeson/78336138b5e5b9f29c86 to your computer and use it in GitHub Desktop.
Save lrobeson/78336138b5e5b9f29c86 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<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>
// ----
// 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;
}
.layout-preface,
.layout-main,
.layout-sidebar {
background-color: aliceblue;
border: 1px solid black;
border-radius: 5px;
margin: 10px;
padding: 20px;
}
body {
font-family: "Varela Round", sans-serif;
line-height: 1.6;
color: #3a3a3a;
margin: 0;
padding: 20px 20px 40px;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
h1,
h2,
h3 {
color: darkgreen;
margin-top: 0;
}
a {
// text-decoration: none;
}
hr {
@extend %clearfix;
}
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.21739%;
float: left;
margin-right: -100%;
margin-left: 0;
clear: none;
}
.no-flexbox .layout-panels-sidebar-right .layout-sidebar {
width: 30.43478%;
float: right;
margin-left: 0;
margin-right: 0;
clear: none;
}
}
/* =================================
* Base Element Styles
*==================================== */
* {
box-sizing: border-box;
}
.layout-preface,
.layout-main,
.layout-sidebar {
background-color: aliceblue;
border: 1px solid black;
border-radius: 5px;
margin: 10px;
padding: 20px;
}
body {
font-family: "Varela Round", sans-serif;
line-height: 1.6;
color: #3a3a3a;
margin: 0;
padding: 20px 20px 40px;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
h1,
h2,
h3 {
color: darkgreen;
margin-top: 0;
}
<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