Example colors by use
// General
$color-primary: $cyan;
$color-secondary: $tomato;
// Backgrounds
$highlight-background: $white;
$main-background: $off-white;| :root | |
| // font stack | |
| --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif | |
| --helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif | |
| --helvetica-neue: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif | |
| --serif: Georgia, Cambria, 'Times New Roman', Times, serif | |
| --monospace: Monaco, Menlo, Consolas, 'Courier New', monospace | |
| // defaults | |
| --base-font-size: 16px |
Example colors by use
// General
$color-primary: $cyan;
$color-secondary: $tomato;
// Backgrounds
$highlight-background: $white;
$main-background: $off-white;| html | |
| body | |
| .container | |
| header | |
| nav navbar | |
| div Adjective, SEO description – San Francisco Townhomes & Apartment Living. | |
| nav.sticky | |
| ul | |
| li |
uploads from staging(edited)uploads on localuploads download from staging to localprojects@kurtnoble media temple| // Create a basic animation triggered by waypoints | |
| // Defaults to fade-in-up type animation, but useful for simple fades or slides. | |
| @mixin waypoint-basic( | |
| $y-start: 30px, | |
| $opacity-start: 0, | |
| $x-start: 0, | |
| $y-end: 0, | |
| $opacity-end: 1, | |
| $x-end: 0, | |
| $duration: .2s, |
| section.section-title { | |
| // rules | |
| article { } | |
| h1 { } | |
| p { } | |
| .specific-div { } | |
| // Rules for only smaller sizes | |
| @include media('<tablet') { | |
| // rules |
| cat knapsack/_animation.scss knapsack/_code.scss knapsack/_forms.scss knapsack/_layout.scss knapsack/_reset.scss knapsack/_tables.scss knapsack/_typography.scss knapsack/_ui.scss knapsack/_utilities.scss >> test/concat.scss |
| .custom-select { | |
| border: 1px solid rgba(0,0,0,0.25); | |
| border-radius: 0.2em; | |
| display: block; | |
| padding: 0; | |
| position: relative; | |
| background: #fff; | |
| color: rgba(0,0,0,0.7); | |
| width: 200px; | |
| } |
cat knapsack/_settings.scss knapsack/_utilities.scss knapsack/_typography.scss knapsack/_animation.scss knapsack/_code.scss knapsack/_layout.scss knapsack/_tables.scss knapsack/_reset.scss knapsack/_ui.scss knapsack/_forms.scss >> test/concat.scsssassdocify knapsackcd .pages && git push -uf origin gh-pagesgit tag x.x.xgit push origin x.x.xcd ..npm publishResponsive images in CSS are pretty easy: just set the width: 100% and height: auto and you're good to go. Things get a little unpredictable, though, when dealing with background images. Since putting a height on the element causes lots of responsive headaches, one workaround is to have the container scale by its aspect ratio. This can be achieved by setting a few attributes to the element's :after tag:
.my-element {
overflow: hidden;
position: relative;
}
.my-element:after {
content: "";