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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +224 -0
- data/_includes/disqus_comments.html +20 -0
- data/_includes/footer.html +50 -0
- data/_includes/google-analytics.html +12 -0
- data/_includes/head.html +11 -0
- data/_includes/header.html +9 -0
- data/_includes/icon-github.html +1 -0
- data/_includes/icon-github.svg +1 -0
- data/_includes/icon-twitter.html +1 -0
- data/_includes/icon-twitter.svg +1 -0
- data/_includes/social.html +14 -0
- data/_layouts/default.html +20 -0
- data/_layouts/home.html +32 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +27 -0
- data/_sass/_gutenberg.scss +125 -0
- data/_sass/gutenberg/helpers/_alignment.scss +25 -0
- data/_sass/gutenberg/helpers/_grid.scss +95 -0
- data/_sass/gutenberg/layout/_aside.scss +3 -0
- data/_sass/gutenberg/layout/_base.scss +62 -0
- data/_sass/gutenberg/layout/_footer.scss +9 -0
- data/_sass/gutenberg/layout/_header.scss +3 -0
- data/_sass/gutenberg/layout/_main.scss +3 -0
- data/_sass/gutenberg/layout/_section.scss +3 -0
- data/_sass/gutenberg/mixins/_font-size.scss +5 -0
- data/_sass/gutenberg/mixins/_line-height.scss +5 -0
- data/_sass/gutenberg/mixins/_margin.scss +25 -0
- data/_sass/gutenberg/mixins/_padding.scss +27 -0
- data/_sass/gutenberg/modules/_anchor.scss +34 -0
- data/_sass/gutenberg/modules/_article.scss +11 -0
- data/_sass/gutenberg/modules/_audio.scss +10 -0
- data/_sass/gutenberg/modules/_canvas.scss +4 -0
- data/_sass/gutenberg/modules/_code.scss +28 -0
- data/_sass/gutenberg/modules/_details.scss +7 -0
- data/_sass/gutenberg/modules/_figure.scss +83 -0
- data/_sass/gutenberg/modules/_form.scss +3 -0
- data/_sass/gutenberg/modules/_heading.scss +108 -0
- data/_sass/gutenberg/modules/_horizontal-rule.scss +69 -0
- data/_sass/gutenberg/modules/_image.scss +12 -0
- data/_sass/gutenberg/modules/_list.scss +9 -0
- data/_sass/gutenberg/modules/_navigation.scss +3 -0
- data/_sass/gutenberg/modules/_progress.scss +4 -0
- data/_sass/gutenberg/modules/_quote.scss +48 -0
- data/_sass/gutenberg/modules/_table.scss +10 -0
- data/_sass/gutenberg/modules/_template.scss +4 -0
- data/_sass/gutenberg/modules/_text.scss +143 -0
- data/_sass/gutenberg/modules/_video.scss +4 -0
- data/assets/main.scss +7 -0
- data/assets/minima-social-icons.svg +33 -0
- 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,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,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,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,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
|
+
}
|