oinam-jekyll 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46ed83571f378b819db4e504f52439bbc37fe49bbacfb72a53b6847b2b170bf6
4
- data.tar.gz: 0b8618826fc03442ca199d8089a1cada345baa41e63722c1115df2dd7faf9a2e
3
+ metadata.gz: cf0d16c26c91d5d025b23ff99782d043af4b38527e3e3c38d48acb550c407d6b
4
+ data.tar.gz: de3f7738c060c62ddea0f1cddaafac868ab9eae65456442d95d4181bc3c983db
5
5
  SHA512:
6
- metadata.gz: e4e852217e60abcf8de0f9788ddaa8f7b58e384525ffdab81f240f8d2e1acf0792e9c6c53cae73467b63adf570c2baf09360447b39c6930cc63761fc287cbcfa
7
- data.tar.gz: ea680d068b586fd7ca347b6163938f6d35034bb41e410f519069c5e336b61e575dfdfce39c7f1362a42df2136f406cdcd55f6dcce3cf52f8f01868e3b7202386
6
+ metadata.gz: 8f5aa026abbea2d10e2786e5af78fccc789e2e5db5dca6f37a53911a1d338b221802a9d12cf5bb5c6575b2756b43c8c7c71b027760ca9946c96824585243efe8
7
+ data.tar.gz: 41a812abfadcc17d9147f95babd649fdcd9f8e2d0171af0fdae823d60c9837dae1a6eff28166f0d636f20be438af750110757c7ad7323177c1c8dc9627460a84
File without changes
data/README.md CHANGED
@@ -1,27 +1,13 @@
1
1
  # Oinam Jekyll
2
2
 
3
- A simple, clean, and minimal Jekyll Theme.
3
+ > A simple, clean, and minimal Jekyll Theme.
4
4
 
5
- ## Installation
5
+ - [Demo & Documentation](https://oinam.github.io/oinam-jekyll/)
6
+ - [Source](https://github.com/oinam/oinam-jekyll)
7
+ - [Download](https://github.com/oinam/oinam-jekyll/archive/refs/heads/main.zip)
6
8
 
7
- Add this line to your Jekyll site's Gemfile:
9
+ ## Gem
8
10
 
9
- ```ruby
10
- gem "oinam-jekyll"
11
- ```
11
+ [Oinam Jekyll](https://rubygems.org/gems/oinam-jekyll)
12
12
 
13
- Run
14
-
15
- `bundle`
16
-
17
- ## Usage
18
-
19
- Have the following line in your config file:
20
-
21
- ```yaml
22
- theme: oinam-jekyll
23
- ```
24
-
25
- ## License
26
-
27
- The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
13
+ $ gem push oinam-jekyll-x.x.x.gem
data/_data/nav.yml ADDED
@@ -0,0 +1,8 @@
1
+ - title: About
2
+ url: /about/
3
+
4
+ - title: Blog
5
+ url: /blog/
6
+
7
+ - title: Styleguide
8
+ url: /styleguide/
@@ -0,0 +1,22 @@
1
+ {% comment %}<!-- https://zyno2.csb.app -->{% endcomment %}
2
+ <div class="theme-switch-wrapper">
3
+ <label class="theme-switch" for="checkbox">
4
+ <input type="checkbox" id="checkbox">
5
+ <div class="slider">
6
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun">
7
+ <circle cx="12" cy="12" r="5"></circle>
8
+ <line x1="12" y1="1" x2="12" y2="3"></line>
9
+ <line x1="12" y1="21" x2="12" y2="23"></line>
10
+ <line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
11
+ <line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
12
+ <line x1="1" y1="12" x2="3" y2="12"></line>
13
+ <line x1="21" y1="12" x2="23" y2="12"></line>
14
+ <line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
15
+ <line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
16
+ </svg>
17
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon">
18
+ <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
19
+ </svg>
20
+ </div>
21
+ </label>
22
+ </div>
@@ -0,0 +1,39 @@
1
+ /*
2
+ color-theme: default
3
+ reference: https://tailwindcss.com/docs/customizing-colors
4
+
5
+ Minimal color options and variations.
6
+ Almost all color variations can be played based off the few.
7
+ */
8
+ :root {
9
+ --color-primary: #3b82f6; /* blue-400 */
10
+ --color-secondary: #2563eb; /* blue-600 */
11
+ --color-accent: #fb923c; /* orange-400 */
12
+
13
+ --background-color: #fafafa; /* gray-50 */
14
+ --background-color-alt: #f4f4f5; /* gray-100 */
15
+ --background-color-highlight: #e4e4e7; /* gray-200 */
16
+
17
+ --text-color: #3f3f46; /* gray-700 */
18
+ --text-color-alt: #52525b; /* gray-600 */
19
+ }
20
+
21
+ [data-theme="dark"] {
22
+ --color-primary: #fb923c; /* orange-400 */
23
+ --color-secondary: #f59e0b; /* orange-500 */
24
+ --color-accent: #3b82f6; /* blue-400 */
25
+
26
+ --background-color: #52525b; /* gray-600 */
27
+ --background-color-alt: #3f3f46; /* gray-700 */
28
+ --background-color-highlight: #27272a; /* gray-800 */
29
+
30
+ --text-color: #e4e4e7; /* gray-200 */
31
+ --text-color-alt: #f4f4f5; /* gray-100 */
32
+ }
33
+
34
+ /* tbd: let's combined system preference with the mode */
35
+ /*@media (prefers-color-scheme: dark) {
36
+ :root {
37
+
38
+ }
39
+ }*/
@@ -0,0 +1,57 @@
1
+ /*
2
+ color-theme: nord
3
+ https://www.nordtheme.com
4
+ */
5
+ :root {
6
+ /* polar night */
7
+ --color-nord0: #2e3440;
8
+ --color-nord1: #3b4252;
9
+ --color-nord2: #434c5e;
10
+ --color-nord3: #434c5e;
11
+
12
+ /* snow storm */
13
+ --color-nord4: #d8dee9;
14
+ --color-nord5: #e5e9f0;
15
+ --color-nord6: #eceff4;
16
+
17
+ /* frost */
18
+ --color-nord7: #8fbcbb;
19
+ --color-nord8: #88c0d0;
20
+ --color-nord9: #81a1c1;
21
+ --color-nord10: #5e81ac;
22
+
23
+ /* aurora */
24
+ --color-nord11: #bf616a;
25
+ --color-nord12: #d08770;
26
+ --color-nord13: #ebcb8b;
27
+ --color-nord14: #a3be8c;
28
+ --color-nord15: #b48ead;
29
+ }
30
+
31
+ :root {
32
+ --color-primary: var(--color-nord10);
33
+ --color-secondary: var(--color-nord9);
34
+ --color-accent: var(--color-nord11);
35
+
36
+ --background-color: var(--color-nord6);
37
+ --background-color-alt: var(--color-nord5);
38
+ --background-color-accent: var(--color-nord13);
39
+ --background-color-highlight: var(--color-nord4);
40
+
41
+ --text-color: var(--color-nord0);
42
+ --text-color-alt: var(--color-nord2);
43
+ }
44
+
45
+ [data-theme="dark"] {
46
+ --color-primary: var(--color-nord11);
47
+ --color-secondary: var(--color-nord12);
48
+ --color-accent: var(--color-nord10);
49
+
50
+ --background-color: var(--color-nord2);
51
+ --background-color-alt: var(--color-nord1);
52
+ --background-color-accent: var(--color-nord10);
53
+ --background-color-highlight: var(--color-nord0);
54
+
55
+ --text-color: var(--color-nord5);
56
+ --text-color-alt: var(--color-nord4);
57
+ }
@@ -0,0 +1,25 @@
1
+ :root {
2
+ --color-primary: #6d28d9;
3
+ --color-secondary: #6b21a8;
4
+ --color-accent: #10b981;
5
+
6
+ --background-color: #fff7ed;
7
+ --background-color-alt: #ffedd5;
8
+ --background-color-highlight: #fed7aa;
9
+
10
+ --text-color: #292524;
11
+ --text-color-alt: #57534e;
12
+ }
13
+
14
+ [data-theme="dark"] {
15
+ --color-primary: #22c55e;
16
+ --color-secondary: #22c55e;
17
+ --color-accent: #d97706;
18
+
19
+ --background-color: #44403c;
20
+ --background-color-alt: #57534e;
21
+ --background-color-highlight: #a8a29e;
22
+
23
+ --text-color: #f5f5f4;
24
+ --text-color-alt: #d6d3d1;
25
+ }
@@ -0,0 +1,8 @@
1
+ /* debug: attach a "?" class to debug with a blinking box */
2
+ .\? {
3
+ animation: \?wobble 0.5s ease-in-out alternate infinite;
4
+ }
5
+ @keyframes \?wobble {
6
+ 0% { box-shadow: inset 1px 1px gold, inset -1px -1px gold; }
7
+ 100% { box-shadow: inset 5px 5px red, inset -5px -5px red; }
8
+ }
@@ -0,0 +1,105 @@
1
+ label {
2
+ margin: 0;
3
+ padding: 0 1px;
4
+ }
5
+
6
+ a button,
7
+ button,
8
+ input[type="submit"],
9
+ input[type="reset"],
10
+ input[type="button"] {
11
+ cursor: pointer;
12
+ border: 0 none;
13
+ border-radius: var(--border-radius);
14
+ background: var(--form-button-background-color);
15
+ color: var(--form-button-text-color);
16
+ padding: var(--space-half) var(--space-base);
17
+ margin: var(--space-half) 0;
18
+ transition: var(--transition-duration);
19
+
20
+ font-family: var(--font-family-sans);
21
+ font-size: inherit;
22
+ font-weight: 500;
23
+ }
24
+
25
+ a button[disabled],
26
+ button[disabled],
27
+ input[type="submit"][disabled],
28
+ input[type="reset"][disabled],
29
+ input[type="button"][disabled],
30
+ input[type="checkbox"][disabled],
31
+ input[type="radio"][disabled],
32
+ select[disabled] {
33
+ cursor: not-allowed;
34
+ opacity: var(--opacity-lowest);
35
+ }
36
+
37
+ input:disabled,
38
+ textarea:disabled,
39
+ select:disabled {
40
+ cursor: not-allowed;
41
+ }
42
+
43
+ input[type="range"] {
44
+ padding: 0;
45
+ }
46
+
47
+ input:required {}
48
+
49
+ input:focus {
50
+ outline: none;
51
+ border-color: var(--border-color-highlight);
52
+ }
53
+
54
+ button:focus,
55
+ button:enabled:hover,
56
+ input[type="submit"]:focus,
57
+ input[type="submit"]:enabled:hover,
58
+ input[type="reset"]:focus,
59
+ input[type="reset"]:enabled:hover,
60
+ input[type="button"]:focus,
61
+ input[type="button"]:enabled:hover,
62
+ input[type="checkbox"]:focus,
63
+ input[type="checkbox"]:enabled:hover,
64
+ input[type="radio"]:focus,
65
+ input[type="radio"]:enabled:hover{
66
+ opacity: var(--opacity-lower);
67
+ }
68
+
69
+ textarea,
70
+ select,
71
+ input {
72
+ padding: var(--space-half);
73
+ margin-bottom: var(--space-half);
74
+ border-radius: var(--border-radius);
75
+ border: 1px solid var(--border-color);
76
+
77
+ box-shadow: none;
78
+ box-sizing: border-box;
79
+ appearance: none;
80
+
81
+ background: var(--background-color-alt);
82
+ color: var(--text-color);
83
+ }
84
+
85
+ select {}
86
+
87
+ textarea,
88
+ select,
89
+ input {
90
+ width: 100%;
91
+ }
92
+
93
+ input[type="checkbox"], input[type="radio"]{
94
+ width: auto;
95
+ }
96
+
97
+ input[type="file"] {
98
+ border: 0;
99
+ }
100
+
101
+ fieldset {
102
+ border: 0;
103
+ padding: 0;
104
+ margin: 0;
105
+ }
@@ -1,66 +1,8 @@
1
- /*
2
- default color-theme
3
- change and play with the colors
4
- */
5
- :root {
6
- color-scheme: light dark;
7
-
8
- --background-color: #fafafa; /* gray-50 */
9
- --background-color-alt: #f4f4f5; /* gray-100 */
10
- --background-color-accent: #fde68a; /* amber-200 */
11
- --background-color-highlight: #e4e4e4; /* gray-200 */
12
-
13
- --text-color: #3f3f46; /* gray-700 */
14
- --text-color-alt: #71717a; /* gray-500 */
15
-
16
- --border-color: #e4e4e7; /* gray-200 */
17
- --border-color-highlight: #bfdbfe; /* blue-200 */
18
-
19
- --text-color-link: #1d4ed8;
20
- --text-color-link-visited: var(--text-color-link);
21
- --text-color-link-hover: #1e3a8a;
22
- --text-color-link-active: var(--text-color-link-hover);
23
-
24
- --form-button-text-color: var(--text-color);
25
- --form-button-text-color-active: var(--text-color);
26
- --form-button-background-color: #3b82f6;
27
- --form-button-background-color-disabled: #e4e4e7;
28
- --form-button-background-color-active: var(--form-button-background-color);
29
- }
30
-
31
- @media (prefers-color-scheme: dark) {
32
- :root {
33
- --background-color: #3f3f46; /* gray-700 */
34
- --background-color-alt: #52525b; /* gray-600 */
35
- --background-color-accent: #bfdbfe; /* blue-200 */
36
- --background-color-highlight: #27272a; /* gray-800 */
37
-
38
- --text-color: #f4f4f5; /* gray-100 */
39
- --text-color-alt: #71717a; /* gray-500 */
40
-
41
- --border-color: #52525b; /* gray-600 */
42
- --border-color-highlight: #fde68a; /* amber-200 */
43
-
44
- --text-color-link: #bfdbfe;
45
- --text-color-link-visited: var(--text-color-link);
46
- --text-color-link-hover: #60a5fa;
47
- --text-color-link-active: var(--text-color-link-hover);
48
-
49
- --form-button-text-color: var(--text-color);
50
- --form-button-text-color-active: var(--text-color);
51
- --form-button-background-color: #3b82f6;
52
- --form-button-background-color-disabled: #e4e4e7;
53
- --form-button-background-color-active: var(--form-button-background-color);
54
- }
55
- }
56
-
57
-
58
- /* --------------------------------------- */
59
1
  :root {
60
2
  --font-family-sans: system-ui, -apple-system, 'Segoe UI', 'Roboto', Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
61
3
  --font-family-serif: Georgia, 'Times New Roman', serif;
62
4
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
63
- --font-cursive: cursive;
5
+ --font-family-cursive: cursive;
64
6
 
65
7
  /* an ideal reading width - 48rem - 768px based off 16px:1rem */
66
8
  /* 42 is an interesting number. ;-) */
@@ -102,13 +44,15 @@
102
44
 
103
45
 
104
46
  /* typography */
105
- --font-family: var(--font-family-serif);
106
- --font-family-headings: var(--font-family-serif);
47
+ --font-family: var(--font-family-sans);
48
+ --font-family-headings: var(--font-family-sans);
107
49
 
108
50
  --font-size: 16px;
109
51
  --font-size-small: 85%;
110
- --font-size-smaller: 75%;
52
+ --font-size-smaller: 70%;
111
53
  --font-size-smallest: 65%;
54
+ --font-size-large: 115%;
55
+ --font-size-larger: 130%;
112
56
 
113
57
  --line-height: 1.618;
114
58
  --line-height-heading: 1.25;
@@ -120,22 +64,60 @@
120
64
  --border-radius-high: 0.7rem;
121
65
  --border-radius-round: 100%;
122
66
 
123
-
67
+
124
68
  --image-width-max: 1200px; /*there is a limit to how wide an image can be*/
125
69
 
126
70
 
127
71
  /* color - standard */
128
72
  --color-black: #000000;
129
73
  --color-white: #ffffff;
74
+
75
+ /* derived from the color theme */
76
+ --background-color-accent: var(--color-accent);
77
+
78
+ --border-color: var(--background-color-highlight);
79
+ --border-color-highlight: var(--color-primary);
80
+
81
+ --text-color-link: var(--color-primary);
82
+ --text-color-link-visited: var(--text-color-link);
83
+ --text-color-link-hover: var(--color-secondary);
84
+ --text-color-link-active: var(--text-color-link-hover);
85
+
86
+ --form-button-text-color: var(--background-color-alt);
87
+ --form-button-background-color: var(--color-primary);
88
+
130
89
 
131
90
  --opacity-no: 1;
132
91
  --opacity-low: 0.9;
133
92
  --opacity-lower: 0.75;
134
93
  --opacity-lowest: 0.6;
94
+
95
+ --transition-duration: 0.4s;
135
96
  }
136
97
 
137
98
  @media (prefers-color-scheme: dark) {
138
99
  img, video {
139
100
  opacity: var(--opacity-low);
140
101
  }
141
- }
102
+ }
103
+
104
+ /* remove _all_ animations and transitions for people that prefer not to see them */
105
+ @media (prefers-reduced-motion: reduce) {
106
+ body {
107
+ scroll-behavior: auto;
108
+ }
109
+
110
+ * {
111
+ -webkit-animation: none !important;
112
+ animation: none !important;
113
+ transition: none !important;
114
+ }
115
+ }
116
+
117
+ /* when serif font-family for main content */
118
+ {% if site.styles.font_family == 'serif' %}
119
+ :root {
120
+ --font-family: var(--font-family-serif);
121
+ --font-family-headings: var(--font-family-serif);
122
+ }
123
+ {% endif %}