jekyll-theme-minimalistic 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +674 -0
- data/README.md +172 -0
- data/_includes/footer.html +4 -0
- data/_includes/head-custom-google-analytics.html +10 -0
- data/_includes/head-custom.html +12 -0
- data/_includes/sidebar.html +56 -0
- data/_layouts/default.html +62 -0
- data/_layouts/post.html +14 -0
- data/_sass/colors.scss +124 -0
- data/_sass/fonts.scss +55 -0
- data/_sass/jekyll-theme-minimalistic.scss +314 -0
- data/_sass/minimalistic.scss +4 -0
- data/_sass/rouge-github.scss +206 -0
- data/assets/css/colors-auto.scss +25 -0
- data/assets/css/colors-dark.scss +15 -0
- data/assets/css/colors-light.scss +9 -0
- data/assets/css/style.scss +69 -0
- data/assets/fonts/Noto-Sans-700/Noto-Sans-700.eot +0 -0
- data/assets/fonts/Noto-Sans-700/Noto-Sans-700.svg +336 -0
- data/assets/fonts/Noto-Sans-700/Noto-Sans-700.ttf +0 -0
- data/assets/fonts/Noto-Sans-700/Noto-Sans-700.woff +0 -0
- data/assets/fonts/Noto-Sans-700/Noto-Sans-700.woff2 +0 -0
- data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot +0 -0
- data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg +334 -0
- data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf +0 -0
- data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff +0 -0
- data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2 +0 -0
- data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.eot +0 -0
- data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.svg +337 -0
- data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.ttf +0 -0
- data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.woff +0 -0
- data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.woff2 +0 -0
- data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.eot +0 -0
- data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.svg +335 -0
- data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.ttf +0 -0
- data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.woff +0 -0
- data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.woff2 +0 -0
- data/assets/img/logo.jpg +0 -0
- data/assets/js/scale.fix.js +27 -0
- metadata +159 -0
data/README.md
ADDED
@@ -0,0 +1,172 @@
|
|
1
|
+
# jekyll-minimalistic
|
2
|
+
|
3
|
+
![GitHub top language](https://img.shields.io/github/languages/top/vaibhavvikas/jekyll-minimalistic)
|
4
|
+
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/vaibhavvikas/jekyll-minimalistic)
|
5
|
+
![GitHub stars](https://img.shields.io/github/stars/vaibhavvikas/jekyll-minimalistic)
|
6
|
+
![pages-build-deployment](https://github.com/vaibhavvikas/jekyll-minimalistic/actions/workflows/pages/pages-build-deployment/badge.svg)
|
7
|
+
|
8
|
+
A fork of gh-pages minimal theme with navigation in the sidebar. You can view a live demo at [Minimalistic](https://vaibhavvikas.github.io/jekyll-minimalistic/).
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+
To use the Minimalistic theme:
|
13
|
+
|
14
|
+
1. Add the following line to your Gemfile
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem "jekyll-remote-theme"
|
18
|
+
```
|
19
|
+
|
20
|
+
then run `bundle install` to install the plugin.
|
21
|
+
|
22
|
+
2. Add the following to your site's `_config.yml` to activate the plugin:
|
23
|
+
|
24
|
+
```yml
|
25
|
+
plugins:
|
26
|
+
- jekyll-remote-theme
|
27
|
+
```
|
28
|
+
|
29
|
+
Note: If you are using a Jekyll version less than 3.5.0, use the `gems` key instead of `plugins`.
|
30
|
+
|
31
|
+
3. Add the following line to your `config.yml` to use the theme
|
32
|
+
|
33
|
+
```yml
|
34
|
+
remote_theme: vaibhavvikas/jekyll-minimalistic
|
35
|
+
```
|
36
|
+
|
37
|
+
then running `bundle exec jekyll serve` for local deployment.
|
38
|
+
|
39
|
+
## Customizing
|
40
|
+
|
41
|
+
### Configuration variables
|
42
|
+
|
43
|
+
Minimalistic will respect the following variables, if set in your site's `_config.yml`:
|
44
|
+
|
45
|
+
```yml
|
46
|
+
title: [The title of your site]
|
47
|
+
description: [A short description of your site's purpose]
|
48
|
+
```
|
49
|
+
|
50
|
+
Additionally, you may choose to set the following optional variables:
|
51
|
+
|
52
|
+
```yml
|
53
|
+
google_analytics: [Your Google Analytics tracking ID]
|
54
|
+
```
|
55
|
+
|
56
|
+
Choose light, dark, or automatically adjusting theme based on system theme:
|
57
|
+
|
58
|
+
```yml
|
59
|
+
color-scheme: auto/light/dark
|
60
|
+
```
|
61
|
+
|
62
|
+
Specify logo for the website:
|
63
|
+
|
64
|
+
```yml
|
65
|
+
logo: /assets/img/<logo_file>
|
66
|
+
```
|
67
|
+
|
68
|
+
Enable favicon by putting a `favicon.ico` in the repo's root directory and add the following line in `config.yml`:
|
69
|
+
|
70
|
+
```yml
|
71
|
+
favicon: true
|
72
|
+
```
|
73
|
+
|
74
|
+
### Customizing Sidebar
|
75
|
+
|
76
|
+
You can define a list of platforms that are linked from the sidebar in `_config.yml`:
|
77
|
+
|
78
|
+
```yml
|
79
|
+
platforms:
|
80
|
+
- name: GitHub
|
81
|
+
icon: <i class="fa-brands fa-github"></i>
|
82
|
+
link: https://github.com/vaibhavvikas
|
83
|
+
- name: LinkedIn
|
84
|
+
icon: <i class="fa-brands fa-linkedin"></i>
|
85
|
+
link: https://www.linkedin.com/in/vaibhavvikas
|
86
|
+
- ...
|
87
|
+
```
|
88
|
+
|
89
|
+
### Navigation
|
90
|
+
|
91
|
+
You can also define, hyperlinks for specific pages or section of a pages (very helpful if creating multipage documentation or easy navigation between multiple sections).
|
92
|
+
|
93
|
+
For adding navigation do the following steps:
|
94
|
+
|
95
|
+
1. Put your .md files in the root directory. and add the below text on top of pages to get it converted to html by jekyll.
|
96
|
+
|
97
|
+
```yml
|
98
|
+
---
|
99
|
+
layout: default
|
100
|
+
---
|
101
|
+
```
|
102
|
+
|
103
|
+
2. Use the navigation example below to add navigation section in _config.yml file. Treat all your .md files as .html files. Currently it only supports one nesting in sublist.
|
104
|
+
|
105
|
+
```yml
|
106
|
+
navigation:
|
107
|
+
- name: Readme
|
108
|
+
link: ./index.html
|
109
|
+
sublist:
|
110
|
+
- name: Image
|
111
|
+
link: ./index.html#small-image
|
112
|
+
- name: Another Page
|
113
|
+
link: ./another-page.html
|
114
|
+
- ...
|
115
|
+
```
|
116
|
+
|
117
|
+
### Example:
|
118
|
+
|
119
|
+
[Live Example](https://vaibhavvikas.github.io/jekyll-minimalistic/)\
|
120
|
+
[Code used in GitHub page](https://github.com/vaibhavvikas/jekyll-minimalistic/tree/gh-pages)
|
121
|
+
|
122
|
+
Lets say you have a file name xyz.md, you put that into the root dir. Now, add the text in step 1 at the top of the md file. After that for the text in _config.yml you will put it like:
|
123
|
+
|
124
|
+
```yml
|
125
|
+
navigation:
|
126
|
+
- name: [Write name of your hyperlink]
|
127
|
+
link: ./xyz.html
|
128
|
+
```
|
129
|
+
|
130
|
+
### Stylesheet
|
131
|
+
|
132
|
+
If you'd like to add your own custom styles:
|
133
|
+
|
134
|
+
1. Create a file called `/assets/css/style.scss` in your site
|
135
|
+
2. Add the following content to the top of the file, exactly as shown:
|
136
|
+
|
137
|
+
```scss
|
138
|
+
---
|
139
|
+
---
|
140
|
+
|
141
|
+
@import "{{ site.theme }}";
|
142
|
+
```
|
143
|
+
|
144
|
+
3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
|
145
|
+
|
146
|
+
*Note: If you'd like to change the theme's Sass variables, you must set new values before the `@import` line in your stylesheet.*
|
147
|
+
|
148
|
+
### Customizing Google Analytics code
|
149
|
+
|
150
|
+
Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into `_includes/head-custom-google-analytics.html` in your Jekyll site.
|
151
|
+
|
152
|
+
## Previewing the theme locally
|
153
|
+
|
154
|
+
If you'd like to preview the theme locally (for example, in the process of proposing a change):
|
155
|
+
|
156
|
+
1. Clone down the theme's repository (`git clone https://github.com/vaibhavvikas/jekyll-minimalistic`)
|
157
|
+
2. `cd` into the theme's directory
|
158
|
+
3. Run `script/bootstrap` to install the necessary dependencies
|
159
|
+
4. Run `bundle exec jekyll serve` to start the preview server
|
160
|
+
5. Visit [`localhost:4000`](http://localhost:4000) in your browser to preview the theme
|
161
|
+
|
162
|
+
## Running tests
|
163
|
+
|
164
|
+
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` once before the test script will work.
|
165
|
+
|
166
|
+
## Contributors
|
167
|
+
|
168
|
+
All contributions are welcome.
|
169
|
+
|
170
|
+
## Credits:
|
171
|
+
|
172
|
+
This theme was built using [Minimalist](https://github.com/BDHU/minimalist) theme by BDHU and [Minimal](https://github.com/pages-themes/minimal) by GithHub.
|
@@ -0,0 +1,4 @@
|
|
1
|
+
{% if site.github.is_project_page %}
|
2
|
+
<p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
|
3
|
+
{% endif %}
|
4
|
+
<p><small>Powered by <a href="https://jekyllrb.com/">Jekyll</a> — Theme by <a href="https://github.com/vaibhavvikas">vaibhavvikas</a></small></p>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{% if site.google_analytics %}
|
2
|
+
<script>
|
3
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
4
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
5
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
6
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
</script>
|
10
|
+
{% endif %}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
|
2
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css">
|
3
|
+
|
4
|
+
<!-- Setup Google Analytics -->
|
5
|
+
{% include head-custom-google-analytics.html %}
|
6
|
+
|
7
|
+
<!-- You can set your favicon here -->
|
8
|
+
{% if site.favicon %}
|
9
|
+
<link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}">
|
10
|
+
{% endif %}
|
11
|
+
|
12
|
+
<!-- end custom head snippets -->
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<div class="link-wrapper">
|
2
|
+
<style scoped>
|
3
|
+
h3 {
|
4
|
+
margin: 1em 0 0.25em 0;
|
5
|
+
}
|
6
|
+
|
7
|
+
ul.link a {
|
8
|
+
color:var(--clr-h1-and-bold);
|
9
|
+
text-decoration:none;
|
10
|
+
}
|
11
|
+
|
12
|
+
ul.link a:hover, a:focus {
|
13
|
+
color: var(--clr-a-text-hvr);
|
14
|
+
}
|
15
|
+
|
16
|
+
ul.content {
|
17
|
+
margin-left: -1.4em;
|
18
|
+
}
|
19
|
+
|
20
|
+
ul.content a:hover, a:focus {
|
21
|
+
text-decoration: underline;
|
22
|
+
}
|
23
|
+
|
24
|
+
.sublist {
|
25
|
+
margin: 0 0 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
ul.sublist {
|
29
|
+
margin-left: -1.5em;
|
30
|
+
}
|
31
|
+
</style>
|
32
|
+
{% if site.platforms %}
|
33
|
+
<ul class="link">
|
34
|
+
{%- for platform in site.platforms %}
|
35
|
+
<li><a href="{{ platform.link }}">{{ platform.icon }} {{ platform.name }}</a></li>
|
36
|
+
{%- endfor %}
|
37
|
+
</ul>
|
38
|
+
{% endif %}
|
39
|
+
|
40
|
+
{% if site.navigation %}
|
41
|
+
<h3>Contents:</h3>
|
42
|
+
<ul class="content">
|
43
|
+
{%- for item in site.navigation %}
|
44
|
+
<li><a href="{{ item.link }}">{{ item.name }}</a>
|
45
|
+
{% if item.sublist %}
|
46
|
+
<ul class="sublist">
|
47
|
+
{%- for subitem in item.sublist %}
|
48
|
+
<li><a href="{{ subitem.link }}">{{ subitem.name }}</a></li>
|
49
|
+
{%- endfor %}
|
50
|
+
</ul>
|
51
|
+
{% endif %}
|
52
|
+
</li>
|
53
|
+
{%- endfor %}
|
54
|
+
</ul>
|
55
|
+
{% endif %}
|
56
|
+
</div>
|
@@ -0,0 +1,62 @@
|
|
1
|
+
{% case site.color-scheme %}
|
2
|
+
{% when "", nil, false, 0, empty %}
|
3
|
+
{% assign ColorScheme = "auto" %}
|
4
|
+
{% else %}
|
5
|
+
{% assign ColorScheme = site.color-scheme %}
|
6
|
+
{% endcase %}
|
7
|
+
|
8
|
+
<!DOCTYPE html>
|
9
|
+
<html lang="{{ site.lang | default: "en-US" }}">
|
10
|
+
<head>
|
11
|
+
<meta charset="UTF-8">
|
12
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
14
|
+
|
15
|
+
{% seo %}
|
16
|
+
<link rel="stylesheet" href="{{ "/assets/css/colors-ColorScheme.css?v=" | replace: "ColorScheme", ColorScheme | append: site.github.build_revision | relative_url }}">
|
17
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
|
18
|
+
<link rel="preload" href="{{site.logo | relative_url}}" as="image">
|
19
|
+
{% include head-custom.html %}
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<div class="wrapper">
|
23
|
+
<div class="sidebar">
|
24
|
+
<header>
|
25
|
+
{% if site.logo %}
|
26
|
+
<img class="logo" src="{{site.logo | relative_url}}" alt="Logo">
|
27
|
+
{% endif %}
|
28
|
+
|
29
|
+
{% if site.blank_title %}
|
30
|
+
<h1>{{ site.title | default: site.github.repository_name }}</h1>
|
31
|
+
{% else %}
|
32
|
+
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
|
33
|
+
{% endif %}
|
34
|
+
|
35
|
+
{% if site.email %}
|
36
|
+
<p class="addr"><i class="fa-solid fa-envelope"></i> <a href="mailto:{{site.email}}">{{ site.email }}</a></p>
|
37
|
+
{% endif %}
|
38
|
+
|
39
|
+
<p>{{ site.description | default: site.github.project_tagline }}</p>
|
40
|
+
|
41
|
+
{% if site.github.is_project_page %}
|
42
|
+
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub<br><small>{{ site.github.repository_nwo }}</small></a></p>
|
43
|
+
{% endif %}
|
44
|
+
|
45
|
+
{% if site.github.is_user_page %}
|
46
|
+
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
|
47
|
+
{% endif %}
|
48
|
+
|
49
|
+
{% include sidebar.html %}
|
50
|
+
|
51
|
+
</header>
|
52
|
+
<div class="sidebar-footer">
|
53
|
+
{%- include footer.html -%}
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
<section>
|
57
|
+
{{ content }}
|
58
|
+
</section>
|
59
|
+
</div>
|
60
|
+
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
|
61
|
+
</body>
|
62
|
+
</html>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<small>{{ page.date | date: "%-d %B %Y" }}</small>
|
6
|
+
<h1>{{ page.title }}</h1>
|
7
|
+
|
8
|
+
<p class="view">by {{ page.author | default: site.author }}</p>
|
9
|
+
|
10
|
+
{{content}}
|
11
|
+
|
12
|
+
{% if page.tags %}
|
13
|
+
<small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
|
14
|
+
{% endif %}
|
data/_sass/colors.scss
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
/*
|
2
|
+
H -> hue
|
3
|
+
L -> luminosity
|
4
|
+
S -> saturation
|
5
|
+
clr -> color
|
6
|
+
bg -> background
|
7
|
+
hvr -> hover
|
8
|
+
*/
|
9
|
+
|
10
|
+
//colors
|
11
|
+
:root {
|
12
|
+
//red
|
13
|
+
--code-d14: #d14;
|
14
|
+
--code-aa0000: #aa0000;
|
15
|
+
--code-990000: #990000;
|
16
|
+
//cyan
|
17
|
+
--code-009999: #009999;
|
18
|
+
--code-008080: #008080;
|
19
|
+
--code-3c5d5d: #3c5d5d;
|
20
|
+
//green
|
21
|
+
--code-009926: #009926;
|
22
|
+
//pink
|
23
|
+
--code-990073: #990073;
|
24
|
+
--code-800080: #800080;
|
25
|
+
//purple
|
26
|
+
--code-445588: #445588;
|
27
|
+
//blue
|
28
|
+
--code-000080: #000080;
|
29
|
+
//grey
|
30
|
+
--code-aaaaaa: #aaaaaa;
|
31
|
+
--code-999999: #999999;
|
32
|
+
--code-888888: #888888;
|
33
|
+
--code-555555: #555555;
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin colors {
|
37
|
+
// buttons
|
38
|
+
--L-a-text-hover-change: 0.8;//the number that --L-a-text gets changed by when it is hovered eg a button has 30% luminosity when left it luminosity is then timesed by 0.8 when the button is hovered
|
39
|
+
--clr-a-text: hsl(200, 100%, var(--L-a-text));
|
40
|
+
--clr-a-text-hvr: hsl(200, 100%, calc(var(--L-a-text) * var(--L-a-text-hover-change)));
|
41
|
+
--clr-buttons-main-bg: hsl(0, 0%, var(--L-buttons-main-bg));//the buttons in the main section at the top titled "download zip" "download tarbell" "veiw on github"
|
42
|
+
--clr-buttons-main-border: hsl(0, 0%, var(--L-buttons-main-border));
|
43
|
+
--clr-buttons-main-text: hsl(0, 0%, var(--L-buttons-main-text));
|
44
|
+
--clr-buttons-main-text-hover: hsl(0, 6%, var(--L-buttons-main-text-hover));
|
45
|
+
// headers + text
|
46
|
+
--clr-h1-and-bold: hsl(0, 0%, var(--L-h1-and-bold));
|
47
|
+
--clr-h2: hsl(0, 0%, var(--L-h2));
|
48
|
+
--clr-h-3-6: hsl(0, 0%, var(--L-h-3-6));
|
49
|
+
--clr-text: hsl(0, 0%, var(--L-text));
|
50
|
+
// code blocks
|
51
|
+
--clr-code-text: hsl(0, 0%, var(--L-code-text));
|
52
|
+
--clr-code-bg: hsl(0, 0%, var(--L-code-bg));
|
53
|
+
--clr-code-border: hsl(0, 0%, var(--L-code-border));
|
54
|
+
--clr-code-bold-text: hsl(0, 0%, var(--L-code-bold-text));
|
55
|
+
//kbd these are keyboard shortcuts eg <kbd>CMD+R</kbd>
|
56
|
+
--clr-kbd-bg: hsl(210, 25%, var(--L-kbd-bg));
|
57
|
+
--clr-kbd-border: hsl(212.7, 10.7%, var(--L-kbd-border));
|
58
|
+
--clr-kbd-border-bottom-and-shadow: hsl(210, 8.2%, var(--L-kbd-border-bottom-and-shadow));// akbd elemnts border bottom and its shadow color
|
59
|
+
--clr-kbd-text: hsl(210, 11.7%, var(--L-kbd-text));
|
60
|
+
// miscellaneous
|
61
|
+
--clr-bg: hsl(0, 0%, var(--L-bg));//the bg of the page
|
62
|
+
--clr-splitter-blockquote-and-section: hsl(0, 0%, var(--L-splitter-blockquote-and-section));//a color for the lines that split tables, appear on the left pf blockquotes and mark new sections
|
63
|
+
--clr-small-in-a: hsl(0, 0%, var(--L-small-in-a));//the color for small elements in a's this color is used on the veiw on github button above the download buttons
|
64
|
+
--clr-table-header-and-dt: hsl(0, 0%, var(--L-table-header-and-dt)); //more info on dt's https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_dd_test
|
65
|
+
}
|
66
|
+
|
67
|
+
@mixin light-colors {
|
68
|
+
// buttons
|
69
|
+
--L-a-text: 35%;
|
70
|
+
--L-buttons-main-bg: 96%;
|
71
|
+
--L-buttons-main-border: 88%;
|
72
|
+
--L-buttons-main-text: 40%;
|
73
|
+
--L-buttons-main-text-hover: 38%;
|
74
|
+
// headers + text
|
75
|
+
--L-h1-and-bold: 13%;
|
76
|
+
--L-h2: 22%;
|
77
|
+
--L-h-3-6: 29%;
|
78
|
+
--L-text-bold: 36%;
|
79
|
+
--L-text: 45%;
|
80
|
+
// code blocks
|
81
|
+
--L-code-text: 20%;
|
82
|
+
--L-code-bg: 97%;
|
83
|
+
--L-code-border: 90%;
|
84
|
+
--L-code-bold-text: 0%;
|
85
|
+
//kbd these are keyboard shortcuts eg <kbd>CMD+R</kbd>
|
86
|
+
--L-kbd-bg: 98%;
|
87
|
+
--L-kbd-border: 80%;
|
88
|
+
--L-kbd-border-bottom-and-shadow: 62%;
|
89
|
+
--L-kbd-text: 30%;
|
90
|
+
// miscellaneous
|
91
|
+
--L-bg: 100%;
|
92
|
+
--L-splitter-blockquote-and-section: 90%;//for elements like hr + blockquote
|
93
|
+
--L-small-in-a: 47%;
|
94
|
+
--L-table-header-and-dt: 27%; //more on dt's https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_dd_test
|
95
|
+
}
|
96
|
+
|
97
|
+
@mixin dark-colors {
|
98
|
+
// buttons
|
99
|
+
--L-a-text: 60%;
|
100
|
+
--L-buttons-main-bg: 17%;
|
101
|
+
--L-buttons-main-border: 26%;
|
102
|
+
--L-buttons-main-text: 76%;
|
103
|
+
--L-buttons-main-text-hover: 80%;
|
104
|
+
// headers + text
|
105
|
+
--L-h1-and-bold: 90%;
|
106
|
+
--L-h2: 83%;
|
107
|
+
--L-h-3-6: 76%;
|
108
|
+
--L-text: 70%;
|
109
|
+
// code blocks
|
110
|
+
--L-code-text: 80%;
|
111
|
+
--L-code-bg: 3%;
|
112
|
+
--L-code-border: 5%;
|
113
|
+
--L-code-bold-text: 100%;
|
114
|
+
//kbd these are keyboard shortcuts eg <kbd>CMD+R</kbd>
|
115
|
+
--L-kbd-bg: 30%;
|
116
|
+
--L-kbd-border: 45%;
|
117
|
+
--L-kbd-border-bottom-and-shadow: 55%;
|
118
|
+
--L-kbd-text: 100%;
|
119
|
+
// miscellaneous
|
120
|
+
--L-splitter-blockquote-and-section: 15%;// for elements like hr and blockquote
|
121
|
+
--L-bg: 10%;
|
122
|
+
--L-small-in-a: 60%;
|
123
|
+
--L-table-header-and-dt: 90%;
|
124
|
+
}
|
data/_sass/fonts.scss
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'Noto Sans';
|
3
|
+
font-weight: 400;
|
4
|
+
font-style: normal;
|
5
|
+
src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot');
|
6
|
+
src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot?#iefix') format('embedded-opentype'),
|
7
|
+
local('Noto Sans'),
|
8
|
+
local('Noto-Sans-regular'),
|
9
|
+
url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff2') format('woff2'),
|
10
|
+
url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff') format('woff'),
|
11
|
+
url('../fonts/Noto-Sans-regular/Noto-Sans-regular.ttf') format('truetype'),
|
12
|
+
url('../fonts/Noto-Sans-regular/Noto-Sans-regular.svg#NotoSans') format('svg');
|
13
|
+
}
|
14
|
+
|
15
|
+
@font-face {
|
16
|
+
font-family: 'Noto Sans';
|
17
|
+
font-weight: 700;
|
18
|
+
font-style: normal;
|
19
|
+
src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot');
|
20
|
+
src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot?#iefix') format('embedded-opentype'),
|
21
|
+
local('Noto Sans Bold'),
|
22
|
+
local('Noto-Sans-700'),
|
23
|
+
url('../fonts/Noto-Sans-700/Noto-Sans-700.woff2') format('woff2'),
|
24
|
+
url('../fonts/Noto-Sans-700/Noto-Sans-700.woff') format('woff'),
|
25
|
+
url('../fonts/Noto-Sans-700/Noto-Sans-700.ttf') format('truetype'),
|
26
|
+
url('../fonts/Noto-Sans-700/Noto-Sans-700.svg#NotoSans') format('svg');
|
27
|
+
}
|
28
|
+
|
29
|
+
@font-face {
|
30
|
+
font-family: 'Noto Sans';
|
31
|
+
font-weight: 400;
|
32
|
+
font-style: italic;
|
33
|
+
src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot');
|
34
|
+
src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot?#iefix') format('embedded-opentype'),
|
35
|
+
local('Noto Sans Italic'),
|
36
|
+
local('Noto-Sans-italic'),
|
37
|
+
url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff2') format('woff2'),
|
38
|
+
url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff') format('woff'),
|
39
|
+
url('../fonts/Noto-Sans-italic/Noto-Sans-italic.ttf') format('truetype'),
|
40
|
+
url('../fonts/Noto-Sans-italic/Noto-Sans-italic.svg#NotoSans') format('svg');
|
41
|
+
}
|
42
|
+
|
43
|
+
@font-face {
|
44
|
+
font-family: 'Noto Sans';
|
45
|
+
font-weight: 700;
|
46
|
+
font-style: italic;
|
47
|
+
src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot');
|
48
|
+
src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot?#iefix') format('embedded-opentype'),
|
49
|
+
local('Noto Sans Bold Italic'),
|
50
|
+
local('Noto-Sans-700italic'),
|
51
|
+
url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2') format('woff2'),
|
52
|
+
url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff') format('woff'),
|
53
|
+
url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf') format('truetype'),
|
54
|
+
url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg#NotoSans') format('svg');
|
55
|
+
}
|