consolo 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 +103 -0
- data/_includes/footer.html +24 -0
- data/_includes/google-analytics.html +11 -0
- data/_includes/head.html +20 -0
- data/_includes/header.html +14 -0
- data/_layouts/default.html +20 -0
- data/_layouts/home.html +17 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_sass/_dark.scss +32 -0
- data/_sass/_hacker.scss +32 -0
- data/_sass/_light.scss +32 -0
- data/_sass/_navy.scss +30 -0
- data/_sass/base.scss +261 -0
- data/assets/main-dark.scss +6 -0
- data/assets/main-hacker.scss +6 -0
- data/assets/main-light.scss +6 -0
- data/assets/main-navy.scss +6 -0
- data/assets/main.scss +10 -0
- metadata +106 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d71bd79e0f12532bb1179a3fa573b5d9541c9c6749c71eec7cfd0ec1c39d6a30
|
4
|
+
data.tar.gz: 51cec758ed48f28dbc41f44d9639afad0cacd224fe95fe4d7576575bbff8f848
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7d20b74f9d4f6e1979d898df88425d5dc163325ec9eb0f22f72e851cf94b70b80aab8b1b9b15252a8c3b4993edef7d1743df066709c917e6f4b005a7a71374bc
|
7
|
+
data.tar.gz: fdb8c88a5778d1e6de755134ccdaa2d1968d6194a52e989ccb634984f876090950ba4a91bfa331674297470f12bbf65cf8da0088de96f94c811965034d6964de
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2023 Forthoney
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
# consolo
|
2
|
+
|
3
|
+
**consolo** aims the recreate the rugged look of a terminal/console interface while maintaining legibility.
|
4
|
+
|
5
|
+
It is forked from [jekyll-theme-console](https://github.com/b2a3e8/jekyll-theme-console) which, as far as I can tell, is no longer maintained.
|
6
|
+
**consolo** refines the general look of the original theme, standardizes content, and greatly improves on extensibility.
|
7
|
+
Parts of the installation guide also come from the original theme.
|
8
|
+
|
9
|
+
[Live Demo](https://forthoney.github.io/)(aka my own blog)
|
10
|
+
|
11
|
+
## Screenshots
|
12
|
+
|
13
|
+

|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
### Prerequisites
|
18
|
+
|
19
|
+
If you're starting with Jekyll from scratch, follow the steps in [the Quickstart Guide](https://jekyllrb.com/docs/). Skip this if you already have an existing jekyll project.
|
20
|
+
|
21
|
+
### Install as Remote theme for GitHub Pages
|
22
|
+
|
23
|
+
Set `remote_theme` in your project's Jekyll `_config.yml` file:
|
24
|
+
|
25
|
+
```yaml
|
26
|
+
remote_theme: Forthoney/consolo
|
27
|
+
```
|
28
|
+
|
29
|
+
### Install as Gem
|
30
|
+
|
31
|
+
Add this line to your Jekyll site's `Gemfile`:
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
gem "consolo"
|
35
|
+
```
|
36
|
+
|
37
|
+
And add this line to your Jekyll site's `_config.yml`:
|
38
|
+
|
39
|
+
```yaml
|
40
|
+
theme: consolo
|
41
|
+
```
|
42
|
+
|
43
|
+
And then execute:
|
44
|
+
|
45
|
+
$ bundle
|
46
|
+
|
47
|
+
Or install it yourself as:
|
48
|
+
|
49
|
+
$ gem install consolo
|
50
|
+
|
51
|
+
## Usage
|
52
|
+
|
53
|
+
### _config.yml
|
54
|
+
In addition to the [jekyll default configurations](https://jekyllrb.com/docs/configuration/default/), consolo allows you to display additional information through options.
|
55
|
+
|
56
|
+
#### Options from jekyll-theme-console
|
57
|
+
- `header_pages`: list of pages to be displayed in navbar
|
58
|
+
- `google_analytics`: tracking id (no Google Analytics code will be loaded if you don't set this option)
|
59
|
+
- `listen_for_clients_preferred_style`: boolean on whether to allow users to choose light or dark style based on their preferences ([see also](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme))
|
60
|
+
- `style`: predefined color scheme to be used for the site. Color scheme options are discussed more later.
|
61
|
+
|
62
|
+
#### New from consolo
|
63
|
+
- `title`: the title of the website (yes, this was missing from the original)
|
64
|
+
- `footer`: message to display at footer. NO LONGER ACCEPTS RAW HTML
|
65
|
+
- `author`: display various information about the author
|
66
|
+
- `name`: author's name
|
67
|
+
- `email`: author's email. Can nest multiple email with titles like
|
68
|
+
```YAML
|
69
|
+
email:
|
70
|
+
personal: example@personal.com
|
71
|
+
school: example@school.edu
|
72
|
+
```
|
73
|
+
- `github_username`: author's github username (not the full url). Automatically creates a link to the author's github profile
|
74
|
+
|
75
|
+
### Style/Color Scheme
|
76
|
+
You can now more easily create your own color scheme. Under the `_sass/` directory, create a new file with the name `_<stylename>.scss` (e.g. `_red.scss`).
|
77
|
+
I recommend using one of the existing color scheme's SCSS file as a starting point.
|
78
|
+
|
79
|
+
Once you have customized the color scheme, go to the `assets/` directory and create a new file named `main-<stylename>.scss` with the following contents:
|
80
|
+
```SCSS
|
81
|
+
@import "<stylename>";
|
82
|
+
@import "base";
|
83
|
+
```
|
84
|
+
You have successfully created a new style!
|
85
|
+
To change to a style, simply set the `style` in `_config.yml` to <stylename>.
|
86
|
+
|
87
|
+
## Contributing
|
88
|
+
|
89
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Forthoney/consolo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
90
|
+
|
91
|
+
## Development
|
92
|
+
|
93
|
+
To set up your environment to develop this theme, run `bundle install`.
|
94
|
+
|
95
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
96
|
+
|
97
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
98
|
+
To add a custom directory to your theme-gem, please edit the regexp in `consolo.gemspec` accordingly.
|
99
|
+
|
100
|
+
## License
|
101
|
+
|
102
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
103
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<footer>
|
2
|
+
<ul class="unstyled-list box right">
|
3
|
+
{% if site.author.name -%}
|
4
|
+
<li class="p-name">{{ site.author.name | escape }}</li>
|
5
|
+
{%- endif %}
|
6
|
+
|
7
|
+
<li>
|
8
|
+
email[
|
9
|
+
{% for address in site.author.email %}
|
10
|
+
<a class="u-email" href="mailto:{{ address[1] }}">{{ address[0] }}</a>
|
11
|
+
{% endfor %}
|
12
|
+
]
|
13
|
+
</li>
|
14
|
+
|
15
|
+
|
16
|
+
{% if site.author.github_username -%}
|
17
|
+
<li><a href="https://github.com/{{ site.author.github_username }}">
|
18
|
+
github
|
19
|
+
</a></li>
|
20
|
+
{%- endif %}
|
21
|
+
</ul>
|
22
|
+
|
23
|
+
<p class="box left"><i>{{ site.message }}</i></p>
|
24
|
+
</footer>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Google tag (gtag.js) -->
|
2
|
+
<!-- Modified from the tag provided by google according to the minima implementation -->
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
4
|
+
<script>
|
5
|
+
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
6
|
+
window.dataLayer = window.dataLayer || [];
|
7
|
+
function gtag(){window.dataLayer.push(arguments);}
|
8
|
+
gtag('js', new Date());
|
9
|
+
|
10
|
+
gtag('config', '{{ site.google_analytics }}');
|
11
|
+
</script>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
<title>{{ page.title }}</title>
|
6
|
+
|
7
|
+
{% if page.robots %}
|
8
|
+
<meta name="robots" content="{{page.robots}}" />
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{%- if site.listen_for_clients_preferred_style -%}
|
12
|
+
<link rel="stylesheet" type="text/css" href="{{ "/assets/main.css" | relative_url }}">
|
13
|
+
{%- else -%}
|
14
|
+
<link rel="stylesheet" type="text/css" href="/assets/main-{{ site.style }}.css">
|
15
|
+
{%- endif -%}
|
16
|
+
|
17
|
+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
18
|
+
{%- include google-analytics.html -%}
|
19
|
+
{%- endif -%}
|
20
|
+
</head>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
2
|
+
<header>
|
3
|
+
<h1><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h1>
|
4
|
+
<div class="menu">
|
5
|
+
<ul class="unstyled-list">
|
6
|
+
{%- for path in page_paths -%}
|
7
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
8
|
+
{%- if my_page.title -%}
|
9
|
+
<li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
|
10
|
+
{%- endif -%}
|
11
|
+
{%- endfor -%}
|
12
|
+
</ul>
|
13
|
+
</div>
|
14
|
+
</header>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{%- include head.html -%}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{%- include header.html -%}
|
9
|
+
|
10
|
+
<main class="page-content" aria-label="content">
|
11
|
+
<div class="wrapper">
|
12
|
+
{{ content }}
|
13
|
+
</div>
|
14
|
+
</main>
|
15
|
+
|
16
|
+
{%- include footer.html -%}
|
17
|
+
|
18
|
+
</div>
|
19
|
+
</body>
|
20
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
{% assign contentwonl = content | strip_newlines %} {% unless contentwonl == "" %} <br /> {% endunless %} <!-- add line break if there is any content -->
|
7
|
+
|
8
|
+
{%- if site.posts.size > 0 -%}
|
9
|
+
<ul>
|
10
|
+
{%- for post in site.posts -%}
|
11
|
+
<li>
|
12
|
+
{%- assign date_format = "%Y-%m-%d" -%}
|
13
|
+
[ {{ post.date | date: date_format }} ] <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
14
|
+
</li>
|
15
|
+
{%- endfor -%}
|
16
|
+
</ul>
|
17
|
+
{%- endif -%}
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
data/_sass/_dark.scss
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* Dark theme variables
|
3
|
+
*/
|
4
|
+
|
5
|
+
:root {
|
6
|
+
--base-color: #DBDBDB;
|
7
|
+
--border: dashed 1px rgba(219, 219, 219, 0.9);
|
8
|
+
--selection-background: rgba(219, 219, 219, 0.99);
|
9
|
+
--selection-text: #000;
|
10
|
+
--background-color: #000;
|
11
|
+
--text-color: var(--base-color);
|
12
|
+
--placeholder-color: var(--base-color);
|
13
|
+
--link-color: var(--base-color);
|
14
|
+
--code-color-1: #aaaaaa;
|
15
|
+
--code-color-2: #ffffcc;
|
16
|
+
--code-color-3: #F00000;
|
17
|
+
--code-color-4: #F0A0A0;
|
18
|
+
--code-color-5: #b38aff;
|
19
|
+
--code-color-6: #5ba711;
|
20
|
+
--code-color-7: #e4e477;
|
21
|
+
--code-color-8: #000080;
|
22
|
+
--code-color-9: #05ca05;
|
23
|
+
--code-color-10: #888888;
|
24
|
+
--code-color-11: #555555;
|
25
|
+
--code-color-12: #800080;
|
26
|
+
--code-color-13: #00d4d4;
|
27
|
+
--code-color-14: #00c1c1;
|
28
|
+
--code-color-15: #ed9d13;
|
29
|
+
--code-color-16: #1e90ff;
|
30
|
+
--code-color-17: #800000;
|
31
|
+
--code-color-18: #bbbbbb;
|
32
|
+
}
|
data/_sass/_hacker.scss
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* Hacker theme variables
|
3
|
+
*/
|
4
|
+
|
5
|
+
:root {
|
6
|
+
--base-color: #00ff00;
|
7
|
+
--border: dashed 1px rgba(0, 255, 0, 0.9);
|
8
|
+
--selection-background: rgba(0, 255, 0, 0.99);
|
9
|
+
--selection-text: #000;
|
10
|
+
--background-color: #000;
|
11
|
+
--text-color: var(--base-color);
|
12
|
+
--placeholder-color: var(--base-color);
|
13
|
+
--link-color: var(--base-color);
|
14
|
+
--code-color-1: #aaaaaa;
|
15
|
+
--code-color-2: #ffffcc;
|
16
|
+
--code-color-3: #F00000;
|
17
|
+
--code-color-4: #F0A0A0;
|
18
|
+
--code-color-5: #b38aff;
|
19
|
+
--code-color-6: #5ba711;
|
20
|
+
--code-color-7: #e4e477;
|
21
|
+
--code-color-8: #000080;
|
22
|
+
--code-color-9: #05ca05;
|
23
|
+
--code-color-10: #888888;
|
24
|
+
--code-color-11: #555555;
|
25
|
+
--code-color-12: #800080;
|
26
|
+
--code-color-13: #00d4d4;
|
27
|
+
--code-color-14: #00c1c1;
|
28
|
+
--code-color-15: #ed9d13;
|
29
|
+
--code-color-16: #1e90ff;
|
30
|
+
--code-color-17: #800000;
|
31
|
+
--code-color-18: #bbbbbb;
|
32
|
+
}
|
data/_sass/_light.scss
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* Light theme variables
|
3
|
+
*/
|
4
|
+
|
5
|
+
:root {
|
6
|
+
--base-color: #000;
|
7
|
+
--border: dashed 1px rgba(0, 0, 0, 1);
|
8
|
+
--selection-background: rgba(0, 0, 0, 0.99);
|
9
|
+
--selection-text: #FFF;
|
10
|
+
--background-color: #FFF;
|
11
|
+
--text-color: var(--base-color);
|
12
|
+
--placeholder-color: var(--base-color);
|
13
|
+
--link-color: var(--base-color);
|
14
|
+
--code-color-1: #aaaaaa;
|
15
|
+
--code-color-2: #ffffcc;
|
16
|
+
--code-color-3: #F00000;
|
17
|
+
--code-color-4: #F0A0A0;
|
18
|
+
--code-color-5: #0000aa;
|
19
|
+
--code-color-6: #4c8317;
|
20
|
+
--code-color-7: #aa0000;
|
21
|
+
--code-color-8: #000080;
|
22
|
+
--code-color-9: #00aa00;
|
23
|
+
--code-color-10: #888888;
|
24
|
+
--code-color-11: #555555;
|
25
|
+
--code-color-12: #800080;
|
26
|
+
--code-color-13: #00aaaa;
|
27
|
+
--code-color-14: #009999;
|
28
|
+
--code-color-15: #aa5500;
|
29
|
+
--code-color-16: #1e90ff;
|
30
|
+
--code-color-17: #800000;
|
31
|
+
--code-color-18: #bbbbbb;
|
32
|
+
}
|
data/_sass/_navy.scss
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
//navy theme variables
|
2
|
+
|
3
|
+
:root {
|
4
|
+
--base-color: #DBDBDB;
|
5
|
+
--border: dashed 1px rgba(219, 219, 219, 0.9);
|
6
|
+
--selection-background: rgba(219, 219, 219, 0.99);
|
7
|
+
--selection-text: rgb(0, 0, 46);
|
8
|
+
--background-color: rgb(0, 0, 46);
|
9
|
+
--text-color: var(--base-color);
|
10
|
+
--placeholder-color: var(--base-color);
|
11
|
+
--link-color: var(--base-color);
|
12
|
+
--code-color-1: #aaaaaa;
|
13
|
+
--code-color-2: #ffffcc;
|
14
|
+
--code-color-3: #F00000;
|
15
|
+
--code-color-4: #F0A0A0;
|
16
|
+
--code-color-5: #b38aff;
|
17
|
+
--code-color-6: #5ba711;
|
18
|
+
--code-color-7: #e4e477;
|
19
|
+
--code-color-8: #000080;
|
20
|
+
--code-color-9: #05ca05;
|
21
|
+
--code-color-10: #888888;
|
22
|
+
--code-color-11: #555555;
|
23
|
+
--code-color-12: #800080;
|
24
|
+
--code-color-13: #00d4d4;
|
25
|
+
--code-color-14: #00c1c1;
|
26
|
+
--code-color-15: #ed9d13;
|
27
|
+
--code-color-16: #1e90ff;
|
28
|
+
--code-color-17: #800000;
|
29
|
+
--code-color-18: #bbbbbb;
|
30
|
+
}
|
data/_sass/base.scss
ADDED
@@ -0,0 +1,261 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
@import url('https://fonts.googleapis.com/css?family=Inconsolata:400,600,700,800');
|
3
|
+
|
4
|
+
// variables
|
5
|
+
$base-font-family: 'Inconsolata', monospace !default;
|
6
|
+
|
7
|
+
$base-font-size: 16px !default;
|
8
|
+
$mobile-font-size: 14px !default;
|
9
|
+
$base-line-height: 1.5 !default;
|
10
|
+
$container-width: 90% !default;
|
11
|
+
$container-max-width: 700px !default;
|
12
|
+
|
13
|
+
// text styling
|
14
|
+
html {
|
15
|
+
text-size-adjust: none;
|
16
|
+
font-size: $base-font-size;
|
17
|
+
font-family: $base-font-family;
|
18
|
+
|
19
|
+
@media only screen and (max-device-width: 500px) {
|
20
|
+
font-size: $mobile-font-size
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
body {
|
25
|
+
background-color: var(--background-color);
|
26
|
+
margin: 0 auto; padding: 0;
|
27
|
+
color: var(--text-color);
|
28
|
+
text-align: left;
|
29
|
+
line-height: $base-line-height !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
h1, h2, h3, h4, h5, h6 {
|
33
|
+
margin: 0px;
|
34
|
+
font-weight: bold;
|
35
|
+
color: var(--text-color);
|
36
|
+
}
|
37
|
+
|
38
|
+
h1, h2, h3 {
|
39
|
+
margin-top: 22px;
|
40
|
+
}
|
41
|
+
|
42
|
+
h1 {
|
43
|
+
font-size: 2rem;
|
44
|
+
}
|
45
|
+
|
46
|
+
h2 {
|
47
|
+
font-weight: 800;
|
48
|
+
text-decoration: underline dashed;
|
49
|
+
font-size: 1.4rem;
|
50
|
+
}
|
51
|
+
|
52
|
+
h3 {
|
53
|
+
font-weight: 600;
|
54
|
+
font-size: 1.2rem;
|
55
|
+
}
|
56
|
+
|
57
|
+
p, ul, ol {
|
58
|
+
margin: 0px;
|
59
|
+
color: var(--text-color);
|
60
|
+
}
|
61
|
+
|
62
|
+
a {
|
63
|
+
text-decoration: underline;
|
64
|
+
color: var(--link-color);
|
65
|
+
|
66
|
+
&:hover {
|
67
|
+
color: var(--background-color);
|
68
|
+
background-color: var(--base-color);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
// layout
|
73
|
+
body {
|
74
|
+
width: $container-width;
|
75
|
+
max-width: $container-max-width;
|
76
|
+
margin-right: auto;
|
77
|
+
margin-left: auto;
|
78
|
+
}
|
79
|
+
|
80
|
+
p {
|
81
|
+
word-wrap: break-word;
|
82
|
+
word-break: break-word;
|
83
|
+
white-space: pre-wrap;
|
84
|
+
margin-bottom: 15px;
|
85
|
+
}
|
86
|
+
|
87
|
+
header {
|
88
|
+
margin-top: 25px;
|
89
|
+
margin-bottom: 20px;
|
90
|
+
p {
|
91
|
+
text-align: left;
|
92
|
+
margin: 0;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
footer {
|
97
|
+
color: var(--text-color);
|
98
|
+
border-top: var(--border);
|
99
|
+
margin: 20px auto 15px;
|
100
|
+
padding-top: 10px;
|
101
|
+
|
102
|
+
display: flex;
|
103
|
+
flex-direction: row-reverse;
|
104
|
+
justify-content: space-between;
|
105
|
+
flex-wrap: wrap-reverse;
|
106
|
+
margin-bottom: 2rem;
|
107
|
+
|
108
|
+
.box {
|
109
|
+
min-width: 250px;
|
110
|
+
width: 45%;
|
111
|
+
}
|
112
|
+
.left {
|
113
|
+
text-align: left;
|
114
|
+
}
|
115
|
+
.right {
|
116
|
+
text-align: right;
|
117
|
+
}
|
118
|
+
|
119
|
+
@media only screen and (max-device-width: 500px) {
|
120
|
+
flex-direction: column;
|
121
|
+
.box {
|
122
|
+
width: 100%;
|
123
|
+
margin-bottom: 2rem;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
// highlight, markup
|
130
|
+
::selection {
|
131
|
+
background: var(--selection-background);
|
132
|
+
color: var(--selection-text);
|
133
|
+
}
|
134
|
+
|
135
|
+
::-moz-selection {
|
136
|
+
background: var(--selection-background);
|
137
|
+
color: var(--selection-text);
|
138
|
+
}
|
139
|
+
|
140
|
+
// list styling
|
141
|
+
ul {
|
142
|
+
list-style: none;
|
143
|
+
list-style-type: none;
|
144
|
+
padding-left: 0;
|
145
|
+
|
146
|
+
> li:before {
|
147
|
+
content: "-";
|
148
|
+
margin-right: 9px;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
.unstyled-list > li{
|
153
|
+
&:before {
|
154
|
+
content: none;
|
155
|
+
margin-right: 0;
|
156
|
+
}
|
157
|
+
|
158
|
+
a {
|
159
|
+
text-decoration: none;
|
160
|
+
color: var(--text-color);
|
161
|
+
}
|
162
|
+
|
163
|
+
a:hover {
|
164
|
+
text-decoration: none;
|
165
|
+
color: var(--background-color);
|
166
|
+
background-color: var(--base-color);
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
// nav menu
|
171
|
+
.menu {
|
172
|
+
border-top: var(--border);
|
173
|
+
border-bottom: var(--border);
|
174
|
+
|
175
|
+
ul {
|
176
|
+
margin-top: 12px;
|
177
|
+
margin-bottom: 12px;
|
178
|
+
padding-left: 0px;
|
179
|
+
text-align: right;
|
180
|
+
}
|
181
|
+
|
182
|
+
ul > li {
|
183
|
+
display: inline;
|
184
|
+
margin-left: 10px;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
// form
|
189
|
+
input, select, textarea { padding: 0; margin: 0; -webkit-appearance: none; -webkit-border-radius: 0; border: none; }
|
190
|
+
input[type=text], select, textarea { width: 100%; resize: none; background-color: var(--background-color); color: var(--text-color); caret-color: var(--text-color); font-size: $base-font-size; font-family: $base-font-family; line-height: $base-line-height; }
|
191
|
+
input, select, textarea, textarea::-webkit-input-placeholder { text-indent: 0px; }
|
192
|
+
::placeholder { color: var(--placeholder-color); opacity: 1; }
|
193
|
+
:-ms-input-placeholder { color: var(--placeholder-color); }
|
194
|
+
::-ms-input-placeholder { color: var(--placeholder-color); }
|
195
|
+
input[type=submit] { font-size: $base-font-size; font-family: $base-font-family; line-height: $base-line-height; cursor: pointer; color: var(--link-color); background-color: var(--background-color); }
|
196
|
+
input[type=submit]:hover { color: var(--background-color); background-color: var(--base-color); }
|
197
|
+
*:focus { outline: none; }
|
198
|
+
textarea { vertical-align: top; }
|
199
|
+
|
200
|
+
// code and syntax highlighting
|
201
|
+
.lineno { color: var(--code-color-1); margin-right: 15px; }
|
202
|
+
figure.highlight { margin: 5px 0; }
|
203
|
+
pre { background-color: var(--background-color); border: none; padding: 0; margin: 0; overflow:auto; font-size: $base-font-size; color: var(--text-color); line-height: 1.7 !important; font-family: $base-font-family !important; }
|
204
|
+
.highlight .hll { background-color: var(--code-color-2); }
|
205
|
+
.highlight .c { color: var(--code-color-1); font-style: italic } /* Comment */
|
206
|
+
.highlight .err { color: var(--code-color-3); background-color: var(--code-color-4); } /* Error */
|
207
|
+
.highlight .k { color: var(--code-color-5); } /* Keyword */
|
208
|
+
.highlight .cm { color: var(--code-color-1); font-style: italic } /* Comment.Multiline */
|
209
|
+
.highlight .cp { color: var(--code-color-6); } /* Comment.Preproc */
|
210
|
+
.highlight .c1 { color: var(--code-color-1); font-style: italic } /* Comment.Single */
|
211
|
+
.highlight .cs { color: var(--code-color-5); font-style: italic } /* Comment.Special */
|
212
|
+
.highlight .gd { color: var(--code-color-7); } /* Generic.Deleted */
|
213
|
+
.highlight .ge { font-style: italic } /* Generic.Emph */
|
214
|
+
.highlight .gr { color: var(--code-color-7); } /* Generic.Error */
|
215
|
+
.highlight .gh { color: var(--code-color-8); font-weight: bold } /* Generic.Heading */
|
216
|
+
.highlight .gi { color: var(--code-color-9); } /* Generic.Inserted */
|
217
|
+
.highlight .go { color: var(--code-color-10); } /* Generic.Output */
|
218
|
+
.highlight .gp { color: var(--code-color-11); } /* Generic.Prompt */
|
219
|
+
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
220
|
+
.highlight .gu { color: var(--code-color-12); font-weight: bold } /* Generic.Subheading */
|
221
|
+
.highlight .gt { color: var(--code-color-7); } /* Generic.Traceback */
|
222
|
+
.highlight .kc { color: var(--code-color-5); } /* Keyword.Constant */
|
223
|
+
.highlight .kd { color: var(--code-color-5); } /* Keyword.Declaration */
|
224
|
+
.highlight .kn { color: var(--code-color-5); } /* Keyword.Namespace */
|
225
|
+
.highlight .kp { color: var(--code-color-5); } /* Keyword.Pseudo */
|
226
|
+
.highlight .kr { color: var(--code-color-5); } /* Keyword.Reserved */
|
227
|
+
.highlight .kt { color: var(--code-color-13); } /* Keyword.Type */
|
228
|
+
.highlight .m { color: var(--code-color-14); } /* Literal.Number */
|
229
|
+
.highlight .s { color: var(--code-color-15); } /* Literal.String */
|
230
|
+
.highlight .na { color: var(--code-color-16); } /* Name.Attribute */
|
231
|
+
.highlight .nb { color: var(--code-color-13); } /* Name.Builtin */
|
232
|
+
.highlight .nc { color: var(--code-color-9); text-decoration: underline } /* Name.Class */
|
233
|
+
.highlight .no { color: var(--code-color-7); } /* Name.Constant */
|
234
|
+
.highlight .nd { color: var(--code-color-10); } /* Name.Decorator */
|
235
|
+
.highlight .ni { color: var(--code-color-17); font-weight: bold } /* Name.Entity */
|
236
|
+
.highlight .nf { color: var(--code-color-9); } /* Name.Function */
|
237
|
+
.highlight .nn { color: var(--code-color-13); text-decoration: underline } /* Name.Namespace */
|
238
|
+
.highlight .nt { color: var(--code-color-16); font-weight: bold } /* Name.Tag */
|
239
|
+
.highlight .nv { color: var(--code-color-7); } /* Name.Variable */
|
240
|
+
.highlight .ow { color: var(--code-color-5); } /* Operator.Word */
|
241
|
+
.highlight .w { color: var(--code-color-18); } /* Text.Whitespace */
|
242
|
+
.highlight .mf { color: var(--code-color-14); } /* Literal.Number.Float */
|
243
|
+
.highlight .mh { color: var(--code-color-14); } /* Literal.Number.Hex */
|
244
|
+
.highlight .mi { color: var(--code-color-14); } /* Literal.Number.Integer */
|
245
|
+
.highlight .mo { color: var(--code-color-14); } /* Literal.Number.Oct */
|
246
|
+
.highlight .sb { color: var(--code-color-15); } /* Literal.String.Backtick */
|
247
|
+
.highlight .sc { color: var(--code-color-15); } /* Literal.String.Char */
|
248
|
+
.highlight .sd { color: var(--code-color-15); } /* Literal.String.Doc */
|
249
|
+
.highlight .s2 { color: var(--code-color-15); } /* Literal.String.Double */
|
250
|
+
.highlight .se { color: var(--code-color-15); } /* Literal.String.Escape */
|
251
|
+
.highlight .sh { color: var(--code-color-15); } /* Literal.String.Heredoc */
|
252
|
+
.highlight .si { color: var(--code-color-15); } /* Literal.String.Interpol */
|
253
|
+
.highlight .sx { color: var(--code-color-15); } /* Literal.String.Other */
|
254
|
+
.highlight .sr { color: var(--code-color-14); } /* Literal.String.Regex */
|
255
|
+
.highlight .s1 { color: var(--code-color-15); } /* Literal.String.Single */
|
256
|
+
.highlight .ss { color: var(--code-color-5); } /* Literal.String.Symbol */
|
257
|
+
.highlight .bp { color: var(--code-color-13); } /* Name.Builtin.Pseudo */
|
258
|
+
.highlight .vc { color: var(--code-color-7); } /* Name.Variable.Class */
|
259
|
+
.highlight .vg { color: var(--code-color-7); } /* Name.Variable.Global */
|
260
|
+
.highlight .vi { color: var(--code-color-7); } /* Name.Variable.Instance */
|
261
|
+
.highlight .il { color: var(--code-color-14); } /* Literal.Number.Integer.Long */
|
data/assets/main.scss
ADDED
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: consolo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Forthoney
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.9'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '12.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '12.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- castlehoneyjung@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- _includes/footer.html
|
65
|
+
- _includes/google-analytics.html
|
66
|
+
- _includes/head.html
|
67
|
+
- _includes/header.html
|
68
|
+
- _layouts/default.html
|
69
|
+
- _layouts/home.html
|
70
|
+
- _layouts/page.html
|
71
|
+
- _layouts/post.html
|
72
|
+
- _sass/_dark.scss
|
73
|
+
- _sass/_hacker.scss
|
74
|
+
- _sass/_light.scss
|
75
|
+
- _sass/_navy.scss
|
76
|
+
- _sass/base.scss
|
77
|
+
- assets/main-dark.scss
|
78
|
+
- assets/main-hacker.scss
|
79
|
+
- assets/main-light.scss
|
80
|
+
- assets/main-navy.scss
|
81
|
+
- assets/main.scss
|
82
|
+
homepage: https://github.com/Forthoney/consolo
|
83
|
+
licenses:
|
84
|
+
- MIT
|
85
|
+
metadata: {}
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
requirements: []
|
101
|
+
rubygems_version: 3.3.26
|
102
|
+
signing_key:
|
103
|
+
specification_version: 4
|
104
|
+
summary: A console-inspired jekyll theme for personal blogs and websites. Improved/expanded
|
105
|
+
fork of b2a3e8's jekyll-theme-console.
|
106
|
+
test_files: []
|