jekyll-theme-cadre 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +319 -0
  4. data/_includes/about.html +23 -0
  5. data/_includes/archive-by-tagories.html +101 -0
  6. data/_includes/archive-by-years.html +36 -0
  7. data/_includes/back-to-top.html +6 -0
  8. data/_includes/categories.html +27 -0
  9. data/_includes/copyright.html +9 -0
  10. data/_includes/custom-head.html +6 -0
  11. data/_includes/disqus.html +17 -0
  12. data/_includes/footer.html +26 -0
  13. data/_includes/google-analytics.html +9 -0
  14. data/_includes/head.html +26 -0
  15. data/_includes/header.html +39 -0
  16. data/_includes/katex.html +15 -0
  17. data/_includes/mathjax.html +2 -0
  18. data/_includes/other-posts.html +33 -0
  19. data/_includes/paginator.html +25 -0
  20. data/_includes/post-cards.html +28 -0
  21. data/_includes/powered-by.html +5 -0
  22. data/_includes/recent-posts.html +16 -0
  23. data/_includes/social.html +7 -0
  24. data/_includes/toc-div.html +6 -0
  25. data/_includes/toc.html +182 -0
  26. data/_layouts/archive.html +34 -0
  27. data/_layouts/default.html +30 -0
  28. data/_layouts/home.html +20 -0
  29. data/_layouts/page.html +8 -0
  30. data/_layouts/post.html +73 -0
  31. data/_plugins/_anchor_ref.rb +14 -0
  32. data/_plugins/_capitalize_all.rb +13 -0
  33. data/_sass/cadre/_about.scss +3 -0
  34. data/_sass/cadre/_archive.scss +17 -0
  35. data/_sass/cadre/_base.scss +149 -0
  36. data/_sass/cadre/_category-cards.scss +10 -0
  37. data/_sass/cadre/_code.scss +66 -0
  38. data/_sass/cadre/_footer.scss +7 -0
  39. data/_sass/cadre/_functions.scss +9 -0
  40. data/_sass/cadre/_header.scss +67 -0
  41. data/_sass/cadre/_highlight-light.scss +92 -0
  42. data/_sass/cadre/_home.scss +3 -0
  43. data/_sass/cadre/_layout.scss +0 -0
  44. data/_sass/cadre/_main.scss +17 -0
  45. data/_sass/cadre/_pagination.scss +4 -0
  46. data/_sass/cadre/_post-cards.scss +7 -0
  47. data/_sass/cadre/_post.scss +28 -0
  48. data/_sass/cadre/_powered-by.scss +0 -0
  49. data/_sass/cadre/_predefined.scss +0 -0
  50. data/_sass/cadre/_toc.scss +66 -0
  51. data/_sass/cadre/_variables.scss +49 -0
  52. data/_sass/cadre/custom-styles.scss +2 -0
  53. data/_sass/cadre/custom-variables.scss +1 -0
  54. data/_sass/cadre/initialize.scss +41 -0
  55. data/assets/css/bootstrap.min.css +7 -0
  56. data/assets/css/bootstrap.min.css.map +1 -0
  57. data/assets/css/open-color.css +343 -0
  58. data/assets/css/styles.scss +4 -0
  59. data/assets/images/Cadre.png +0 -0
  60. data/assets/images/favicon.png +0 -0
  61. data/assets/js/adjustAnchorLink.js +17 -0
  62. data/assets/js/bootstrap.bundle.min.js +7 -0
  63. data/assets/js/bootstrap.bundle.min.js.map +1 -0
  64. data/assets/js/liveTOCScroll.js +23 -0
  65. data/assets/js/main.js +32 -0
  66. metadata +206 -0
@@ -0,0 +1,149 @@
1
+ body {
2
+ background-color: $body-bg !important;
3
+ }
4
+
5
+ a {
6
+ color: $link-color;
7
+ text-decoration: none !important;
8
+
9
+ &:hover,
10
+ &:focus {
11
+ color: $link-hover-color !important;
12
+ font-weight: bold !important;
13
+ transition: all 0.25s ease-in-out;
14
+ }
15
+ }
16
+
17
+ h1 {
18
+ color: $h1-color;
19
+ padding: 10px 0;
20
+ }
21
+
22
+ h2 {
23
+ color: $h2-color;
24
+ padding: 7px 0;
25
+ }
26
+
27
+ h3 {
28
+ color: $h3-color;
29
+ padding: 5px 0;
30
+ }
31
+
32
+ img {
33
+ max-height: 100%;
34
+ max-width: 100%;
35
+ }
36
+
37
+ .fa-hover {
38
+ &:hover,
39
+ &:focus {
40
+ transform: scale(1.1) !important;
41
+ }
42
+ }
43
+
44
+ .card {
45
+ background-color: $card-bg !important;
46
+ }
47
+
48
+ .card-text a {
49
+ color: $link-color;
50
+ }
51
+
52
+ p.card-list {
53
+ padding-left: 1em !important;
54
+ }
55
+
56
+ @media only screen and (max-width: $md) {
57
+ p.card-list {
58
+ padding-left: 0 !important;
59
+ }
60
+ }
61
+
62
+ .container {
63
+ margin-top: $top-nav-space;
64
+ padding-top: $top-nav-space;
65
+ }
66
+
67
+ .list-unstyled {
68
+ padding-left: 10px !important;
69
+ }
70
+
71
+ .info-card {
72
+ padding: 10px 15px;
73
+ margin: 0 10px !important;
74
+ }
75
+
76
+ @media only screen and (max-width: $md) {
77
+ .info-card {
78
+ margin: 0 0 !important;
79
+ }
80
+ }
81
+
82
+ .sticky-div {
83
+ position: -webkit-sticky !important;
84
+ position: sticky !important;
85
+ top: calc(#{$top-nav-space} + #{$sticky-div-pad}) !important;
86
+ }
87
+
88
+ a.jump-to-anchor {
89
+ display: block;
90
+ position: relative;
91
+ top: calc(-1 * (#{$top-nav-space} + #{$sticky-div-pad}));
92
+ visibility: hidden;
93
+ }
94
+
95
+ .category-tags {
96
+ text-align: center;
97
+ }
98
+
99
+ .category-tags a {
100
+ display: inline-block;
101
+ border: 1px solid $site-tertiary;
102
+ border-radius: 999em;
103
+ line-height: 24px;
104
+ font-size: 12px;
105
+ padding: 5px 10px;
106
+
107
+ &:hover,
108
+ &:focus {
109
+ border-color: $site-primary;
110
+ }
111
+ }
112
+
113
+ .taxonomy-count {
114
+ display: inline-block;
115
+ border: 1px solid $site-tertiary;
116
+ background-color: $site-tertiary;
117
+ color: $body-bg;
118
+ border-radius: 999em;
119
+ line-height: 24px;
120
+ font-size: 12px;
121
+ padding: 0 10px;
122
+ }
123
+
124
+ .active {
125
+ color: $site-secondary !important;
126
+ font-weight: bold !important;
127
+ }
128
+
129
+ abbr[title] {
130
+ border-bottom: none;
131
+ text-decoration: underline;
132
+ text-decoration: underline dotted;
133
+ }
134
+
135
+ sub,
136
+ sup {
137
+ font-size: 75%;
138
+ line-height: 0;
139
+ position: relative;
140
+ vertical-align: baseline;
141
+ }
142
+
143
+ sub {
144
+ bottom: -0.25em;
145
+ }
146
+
147
+ sup {
148
+ top: -0.5em;
149
+ }
@@ -0,0 +1,10 @@
1
+ .category-card-contents {
2
+ padding: 5px 15% !important;
3
+ }
4
+
5
+ @media only screen and (max-width: $md) {
6
+ .category-card-contents {
7
+ padding: 0 0 !important;
8
+ text-align: center !important;
9
+ }
10
+ }
@@ -0,0 +1,66 @@
1
+ .katex-display {
2
+ background-color: $math-bg;
3
+ overflow-x: auto;
4
+ overflow-y: visible;
5
+ }
6
+
7
+ .katex-html {
8
+ padding: 10px 0px;
9
+ }
10
+
11
+ .highlight {
12
+ border-radius: $border-radius;
13
+ }
14
+
15
+ .highlighter-rouge {
16
+ color: var(--oc-black-5);
17
+ }
18
+
19
+ .rouge-table {
20
+ margin: 0;
21
+ font-size: 100%;
22
+
23
+ &,
24
+ td,
25
+ th {
26
+ border: 0;
27
+ padding: 0;
28
+ }
29
+
30
+ pre {
31
+ padding: 0;
32
+ margin: 0;
33
+ }
34
+
35
+ .gutter {
36
+ vertical-align: top;
37
+ user-select: none;
38
+ opacity: .25;
39
+ padding-right: $spacer;
40
+ }
41
+ }
42
+
43
+ code,
44
+ pre {
45
+ font-family: $code-font;
46
+ background-color: $code-bg;
47
+ }
48
+
49
+ code {
50
+ padding: .1em .25em;
51
+ border-radius: $border-radius;
52
+ background-color: $code-bg;
53
+ }
54
+
55
+ pre {
56
+ display: block;
57
+ overflow: auto;
58
+ padding: $spacer;
59
+ margin: $spacer 0;
60
+
61
+ code {
62
+ padding: 0;
63
+ background-color: inherit;
64
+ word-wrap: normal;
65
+ }
66
+ }
@@ -0,0 +1,7 @@
1
+ footer {
2
+ background-color: $footer-bg;
3
+ }
4
+
5
+ .social-icon {
6
+ text-decoration: none;
7
+ }
@@ -0,0 +1,9 @@
1
+ @mixin alternative-link-style() {
2
+ color: inherit;
3
+
4
+ &:hover,
5
+ &:focus {
6
+ color: $link-color;
7
+ text-decoration: none;
8
+ }
9
+ }
@@ -0,0 +1,67 @@
1
+ .navbar {
2
+ padding-left: 10%;
3
+ padding-right: 10%;
4
+ }
5
+
6
+ .navbar-brand {
7
+ color: $site-primary !important;
8
+ }
9
+
10
+ .navbar-brand img {
11
+ margin-top: -10px;
12
+ transition: all 0.25s ease-in-out;
13
+ }
14
+
15
+ a.navbar-brand {
16
+ transition: all 0.25s ease-in-out;
17
+ }
18
+
19
+ .scrolling {
20
+ font-size: $brand-font-size-small;
21
+ }
22
+
23
+ .top {
24
+ font-size: $brand-font-size;
25
+ }
26
+
27
+ .scrolling img {
28
+ // width: unquote("#{$navbar-img-width} * 0.9"px);
29
+ // height: unquote("#{$navbar-img-height} * 0.9"px);
30
+ width: calc(#{$navbar-img-width} * 0.9);
31
+ height: calc(#{$navbar-img-height} * 0.9);
32
+ }
33
+
34
+ .top img {
35
+ width: $navbar-img-width;
36
+ height: $navbar-img-height;
37
+ }
38
+
39
+ a.nav-link {
40
+ color: $site-tertiary;
41
+ }
42
+
43
+ #menu {
44
+ background-color: $nav-bg;
45
+ }
46
+
47
+ @media only screen and (max-width: $md) {
48
+ .scrolling {
49
+ width: calc(#{$navbar-img-width} * 0.55);
50
+ height: calc(#{$navbar-img-height} * 0.55);
51
+ }
52
+
53
+ .top {
54
+ width: calc(#{$navbar-img-width} * 0.65);
55
+ height: calc(#{$navbar-img-height} * 0.65);
56
+ }
57
+
58
+ // override the max-height setting to ensure
59
+ // image scales appropriately
60
+ .scrolling img {
61
+ max-height: none;
62
+ }
63
+
64
+ .top img {
65
+ max-height: none;
66
+ }
67
+ }
@@ -0,0 +1,92 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #282828;
5
+ // background-color: #fbf1c7;
6
+ background-color: #f3f3f3;
7
+ }
8
+ .highlight .nf {
9
+ // color: rgb(112, 179, 233);
10
+ color: #1f80ff;
11
+ }
12
+ .highlight .err {
13
+ color: #9d0006;
14
+ // background-color: #fbf1c7;
15
+ font-weight: bold;
16
+ }
17
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
18
+ color: #9c9c9c;
19
+ font-style: italic;
20
+ }
21
+ .highlight .cp {
22
+ color: #427b58;
23
+ }
24
+ .highlight .nt {
25
+ color: #9d0006;
26
+ }
27
+ .highlight .o, .highlight .ow {
28
+ color: #282828;
29
+ }
30
+ .highlight .p, .highlight .pi {
31
+ color: #282828;
32
+ }
33
+ .highlight .gi {
34
+ color: #79740e;
35
+ background-color: #fbf1c7;
36
+ }
37
+ .highlight .gd {
38
+ color: #9d0006;
39
+ background-color: #fbf1c7;
40
+ }
41
+ .highlight .gh {
42
+ color: #79740e;
43
+ font-weight: bold;
44
+ }
45
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
46
+ // color: #9d0006;
47
+ color: #c50c3a;
48
+ }
49
+ .highlight .kc {
50
+ color: #8f3f71;
51
+ }
52
+ .highlight .kt {
53
+ // color: #b57614;
54
+ color: #96743e;
55
+ }
56
+ .highlight .kd {
57
+ color: #af3a03;
58
+ }
59
+ .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
60
+ color: #79740e;
61
+ font-style: italic;
62
+ }
63
+ .highlight .si {
64
+ color: #79740e;
65
+ font-style: italic;
66
+ }
67
+ .highlight .sr {
68
+ color: #79740e;
69
+ font-style: italic;
70
+ }
71
+ .highlight .se {
72
+ color: #af3a03;
73
+ }
74
+ .highlight .nn {
75
+ color: #427b58;
76
+ }
77
+ .highlight .nc {
78
+ // color: #427b58;
79
+ color: rgb(0, 94, 170);
80
+ }
81
+ .highlight .no {
82
+ color: #8f3f71;
83
+ }
84
+ .highlight .na {
85
+ color: #79740e;
86
+ }
87
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
88
+ color: #8f3f71;
89
+ }
90
+ .highlight .ss {
91
+ color: #076678;
92
+ }
@@ -0,0 +1,3 @@
1
+ .card-full {
2
+ text-decoration: none;
3
+ }
File without changes
@@ -0,0 +1,17 @@
1
+ @import "functions";
2
+ @import "predefined";
3
+ @import "layout";
4
+ @import "header";
5
+ @import "footer";
6
+ @import "post";
7
+ @import "code";
8
+ @import "toc";
9
+ @import "home";
10
+ @import "pagination";
11
+ @import "archive";
12
+ @import "about";
13
+ @import "powered-by";
14
+ @import "category-cards";
15
+ @import "base";
16
+
17
+ @import "highlight-light"
@@ -0,0 +1,4 @@
1
+ .pagination-nav-inactive {
2
+ color: var(--oc-gray-6)
3
+ }
4
+
@@ -0,0 +1,7 @@
1
+ .card-full > h3 {
2
+ color: $h3-color;
3
+ }
4
+
5
+ .card-full p {
6
+ color: $p-color;
7
+ }
@@ -0,0 +1,28 @@
1
+ .post {
2
+ padding-right: 25px;
3
+ background-color: $post-bg;
4
+ }
5
+
6
+ .post-body {
7
+ background-color: inherit;
8
+ }
9
+
10
+ .post-header {
11
+ padding: 10px 0px;
12
+ }
13
+
14
+ .post-metadata {
15
+ color: $metadata-color;
16
+ }
17
+
18
+ .footnotes {
19
+ overflow: auto;
20
+ word-wrap: break-word;
21
+ border-top: 1px solid lightgrey;
22
+ padding-top: 25px;
23
+ }
24
+
25
+ hr {
26
+ margin-top: 5px;
27
+ margin-bottom: 5px;
28
+ }
File without changes
File without changes
@@ -0,0 +1,66 @@
1
+ .toc-title {
2
+ font-size: 16px;
3
+ text-align: left;
4
+ }
5
+
6
+ .toc-div {
7
+ position: -webkit-sticky !important;
8
+ position: sticky !important;
9
+ top: calc(#{$top-nav-space} + #{$sticky-div-pad}) !important;
10
+ }
11
+
12
+ .toc,
13
+ .toc ul {
14
+ font-size: 12px;
15
+ list-style: none;
16
+ padding: 0;
17
+ }
18
+
19
+ .toc {
20
+ max-height: 80vh;
21
+ overflow-y: auto;
22
+
23
+ a.active {
24
+ color: $site-secondary;
25
+ }
26
+
27
+ a {
28
+ display: block;
29
+ text-decoration: none;
30
+
31
+ color: $toc-text-color;
32
+
33
+ &:hover,
34
+ &:focus {
35
+ font-weight: bold;
36
+ color: $link-hover-color !important;
37
+ }
38
+ }
39
+
40
+ // indentations
41
+
42
+ li > a {
43
+ padding-left: .5em;
44
+ }
45
+ ul li > a {
46
+ padding-left: 1.5em;
47
+ }
48
+ ul li ul li > a {
49
+ padding-left: 2.5em;
50
+ }
51
+ ul li ul li ul li > a {
52
+ padding-left: 3em;
53
+ }
54
+ ul li ul li ul li ul li > a {
55
+ padding-left: 3.5em;
56
+ }
57
+ }
58
+
59
+ @media only screen and (max-width: $md) {
60
+ h3.toc-title {
61
+ text-align: center;
62
+ }
63
+ .toc {
64
+ padding-left: 15px !important;
65
+ }
66
+ }
@@ -0,0 +1,49 @@
1
+ @charset "utf-8";
2
+ // pad main container to account for fixed topnav
3
+ $top-nav-space: 65px;
4
+
5
+ // additional space from top-nav-space before sticky divs
6
+ $sticky-div-pad: 50px;
7
+
8
+ // base nav logo image size
9
+ $navbar-img-height: 45px;
10
+ $navbar-img-width: 150px;
11
+
12
+ // colors
13
+ $tan: rgb(255, 246, 231);
14
+ $beige: rgb(255, 248, 238);
15
+ $cream: rgb(248, 247, 245);
16
+
17
+ $site-primary: rgb(214, 12, 12);
18
+ $site-secondary: rgb(119, 0, 0);
19
+ $site-tertiary: var(--oc-gray-6);
20
+ $body-bg: $cream;
21
+ $math-bg: $beige;
22
+ $nav-bg: var(--oc-white);
23
+ $footer-bg: var(--oc-gray-1);
24
+ $card-bg: var(--oc-white);
25
+ $code-bg: var(--oc-gray-1);
26
+ $post-bg: var(--oc-white);
27
+
28
+ $link-hover-color: $site-primary;
29
+ $link-color: $site-secondary;
30
+
31
+ $h1-color: var(--oc-gray-7);
32
+ $h2-color: var(--oc-gray-7);
33
+ $h3-color: var(--oc-gray-7);
34
+ $p-color: var(--oc-black);
35
+ $metadata-color: var(--oc-gray-6);
36
+ $toc-text-color: var(--oc-gray-6);
37
+
38
+ $body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
39
+ $body-font-size: 16px;
40
+
41
+ $brand-font-size: 1.25rem;
42
+ $brand-font-size-small: 1.1rem;
43
+
44
+ $border-radius: .4em;
45
+
46
+ $heading-font: Georgia, "Times New Roman", Times, "Palatino Linotype", "Book Antiqua", Palatino, serif;
47
+ $code-font: "Source Code Pro", Menlo, "Lucida Console", Monaco, "Courier New", Courier, monospace;
48
+
49
+ $spacer: 1rem;
@@ -0,0 +1,2 @@
1
+ // Placeholder to allow defining custom styles that override everything else.
2
+ // (Use `_sass/cadre/custom-variables.scss` to override variable defaults)
@@ -0,0 +1 @@
1
+ // Placeholder to allow overriding predefined variables.
@@ -0,0 +1,41 @@
1
+ @charset "utf-8";
2
+ //
3
+ // This is adapted from the "minima" theme
4
+ // to allow the user to easily override
5
+ // theme styels likes color and spacing
6
+
7
+ // Define defaults for each variable.
8
+
9
+ // bootstrap screen sizes
10
+ $sm: 576px;
11
+ $md: 768px;
12
+ $lg: 992px;
13
+ $xl: 1200px;
14
+ $xxl: 1400px;
15
+
16
+ // Use media queries like this:
17
+ // @include media-query($on-palm) {
18
+ // .wrapper {
19
+ // padding-right: $spacing-unit / 2;
20
+ // padding-left: $spacing-unit / 2;
21
+ // }
22
+ // }
23
+ // Notice the following mixin uses max-width, in a deprecated, desktop-first
24
+ // approach, whereas media queries used elsewhere now use min-width.
25
+ @mixin media-query($device) {
26
+ @media screen and (max-width: $device) {
27
+ @content;
28
+ }
29
+ }
30
+
31
+ @mixin relative-font-size($ratio) {
32
+ font-size: #{$ratio}rem;
33
+ }
34
+
35
+ // Import pre-styling-overrides hook and style-partials.
36
+ @import
37
+ "cadre/variables", // Default settings
38
+ "cadre/custom-variables", // Hook to override predefined variables.
39
+ "cadre/main", // Loads specific styles
40
+ "cadre/custom-styles" // Hook to override predefined styles.
41
+ ;