jekyll-theme-fermi 1.0.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.
@@ -0,0 +1,33 @@
1
+ .taxonomies {
2
+ list-style: none;
3
+ padding: 0;
4
+ display: grid;
5
+ grid-template-columns: repeat(2, 1fr);
6
+ gap: var(--spacer);
7
+ margin-top: var(--spacer-2);
8
+ margin-bottom: var(--spacer-2);
9
+ }
10
+
11
+ .taxonomy {
12
+ display: flex;
13
+ justify-content: space-between;
14
+ border-bottom: 2px solid var(--body-color-light);
15
+ font-weight: bold;
16
+ color: inherit;
17
+
18
+ &:hover,
19
+ &:focus {
20
+ text-decoration: none;
21
+ color: var(--body-color-dark);
22
+ }
23
+ }
24
+
25
+ .archive-date {
26
+ font-family: var(--code-font);
27
+ }
28
+
29
+ @media screen and (min-width: $screen-laptop) {
30
+ .taxonomies {
31
+ grid-template-columns: repeat(3, 1fr);
32
+ }
33
+ }
@@ -0,0 +1,163 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ font-family: var(--body-font);
7
+ font-size: var(--body-font-size);
8
+ line-height: var(--line-height);
9
+ color: var(--body-color);
10
+ background-color: var(--body-bg);
11
+ }
12
+
13
+ h1, h2, h3, h4, h5, h6 {
14
+ font-family: var(--title-font);
15
+ }
16
+
17
+ a {
18
+ color: var(--accent-color);
19
+ text-decoration: none;
20
+
21
+ &:hover,
22
+ &:focus {
23
+ text-decoration: underline;
24
+ }
25
+ }
26
+
27
+ figure {
28
+ margin: 0;
29
+ }
30
+
31
+ figcaption {
32
+ font-size: .8em;
33
+ }
34
+
35
+ article img {
36
+ display: block;
37
+ max-width: 100%;
38
+ margin: 1em 0;
39
+ border-radius: .5em;
40
+ }
41
+
42
+ blockquote {
43
+ border-left: .2em solid var(--body-color-light);
44
+ padding-left: var(--spacer);
45
+ margin-left: 0;
46
+ margin-right: 0;
47
+ font-style: italic;
48
+
49
+ i, em {
50
+ font-style: normal;
51
+ }
52
+ }
53
+
54
+ ul, ol {
55
+ padding-left: var(--spacer-2);
56
+ margin: var(--spacer) 0;
57
+ }
58
+
59
+ li {
60
+ ul, ol {
61
+ margin: 0;
62
+ }
63
+
64
+ > p {
65
+ margin-top: 0;
66
+ }
67
+ }
68
+
69
+ table {
70
+ width: 100%;
71
+ border-collapse: collapse;
72
+ margin: var(--spacer) 0;
73
+ }
74
+
75
+ td, th {
76
+ padding: .25em .5em;
77
+ border-bottom: 1px solid var(--body-color-light);
78
+ }
79
+
80
+ thead th {
81
+ border-bottom-color: currentColor;
82
+ }
83
+
84
+ hr {
85
+ border: 0;
86
+ border-top: 1px solid var(--body-color-light);
87
+ }
88
+
89
+ code, pre {
90
+ font-family: var(--code-font);
91
+ font-size: .9em;
92
+ }
93
+
94
+ code {
95
+ padding: .1em .25em;
96
+ background-color: var(--body-fg);
97
+ border-radius: .5em;
98
+ }
99
+
100
+ pre {
101
+ overflow: auto;
102
+ padding: 1em;
103
+ margin: 1em 0;
104
+
105
+ code {
106
+ padding: 0;
107
+ background-color: inherit;
108
+ }
109
+ }
110
+
111
+ .highlight {
112
+ border-radius: .5em;
113
+ background-color: var(--body-fg);
114
+ }
115
+
116
+ .rouge-table {
117
+ border: 0;
118
+ margin: 0;
119
+
120
+ td,
121
+ th {
122
+ border: 0;
123
+ padding: 0;
124
+ }
125
+
126
+ pre {
127
+ padding: 0;
128
+ margin: 0;
129
+ }
130
+
131
+ .gutter {
132
+ user-select: none;
133
+ opacity: .5;
134
+ padding-right: 1em;
135
+ }
136
+ }
137
+
138
+ a[href^="#fn:"],
139
+ a[href^="#fnref:"] {
140
+ display: inline-block;
141
+ margin-left: .1em;
142
+ font-weight: bold;
143
+ }
144
+
145
+ // List of footnotes
146
+ .footnotes {
147
+ font-size: .8em;
148
+ }
149
+
150
+ #markdown-toc {
151
+ font-size: .8em;
152
+ padding: 2em 3em;
153
+ margin: 2em 0;
154
+ border: solid var(--body-color-light);
155
+ border-width: 1px 0;
156
+
157
+ &::before {
158
+ display: block;
159
+ margin-left: -3em;
160
+ content: "TOC";
161
+ }
162
+ }
163
+
@@ -0,0 +1,53 @@
1
+ .footer {
2
+ text-align: center;
3
+ margin-top: auto;
4
+ margin-bottom: var(--spacer);
5
+ padding-top: var(--spacer-3);
6
+ color: var(--body-color-light);
7
+ }
8
+
9
+ .social {
10
+ list-style: none;
11
+ padding: 0;
12
+ margin: 0;
13
+ }
14
+
15
+ .social-item {
16
+ display: inline-block;
17
+ font-size: 1.2em;
18
+ margin: 0 var(--spacer-h);
19
+
20
+ a {
21
+ color: inherit;
22
+
23
+ &:hover,
24
+ &:focus {
25
+ text-decoration: none;
26
+ color: var(--accent-color);
27
+ }
28
+ }
29
+
30
+ svg {
31
+ width: 1.2em;
32
+ }
33
+ }
34
+
35
+ .copyright,
36
+ .power {
37
+ font-size: 0.8em;
38
+ }
39
+
40
+ @media screen and (min-width: $screen-laptop) {
41
+ .footer-bottom {
42
+ display: flex;
43
+ justify-content: space-between;
44
+ }
45
+
46
+ .copyright {
47
+ text-align: left;
48
+ }
49
+
50
+ .power {
51
+ text-align: right;
52
+ }
53
+ }
@@ -0,0 +1,68 @@
1
+ .masthead {
2
+ text-align: center;
3
+ margin-bottom: var(--spacer-3);
4
+ }
5
+
6
+ .masthead a {
7
+ color: inherit;
8
+
9
+ &:hover,
10
+ &:focus {
11
+ text-decoration: none;
12
+ }
13
+ }
14
+
15
+ .masthead-title {
16
+ margin-bottom: 0;
17
+ }
18
+
19
+ .masthead-tagline {
20
+ margin: 0;
21
+ color: var(--body-color-light);
22
+ }
23
+
24
+ .nav {
25
+ font-size: 0.8em;
26
+ font-weight: bold;
27
+ margin-top: var(--spacer);
28
+ }
29
+
30
+ .nav-list {
31
+ list-style: none;
32
+ padding: 0;
33
+ margin: 0;
34
+ }
35
+
36
+ .nav-item {
37
+ display: inline-block;
38
+ margin: 0 var(--spacer-h);
39
+
40
+ a:hover,
41
+ a:focus,
42
+ a.active {
43
+ text-decoration: line-through;
44
+ }
45
+ }
46
+
47
+ @media screen and (min-width: $screen-laptop) {
48
+ .masthead {
49
+ text-align: left;
50
+ }
51
+
52
+ .masthead-title,
53
+ .masthead-tagline {
54
+ display: inline-block;
55
+ }
56
+
57
+ .nav {
58
+ text-align: right;
59
+ }
60
+
61
+ .nav-item {
62
+ margin: 0;
63
+
64
+ &:not(:last-child) {
65
+ margin-right: var(--spacer);
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,90 @@
1
+ /**
2
+ * rougify style gruvbox.dark
3
+ */
4
+
5
+ .highlight table td { padding: 5px; }
6
+ .highlight table pre { margin: 0; }
7
+ .highlight, .highlight .w {
8
+ color: #fbf1c7;
9
+ }
10
+ .highlight .err {
11
+ color: #fb4934;
12
+ background-color: #282828;
13
+ font-weight: bold;
14
+ }
15
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
16
+ color: #928374;
17
+ font-style: italic;
18
+ }
19
+ .highlight .cp {
20
+ color: #8ec07c;
21
+ }
22
+ .highlight .nt {
23
+ color: #fb4934;
24
+ }
25
+ .highlight .o, .highlight .ow {
26
+ color: #fbf1c7;
27
+ }
28
+ .highlight .p, .highlight .pi {
29
+ color: #fbf1c7;
30
+ }
31
+ .highlight .gi {
32
+ color: #b8bb26;
33
+ background-color: #282828;
34
+ }
35
+ .highlight .gd {
36
+ color: #fb4934;
37
+ background-color: #282828;
38
+ }
39
+ .highlight .gh {
40
+ color: #b8bb26;
41
+ font-weight: bold;
42
+ }
43
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
44
+ color: #fb4934;
45
+ }
46
+ .highlight .kc {
47
+ color: #d3869b;
48
+ }
49
+ .highlight .kt {
50
+ color: #fabd2f;
51
+ }
52
+ .highlight .kd {
53
+ color: #fe8019;
54
+ }
55
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
56
+ color: #b8bb26;
57
+ font-style: italic;
58
+ }
59
+ .highlight .si {
60
+ color: #b8bb26;
61
+ font-style: italic;
62
+ }
63
+ .highlight .sr {
64
+ color: #b8bb26;
65
+ font-style: italic;
66
+ }
67
+ .highlight .sa {
68
+ color: #fb4934;
69
+ }
70
+ .highlight .se {
71
+ color: #fe8019;
72
+ }
73
+ .highlight .nn {
74
+ color: #8ec07c;
75
+ }
76
+ .highlight .nc {
77
+ color: #8ec07c;
78
+ }
79
+ .highlight .no {
80
+ color: #d3869b;
81
+ }
82
+ .highlight .na {
83
+ color: #b8bb26;
84
+ }
85
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
86
+ color: #d3869b;
87
+ }
88
+ .highlight .ss {
89
+ color: #83a598;
90
+ }
@@ -0,0 +1,90 @@
1
+ /**
2
+ * rougify style gruvbox.light
3
+ */
4
+
5
+ .highlight table td { padding: 5px; }
6
+ .highlight table pre { margin: 0; }
7
+ .highlight, .highlight .w {
8
+ color: #282828;
9
+ }
10
+ .highlight .err {
11
+ color: #9d0006;
12
+ background-color: #fbf1c7;
13
+ font-weight: bold;
14
+ }
15
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
16
+ color: #928374;
17
+ font-style: italic;
18
+ }
19
+ .highlight .cp {
20
+ color: #427b58;
21
+ }
22
+ .highlight .nt {
23
+ color: #9d0006;
24
+ }
25
+ .highlight .o, .highlight .ow {
26
+ color: #282828;
27
+ }
28
+ .highlight .p, .highlight .pi {
29
+ color: #282828;
30
+ }
31
+ .highlight .gi {
32
+ color: #79740e;
33
+ background-color: #fbf1c7;
34
+ }
35
+ .highlight .gd {
36
+ color: #9d0006;
37
+ background-color: #fbf1c7;
38
+ }
39
+ .highlight .gh {
40
+ color: #79740e;
41
+ font-weight: bold;
42
+ }
43
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
44
+ color: #9d0006;
45
+ }
46
+ .highlight .kc {
47
+ color: #8f3f71;
48
+ }
49
+ .highlight .kt {
50
+ color: #b57614;
51
+ }
52
+ .highlight .kd {
53
+ color: #af3a03;
54
+ }
55
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
56
+ color: #79740e;
57
+ font-style: italic;
58
+ }
59
+ .highlight .si {
60
+ color: #79740e;
61
+ font-style: italic;
62
+ }
63
+ .highlight .sr {
64
+ color: #79740e;
65
+ font-style: italic;
66
+ }
67
+ .highlight .sa {
68
+ color: #9d0006;
69
+ }
70
+ .highlight .se {
71
+ color: #af3a03;
72
+ }
73
+ .highlight .nn {
74
+ color: #427b58;
75
+ }
76
+ .highlight .nc {
77
+ color: #427b58;
78
+ }
79
+ .highlight .no {
80
+ color: #8f3f71;
81
+ }
82
+ .highlight .na {
83
+ color: #79740e;
84
+ }
85
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
86
+ color: #8f3f71;
87
+ }
88
+ .highlight .ss {
89
+ color: #076678;
90
+ }
@@ -0,0 +1,18 @@
1
+ // This additional outer div is for solving an issue caused by 'overflow-x' on
2
+ // the Safari browser.
3
+ //
4
+ // Refer: https://stackoverflow.com/questions/14270084/overflow-xhidden-doesnt-prevent-content-from-overflowing-in-mobile-browsers
5
+ .body-container {
6
+ overflow-x: hidden;
7
+ }
8
+
9
+ .wrapper {
10
+ display: flex;
11
+ flex-direction: column;
12
+ padding-left: var(--spacer);
13
+ padding-right: var(--spacer);
14
+ margin-left: auto;
15
+ margin-right: auto;
16
+ max-width: calc(730px + var(--spacer-2));
17
+ min-height: 100vh;
18
+ }
@@ -0,0 +1,27 @@
1
+ .pagination {
2
+ text-align: center;
3
+ margin-top: var(--spacer);
4
+
5
+ a {
6
+ &:hover,
7
+ &:focus {
8
+ text-decoration: none;
9
+ background-color: var(--body-fg);
10
+ }
11
+ }
12
+ }
13
+
14
+ .pagination-item {
15
+ padding: .3em .5em;
16
+ border: 1px solid var(--body-color-light);
17
+ }
18
+
19
+ .pagination .prev {
20
+ border-top-left-radius: var(--border-radius);
21
+ border-bottom-left-radius: var(--border-radius);
22
+ }
23
+
24
+ .pagination .next {
25
+ border-top-right-radius: var(--border-radius);
26
+ border-bottom-right-radius: var(--border-radius);
27
+ }
@@ -0,0 +1,105 @@
1
+ .post-feed {
2
+ display: flex;
3
+ position: relative;
4
+ flex-wrap: wrap;
5
+ }
6
+
7
+ .post-card {
8
+ flex: 1 1 230px;
9
+ display: flex;
10
+ flex-direction: column;
11
+ overflow: hidden;
12
+ margin: 0 0 var(--spacer);
13
+ min-height: 200px;
14
+ background: var(--body-fg) center center;
15
+ background-size: cover;
16
+ border-radius: var(--border-radius);
17
+ box-shadow: var(--post-card-shadow);
18
+ transition: all 0.5s ease;
19
+ }
20
+
21
+ .post-card:hover {
22
+ box-shadow: var(--post-card-hover-shadow);
23
+ transition: all 0.3s ease;
24
+ transform: translate3D(0, -1px, 0);
25
+ }
26
+
27
+ .post-card-image-link {
28
+ position: relative;
29
+ display: block;
30
+ overflow: hidden;
31
+ border-radius: var(--border-radius) var(--border-radius) 0 0;
32
+ }
33
+
34
+ .post-card-image {
35
+ width: auto;
36
+ height: 200px;
37
+ background: var(--body-fg) no-repeat center center;
38
+ background-size: cover;
39
+ }
40
+
41
+ .post-card-content {
42
+ flex-grow: 1;
43
+ display: flex;
44
+ flex-direction: column;
45
+ justify-content: space-between;
46
+ }
47
+
48
+ .post-card-content-link {
49
+ display: block;
50
+ position: relative;
51
+ padding: var(--spacer) var(--spacer) 0;
52
+ color: inherit;
53
+ }
54
+
55
+ .post-card-content-link:hover {
56
+ text-decoration: none;
57
+ }
58
+
59
+ .post-card-category {
60
+ font-size: .8em;
61
+ font-weight: bold;
62
+ color: var(--body-color-light);
63
+ }
64
+
65
+ .post-card-title {
66
+ margin-top: 0;
67
+ }
68
+
69
+ .post-card-meta {
70
+ font-size: .8em;
71
+ font-weight: bold;
72
+ color: var(--body-color-light);
73
+ padding: 0 var(--spacer) var(--spacer);
74
+ }
75
+
76
+ @media screen and (min-width: $screen-tablet) {
77
+ .post-feed {
78
+ margin: 0 calc(0px - var(--spacer-h));
79
+ }
80
+
81
+ .post-card {
82
+ margin: 0 var(--spacer-h) var(--spacer);
83
+ }
84
+
85
+ .post-card:nth-child(6n+1) {
86
+ flex: 1 1 100%;
87
+ flex-direction: row;
88
+
89
+ .post-card-image-link {
90
+ position: relative;
91
+ flex: 1 1 auto;
92
+ border-radius: var(--border-radius) 0 0 var(--border-radius);
93
+ }
94
+
95
+ .post-card-image {
96
+ position: absolute;
97
+ width: 100%;
98
+ height: 100%;
99
+ }
100
+
101
+ .post-card-content:not(.no-cover) {
102
+ flex: 0 1 280px;
103
+ }
104
+ }
105
+ }