type-on-strap 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +311 -0
- data/_includes/disqus.html +10 -0
- data/_includes/footer.html +13 -0
- data/_includes/head.html +69 -0
- data/_includes/icons.html +230 -0
- data/_includes/navbar.html +56 -0
- data/_includes/post_nav.html +20 -0
- data/_includes/tags_list.html +19 -0
- data/_layouts/bootstrap.html +38 -0
- data/_layouts/default.html +11 -0
- data/_layouts/home.html +59 -0
- data/_layouts/page.html +23 -0
- data/_layouts/post.html +30 -0
- data/_sass/base/_global.scss +147 -0
- data/_sass/base/_utility.scss +71 -0
- data/_sass/base/_variables.scss +43 -0
- data/_sass/external/_reset.scss +427 -0
- data/_sass/external/_syntax.scss +63 -0
- data/_sass/includes/_footer.scss +17 -0
- data/_sass/includes/_navbar.scss +132 -0
- data/_sass/includes/_post_nav.scss +21 -0
- data/_sass/layouts/_index.scss +106 -0
- data/_sass/layouts/_page.scss +10 -0
- data/_sass/layouts/_portfolio.scss +77 -0
- data/_sass/layouts/_posts.scss +114 -0
- data/_sass/layouts/_search.scss +55 -0
- data/_sass/layouts/_tags.scss +52 -0
- data/_sass/type-on-strap.scss +21 -0
- data/assets/css/bootstrap-iso.min.css +8 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/katex.min.css +1 -0
- data/assets/css/main.scss +4 -0
- data/assets/favicon.ico +0 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/KaTeX_AMS-Regular.eot +0 -0
- data/assets/fonts/KaTeX_AMS-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_AMS-Regular.woff +0 -0
- data/assets/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Bold.eot +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Fraktur-Bold.eot +0 -0
- data/assets/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- data/assets/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- data/assets/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- data/assets/fonts/KaTeX_Fraktur-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Main-Bold.eot +0 -0
- data/assets/fonts/KaTeX_Main-Bold.ttf +0 -0
- data/assets/fonts/KaTeX_Main-Bold.woff +0 -0
- data/assets/fonts/KaTeX_Main-Bold.woff2 +0 -0
- data/assets/fonts/KaTeX_Main-Italic.eot +0 -0
- data/assets/fonts/KaTeX_Main-Italic.ttf +0 -0
- data/assets/fonts/KaTeX_Main-Italic.woff +0 -0
- data/assets/fonts/KaTeX_Main-Italic.woff2 +0 -0
- data/assets/fonts/KaTeX_Main-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Main-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Main-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Main-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Math-BoldItalic.eot +0 -0
- data/assets/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- data/assets/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- data/assets/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- data/assets/fonts/KaTeX_Math-Italic.eot +0 -0
- data/assets/fonts/KaTeX_Math-Italic.ttf +0 -0
- data/assets/fonts/KaTeX_Math-Italic.woff +0 -0
- data/assets/fonts/KaTeX_Math-Italic.woff2 +0 -0
- data/assets/fonts/KaTeX_Math-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Math-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Math-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Math-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_SansSerif-Bold.eot +0 -0
- data/assets/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- data/assets/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- data/assets/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- data/assets/fonts/KaTeX_SansSerif-Italic.eot +0 -0
- data/assets/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- data/assets/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- data/assets/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- data/assets/fonts/KaTeX_SansSerif-Regular.eot +0 -0
- data/assets/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- data/assets/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Script-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Script-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Script-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Script-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Size1-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Size1-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Size1-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Size2-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Size2-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Size2-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Size3-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Size3-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Size3-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Size4-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Size4-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Size4-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Typewriter-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/img/pexels/README.md +51 -0
- data/assets/img/pexels/book-coffee.jpeg +0 -0
- data/assets/img/pexels/book-glass.jpeg +0 -0
- data/assets/img/pexels/circuit.jpeg +0 -0
- data/assets/img/pexels/computer.jpeg +0 -0
- data/assets/img/pexels/computer2.jpeg +0 -0
- data/assets/img/pexels/desk-messy.jpeg +0 -0
- data/assets/img/pexels/desk-nerd.jpeg +0 -0
- data/assets/img/pexels/desk-open.jpeg +0 -0
- data/assets/img/pexels/desk-top.jpeg +0 -0
- data/assets/img/pexels/disco-full.jpeg +0 -0
- data/assets/img/pexels/look-out.jpeg +0 -0
- data/assets/img/pexels/motherboard.jpg +0 -0
- data/assets/img/pexels/old-phone.jpeg +0 -0
- data/assets/img/pexels/retro-school.jpeg +0 -0
- data/assets/img/pexels/scrabble-blog.jpeg +0 -0
- data/assets/img/pexels/scrabble-search.jpeg +0 -0
- data/assets/img/pexels/search-map.jpeg +0 -0
- data/assets/img/pexels/triangular.jpeg +0 -0
- data/assets/img/pexels/wall_e.jpeg +0 -0
- data/assets/img/portfolio/cabin.png +0 -0
- data/assets/img/portfolio/cake.png +0 -0
- data/assets/img/portfolio/circus.png +0 -0
- data/assets/img/portfolio/game.png +0 -0
- data/assets/img/portfolio/github.png +0 -0
- data/assets/img/portfolio/jekyllblog2.png +0 -0
- data/assets/img/portfolio/ninja.png +0 -0
- data/assets/img/portfolio/safe.png +0 -0
- data/assets/img/portfolio/submarine.png +0 -0
- data/assets/img/portfolio/toh.png +0 -0
- data/assets/img/portfolio/ttt.png +0 -0
- data/assets/img/sample.png +0 -0
- data/assets/img/sample2.png +0 -0
- data/assets/img/sample3.png +0 -0
- data/assets/img/thumbnails/desk-messy.jpeg +0 -0
- data/assets/img/triangle.png +0 -0
- data/assets/img/triangle.svg +34 -0
- data/assets/js/bootstrap.min.js +12 -0
- data/assets/js/jekyll-search.min.js +6 -0
- data/assets/js/jquery-3.2.1.min.js +5 -0
- data/assets/js/katex.min.js +6 -0
- data/assets/js/katex_init.js +26 -0
- data/assets/js/main.min.js +1 -0
- data/assets/js/navbar.js +31 -0
- data/pages/portfolio.html +26 -0
- data/pages/search.html +32 -0
- data/pages/search.json +28 -0
- data/pages/tags.html +97 -0
- metadata +289 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
<header class="site-header">
|
2
|
+
|
3
|
+
<!-- Logo and title -->
|
4
|
+
<div class="branding">
|
5
|
+
<a href="{{ site.baseurl }}/">
|
6
|
+
<img class="avatar" src="{{ site.baseurl }}/{{ site.theme_settings.avatar }}" alt=""/>
|
7
|
+
</a>
|
8
|
+
|
9
|
+
<h1 class="site-title">
|
10
|
+
<a href="{{ site.baseurl }}/">{{ site.theme_settings.title }}</a>
|
11
|
+
</h1>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<!-- Toggle menu -->
|
15
|
+
<nav class="clear">
|
16
|
+
<a id="pull" class="toggle" href="#">
|
17
|
+
<i class="fa fa-bars fa-lg"></i>
|
18
|
+
</a>
|
19
|
+
|
20
|
+
<!-- Menu -->
|
21
|
+
<ul>
|
22
|
+
{% for page in site.pages %}
|
23
|
+
{% if page.title and page.hide != true %}
|
24
|
+
<li>
|
25
|
+
<a class="clear" href="{{ page.url | relative_url }}">
|
26
|
+
{{ page.title }}
|
27
|
+
</a>
|
28
|
+
</li>
|
29
|
+
{% endif %}
|
30
|
+
{% endfor %}
|
31
|
+
{% if site.theme_settings.portfolio %}
|
32
|
+
<li>
|
33
|
+
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/portfolio">
|
34
|
+
Portfolio
|
35
|
+
</a>
|
36
|
+
</li>
|
37
|
+
{% endif %}
|
38
|
+
{% if site.theme_settings.portfolio %}
|
39
|
+
<li>
|
40
|
+
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/search">
|
41
|
+
Search
|
42
|
+
</a>
|
43
|
+
</li>
|
44
|
+
{% endif %}
|
45
|
+
{% if site.theme_settings.portfolio %}
|
46
|
+
<li>
|
47
|
+
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/tags">
|
48
|
+
Tags
|
49
|
+
</a>
|
50
|
+
</li>
|
51
|
+
{% endif %}
|
52
|
+
|
53
|
+
</ul>
|
54
|
+
|
55
|
+
</nav>
|
56
|
+
</header>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div id="post-nav">
|
2
|
+
{% if page.previous.url %}
|
3
|
+
<div id="previous-post" class="post-nav-post">
|
4
|
+
<p>{{ site.theme_settings.str_previous_post }}</p>
|
5
|
+
<a href="{{ site.baseurl }}{{ page.previous.url }}">
|
6
|
+
{{ page.previous.title }}
|
7
|
+
</a>
|
8
|
+
</div>
|
9
|
+
{% endif %}
|
10
|
+
{% if page.next.url %}
|
11
|
+
<div id="next-post" class="post-nav-post">
|
12
|
+
<p>{{ site.theme_settings.str_next_post }}</p>
|
13
|
+
<a href="{{ site.baseurl }}{{ page.next.url }}">
|
14
|
+
{{ page.next.title }}
|
15
|
+
</a>
|
16
|
+
</div>
|
17
|
+
{% endif %}
|
18
|
+
</div>
|
19
|
+
|
20
|
+
{% endif %}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{% assign tags = include.tags | split:'|' | sort | uniq %}
|
2
|
+
|
3
|
+
{% if include.tags.size > 0 %}
|
4
|
+
<footer>
|
5
|
+
<div class="tag-list">
|
6
|
+
{% if include.tags.size == 1 %}
|
7
|
+
<div class="meta">Tag</div>
|
8
|
+
{% elsif include.tags.size > 1 %}
|
9
|
+
<div class="meta">Tags</div>
|
10
|
+
{% endif %}
|
11
|
+
|
12
|
+
{% for tag in tags %}
|
13
|
+
<a class="button" href="{{site.baseurl}}/tags#{{tag}}">
|
14
|
+
<p><i class="fa fa-tag fa-fw"></i> {{ tag }}</p>
|
15
|
+
</a>
|
16
|
+
{% endfor %}
|
17
|
+
</div>
|
18
|
+
</footer>
|
19
|
+
{% endif %}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<!-- Bootstrap-3.3.7 isolation CSS -->
|
6
|
+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/bootstrap-iso.min.css">
|
7
|
+
|
8
|
+
<!-- Bootstrap JS -->
|
9
|
+
<script src="{{ site.baseurl }}/assets/js/bootstrap.min.js"></script>
|
10
|
+
|
11
|
+
<article {% if page.feature-img %}class="feature-image" {% endif %}>
|
12
|
+
<header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
|
13
|
+
<h1 class="title">{{ page.title }}</h1> {% if page.subtitle %}
|
14
|
+
<h2 class="subtitle">{{ page.subtitle }}</h2>{% endif %}
|
15
|
+
</header>
|
16
|
+
|
17
|
+
{% if page.description %}
|
18
|
+
<section class="post-content">
|
19
|
+
{{ page.description }}
|
20
|
+
</section>
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<!-- Bootstrap will work within this div -->
|
26
|
+
<section>
|
27
|
+
<div class="bootstrap-iso">
|
28
|
+
<div class="col-md-1"></div>
|
29
|
+
<div class="col-md-10 centered">
|
30
|
+
{{ content }}
|
31
|
+
</div>
|
32
|
+
<div class="col-md-1"></div>
|
33
|
+
</div>
|
34
|
+
</section>
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
</article>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
{% if site.theme_settings.header_text %}
|
7
|
+
<div id="main" class="call-out"
|
8
|
+
style="background-image: url('{{ site.baseurl }}/{{ site.theme_settings.header_text_feature_image }}')">
|
9
|
+
{{ site.theme_settings.header_text }}
|
10
|
+
</div>
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
<div class="posts">
|
14
|
+
{% for post in paginator.posts %}
|
15
|
+
<div class="post-teaser">
|
16
|
+
{% if post.thumbnail %}
|
17
|
+
<div class="post-img">
|
18
|
+
<img src="{{ site.baseurl }}/{{ post.thumbnail }}">
|
19
|
+
</div>
|
20
|
+
{% endif %}
|
21
|
+
<span>
|
22
|
+
<header>
|
23
|
+
<h1>
|
24
|
+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
|
25
|
+
{{ post.title }}
|
26
|
+
</a>
|
27
|
+
</h1>
|
28
|
+
<p class="meta">
|
29
|
+
{{ post.date | date: "%B %-d, %Y" }}
|
30
|
+
</p>
|
31
|
+
</header>
|
32
|
+
<div class="excerpt">
|
33
|
+
{{ post.content | strip_html | truncate: "250" }}
|
34
|
+
<!--<a class="button" href="{{ post.url | prepend: site.baseurl }}">
|
35
|
+
{{ site.theme_settings.str_continue_reading }}
|
36
|
+
</a>-->
|
37
|
+
</div>
|
38
|
+
</span>
|
39
|
+
</div>
|
40
|
+
{% endfor %}
|
41
|
+
</div>
|
42
|
+
|
43
|
+
{% if paginator.total_pages > 1 %}
|
44
|
+
<div class="pagination">
|
45
|
+
{% if paginator.previous_page %}
|
46
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" >
|
47
|
+
<i class="fa fa-chevron-left"></i>
|
48
|
+
{{ site.theme_settings.str_previous_page }}
|
49
|
+
</a>
|
50
|
+
{% endif %}
|
51
|
+
{% if paginator.next_page %}
|
52
|
+
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" >
|
53
|
+
{{ site.theme_settings.str_next_page }}
|
54
|
+
<i class="fa fa-chevron-right"></i>
|
55
|
+
</a>
|
56
|
+
{% endif %}
|
57
|
+
</div>
|
58
|
+
{% endif %}
|
59
|
+
</div>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article {% if page.feature-img %}class="feature-image"{% endif %}>
|
6
|
+
<header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
|
7
|
+
<h1 id="{{ page.title | default: "" | cgi_escape }}" class="title">
|
8
|
+
{{ page.title }}
|
9
|
+
</h1>
|
10
|
+
|
11
|
+
{% if page.subtitle %}
|
12
|
+
<h2 class="subtitle">{{ page.subtitle }}</h2>
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
</header>
|
16
|
+
<section class="post-content">{{ content }}</section>
|
17
|
+
|
18
|
+
|
19
|
+
<!-- Tag list for portfolio -->
|
20
|
+
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
21
|
+
{% include tags_list.html tags=tag_list %}
|
22
|
+
|
23
|
+
</article>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article {% if page.feature-img %}class="feature-image"{% endif %}>
|
5
|
+
<header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
|
6
|
+
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
|
7
|
+
<p class="meta">
|
8
|
+
{{ page.date | date: "%B %-d, %Y" }}
|
9
|
+
{% if page.author %} - {{ page.author }}{% endif %}
|
10
|
+
</p>
|
11
|
+
</header>
|
12
|
+
<section class="post-content">{{ content }}</section>
|
13
|
+
|
14
|
+
<!-- Tag list -->
|
15
|
+
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
16
|
+
{% include tags_list.html tags=tag_list %}
|
17
|
+
|
18
|
+
</article>
|
19
|
+
|
20
|
+
<!-- Disqus -->
|
21
|
+
{% if site.theme_settings.disqus_shortname %}
|
22
|
+
<div class="comments">
|
23
|
+
{% include disqus.html %}
|
24
|
+
</div>
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
<!-- Post navigation -->
|
28
|
+
{% if site.theme_settings.post_navigation %}
|
29
|
+
{% include post_nav.html %}
|
30
|
+
{% endif %}
|
@@ -0,0 +1,147 @@
|
|
1
|
+
* {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
box-sizing: border-box;
|
5
|
+
}
|
6
|
+
figure {
|
7
|
+
margin: 0;
|
8
|
+
}
|
9
|
+
// For correct line number width in Github Gists
|
10
|
+
.gist table tbody tr td {
|
11
|
+
box-sizing: content-box;
|
12
|
+
}
|
13
|
+
html {
|
14
|
+
background: $background-color;
|
15
|
+
}
|
16
|
+
|
17
|
+
// Typography
|
18
|
+
::selection {
|
19
|
+
background: $selection-color;
|
20
|
+
}
|
21
|
+
::-moz-selection {
|
22
|
+
background: $selection-color;
|
23
|
+
}
|
24
|
+
body {
|
25
|
+
color: $text-color;
|
26
|
+
font-family: $font-family-main;
|
27
|
+
font-size: $font-size;
|
28
|
+
word-wrap: break-word;
|
29
|
+
}
|
30
|
+
h1, h2, h3, h4, h5, h6 {
|
31
|
+
font-family: $font-family-headings;
|
32
|
+
line-height: 1.3;
|
33
|
+
margin: 0.67em 0;
|
34
|
+
a {
|
35
|
+
color: $text-color;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
h1 {
|
39
|
+
font-size: 2.5em;
|
40
|
+
}
|
41
|
+
h2 {
|
42
|
+
font-size: 2em;
|
43
|
+
}
|
44
|
+
h3 {
|
45
|
+
font-size: 1.5em;
|
46
|
+
}
|
47
|
+
h4 {
|
48
|
+
font-size: 1.15em;
|
49
|
+
}
|
50
|
+
blockquote {
|
51
|
+
border-left: 2px solid darken($blockquote-color, 20%);
|
52
|
+
margin: 1em 1em;
|
53
|
+
padding: 0.75em 1em;
|
54
|
+
background-color: $blockquote-color;
|
55
|
+
box-shadow: 0 2px 2px $border-color;
|
56
|
+
}
|
57
|
+
blockquote p:last-child,
|
58
|
+
footer p:last-child {
|
59
|
+
margin-bottom: 0;
|
60
|
+
}
|
61
|
+
table {
|
62
|
+
table-layout:fixed;
|
63
|
+
width:100%;
|
64
|
+
word-wrap:break-word;
|
65
|
+
@media (max-width: 1100px) {
|
66
|
+
overflow-x: scroll;
|
67
|
+
display: inline-block;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
td,
|
71
|
+
th {
|
72
|
+
padding: 0.5em 1em;
|
73
|
+
border: 1px solid $border-color;
|
74
|
+
text-align: left;
|
75
|
+
}
|
76
|
+
table,
|
77
|
+
dl,
|
78
|
+
code,
|
79
|
+
kbd,
|
80
|
+
pre,
|
81
|
+
samp {
|
82
|
+
margin: 1em 0;
|
83
|
+
}
|
84
|
+
dt {
|
85
|
+
font-weight: bold;
|
86
|
+
}
|
87
|
+
dd {
|
88
|
+
margin-left: 2em;
|
89
|
+
}
|
90
|
+
p, ol, ul, dl, .math-display {
|
91
|
+
line-height: 1.5;
|
92
|
+
margin-bottom: 1em;
|
93
|
+
}
|
94
|
+
// KaTeX math display
|
95
|
+
.math-display {
|
96
|
+
display: inline-block;
|
97
|
+
width: 100%;
|
98
|
+
}
|
99
|
+
// Lists within lists
|
100
|
+
li > ul, li > ol {
|
101
|
+
margin-bottom: 0;
|
102
|
+
margin-left: 1em;
|
103
|
+
}
|
104
|
+
ol, ul {
|
105
|
+
list-style-position: inside;
|
106
|
+
}
|
107
|
+
hr {
|
108
|
+
border: 0;
|
109
|
+
border-top: 1px solid $border-color;
|
110
|
+
border-bottom: 1px solid #fff;
|
111
|
+
margin: 1em 0;
|
112
|
+
}
|
113
|
+
a {
|
114
|
+
color: $link-color;
|
115
|
+
text-decoration: none;
|
116
|
+
}
|
117
|
+
|
118
|
+
/* ---- Responsive ---- */
|
119
|
+
|
120
|
+
iframe, img, embed, object, video {
|
121
|
+
max-width: 100%;
|
122
|
+
padding: 0 10%;
|
123
|
+
}
|
124
|
+
img[align=left] {
|
125
|
+
margin-right: 3%;
|
126
|
+
}
|
127
|
+
img[align=right] {
|
128
|
+
margin-left: 3%;
|
129
|
+
}
|
130
|
+
|
131
|
+
@media screen and (max-width: $sm-break) {
|
132
|
+
h1 {
|
133
|
+
font-size: 2em;
|
134
|
+
}
|
135
|
+
h2 {
|
136
|
+
font-size: 1.5em;
|
137
|
+
}
|
138
|
+
h3 {
|
139
|
+
font-size: 1em;
|
140
|
+
}
|
141
|
+
h4 {
|
142
|
+
font-size: 0.75em;
|
143
|
+
}
|
144
|
+
p, li {
|
145
|
+
font-size: 0.75em;
|
146
|
+
}
|
147
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
// Mix-ins
|
2
|
+
%padding-small {
|
3
|
+
padding: $padding-x-small $padding-x-small * 2;
|
4
|
+
@media (max-width: 1000px) {
|
5
|
+
padding: $padding-x-small $padding-x-small;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
%padding-regular {
|
10
|
+
padding: $padding-small $padding-large;
|
11
|
+
@media (max-width: 1000px) {
|
12
|
+
padding: $padding-small * 1.5 $padding-large / 1.6;
|
13
|
+
}
|
14
|
+
@media (max-width: 576px) {
|
15
|
+
padding: $padding-small;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.header-txt-shadow {
|
20
|
+
text-shadow: 1px 1px 2px $text-shadow;
|
21
|
+
}
|
22
|
+
|
23
|
+
// Buttons
|
24
|
+
.button {
|
25
|
+
border-radius: 0.3em;
|
26
|
+
border: 1px solid;
|
27
|
+
display: inline-block;
|
28
|
+
margin: 1em 0;
|
29
|
+
padding: 0.5em 0.75em;
|
30
|
+
}
|
31
|
+
|
32
|
+
a.button {
|
33
|
+
@extend .button-link;
|
34
|
+
}
|
35
|
+
|
36
|
+
.button-link {
|
37
|
+
&:hover {
|
38
|
+
background: $link-color;
|
39
|
+
border: 1px solid $link-color;
|
40
|
+
color: $background-color;
|
41
|
+
text-decoration: none;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.body-link {
|
46
|
+
&:hover {
|
47
|
+
text-decoration: underline;
|
48
|
+
color: darken($link-color, 15%);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.post-link {
|
53
|
+
&:hover {
|
54
|
+
text-decoration: none;
|
55
|
+
color: lighten($link-color, 10%);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// States
|
60
|
+
.disabled {
|
61
|
+
opacity: 0.7;
|
62
|
+
}
|
63
|
+
|
64
|
+
// Custom
|
65
|
+
.text-center {
|
66
|
+
text-align: center;
|
67
|
+
}
|
68
|
+
|
69
|
+
.right {
|
70
|
+
float: right;
|
71
|
+
}
|