minima-gutenberg 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +224 -0
  4. data/_includes/disqus_comments.html +20 -0
  5. data/_includes/footer.html +50 -0
  6. data/_includes/google-analytics.html +12 -0
  7. data/_includes/head.html +11 -0
  8. data/_includes/header.html +9 -0
  9. data/_includes/icon-github.html +1 -0
  10. data/_includes/icon-github.svg +1 -0
  11. data/_includes/icon-twitter.html +1 -0
  12. data/_includes/icon-twitter.svg +1 -0
  13. data/_includes/social.html +14 -0
  14. data/_layouts/default.html +20 -0
  15. data/_layouts/home.html +32 -0
  16. data/_layouts/page.html +14 -0
  17. data/_layouts/post.html +27 -0
  18. data/_sass/_gutenberg.scss +125 -0
  19. data/_sass/gutenberg/helpers/_alignment.scss +25 -0
  20. data/_sass/gutenberg/helpers/_grid.scss +95 -0
  21. data/_sass/gutenberg/layout/_aside.scss +3 -0
  22. data/_sass/gutenberg/layout/_base.scss +62 -0
  23. data/_sass/gutenberg/layout/_footer.scss +9 -0
  24. data/_sass/gutenberg/layout/_header.scss +3 -0
  25. data/_sass/gutenberg/layout/_main.scss +3 -0
  26. data/_sass/gutenberg/layout/_section.scss +3 -0
  27. data/_sass/gutenberg/mixins/_font-size.scss +5 -0
  28. data/_sass/gutenberg/mixins/_line-height.scss +5 -0
  29. data/_sass/gutenberg/mixins/_margin.scss +25 -0
  30. data/_sass/gutenberg/mixins/_padding.scss +27 -0
  31. data/_sass/gutenberg/modules/_anchor.scss +34 -0
  32. data/_sass/gutenberg/modules/_article.scss +11 -0
  33. data/_sass/gutenberg/modules/_audio.scss +10 -0
  34. data/_sass/gutenberg/modules/_canvas.scss +4 -0
  35. data/_sass/gutenberg/modules/_code.scss +28 -0
  36. data/_sass/gutenberg/modules/_details.scss +7 -0
  37. data/_sass/gutenberg/modules/_figure.scss +83 -0
  38. data/_sass/gutenberg/modules/_form.scss +3 -0
  39. data/_sass/gutenberg/modules/_heading.scss +108 -0
  40. data/_sass/gutenberg/modules/_horizontal-rule.scss +69 -0
  41. data/_sass/gutenberg/modules/_image.scss +12 -0
  42. data/_sass/gutenberg/modules/_list.scss +9 -0
  43. data/_sass/gutenberg/modules/_navigation.scss +3 -0
  44. data/_sass/gutenberg/modules/_progress.scss +4 -0
  45. data/_sass/gutenberg/modules/_quote.scss +48 -0
  46. data/_sass/gutenberg/modules/_table.scss +10 -0
  47. data/_sass/gutenberg/modules/_template.scss +4 -0
  48. data/_sass/gutenberg/modules/_text.scss +143 -0
  49. data/_sass/gutenberg/modules/_video.scss +4 -0
  50. data/assets/main.scss +7 -0
  51. data/assets/minima-social-icons.svg +33 -0
  52. metadata +160 -0
@@ -0,0 +1,34 @@
1
+ /* Links
2
+ ========================================================================== */
3
+
4
+ $color-link-normal: $color-font-body;
5
+ $color-link-hover: $color-font-body;
6
+ $color-link-active: #f00;
7
+ $color-link-visited: $color-font-light;
8
+
9
+ a {
10
+ background: transparent;
11
+ color: $color-link-normal;
12
+ transition: all .3s;
13
+
14
+ &:active,
15
+ &:hover {
16
+ outline: 0;
17
+ }
18
+
19
+ &:hover {
20
+ color: $color-link-hover;
21
+ }
22
+
23
+ &:visited {
24
+ color: $color-link-visited;
25
+
26
+ &:hover {
27
+ color: $color-link-hover;
28
+ }
29
+ }
30
+
31
+ &:active {
32
+ color: $color-link-active;
33
+ }
34
+ }
@@ -0,0 +1,11 @@
1
+ article {
2
+ display: block;
3
+ margin: 0 auto;
4
+ width: 80%;
5
+
6
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
7
+ max-width: #{1.5 * $max-width * $base-desktop + 'px'};
8
+ max-width: #{1.5 * $max-width + 'rem'};
9
+ }
10
+
11
+ }
@@ -0,0 +1,10 @@
1
+ audio {
2
+ display: inline-block;
3
+ vertical-align: baseline;
4
+
5
+ &:not([controls]) {
6
+ display: none;
7
+ height: 0;
8
+ }
9
+
10
+ }
@@ -0,0 +1,4 @@
1
+ canvas {
2
+ display: inline-block;
3
+ vertical-align: baseline;
4
+ }
@@ -0,0 +1,28 @@
1
+ // Contain overflow in all browsers.
2
+ pre {
3
+ overflow: auto;
4
+ }
5
+
6
+ // Address odd `em`-unit font size rendering in all browsers.
7
+ code,
8
+ kbd,
9
+ pre,
10
+ samp {
11
+ font-family: monospace, monospace;
12
+ }
13
+
14
+ code {
15
+ @include padding-equal(1);
16
+
17
+ display: block;
18
+
19
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
20
+ $leading: $leading-desktop;
21
+ $leading-rem: $leading-rem-desktop;
22
+
23
+ @import '../mixins/padding';
24
+
25
+ @include padding-equal(1);
26
+ }
27
+
28
+ }
@@ -0,0 +1,7 @@
1
+ details {
2
+ display: block;
3
+ }
4
+
5
+ summary {
6
+ display: block;
7
+ }
@@ -0,0 +1,83 @@
1
+ figcaption {
2
+ @include line-height(1);
3
+ color: $color-font-figcaption;
4
+ display: block;
5
+ font-size: .8125rem;
6
+ font-style: italic;
7
+ margin-bottom: 0;
8
+ text-align: center;
9
+
10
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
11
+ $leading: $leading-desktop;
12
+ $leading-rem: $leading-rem-desktop;
13
+
14
+ @import '../mixins/line-height';
15
+
16
+ @include line-height(1);
17
+ margin-bottom: 0;
18
+ }
19
+
20
+ }
21
+
22
+ figure {
23
+ display: block;
24
+ }
25
+
26
+ figure.floatLeft,
27
+ figure.floatRight {
28
+
29
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
30
+ $leading: $leading-desktop;
31
+ $leading-rem: $leading-rem-desktop;
32
+
33
+ @import '../mixins/margin';
34
+ @import '../mixins/padding';
35
+
36
+ max-width: #{.5 * $max-width * $base-desktop + 'px'};
37
+ max-width: #{.5 * $max-width + 'rem'};
38
+
39
+ @if $paragraph-indent == true {
40
+ @include padding-equal(1);
41
+ @include margin-bottom(0);
42
+ } @else {
43
+ @include padding(0, 1);
44
+ }
45
+
46
+ }
47
+
48
+ blockquote {
49
+
50
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
51
+ $leading: $leading-desktop;
52
+ $leading-rem: $leading-rem-desktop;
53
+
54
+ @import '../mixins/margin';
55
+ @import '../mixins/padding';
56
+
57
+ @include padding-equal(0);
58
+ text-align: left;
59
+
60
+ @if $paragraph-indent == true {
61
+ @include margin-top(1);
62
+ }
63
+
64
+ }
65
+
66
+ p {
67
+
68
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
69
+ $leading: $leading-desktop;
70
+ $leading-rem: $leading-rem-desktop;
71
+
72
+ @import '../mixins/font-size';
73
+ @import '../mixins/line-height';
74
+
75
+ @include font-size(1.2);
76
+ @include line-height(1);
77
+ }
78
+
79
+ }
80
+
81
+ }
82
+
83
+ }
@@ -0,0 +1,3 @@
1
+ input {
2
+
3
+ }
@@ -0,0 +1,108 @@
1
+ /* Headings
2
+ ========================================================================== */
3
+
4
+ // Headings Options
5
+ // [ h1: size (in rem), line height (* leading), margin top (* leading), margin bottom (* leading) ]
6
+ $headings: (
7
+ h1: (2.5, 2, 4, 1),
8
+ h2: (1.6875, 1.5, 2.5, .5),
9
+ h3: (1.375, 1, 2, .5),
10
+ h4: (1.2, 1, 1.5, .5),
11
+ h5: (1, 1, 2.5, .5),
12
+ h6: (1, 1, 2.5, .5)
13
+ ) !default;
14
+
15
+ // Set headings sizes, line-heights and margins
16
+ @each $heading, $properties in $headings {
17
+ #{$heading} {
18
+ @include font-size(nth($properties, 1));
19
+ @include line-height(nth($properties, 2));
20
+ @include margin-top(nth($properties, 3));
21
+ @include margin-bottom(nth($properties, 4));
22
+ }
23
+ }
24
+
25
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
26
+ $leading: $leading-desktop;
27
+ $leading-rem: $leading-rem-desktop;
28
+
29
+ @import '../mixins/font-size';
30
+ @import '../mixins/line-height';
31
+ @import '../mixins/margin';
32
+
33
+ @each $heading, $properties in $headings {
34
+ #{$heading} {
35
+ @include font-size(nth($properties, 1));
36
+ @include line-height(nth($properties, 2));
37
+ @include margin-top(nth($properties, 3));
38
+ @include margin-bottom(nth($properties, 4));
39
+ }
40
+ }
41
+
42
+ }
43
+
44
+ // Set margins between headings
45
+ h1 + h2 {
46
+ @include margin-top(1);
47
+
48
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
49
+ $leading: $leading-desktop;
50
+ $leading-rem: $leading-rem-desktop;
51
+
52
+ @import '../mixins/margin';
53
+
54
+ @include margin-top(1);
55
+ }
56
+
57
+ }
58
+
59
+ h2 + h3,
60
+ h3 + h4,
61
+ h4 + h5 {
62
+ @include margin-top(.5);
63
+
64
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
65
+ $leading: $leading-desktop;
66
+ $leading-rem: $leading-rem-desktop;
67
+
68
+ @import '../mixins/margin';
69
+
70
+ @include margin-top(.5);
71
+ }
72
+
73
+ }
74
+
75
+ h5 + h6 {
76
+ @include margin-top(-.5);
77
+
78
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
79
+ $leading: $leading-desktop;
80
+ $leading-rem: $leading-rem-desktop;
81
+
82
+ @import '../mixins/margin';
83
+
84
+ @include margin-top(-.5);
85
+ }
86
+
87
+ }
88
+
89
+ h6 {
90
+ font-style: italic;
91
+ font-weight: normal;
92
+ }
93
+
94
+ // Change headings font if a heading font is set
95
+ @if $font-headings != null {
96
+ h1,
97
+ h2,
98
+ h3,
99
+ h4,
100
+ h5,
101
+ h6 {
102
+ font-family: $font-headings;
103
+ }
104
+ }
105
+
106
+ hgroup {
107
+ display: block;
108
+ }
@@ -0,0 +1,69 @@
1
+ // Horizontal rule
2
+ $hr-style: line; // [ line / type ]
3
+ $hr-type-content: '***'; // [ '***' ]
4
+ $hr-type-char-spacing: .2em; // [ .2em ]
5
+ $hr-margin: 2;
6
+ $hr-margin-desktop: $hr-margin;
7
+ $hr-color: $color-font-body;
8
+ $hr-width: 100; // [ 100 ] — In pixels, only for line style
9
+ $hr-height: 4; // [ 2 ] — In pixels, only for line style
10
+
11
+ hr {
12
+ @include margin-top($hr-margin);
13
+ @include margin-bottom($hr-margin);
14
+
15
+ box-sizing: content-box;
16
+ border: 0;
17
+ color: $hr-color;
18
+ display: block;
19
+ height: #{$leading + 'px'};
20
+ height: #{$leading-rem + 'rem'};
21
+ margin-right: auto;
22
+ margin-left: auto;
23
+
24
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
25
+ $leading: $leading-desktop;
26
+ $leading-rem: $leading-rem-desktop;
27
+
28
+ @import '../mixins/margin';
29
+
30
+ @include margin-top($hr-margin);
31
+ @include margin-bottom($hr-margin);
32
+ height: #{$leading + 'px'};
33
+ height: #{$leading-rem + 'rem'};
34
+ }
35
+
36
+ @if $hr-style == 'line' {
37
+ background-size: 100% #{$leading + 'px'};
38
+ background-size: 100% #{$leading-rem + 'rem'};
39
+ background-image: linear-gradient(to bottom, transparent 1px, transparent #{ 0.5 * $leading - (0.5 * $hr-height) + 'px'}, $hr-color #{ 0.5 * $leading - (0.5 * $hr-height) + 'px'}, $hr-color #{ (0.5 * $leading - (0.5 * $hr-height)) + $hr-height + 'px'}, transparent #{ (0.5 * $leading - (0.5 * $hr-height)) + $hr-height + 'px'}, transparent #{$leading + 'px'});
40
+
41
+ @if $hr-width == null {
42
+ width: 100%;
43
+ } @else {
44
+ width: #{$hr-width + 'px'};
45
+ }
46
+ }
47
+
48
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
49
+ $leading: $leading-desktop;
50
+ $leading-rem: $leading-rem-desktop;
51
+ $hr-margin: $hr-margin-desktop;
52
+
53
+ @if $hr-style == 'line' {
54
+ background-size: 100% #{$leading + 'px'};
55
+ background-size: 100% #{$leading-rem + 'rem'};
56
+ background-image: linear-gradient(to bottom, transparent 1px, transparent #{ .5 * $leading - (.5 * $hr-height) + 'px'}, $hr-color #{ .5 * $leading - (.5 * $hr-height) + 'px'}, $hr-color #{ (.5 * $leading - (.5 * $hr-height)) + $hr-height + 'px'}, transparent #{ (.5 * $leading - (.5 * $hr-height)) + $hr-height + 'px'}, transparent #{$leading + 'px'});
57
+ }
58
+
59
+ }
60
+
61
+ @if $hr-style == 'type' {
62
+ text-align: center;
63
+
64
+ &:before {
65
+ content: $hr-type-content;
66
+ letter-spacing: $hr-type-char-spacing;
67
+ }
68
+ }
69
+ }
@@ -0,0 +1,12 @@
1
+ // Remove border when inside `a` element in IE 8/9/10.
2
+ img {
3
+ border: 0;
4
+ max-width: 100%;
5
+ display: block;
6
+ margin: inherit auto;
7
+ }
8
+
9
+ // Correct overflow not hidden in IE 9/10/11.
10
+ svg:not(:root) {
11
+ overflow: hidden;
12
+ }
@@ -0,0 +1,9 @@
1
+ // Lists
2
+ ul,
3
+ ol {
4
+
5
+ li {
6
+ margin-bottom: 0;
7
+ }
8
+
9
+ }
@@ -0,0 +1,3 @@
1
+ nav {
2
+ display: block;
3
+ }
@@ -0,0 +1,4 @@
1
+ progress {
2
+ display: inline-block;
3
+ vertical-align: baseline;
4
+ }
@@ -0,0 +1,48 @@
1
+ blockquote {
2
+ font-style: italic;
3
+ padding-left: 1.4375rem;
4
+ // font-size: 95%;
5
+
6
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
7
+ padding-left: 2rem;
8
+ }
9
+
10
+ }
11
+
12
+ cite {
13
+ display: block;
14
+ font-style: normal;
15
+ }
16
+
17
+ // Quotes
18
+ figure blockquote {
19
+ @include padding(1, 0);
20
+
21
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
22
+ $leading: $leading-desktop;
23
+ $leading-rem: $leading-rem-desktop;
24
+
25
+ @import '../mixins/padding';
26
+
27
+ @include padding(2, 0, 1);
28
+ text-align: center;
29
+ }
30
+
31
+ p {
32
+ @include font-size(1.6875);
33
+ @include line-height(1.5);
34
+
35
+ @media screen and (min-width: #{ $max-width + 5 + 'em'}) {
36
+ $leading: $leading-desktop;
37
+ $leading-rem: $leading-rem-desktop;
38
+
39
+ @import '../mixins/font-size';
40
+ @import '../mixins/line-height';
41
+
42
+ @include font-size(1.6875);
43
+ @include line-height(1.5);
44
+ }
45
+
46
+ }
47
+
48
+ }