Skip to content

Commit 8161e45

Browse files
authored
Merge pull request #31 from kni-labs/updates
Updates
2 parents 1470f00 + 3933852 commit 8161e45

File tree

7 files changed

+1633
-4
lines changed

7 files changed

+1633
-4
lines changed

.pages

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 99b6b9c95dba5f383e67006034bc02ba58eb990a
1+
Subproject commit a936336763eacb049c9b5f6bfe16896759ef0bb4

.scss-lint.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
scss_files: "**/*.scss"
2+
exclude: "**/_reset.scss"
23
linters:
34
BangFormat:
45
enabled: true

knapsack/_animation.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ $ease-in-out-swift: cubic-bezier(0.900, 0, 0.100, 1);
5050
/// @link http://codepen.io/dbox/pen/ZboVOg
5151

5252
@mixin animated($animation-name: null, $animation-duration: .65s, $animation-delay: null, $animation-easing: $ease-out-quad) {
53-
animation-timing-function: $animation-easing;
5453
animation-duration: $animation-duration;
5554
animation-fill-mode: both;
55+
animation-iteration-count: 1;
56+
animation-timing-function: $animation-easing;
5657

5758
@if ($animation-name) {
5859
animation-name: $animation-name;

knapsack/_layout.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,10 @@
205205
left: 0;
206206
margin-left: auto;
207207
margin-right: auto;
208+
max-width: $width;
208209
position: absolute;
209210
right: 0;
210-
width: $width;
211+
width: 100%;
211212
}
212213

213214
//- Mixin: Material Shadow

knapsack/_reset.scss

+30
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,21 @@
364364
font-weight: bold;
365365
}
366366
}
367+
368+
369+
//- Mixin: Sanitize
370+
///
371+
/// Sanitize css. Another reset. Call this on the root of your project.
372+
///
373+
/// @group reset
374+
/// @example
375+
/// @include sanitize();
376+
/// @link https://github.com/jonathantneal/sanitize.css
377+
378+
@mixin sanitize {
379+
/*! sanitize.css v4.1.0 | CC0 License | github.com/jonathantneal/sanitize.css */article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}template,[hidden]{display:none}*,::before,::after{background-repeat:no-repeat;box-sizing:inherit}::before,::after{text-decoration:inherit;vertical-align:inherit}html{box-sizing:border-box;cursor:default;font-family:sans-serif;line-height:1.5;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}hr{height:0;overflow:visible}nav ol,nav ul{list-style:none}abbr[title]{border-bottom:1px dotted;text-decoration:none}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}mark{background-color:#ff0;color:#000}progress{vertical-align:baseline}small{font-size:83.3333%}sub,sup{font-size:83.3333%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}::-moz-selection{background-color:#b3d4fc;color:#000;text-shadow:none}::selection{background-color:#b3d4fc;color:#000;text-shadow:none}audio,canvas,iframe,img,svg,video{vertical-align:middle}img{border-style:none}svg{fill:currentColor}svg:not(:root){overflow:hidden}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{outline-width:0}table{border-collapse:collapse;border-spacing:0}button,input,select,textarea{background-color:transparent;border-style:none;color:inherit;font-size:1em;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto;resize:vertical}[type="checkbox"],[type="radio"]{padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-cancel-button,::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[aria-busy="true"]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled]{cursor:default}a,area,button,input,label,select,textarea,[tabindex]{-ms-touch-action:manipulation;touch-action:manipulation}[hidden][aria-hidden="false"]{clip:rect(0,0,0,0);display:inherit;position:absolute}[hidden][aria-hidden="false"]:focus{clip:auto}
380+
}
381+
367382
// Additional esets via scut:
368383
// https://github.com/davidtheclark/scut/
369384
// Clickable form elements should have a pointer.
@@ -447,6 +462,20 @@
447462
margin: 0;
448463
}
449464
}
465+
466+
@mixin reset-headers {
467+
h1, h2, h3, h4, h5, h6 {
468+
display: block;
469+
font-weight: normal;
470+
margin: 1rem 0;
471+
472+
&:first-child {
473+
margin-top: 0;
474+
}
475+
476+
a { color: inherit; }
477+
}
478+
}
450479
// Call them all
451480
@mixin reset-elements() {
452481
@include reset-border-box;
@@ -456,4 +485,5 @@
456485
@include reset-media;
457486
@include reset-paragraph;
458487
@include reset-pointer;
488+
@include reset-headers;
459489
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "knapsack",
3-
"version": "0.4.1",
3+
"version": "1.0.0",
44
"description": "A handy bag of sass utilities and mixins",
55
"main": "knapsack/_index.scss",
66
"repository": {

0 commit comments

Comments
 (0)