Skip to content

Instantly share code, notes, and snippets.

@blackfalcon
Created February 27, 2014 18:55
Show Gist options
  • Save blackfalcon/9256617 to your computer and use it in GitHub Desktop.
Save blackfalcon/9256617 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.map
this is a map
.box
.controller
this is a controller
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
*
box-sizing: border-box
html, body
height: 100%
.map
width: 100%
height: 100%
background-color: orange
.box
position: absolute
top: 40px
left: calc(50% - 30em)
.controller
width: 60em
height: 100px
background-color: blue
border-radius: 10px
margin: 0 auto
* {
box-sizing: border-box;
}
html, body {
height: 100%;
}
.map {
width: 100%;
height: 100%;
background-color: orange;
}
.box {
position: absolute;
top: 40px;
left: calc(50% - 30em);
}
.controller {
width: 60em;
height: 100px;
background-color: blue;
border-radius: 10px;
margin: 0 auto;
}
<div class='map'>
this is a map
</div>
<div class='box'>
<div class='controller'>
this is a controller
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment