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 { | |
| display: -webkit-box; | |
| display: -webkit-flex; | |
| display: -moz-box; | |
| display: -ms-flexbox; | |
| display: flex; | |
| } |
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
| // set default font-size | |
| @function getRem($size) { | |
| $rem: $size / 16px; | |
| @return $rem * 1rem; | |
| } | |
| @mixin font-size($size) { | |
| font-size: $size; | |
| font-size: getRem($size); |
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
| $font-stack-code: Menlo, monospace, consolas; | |
| $font-stack-article: 'Merriweather',serif; | |
| $darkgrey: #656c7a; | |
| $lightgrey: #e7e9ee; | |
| .code-block { | |
| font: 100% $font-stack-code; | |
| color: $darkgrey; | |
| background-color: $lightgrey; | |
| } |
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
| .code-block { | |
| font: 100% Menlo, monospace, consolas; | |
| color: #656c7a; | |
| background-color: #e7e9ee; | |
| } | |
| .article-par { | |
| font: 100% 'Merriweather',serif; | |
| } |
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
| @mixin opacity($opacity) { | |
| opacity: $opacity; | |
| $opacity-ie: $opacity * 100; | |
| filter: alpha(opacity=$opacity-ie); | |
| } | |
| .normal { | |
| @include opacity(1); | |
| } |
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
| .normal { | |
| opacity: 1; | |
| filter: alpha(opacity=100); | |
| } | |
| .disabled { | |
| opacity: 0.5; | |
| filter: alpha(opacity=50); | |
| } |
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
| @function calculateRem($size) { | |
| $remSize: $size / 16px; | |
| @return $remSize * 1rem; | |
| } | |
| @mixin font-size($size) { | |
| font-size: $size; | |
| font-size: calculateRem($size); | |
| } |
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
| h1 { | |
| font-size: 32px; | |
| font-size: 2rem; | |
| } | |
| p { | |
| font-size: 16px; | |
| font-size: 1rem; | |
| } |
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
| nav { | |
| margin: 0 auto; | |
| ul { | |
| margin: 8px; | |
| padding: 0; | |
| list-style-type: disc; | |
| } | |
| li { | |
| font-size: 16px; |
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
| nav { | |
| margin: 0 auto; } | |
| nav ul { | |
| margin: 8px; | |
| padding: 0; | |
| list-style-type: disc; } | |
| nav li { | |
| font-size: 16px; } | |
| nav a { | |
| display: block; |