Created
February 25, 2015 08:25
-
-
Save csswizardry/f4d4fbe930fe76ddfc69 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
| <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p> |
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.12) | |
| // Compass (v1.0.3) | |
| // ---- | |
| // _settings.global.scss | |
| $base-font-size: 16px; | |
| $base-line-height: 24px; | |
| $base-spacing-unit: $base-line-height; | |
| $base-spacing-unit-small: round(0.5 * $base-line-height); | |
| $base-spacing-unit-large: round(2 * $base-line-height); | |
| // _tools.functions.scss | |
| @function rem($number) { | |
| @return $number / $base-font-size * 1rem; | |
| } | |
| // _tools.mixins.scss | |
| @mixin font-size($font-size, $line-height: auto) { | |
| font-size: $font-size; | |
| font-size: ($font-size / $base-font-size) * 1rem; | |
| @if $line-height == auto { | |
| line-height: ceil($font-size / $base-line-height) * ($base-line-height / $font-size); | |
| } | |
| @else { | |
| @if (type-of($line-height) == number or $line-height == inherit or $line-height == normal) { | |
| line-height: $line-height; | |
| } | |
| @elseif ($line-height != none and $line-height != false) { | |
| @warn "D’oh! ‘#{$line-height}’ is not a valid value for `line-height`." | |
| } | |
| } | |
| } | |
| @mixin rem($property, $value) { | |
| #{$property}: $value; | |
| #{$property}: rem($value); | |
| } | |
| @mixin clearfix($important: false) { | |
| @if ($important == false) { | |
| $important: null; | |
| } @else { | |
| $important: !important; | |
| } | |
| &:after { | |
| content: "" $important; | |
| display: table $important; | |
| clear: both $important; | |
| } | |
| } | |
| // _generic.reset.scss | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| font-size: 100%; | |
| box-sizing: border-box; | |
| } | |
| // _base.page.scss | |
| html { | |
| font-size: ($base-font-size / 16px) * 100%; | |
| line-height: $base-line-height / $base-font-size; | |
| } | |
| body { | |
| @include rem(padding, 16px); | |
| } | |
| // _objects.box.scss | |
| .o-box { | |
| padding: $base-spacing-unit; | |
| display: block; | |
| @include clearfix(); | |
| } | |
| .o-box--small { | |
| padding: $base-spacing-unit-small; | |
| } | |
| .o-box--large { | |
| padding: $base-spacing-unit-large; | |
| } | |
| // _trumps.clearfix.scss | |
| .u-clearfix { | |
| @include clearfix(important); | |
| } |
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
| * { | |
| margin: 0; | |
| padding: 0; | |
| font-size: 100%; | |
| box-sizing: border-box; | |
| } | |
| html { | |
| font-size: 100%; | |
| line-height: 1.5; | |
| } | |
| body { | |
| padding: 16px; | |
| padding: 1rem; | |
| } | |
| .o-box { | |
| padding: 24px; | |
| display: block; | |
| } | |
| .o-box:after { | |
| content: ""; | |
| display: table; | |
| clear: both; | |
| } | |
| .o-box--small { | |
| padding: 12px; | |
| } | |
| .o-box--large { | |
| padding: 48px; | |
| } | |
| .u-clearfix:after { | |
| content: "" !important; | |
| display: table !important; | |
| clear: both !important; | |
| } |
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
| <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment