jekyll-theme-fica 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +89 -0
- data/_includes/Custom-Head.html +9 -0
- data/_includes/Footer.html +72 -0
- data/_includes/Google-Analytics.html +10 -0
- data/_includes/Head.html +11 -0
- data/_includes/Header.html +28 -0
- data/_layouts/default.html +13 -0
- data/_layouts/home.html +22 -0
- data/_layouts/post.html +34 -0
- data/_layouts/post_home.html +59 -0
- data/_sass/Base.scss +288 -0
- data/_sass/Color_scheme.scss +117 -0
- data/_sass/Custom-Styles.scss +2 -0
- data/_sass/Custom-Variables.scss +1 -0
- data/_sass/Initialize.scss +71 -0
- data/_sass/Layout.scss +526 -0
- data/assets/css/Styles.scss +16 -0
- data/assets/fica-icons.svg +54 -0
- data/assets/img/fica_ad.png +0 -0
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22d3ef716ca6e5badb776ad02fade07c0f2dfee8c5e2a916614d47636f0971f0
|
4
|
+
data.tar.gz: 5b4cf1c8562afddcfb734ab3550687b6b598f92da278e67fbd3bedaac5e6aed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72376230cac700d01bb2e833599a38a3f8545b1c22c137e6b5d800ac7614b77def3ed0f74a2a8700078cb521e725b459b0f384fc28663756d874086966ffd052
|
7
|
+
data.tar.gz: 7717018c3f26f620548fe41b82f44f8e213f0678e8a4ff1df6ac602966cc0f8eac9fa704c0788dd45f6ff28e65382e5d9df5e03b9c5fc07fec293440c6c3809e
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Involts
|
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,89 @@
|
|
1
|
+
<img src="logo.png" align="left" />
|
2
|
+
<h1 align="left">Fica Theme</h1>
|
3
|
+
|
4
|
+
You can preview the theme to [see what it looks like](https://involts.github.io/jekyll-theme-fica/) or
|
5
|
+
[download it today !](https://github.com/Involts/jekyll-theme-fica/zipball/master)
|
6
|
+
|
7
|
+
## Installation and first use
|
8
|
+
|
9
|
+
Add this line to your Jekyll site's `Gemfile`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "jekyll-theme-fica"
|
13
|
+
```
|
14
|
+
|
15
|
+
And add this line to your Jekyll site's `_config.yml`:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
theme: jekyll-theme-fica
|
19
|
+
```
|
20
|
+
|
21
|
+
to install all the dependencies:
|
22
|
+
|
23
|
+
$ script/bootstrap
|
24
|
+
|
25
|
+
and run, to run your jekyll site:
|
26
|
+
|
27
|
+
$ script/build
|
28
|
+
## Note:
|
29
|
+
Before publishing the site to github-pages, replace the varable of baseurl:
|
30
|
+
|
31
|
+
if you have brought a doman remove the varable below:
|
32
|
+
```
|
33
|
+
# _config.yml
|
34
|
+
baseurl: [Your Repository Name]
|
35
|
+
```
|
36
|
+
|
37
|
+
# Customizations
|
38
|
+
|
39
|
+
## Customizing '_config.yml'
|
40
|
+
|
41
|
+
Cayman will respect the following variables, in your '_config.yml' file:
|
42
|
+
|
43
|
+
```
|
44
|
+
title: [The title of your site]
|
45
|
+
author: [The auther of the site]
|
46
|
+
name: [The owner of the site]
|
47
|
+
description: [A short description of your site's purpose]
|
48
|
+
```
|
49
|
+
Change the links of your site header:
|
50
|
+
```
|
51
|
+
header:
|
52
|
+
header_name_1: Download
|
53
|
+
header_link_1: https://github.com/Involts/jekyll-theme-fica/zipball/master
|
54
|
+
header_name_2: Post
|
55
|
+
header_link_2: /Post/
|
56
|
+
header_name_3: About
|
57
|
+
header_link_3: /About/
|
58
|
+
```
|
59
|
+
## Customizing the Styles, Vriables and Color Scheme:
|
60
|
+
if you like to override the default styles of the theme, go to '_sass/Custom-Styles.scss'.
|
61
|
+
if you like to override the default Variables of the theme, go to '_sass/Custom-Variable.scss'.
|
62
|
+
if you like to change the colors of the site, go to '_sass/Color_scheme.scss'.
|
63
|
+
|
64
|
+
|
65
|
+
## How to replace the logo on the header ?
|
66
|
+
|
67
|
+
Replace logo.png at the top of your site.
|
68
|
+
Make sure that the logo is 16x16 px to avoid overlapping the title.
|
69
|
+
|
70
|
+
## how to replace the pictue at the homepage ?
|
71
|
+
|
72
|
+
Replace 'assets/img/fica_ad.png'.
|
73
|
+
# Customizing Google Analytics code
|
74
|
+
|
75
|
+
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/Google-Analytics.html in your Jekyll site.
|
76
|
+
|
77
|
+
# Contributing
|
78
|
+
|
79
|
+
Bug reports and pull requests are welcome on GitHub at [Fica Theme](https://github.com/Involts/hello). 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.
|
80
|
+
|
81
|
+
# Development
|
82
|
+
|
83
|
+
To set up your environment to develop this theme, run `script/bootstrap`.
|
84
|
+
|
85
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `script/build` and open your browser at `http://localhost:4000/jekyll-theme-fica/` or 'http://localhost:4000(site.baseurl)'. This starts a Jekyll server using the Fica 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.
|
86
|
+
## License
|
87
|
+
|
88
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
89
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
|
2
|
+
|
3
|
+
<!-- Setup Google Analytics -->
|
4
|
+
{% include google-analytics.html %}
|
5
|
+
|
6
|
+
<!-- You can set your favicon here -->
|
7
|
+
<!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
|
8
|
+
|
9
|
+
<!-- end custom head snippets -->
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<footer class="site-footer h-card">
|
2
|
+
<data class="u-url" href="{{ "{{site.baseurl}}/" | relative_url }}"></data>
|
3
|
+
<div class="wrapper">
|
4
|
+
|
5
|
+
<div class="footer-col-wrapper">
|
6
|
+
|
7
|
+
<div class="footer-col">
|
8
|
+
<li class="Links_footer">
|
9
|
+
</svg><span>find me on</span>
|
10
|
+
</a>
|
11
|
+
</li>
|
12
|
+
<li class="Links_footer">
|
13
|
+
<a href="https://github.com/Involts">
|
14
|
+
<svg class="svg-icon github">
|
15
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#github' | relative_url }}"></use>
|
16
|
+
</svg><span>Github</span>
|
17
|
+
</a>
|
18
|
+
</li>
|
19
|
+
<li class="Links_footer">
|
20
|
+
<a href="/">
|
21
|
+
<svg class="svg-icon youtube">
|
22
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#youtube' | relative_url }}"></use>
|
23
|
+
</svg><span>Youtube</span>
|
24
|
+
</a>
|
25
|
+
</li>
|
26
|
+
<li class="Links_footer">
|
27
|
+
<a href="/">
|
28
|
+
<svg class="svg-icon stackoverflow">
|
29
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#stackoverflow' | relative_url }}"></use>
|
30
|
+
</svg>Stackoverflow</span>
|
31
|
+
</a>
|
32
|
+
</li>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="footer-middle">
|
36
|
+
<li class="Links_footer">
|
37
|
+
</svg><span>You're site</span>
|
38
|
+
</a>
|
39
|
+
</li>
|
40
|
+
<li class="Links_footer">
|
41
|
+
<a
|
42
|
+
href="/">
|
43
|
+
<svg class="svg-icon github">
|
44
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#github' | relative_url }}"></use>
|
45
|
+
</svg><span>sit amet</span>
|
46
|
+
</a>
|
47
|
+
</li>
|
48
|
+
<li class="Links_footer">
|
49
|
+
<a href="/">
|
50
|
+
<svg class="svg-icon github">
|
51
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#github' | relative_url }}"></use>
|
52
|
+
</svg><span>consectetur</span>
|
53
|
+
</a>
|
54
|
+
</li>
|
55
|
+
<li class="Links_footer">
|
56
|
+
<a href="/">
|
57
|
+
<svg class="svg-icon github">
|
58
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#github' | relative_url }}"></use>
|
59
|
+
</svg><span>ipsum</span>
|
60
|
+
</a>
|
61
|
+
</li>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
<div class="footer-last">
|
65
|
+
<li class="Product_footer">{{site.title}}</li>
|
66
|
+
<li class="Product_footer">{{site.description}}</li>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
</footer>
|
72
|
+
|
@@ -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 %}
|
data/_includes/Head.html
ADDED
@@ -0,0 +1,11 @@
|
|
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
|
+
<link rel="stylesheet" href="{{ "/assets/css/Styles.css" | relative_url }}">
|
6
|
+
{%- if page.home-%}
|
7
|
+
<title>{{page.site-title}}</title>
|
8
|
+
{%- endif -%}
|
9
|
+
<title>{{page.site-title}} | {{site.title}}</title>
|
10
|
+
{% include Google-Analytics.html %}
|
11
|
+
</head>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<header class="site-header">
|
2
|
+
<data class="u-url" href="{{ "{{site.baseurl}}/" | relative_url }}"></data>
|
3
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
4
|
+
<div class="wrapper_header"><a class="site-title" rel="author" href="{{site.baseurl}}/">{{site.title}}</a><nav class="site-nav">
|
5
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
6
|
+
<label for="nav-trigger">
|
7
|
+
<span class="menu-icon">
|
8
|
+
<svg viewBox="0 0 18 15" width="18px" height="15px">
|
9
|
+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
|
10
|
+
</svg>
|
11
|
+
</span>
|
12
|
+
</label>
|
13
|
+
<div class="trigger">
|
14
|
+
<a class="page-link" href="{{site.baseurl}}{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
|
15
|
+
<a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
|
16
|
+
<a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
|
17
|
+
</div>
|
18
|
+
</nav></div>
|
19
|
+
<div class="trigger">
|
20
|
+
{%- for path in page_paths -%}
|
21
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
22
|
+
{%- if my_page.title -%}
|
23
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
24
|
+
{%- endif -%}
|
25
|
+
{%- endfor -%}
|
26
|
+
</div>
|
27
|
+
</nav>
|
28
|
+
</header>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
{% include Head.html %}
|
4
|
+
<body>
|
5
|
+
{% include Header.html %}
|
6
|
+
<main class="page-content" aria-label="Content">
|
7
|
+
<div class="wrapper">
|
8
|
+
{{ content }}
|
9
|
+
</div>
|
10
|
+
</main>
|
11
|
+
{% include Footer.html %}
|
12
|
+
</body>
|
13
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
{%- include Head.html -%}
|
4
|
+
|
5
|
+
<body>
|
6
|
+
{%- include Header.html -%}
|
7
|
+
<header class="page-header" role="banner">
|
8
|
+
<div class="wrapper">
|
9
|
+
<p class="page-header-title">{{site.title}}</p>
|
10
|
+
<p class="page-header-description">{{site.description}}</p>
|
11
|
+
<img src="{{site.baseurl}}/assets/img/fica_ad.png" class="header-pic">
|
12
|
+
</div>
|
13
|
+
</header>
|
14
|
+
<main class="page-content" aria-label="Content">
|
15
|
+
<div class="wrapper">
|
16
|
+
{{ content }}
|
17
|
+
</div>
|
18
|
+
</main>
|
19
|
+
{%- include Footer.html -%}
|
20
|
+
</body>
|
21
|
+
|
22
|
+
</html>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
5
|
+
|
6
|
+
<header class="post-header">
|
7
|
+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
|
8
|
+
<p class="post-meta">
|
9
|
+
{%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
|
10
|
+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
11
|
+
{{ page.date | date: date_format }}
|
12
|
+
</time>
|
13
|
+
{%- if page.modified_date -%}
|
14
|
+
~
|
15
|
+
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
|
16
|
+
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
|
17
|
+
{{ mdate | date: date_format }}
|
18
|
+
</time>
|
19
|
+
{%- endif -%}
|
20
|
+
{%- if page.author -%}
|
21
|
+
• {% for author in page.author %}
|
22
|
+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
23
|
+
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
|
24
|
+
{%- if forloop.last == false %}, {% endif -%}
|
25
|
+
{% endfor %}
|
26
|
+
{%- endif -%}</p>
|
27
|
+
<a href="{{site.baseurl}}/Post/" class="btn">Go Back</a>
|
28
|
+
</header>
|
29
|
+
<div class="post-content e-content" itemprop="articleBody">
|
30
|
+
{{ content }}
|
31
|
+
|
32
|
+
|
33
|
+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
|
34
|
+
</article>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="home">
|
5
|
+
{%- if page.title -%}
|
6
|
+
<h1 class="page-heading">{{ page.title }}</h1>
|
7
|
+
{%- endif -%}
|
8
|
+
|
9
|
+
{{ content }}
|
10
|
+
|
11
|
+
<h1>Posts</h1>
|
12
|
+
|
13
|
+
{%- if site.paginate -%}
|
14
|
+
{% assign posts = paginator.posts %}
|
15
|
+
{% else %}
|
16
|
+
{% assign posts = site.posts %}
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
|
20
|
+
{%- if posts.size > 0 -%}
|
21
|
+
{%- if page.list_title -%}
|
22
|
+
<h2 class="post-list-heading">{{ page.list_title }}</h2>
|
23
|
+
{%- endif -%}
|
24
|
+
<ul class="post-list">
|
25
|
+
{%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
|
26
|
+
{%- for post in posts -%}
|
27
|
+
<li>
|
28
|
+
<h3>
|
29
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
30
|
+
{{ post.title | escape }}
|
31
|
+
</a>
|
32
|
+
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
33
|
+
</h3>
|
34
|
+
{%- if site.show_descriptions -%}
|
35
|
+
{{ post.excerpt }}
|
36
|
+
{%- endif -%}
|
37
|
+
</li>
|
38
|
+
{%- endfor -%}
|
39
|
+
</ul>
|
40
|
+
|
41
|
+
{%- if site.paginate -%}
|
42
|
+
<div class="pager">
|
43
|
+
<ul class="pagination">
|
44
|
+
{%- if paginator.previous_page %}
|
45
|
+
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
|
46
|
+
{%- else %}
|
47
|
+
<li><div class="pager-edge">•</div></li>
|
48
|
+
{%- endif %}
|
49
|
+
<li><div class="current-page">{{ paginator.page }}</div></li>
|
50
|
+
{%- if paginator.next_page %}
|
51
|
+
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
|
52
|
+
{%- else %}
|
53
|
+
<li><div class="pager-edge">•</div></li>
|
54
|
+
{%- endif %}
|
55
|
+
</ul>
|
56
|
+
</div>
|
57
|
+
{%- endif %}
|
58
|
+
|
59
|
+
{%- endif -%}
|
data/_sass/Base.scss
ADDED
@@ -0,0 +1,288 @@
|
|
1
|
+
html {
|
2
|
+
font-size: $base-font-size;
|
3
|
+
}
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Reset some basic elements
|
7
|
+
*/
|
8
|
+
body, h1, h2, h3, h4, h5, h6,
|
9
|
+
p, blockquote, pre, hr,
|
10
|
+
dl, dd, ol, ul, figure {
|
11
|
+
margin: 0;
|
12
|
+
padding: 0;
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
body {
|
17
|
+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
|
18
|
+
color: $text-color;
|
19
|
+
background-color: $background-color;
|
20
|
+
-webkit-text-size-adjust: 100%;
|
21
|
+
-webkit-font-feature-settings: "kern" 1;
|
22
|
+
-moz-font-feature-settings: "kern" 1;
|
23
|
+
-o-font-feature-settings: "kern" 1;
|
24
|
+
font-feature-settings: "kern" 1;
|
25
|
+
font-kerning: normal;
|
26
|
+
display: flex;
|
27
|
+
min-height: 100vh;
|
28
|
+
flex-direction: column;
|
29
|
+
overflow-wrap: break-word;
|
30
|
+
}
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Set `margin-bottom` to maintain vertical rhythm
|
34
|
+
*/
|
35
|
+
h1, h2, h3, h4, h5, h6,
|
36
|
+
p, blockquote, pre,
|
37
|
+
ul, ol, dl, figure,
|
38
|
+
%vertical-rhythm {
|
39
|
+
margin-bottom: $spacing-unit / 2;
|
40
|
+
}
|
41
|
+
|
42
|
+
hr {
|
43
|
+
margin-top: $spacing-unit;
|
44
|
+
margin-bottom: $spacing-unit;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* `main` element
|
49
|
+
*/
|
50
|
+
main {
|
51
|
+
display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
|
52
|
+
}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Images
|
56
|
+
*/
|
57
|
+
img {
|
58
|
+
max-width: 100%;
|
59
|
+
vertical-align: middle;
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Figures
|
66
|
+
*/
|
67
|
+
figure > img {
|
68
|
+
display: block;
|
69
|
+
}
|
70
|
+
|
71
|
+
figcaption {
|
72
|
+
font-size: $small-font-size;
|
73
|
+
}
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
/**
|
78
|
+
* Lists
|
79
|
+
*/
|
80
|
+
ul, ol {
|
81
|
+
margin-left: $spacing-unit;
|
82
|
+
}
|
83
|
+
|
84
|
+
li {
|
85
|
+
> ul,
|
86
|
+
> ol {
|
87
|
+
margin-bottom: 0;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Headings
|
95
|
+
*/
|
96
|
+
h2, h3, h4, h5, h6 {
|
97
|
+
font-weight: 650;
|
98
|
+
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
99
|
+
}
|
100
|
+
|
101
|
+
h1 {
|
102
|
+
font-weight: 700;
|
103
|
+
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
104
|
+
font-size: 35px;
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Links
|
110
|
+
*/
|
111
|
+
a {
|
112
|
+
color: $link-base-color;
|
113
|
+
text-decoration: none;
|
114
|
+
transition: $transition-links;
|
115
|
+
|
116
|
+
&:visited {
|
117
|
+
color: $link-visited-color;
|
118
|
+
}
|
119
|
+
|
120
|
+
&:hover {
|
121
|
+
color: $link-hover-color;
|
122
|
+
text-decoration: none;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Blockquotes
|
129
|
+
*/
|
130
|
+
blockquote {
|
131
|
+
color: $blockquote-text-color;
|
132
|
+
border-left: 4px solid $border-color-01;
|
133
|
+
padding-left: $spacing-unit / 2;
|
134
|
+
@include relative-font-size(1.125);
|
135
|
+
font-style: italic;
|
136
|
+
|
137
|
+
> :last-child {
|
138
|
+
margin-bottom: 0;
|
139
|
+
}
|
140
|
+
|
141
|
+
i, em {
|
142
|
+
font-style: normal;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Code formatting
|
150
|
+
*/
|
151
|
+
pre,
|
152
|
+
code {
|
153
|
+
font-family: $code-font-family;
|
154
|
+
font-size: 0.9375em;
|
155
|
+
border: 1px solid $border-color-01;
|
156
|
+
border-radius: 4px;
|
157
|
+
background-color: $code-background-color;
|
158
|
+
}
|
159
|
+
|
160
|
+
code {
|
161
|
+
padding: 1px 5px;
|
162
|
+
}
|
163
|
+
|
164
|
+
pre {
|
165
|
+
padding: 8px 12px;
|
166
|
+
overflow-x: auto;
|
167
|
+
|
168
|
+
> code {
|
169
|
+
border: 0;
|
170
|
+
padding-right: 0;
|
171
|
+
padding-left: 0;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
.highlight {
|
176
|
+
border-radius: 3px;
|
177
|
+
background: $code-background-color;
|
178
|
+
@extend %vertical-rhythm;
|
179
|
+
|
180
|
+
.highlighter-rouge & {
|
181
|
+
background: $code-background-color;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Wrapper
|
189
|
+
*/
|
190
|
+
.wrapper {
|
191
|
+
max-width: calc(#{$content-width} - (#{$spacing-unit}));
|
192
|
+
margin-right: auto;
|
193
|
+
margin-left: auto;
|
194
|
+
padding-right: $spacing-unit / 2;
|
195
|
+
padding-left: $spacing-unit / 2;
|
196
|
+
@extend %clearfix;
|
197
|
+
|
198
|
+
@media screen and (min-width: $on-large) {
|
199
|
+
max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
|
200
|
+
padding-right: $spacing-unit;
|
201
|
+
padding-left: $spacing-unit;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
.wrapper_header {
|
206
|
+
padding-left: 20px;
|
207
|
+
padding-right: auto;
|
208
|
+
@extend %clearfix;
|
209
|
+
@media screen and (min-width: $on-medium) {
|
210
|
+
padding-right: 70px;
|
211
|
+
padding-left: 70px;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
/**
|
218
|
+
* Clearfix
|
219
|
+
*/
|
220
|
+
%clearfix:after {
|
221
|
+
content: "";
|
222
|
+
display: table;
|
223
|
+
clear: both;
|
224
|
+
}
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Icons
|
230
|
+
*/
|
231
|
+
|
232
|
+
.stackoverflow {
|
233
|
+
color: #f66a0a;
|
234
|
+
}
|
235
|
+
|
236
|
+
.youtube {
|
237
|
+
color: #dd0505;
|
238
|
+
}
|
239
|
+
|
240
|
+
.github {
|
241
|
+
color: #f9f9f9
|
242
|
+
}
|
243
|
+
|
244
|
+
.svg-icon {
|
245
|
+
width: 16px;
|
246
|
+
height: 16px;
|
247
|
+
display: inline-block;
|
248
|
+
fill: currentColor;
|
249
|
+
padding: 5px 3px 2px 5px;
|
250
|
+
vertical-align: text-bottom;
|
251
|
+
}
|
252
|
+
|
253
|
+
|
254
|
+
/**
|
255
|
+
* Tables
|
256
|
+
*/
|
257
|
+
table {
|
258
|
+
margin-bottom: $spacing-unit;
|
259
|
+
width: 100%;
|
260
|
+
text-align: $table-text-align;
|
261
|
+
color: $table-text-color;
|
262
|
+
border-collapse: collapse;
|
263
|
+
border: 1px solid $table-border-color;
|
264
|
+
tr {
|
265
|
+
&:nth-child(even) {
|
266
|
+
background-color: $table-zebra-color;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
th, td {
|
270
|
+
padding: ($spacing-unit / 3) ($spacing-unit / 2);
|
271
|
+
}
|
272
|
+
th {
|
273
|
+
background-color: $table-header-bg-color;
|
274
|
+
border: 1px solid $table-header-border;
|
275
|
+
}
|
276
|
+
td {
|
277
|
+
border: 1px solid $table-border-color;
|
278
|
+
}
|
279
|
+
|
280
|
+
@include media-query($on-laptop) {
|
281
|
+
display: block;
|
282
|
+
overflow-x: auto;
|
283
|
+
-webkit-overflow-scrolling: touch;
|
284
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
|
288
|
+
|