jekyll-theme-minimalist 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +116 -0
  3. data/README.md +125 -0
  4. data/_includes/footer.html +1 -0
  5. data/_includes/head-custom-google-analytics.html +10 -0
  6. data/_includes/head-custom.html +12 -0
  7. data/_includes/links-mobile.html +11 -0
  8. data/_includes/sidebar.html +19 -0
  9. data/_layouts/default.html +66 -0
  10. data/_layouts/post.html +14 -0
  11. data/_sass/colors.scss +124 -0
  12. data/_sass/fonts.scss +55 -0
  13. data/_sass/jekyll-theme-minimalist.scss +316 -0
  14. data/_sass/minimalist.scss +4 -0
  15. data/_sass/rouge-github.scss +219 -0
  16. data/assets/css/colors-auto-default-dark.scss +17 -0
  17. data/assets/css/colors-auto.scss +15 -0
  18. data/assets/css/colors-dark.scss +15 -0
  19. data/assets/css/colors-light.scss +9 -0
  20. data/assets/css/style.scss +68 -0
  21. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.eot +0 -0
  22. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.svg +336 -0
  23. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.ttf +0 -0
  24. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.woff +0 -0
  25. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.woff2 +0 -0
  26. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot +0 -0
  27. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg +334 -0
  28. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf +0 -0
  29. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff +0 -0
  30. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2 +0 -0
  31. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.eot +0 -0
  32. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.svg +337 -0
  33. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.ttf +0 -0
  34. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.woff +0 -0
  35. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.woff2 +0 -0
  36. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.eot +0 -0
  37. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.svg +335 -0
  38. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.ttf +0 -0
  39. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.woff +0 -0
  40. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.woff2 +0 -0
  41. data/assets/img/logo.png +0 -0
  42. data/assets/js/scale.fix.js +27 -0
  43. metadata +162 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e93d2bf44c223bfa4760d3f10f5ca72a5915e7732c417b580251babceae65fe4
4
+ data.tar.gz: 82a0d86edbf3237931c58d5b4a6a16846f0258004f3846409a887b5c0f25732e
5
+ SHA512:
6
+ metadata.gz: 165408c646da17a65c4eb2d6de9d070b86b3f5bbe662810cce3ecdbc0fd2ce314355b4f02812b9221c5ab28a371abc4c29e39638b8791610916c44a09eea48fd
7
+ data.tar.gz: 0b890450456dcca599557eb4dfc6d7fc4465d8ba9063c4e60d84620e230f03e42580f27b244bdc317cab66a0652b37d15380f0b4f7aa8c1209ce34d908f573ff
data/LICENSE ADDED
@@ -0,0 +1,116 @@
1
+ CC0 1.0 Universal
2
+
3
+ Statement of Purpose
4
+
5
+ The laws of most jurisdictions throughout the world automatically confer
6
+ exclusive Copyright and Related Rights (defined below) upon the creator and
7
+ subsequent owner(s) (each and all, an "owner") of an original work of
8
+ authorship and/or a database (each, a "Work").
9
+
10
+ Certain owners wish to permanently relinquish those rights to a Work for the
11
+ purpose of contributing to a commons of creative, cultural and scientific
12
+ works ("Commons") that the public can reliably and without fear of later
13
+ claims of infringement build upon, modify, incorporate in other works, reuse
14
+ and redistribute as freely as possible in any form whatsoever and for any
15
+ purposes, including without limitation commercial purposes. These owners may
16
+ contribute to the Commons to promote the ideal of a free culture and the
17
+ further production of creative, cultural and scientific works, or to gain
18
+ reputation or greater distribution for their Work in part through the use and
19
+ efforts of others.
20
+
21
+ For these and/or other purposes and motivations, and without any expectation
22
+ of additional consideration or compensation, the person associating CC0 with a
23
+ Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
24
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
25
+ and publicly distribute the Work under its terms, with knowledge of his or her
26
+ Copyright and Related Rights in the Work and the meaning and intended legal
27
+ effect of CC0 on those rights.
28
+
29
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
30
+ protected by copyright and related or neighboring rights ("Copyright and
31
+ Related Rights"). Copyright and Related Rights include, but are not limited
32
+ to, the following:
33
+
34
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
35
+ and translate a Work;
36
+
37
+ ii. moral rights retained by the original author(s) and/or performer(s);
38
+
39
+ iii. publicity and privacy rights pertaining to a person's image or likeness
40
+ depicted in a Work;
41
+
42
+ iv. rights protecting against unfair competition in regards to a Work,
43
+ subject to the limitations in paragraph 4(a), below;
44
+
45
+ v. rights protecting the extraction, dissemination, use and reuse of data in
46
+ a Work;
47
+
48
+ vi. database rights (such as those arising under Directive 96/9/EC of the
49
+ European Parliament and of the Council of 11 March 1996 on the legal
50
+ protection of databases, and under any national implementation thereof,
51
+ including any amended or successor version of such directive); and
52
+
53
+ vii. other similar, equivalent or corresponding rights throughout the world
54
+ based on applicable law or treaty, and any national implementations thereof.
55
+
56
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
57
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
58
+ unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
59
+ and Related Rights and associated claims and causes of action, whether now
60
+ known or unknown (including existing as well as future claims and causes of
61
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
62
+ duration provided by applicable law or treaty (including future time
63
+ extensions), (iii) in any current or future medium and for any number of
64
+ copies, and (iv) for any purpose whatsoever, including without limitation
65
+ commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
66
+ the Waiver for the benefit of each member of the public at large and to the
67
+ detriment of Affirmer's heirs and successors, fully intending that such Waiver
68
+ shall not be subject to revocation, rescission, cancellation, termination, or
69
+ any other legal or equitable action to disrupt the quiet enjoyment of the Work
70
+ by the public as contemplated by Affirmer's express Statement of Purpose.
71
+
72
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
73
+ judged legally invalid or ineffective under applicable law, then the Waiver
74
+ shall be preserved to the maximum extent permitted taking into account
75
+ Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
76
+ is so judged Affirmer hereby grants to each affected person a royalty-free,
77
+ non transferable, non sublicensable, non exclusive, irrevocable and
78
+ unconditional license to exercise Affirmer's Copyright and Related Rights in
79
+ the Work (i) in all territories worldwide, (ii) for the maximum duration
80
+ provided by applicable law or treaty (including future time extensions), (iii)
81
+ in any current or future medium and for any number of copies, and (iv) for any
82
+ purpose whatsoever, including without limitation commercial, advertising or
83
+ promotional purposes (the "License"). The License shall be deemed effective as
84
+ of the date CC0 was applied by Affirmer to the Work. Should any part of the
85
+ License for any reason be judged legally invalid or ineffective under
86
+ applicable law, such partial invalidity or ineffectiveness shall not
87
+ invalidate the remainder of the License, and in such case Affirmer hereby
88
+ affirms that he or she will not (i) exercise any of his or her remaining
89
+ Copyright and Related Rights in the Work or (ii) assert any associated claims
90
+ and causes of action with respect to the Work, in either case contrary to
91
+ Affirmer's express Statement of Purpose.
92
+
93
+ 4. Limitations and Disclaimers.
94
+
95
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
96
+ surrendered, licensed or otherwise affected by this document.
97
+
98
+ b. Affirmer offers the Work as-is and makes no representations or warranties
99
+ of any kind concerning the Work, express, implied, statutory or otherwise,
100
+ including without limitation warranties of title, merchantability, fitness
101
+ for a particular purpose, non infringement, or the absence of latent or
102
+ other defects, accuracy, or the present or absence of errors, whether or not
103
+ discoverable, all to the greatest extent permissible under applicable law.
104
+
105
+ c. Affirmer disclaims responsibility for clearing rights of other persons
106
+ that may apply to the Work or any use thereof, including without limitation
107
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
108
+ disclaims responsibility for obtaining any necessary consents, permissions
109
+ or other rights required for any use of the Work.
110
+
111
+ d. Affirmer understands and acknowledges that Creative Commons is not a
112
+ party to this document and has no duty or obligation with respect to this
113
+ CC0 or use of the Work.
114
+
115
+ For more information, please see
116
+ <http://creativecommons.org/publicdomain/zero/1.0/>
data/README.md ADDED
@@ -0,0 +1,125 @@
1
+ # The Minimalist theme
2
+
3
+ *Minimalist is a Jekyll theme, inspired by the [Minimalist](https://github.com/BDHU/minimalist) theme. You can [preview the theme to see what it looks like](http://bdhu.github.io/minimalist), or even [use it today](#usage).*
4
+
5
+ ![Demo of Minimalist](https://raw.githubusercontent.com/BDHU/minimalist/main/minimalist.png)
6
+
7
+ ## Usage
8
+
9
+ To use the Minimalist theme:
10
+
11
+ 1. Add the following line to your Gemfile
12
+
13
+ ```ruby
14
+ gem "jekyll-remote-theme"
15
+ ```
16
+
17
+ then run `bundle install` to install the plugin.
18
+
19
+ 2. Add the following to your site's `_config.yml` to activate the plugin:
20
+
21
+ ```yml
22
+ plugins:
23
+ - jekyll-remote-theme
24
+ ```
25
+
26
+ Note: If you are using a Jekyll version less than 3.5.0, use the `gems` key instead of `plugins`.
27
+
28
+ 3. Add the following line to your `config.yml` to use the theme
29
+
30
+ ```yml
31
+ remote_theme: BDHU/minimalist
32
+ ```
33
+
34
+ then running `bundle exec jekyll serve` for local deployment. Here is a [demo](https://github.com/BDHU/bdhu.github.io) using this theme.
35
+
36
+ An example `_config.yml` file can be found [here](https://github.com/BDHU/bdhu.github.io/blob/master/_config.yml). More info can be found at [Jekyll Remote Theme](https://github.com/benbalter/jekyll-remote-theme).
37
+
38
+ ## Customizing
39
+
40
+ ### Configuration variables
41
+
42
+ Minimalist will respect the following variables, if set in your site's `_config.yml`:
43
+
44
+ ```yml
45
+ title: [The title of your site]
46
+ description: [A short description of your site's purpose]
47
+ ```
48
+
49
+ Additionally, you may choose to set the following optional variables:
50
+
51
+ ```yml
52
+ google_analytics: [Your Google Analytics tracking ID]
53
+ ```
54
+
55
+ Choose light, dark, or automatically adjusting theme based on system theme:
56
+
57
+ ```yml
58
+ color-scheme: auto/light/dark
59
+ ```
60
+
61
+ Specify logo for the website:
62
+
63
+ ```yml
64
+ logo: /assets/img/<logo_file>
65
+ ```
66
+
67
+ Enable favicon by putting a `favicon.ico` in the repo's root directory and add the following line in `config.yml`:
68
+
69
+ ```yml
70
+ favicon: true
71
+ ```
72
+
73
+ For further customizations such as the side bar, you can overwrite the theme's default template. Take a look at the `_includes/sidebar.html` file in this [repo](https://github.com/BDHU/bdhu.github.io) to see how the sidebar is customized.
74
+
75
+ ### Stylesheet
76
+
77
+ If you'd like to add your own custom styles:
78
+
79
+ 1. Create a file called `/assets/css/style.scss` in your site
80
+ 2. Add the following content to the top of the file, exactly as shown:
81
+
82
+ ```scss
83
+ ---
84
+ ---
85
+
86
+ @import "{{ site.theme }}";
87
+ ```
88
+
89
+ 3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
90
+
91
+ *Note: If you'd like to change the theme's Sass variables, you must set new values before the `@import` line in your stylesheet.*
92
+
93
+ ### Layouts
94
+
95
+ If you'd like to change the theme's HTML layout:
96
+
97
+ 1. For some changes such as a custom `favicon`, you can add custom files in your local `_includes` folder. The files [provided with the theme](https://github.com/BDHU/minimalist/tree/master/_includes) provide a starting point and are included by the [original layout template](https://github.com/BDHU/minimalist/blob/master/_layouts/default.html).
98
+ 2. For more extensive changes, [copy the original template](https://github.com/BDHU/minimalist/blob/master/_layouts/default.html) from the theme's repository<br/>(*Pro-tip: click "raw" to make copying easier*)
99
+ 3. Create a file called `/_layouts/default.html` in your site
100
+ 4. Paste the default layout content copied in the first step
101
+ 5. Customize the layout as you'd like
102
+
103
+ For example, this [repository](https://github.com/BDHU/bdhu.github.io) shows how customizations are made on the original theme.
104
+
105
+ ### Customizing Google Analytics code
106
+
107
+ 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.
108
+
109
+ ## Previewing the theme locally
110
+
111
+ If you'd like to preview the theme locally (for example, in the process of proposing a change):
112
+
113
+ 1. Clone down the theme's repository (`git clone https://github.com/BDHU/minimalist`)
114
+ 2. `cd` into the theme's directory
115
+ 3. Run `script/bootstrap` to install the necessary dependencies
116
+ 4. Run `bundle exec jekyll serve` to start the preview server
117
+ 5. Visit [`localhost:4000`](http://localhost:4000) in your browser to preview the theme
118
+
119
+ ## Running tests
120
+
121
+ 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.
122
+
123
+ ## Contributors
124
+
125
+ Special thanks to [@godalming123](https://github.com/godalming123) for adding dark mode support. Also thank [@solvaholic](https://github.com/solvaholic), [@tildehacker](https://github.com/tildehacker), and other contributors for making multiple bug fixes and improvements. All contributions are welcome.
@@ -0,0 +1 @@
1
+ <p><small>Powered by <a href="https://jekyllrb.com/">Jekyll</a> &mdash; Theme by <a href="https://www.bodunhu.com/">BDHU</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://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/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,11 @@
1
+ <div class="link-wrapper-mobile">
2
+ <a href="https://scholar.google.com/citations?user=zR6afi8AAAAJ">[Google Scholar]</a>
3
+ <span style="margin-left: 5px;"></span>
4
+ <a href="https://github.com/BDHU" rel="me">[GitHub]</a>
5
+ <span style="margin-left: 5px;"></span>
6
+ <a href="https://twitter.com/BodunHu">[Twitter]</a>
7
+ <span style="margin-left: 5px;"></span>
8
+ <a href="https://www.bodunhu.com/blog/">[Blog]</a>
9
+ <span style="margin-left: 5px;"></span>
10
+ <a href="https://github.com/BDHU/minimalist">[Project Repository]</a>
11
+ </div>
@@ -0,0 +1,19 @@
1
+ <div class="link-wrapper">
2
+ <style scoped>
3
+ ul.link a {
4
+ color:var(--clr-h1-and-bold);
5
+ text-decoration:none;
6
+ }
7
+
8
+ ul.link a:hover, a:focus {
9
+ color: var(--clr-a-text-hvr);
10
+ }
11
+ </style>
12
+ <ul class="link">
13
+ <li><a href="https://scholar.google.com/citations?user=zR6afi8AAAAJ"><i class="fa-solid fa-user-graduate"></i> Google Scholar</a></li>
14
+ <li><a href="https://github.com/BDHU"><i class="fa-brands fa-github"></i> GitHub</a></li>
15
+ <li><a href="https://twitter.com/BodunHu"><i class="fa-brands fa-twitter"></i> Twitter</a></li>
16
+ <li><a href="https://www.bodunhu.com/blog/"><i class="fa-solid fa-pen"></i> Blog</a></li>
17
+ <li><a href="https://github.com/BDHU/minimalist"><i class="fa-duotone fa-code"></i> Project Repository</a></li>
18
+ </ul>
19
+ </div>
@@ -0,0 +1,66 @@
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
+
19
+ <link rel="preload" href="{{site.logo | relative_url}}" as="image">
20
+ <!--[if lt IE 9]>
21
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
22
+ <![endif]-->
23
+ {% include head-custom.html %}
24
+ </head>
25
+ <body>
26
+ <div class="wrapper">
27
+ <div class="sidebar">
28
+ <header>
29
+ {% if site.logo %}
30
+ <img class="img-circle" rel="prefetch" src="{{site.logo | relative_url}}" alt="Logo">
31
+ {% endif %}
32
+
33
+ {% if site.blank_title %}
34
+ <h1>{{ site.title | default: site.github.repository_name }}</h1>
35
+ {% else %}
36
+ <h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
37
+ {% endif %}
38
+
39
+ {% if site.email %}
40
+ <p class="addr">&#x2709;&nbsp;{{ site.email }}</p>
41
+ {% endif %}
42
+
43
+ <p>{{ site.description | default: site.github.project_tagline }}</p>
44
+
45
+ {% include sidebar.html %}
46
+
47
+ </header>
48
+
49
+ {% include links-mobile.html %}
50
+
51
+ <div class="sidebar-footer">
52
+ {%- include footer.html -%}
53
+ </div>
54
+ </div>
55
+ <section>
56
+
57
+ {{ content }}
58
+
59
+ </section>
60
+ <footer>
61
+ {%- include footer.html -%}
62
+ </footer>
63
+ </div>
64
+ <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
65
+ </body>
66
+ </html>
@@ -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
+ // miselainies
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
+ // misilainius
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
+ // misilainius
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%; //more on dt's https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_dd_test
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
+ }