Created
May 14, 2015 15:55
-
-
Save zellwk/aaa4fc4e6be6be7ff6ce 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
| <div class="container"> | |
| <div class="flexible"></div> | |
| <div class="fixed"></div> | |
| </div> |
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.3.14) | |
| // Compass (v1.0.1) | |
| // Susy (v2.1.3) | |
| // ---- | |
| @import "susy"; | |
| .container { | |
| margin-left: auto; | |
| margin-right: auto; | |
| max-width: 960px; | |
| } | |
| .container:after { | |
| content: ""; | |
| display: table; | |
| clear: both; | |
| } | |
| .flexible { | |
| @include container; | |
| width: calc(100% - 300px); | |
| float: left; | |
| background: rgba(red, 0.25); | |
| } | |
| .fixed { | |
| float: left; | |
| width: 300px; | |
| background: rgba(green, 0.25); | |
| } | |
| .flexible, .fixed { | |
| height: 100vh; | |
| } | |
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
| .container { | |
| margin-left: auto; | |
| margin-right: auto; | |
| max-width: 960px; | |
| } | |
| .container:after { | |
| content: ""; | |
| display: table; | |
| clear: both; | |
| } | |
| .flexible { | |
| max-width: 100%; | |
| margin-left: auto; | |
| margin-right: auto; | |
| width: calc(100% - 300px); | |
| float: left; | |
| background: rgba(255, 0, 0, 0.25); | |
| } | |
| .flexible:after { | |
| content: " "; | |
| display: block; | |
| clear: both; | |
| } | |
| .fixed { | |
| float: left; | |
| width: 300px; | |
| background: rgba(0, 128, 0, 0.25); | |
| } | |
| .flexible, .fixed { | |
| height: 100vh; | |
| } |
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
| <div class="container"> | |
| <div class="flexible"></div> | |
| <div class="fixed"></div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment