jekyll-theme-type-on-strap 6.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +97 -36
  3. data/_data/language.yml +13 -0
  4. data/_includes/blog.html +14 -8
  5. data/_includes/blog_nav.html +12 -10
  6. data/_includes/disqus.html +1 -1
  7. data/_includes/head.html +19 -33
  8. data/_includes/icons.html +55 -55
  9. data/_includes/navbar.html +16 -32
  10. data/_includes/post_info.html +13 -0
  11. data/_includes/post_nav.html +17 -16
  12. data/_includes/share_buttons.html +19 -26
  13. data/_layouts/feed.xml +9 -3
  14. data/_layouts/post.html +24 -9
  15. data/_sass/base/_global.scss +127 -110
  16. data/_sass/base/_utility.scss +60 -45
  17. data/_sass/base/_variables.scss +30 -26
  18. data/_sass/external/_font-awesome.scss +17 -0
  19. data/_sass/external/_katex.scss +1010 -0
  20. data/_sass/external/_pacifico.scss +17 -0
  21. data/{assets/css/vendor/google_fonts.css → _sass/external/_source-sans-pro.scss} +15 -5
  22. data/_sass/external/_syntax.scss +85 -83
  23. data/_sass/external/font-awesome/_animated.scss +34 -0
  24. data/_sass/external/font-awesome/_bordered-pulled.scss +25 -0
  25. data/_sass/external/font-awesome/_core.scss +12 -0
  26. data/_sass/external/font-awesome/_fixed-width.scss +6 -0
  27. data/_sass/external/font-awesome/_icons.scss +789 -0
  28. data/_sass/external/font-awesome/_larger.scss +13 -0
  29. data/_sass/external/font-awesome/_list.scss +19 -0
  30. data/_sass/external/font-awesome/_mixins.scss +60 -0
  31. data/_sass/external/font-awesome/_path.scss +16 -0
  32. data/_sass/external/font-awesome/_rotated-flipped.scss +20 -0
  33. data/_sass/external/font-awesome/_screen-reader.scss +5 -0
  34. data/_sass/external/font-awesome/_stacked.scss +20 -0
  35. data/_sass/external/font-awesome/_variables.scss +800 -0
  36. data/_sass/external/font-awesome/font-awesome.scss +17 -0
  37. data/_sass/includes/_blog_nav.scss +36 -38
  38. data/_sass/includes/_footer.scss +19 -16
  39. data/_sass/includes/_grid.scss +22 -22
  40. data/_sass/includes/_navbar.scss +117 -128
  41. data/_sass/includes/_portfolio.scss +40 -39
  42. data/_sass/includes/_post_nav.scss +28 -23
  43. data/_sass/includes/_share_buttons.scss +26 -25
  44. data/_sass/layouts/_blog.scss +103 -0
  45. data/_sass/layouts/_page.scss +5 -4
  46. data/_sass/layouts/_posts.scss +102 -96
  47. data/_sass/layouts/_search.scss +45 -44
  48. data/_sass/layouts/_tags.scss +43 -34
  49. data/_sass/type-on-strap.scss +6 -6
  50. data/assets/css/main.scss +1 -1
  51. data/assets/css/vendor/bootstrap-iso.css +1387 -468
  52. data/assets/css/vendor/bootstrap-iso.min.css +5 -5
  53. data/assets/css/vendor/bootstrap.css +1457 -450
  54. data/assets/data/search.json +25 -27
  55. data/assets/fonts/Pacifico/Pacifico.eot +0 -0
  56. data/assets/fonts/Pacifico/Pacifico.svg +10833 -0
  57. data/assets/fonts/Pacifico/Pacifico.ttf +0 -0
  58. data/assets/fonts/Pacifico/Pacifico.woff +0 -0
  59. data/assets/fonts/Pacifico/Pacifico.woff2 +0 -0
  60. data/assets/fonts/Pacifico/original-pacifico-regular.ttf +0 -0
  61. data/assets/fonts/fontawesome/FontAwesome.otf +0 -0
  62. data/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  63. data/assets/fonts/fontawesome/fontawesome-webfont.svg +2671 -0
  64. data/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  65. data/assets/fonts/{fontawesome-webfont.woff → fontawesome/fontawesome-webfont.woff} +0 -0
  66. data/assets/fonts/{fontawesome-webfont.woff2 → fontawesome/fontawesome-webfont.woff2} +0 -0
  67. data/assets/fonts/katex/KaTeX_AMS-Regular.eot +0 -0
  68. data/assets/fonts/katex/KaTeX_AMS-Regular.ttf +0 -0
  69. data/assets/fonts/{KaTeX_AMS-Regular.woff → katex/KaTeX_AMS-Regular.woff} +0 -0
  70. data/assets/fonts/{KaTeX_AMS-Regular.woff2 → katex/KaTeX_AMS-Regular.woff2} +0 -0
  71. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.eot +0 -0
  72. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.ttf +0 -0
  73. data/assets/fonts/{KaTeX_Caligraphic-Bold.woff → katex/KaTeX_Caligraphic-Bold.woff} +0 -0
  74. data/assets/fonts/{KaTeX_Caligraphic-Bold.woff2 → katex/KaTeX_Caligraphic-Bold.woff2} +0 -0
  75. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.eot +0 -0
  76. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.ttf +0 -0
  77. data/assets/fonts/{KaTeX_Caligraphic-Regular.woff → katex/KaTeX_Caligraphic-Regular.woff} +0 -0
  78. data/assets/fonts/{KaTeX_Caligraphic-Regular.woff2 → katex/KaTeX_Caligraphic-Regular.woff2} +0 -0
  79. data/assets/fonts/katex/KaTeX_Fraktur-Bold.eot +0 -0
  80. data/assets/fonts/katex/KaTeX_Fraktur-Bold.ttf +0 -0
  81. data/assets/fonts/{KaTeX_Fraktur-Bold.woff → katex/KaTeX_Fraktur-Bold.woff} +0 -0
  82. data/assets/fonts/{KaTeX_Fraktur-Bold.woff2 → katex/KaTeX_Fraktur-Bold.woff2} +0 -0
  83. data/assets/fonts/katex/KaTeX_Fraktur-Regular.eot +0 -0
  84. data/assets/fonts/katex/KaTeX_Fraktur-Regular.ttf +0 -0
  85. data/assets/fonts/{KaTeX_Fraktur-Regular.woff → katex/KaTeX_Fraktur-Regular.woff} +0 -0
  86. data/assets/fonts/{KaTeX_Fraktur-Regular.woff2 → katex/KaTeX_Fraktur-Regular.woff2} +0 -0
  87. data/assets/fonts/katex/KaTeX_Main-Bold.eot +0 -0
  88. data/assets/fonts/katex/KaTeX_Main-Bold.ttf +0 -0
  89. data/assets/fonts/{KaTeX_Main-Bold.woff → katex/KaTeX_Main-Bold.woff} +0 -0
  90. data/assets/fonts/{KaTeX_Main-Bold.woff2 → katex/KaTeX_Main-Bold.woff2} +0 -0
  91. data/assets/fonts/katex/KaTeX_Main-Italic.eot +0 -0
  92. data/assets/fonts/katex/KaTeX_Main-Italic.ttf +0 -0
  93. data/assets/fonts/{KaTeX_Main-Italic.woff → katex/KaTeX_Main-Italic.woff} +0 -0
  94. data/assets/fonts/{KaTeX_Main-Italic.woff2 → katex/KaTeX_Main-Italic.woff2} +0 -0
  95. data/assets/fonts/katex/KaTeX_Main-Regular.eot +0 -0
  96. data/assets/fonts/katex/KaTeX_Main-Regular.ttf +0 -0
  97. data/assets/fonts/{KaTeX_Main-Regular.woff → katex/KaTeX_Main-Regular.woff} +0 -0
  98. data/assets/fonts/{KaTeX_Main-Regular.woff2 → katex/KaTeX_Main-Regular.woff2} +0 -0
  99. data/assets/fonts/katex/KaTeX_Math-BoldItalic.eot +0 -0
  100. data/assets/fonts/katex/KaTeX_Math-BoldItalic.ttf +0 -0
  101. data/assets/fonts/{KaTeX_Math-BoldItalic.woff → katex/KaTeX_Math-BoldItalic.woff} +0 -0
  102. data/assets/fonts/{KaTeX_Math-BoldItalic.woff2 → katex/KaTeX_Math-BoldItalic.woff2} +0 -0
  103. data/assets/fonts/katex/KaTeX_Math-Italic.eot +0 -0
  104. data/assets/fonts/katex/KaTeX_Math-Italic.ttf +0 -0
  105. data/assets/fonts/{KaTeX_Math-Italic.woff → katex/KaTeX_Math-Italic.woff} +0 -0
  106. data/assets/fonts/{KaTeX_Math-Italic.woff2 → katex/KaTeX_Math-Italic.woff2} +0 -0
  107. data/assets/fonts/katex/KaTeX_Math-Regular.eot +0 -0
  108. data/assets/fonts/katex/KaTeX_Math-Regular.ttf +0 -0
  109. data/assets/fonts/{KaTeX_Math-Regular.woff → katex/KaTeX_Math-Regular.woff} +0 -0
  110. data/assets/fonts/{KaTeX_Math-Regular.woff2 → katex/KaTeX_Math-Regular.woff2} +0 -0
  111. data/assets/fonts/katex/KaTeX_SansSerif-Bold.eot +0 -0
  112. data/assets/fonts/katex/KaTeX_SansSerif-Bold.ttf +0 -0
  113. data/assets/fonts/{KaTeX_SansSerif-Bold.woff → katex/KaTeX_SansSerif-Bold.woff} +0 -0
  114. data/assets/fonts/{KaTeX_SansSerif-Bold.woff2 → katex/KaTeX_SansSerif-Bold.woff2} +0 -0
  115. data/assets/fonts/katex/KaTeX_SansSerif-Italic.eot +0 -0
  116. data/assets/fonts/katex/KaTeX_SansSerif-Italic.ttf +0 -0
  117. data/assets/fonts/{KaTeX_SansSerif-Italic.woff → katex/KaTeX_SansSerif-Italic.woff} +0 -0
  118. data/assets/fonts/{KaTeX_SansSerif-Italic.woff2 → katex/KaTeX_SansSerif-Italic.woff2} +0 -0
  119. data/assets/fonts/katex/KaTeX_SansSerif-Regular.eot +0 -0
  120. data/assets/fonts/katex/KaTeX_SansSerif-Regular.ttf +0 -0
  121. data/assets/fonts/{KaTeX_SansSerif-Regular.woff → katex/KaTeX_SansSerif-Regular.woff} +0 -0
  122. data/assets/fonts/{KaTeX_SansSerif-Regular.woff2 → katex/KaTeX_SansSerif-Regular.woff2} +0 -0
  123. data/assets/fonts/katex/KaTeX_Script-Regular.eot +0 -0
  124. data/assets/fonts/katex/KaTeX_Script-Regular.ttf +0 -0
  125. data/assets/fonts/{KaTeX_Script-Regular.woff → katex/KaTeX_Script-Regular.woff} +0 -0
  126. data/assets/fonts/{KaTeX_Script-Regular.woff2 → katex/KaTeX_Script-Regular.woff2} +0 -0
  127. data/assets/fonts/katex/KaTeX_Size1-Regular.eot +0 -0
  128. data/assets/fonts/katex/KaTeX_Size1-Regular.ttf +0 -0
  129. data/assets/fonts/{KaTeX_Size1-Regular.woff → katex/KaTeX_Size1-Regular.woff} +0 -0
  130. data/assets/fonts/{KaTeX_Size1-Regular.woff2 → katex/KaTeX_Size1-Regular.woff2} +0 -0
  131. data/assets/fonts/katex/KaTeX_Size2-Regular.eot +0 -0
  132. data/assets/fonts/katex/KaTeX_Size2-Regular.ttf +0 -0
  133. data/assets/fonts/{KaTeX_Size2-Regular.woff → katex/KaTeX_Size2-Regular.woff} +0 -0
  134. data/assets/fonts/{KaTeX_Size2-Regular.woff2 → katex/KaTeX_Size2-Regular.woff2} +0 -0
  135. data/assets/fonts/katex/KaTeX_Size3-Regular.eot +0 -0
  136. data/assets/fonts/katex/KaTeX_Size3-Regular.ttf +0 -0
  137. data/assets/fonts/{KaTeX_Size3-Regular.woff → katex/KaTeX_Size3-Regular.woff} +0 -0
  138. data/assets/fonts/{KaTeX_Size3-Regular.woff2 → katex/KaTeX_Size3-Regular.woff2} +0 -0
  139. data/assets/fonts/katex/KaTeX_Size4-Regular.eot +0 -0
  140. data/assets/fonts/katex/KaTeX_Size4-Regular.ttf +0 -0
  141. data/assets/fonts/{KaTeX_Size4-Regular.woff → katex/KaTeX_Size4-Regular.woff} +0 -0
  142. data/assets/fonts/{KaTeX_Size4-Regular.woff2 → katex/KaTeX_Size4-Regular.woff2} +0 -0
  143. data/assets/fonts/katex/KaTeX_Typewriter-Regular.eot +0 -0
  144. data/assets/fonts/katex/KaTeX_Typewriter-Regular.ttf +0 -0
  145. data/assets/fonts/{KaTeX_Typewriter-Regular.woff → katex/KaTeX_Typewriter-Regular.woff} +0 -0
  146. data/assets/fonts/{KaTeX_Typewriter-Regular.woff2 → katex/KaTeX_Typewriter-Regular.woff2} +0 -0
  147. data/assets/fonts/{source-sans-pro-bold-italic.woff2 → source-sans-pro/source-sans-pro-bold-italic.woff2} +0 -0
  148. data/assets/fonts/{source-sans-pro-bold.woff2 → source-sans-pro/source-sans-pro-bold.woff2} +0 -0
  149. data/assets/fonts/{source-sans-pro-italic.woff2 → source-sans-pro/source-sans-pro-italic.woff2} +0 -0
  150. data/assets/fonts/{source-sans-pro-regular.woff2 → source-sans-pro/source-sans-pro-regular.woff2} +0 -0
  151. data/assets/js/partials/katex_init.js +20 -20
  152. data/assets/js/partials/masonry_init.js +17 -17
  153. data/assets/js/partials/navbar.js +18 -18
  154. data/assets/js/vendor/imagesloaded.min.js +7 -1
  155. data/assets/js/vendor/katex.min.js +1 -6
  156. data/assets/js/vendor/masonry.pkgd.min.js +2 -2
  157. metadata +137 -78
  158. data/_sass/layouts/_index.scss +0 -103
  159. data/assets/css/vendor/font-awesome.min.css +0 -4
  160. data/assets/css/vendor/google_fonts.min.css +0 -1
  161. data/assets/css/vendor/katex.min.css +0 -1
  162. data/assets/fonts/.DS_Store +0 -0
  163. data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  164. data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
data/_layouts/feed.xml CHANGED
@@ -1,13 +1,19 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
2
+ <rss version="2.0"
3
+ xmlns:atom="http://www.w3.org/2005/Atom"
4
+ xmlns:webfeeds="http://webfeeds.org/rss/1.0">
3
5
  <channel>
4
- <title>{{ site.theme_settings.title | xml_escape }}</title>
6
+ <title>{{ site.title | xml_escape }}</title>
5
7
  <atom:link href="{{ "/feed.xml" | absolute_url }}" rel="self" type="application/rss+xml"/>
6
8
  <link>{{ "/" | absolute_url }}</link>
7
- <description>{{ site.theme_settings.description | xml_escape }}</description>
9
+ <description>{{ site.description | xml_escape }}</description>
8
10
  <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
11
+ <webfeeds:icon>{{ site.theme_settings.avatar | absolute_url }}</webfeeds:icon>
9
12
  {% for post in site.posts limit:15 %}
10
13
  <item>
14
+ {% if post.thumbnail %}
15
+ <enclosure length="1" type="image" url="{{ post.thumbnail | absolute_url }}"/>
16
+ {% endif %}
11
17
  <title>{{ post.title | xml_escape }}</title>
12
18
  <link>{{ post.url | absolute_url }}</link>
13
19
  <guid isPermaLink="false">{{ post.url | relative_url }}</guid>
data/_layouts/post.html CHANGED
@@ -1,14 +1,12 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <article {% if page.feature-img %}class="feature-image"{% endif %}>
5
- <header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
4
+
5
+ <article {% if page.feature-img or page.color %}class="feature-image"{% endif %}>
6
+ <header id="main" style="">
6
7
  {% unless page.hide_title %}
7
8
  <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
8
- <p class="meta">
9
- {{ page.date | date: "%B %-d, %Y" }}
10
- {% if page.author %} - {{ page.author }}{% endif %}
11
- </p>
9
+ {% include post_info.html author=page.author date=page.date %}
12
10
  {% endunless %}
13
11
  </header>
14
12
  <section class="post-content">
@@ -20,14 +18,14 @@ layout: default
20
18
  </div>
21
19
  {% endif %}
22
20
  </section>
23
-
21
+
24
22
  <!-- Social media shares -->
25
23
  {% include share_buttons.html %}
26
-
24
+
27
25
  <!-- Tag list -->
28
26
  {% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
29
27
  {% include tags_list.html tags=tag_list %}
30
-
28
+
31
29
  </article>
32
30
 
33
31
  <!-- Disqus -->
@@ -41,3 +39,20 @@ layout: default
41
39
  {% if site.theme_settings.post_navigation %}
42
40
  {% include post_nav.html %}
43
41
  {% endif %}
42
+
43
+ <!-- To change color of links in the page -->
44
+ <style>
45
+ {% if page.color %}
46
+ .feature-image a { color: {{ page.color }} !important; }
47
+ div#post-nav a { color: {{ page.color }} !important; }
48
+ footer a { color: {{ page.color }} !important; }
49
+ .site-header nav a:hover { color: {{ page.color }} !important; }
50
+ header#main { background-color: {{ page.color }} !important; }
51
+ {% endif %}
52
+
53
+ {% if page.feature-img %}{% assign image_url = page.feature-img %}{% elsif page.color %}{% assign image_url = site.theme_settings.color_image %}{% endif %}
54
+ header#main {
55
+ background-repeat:no-repeat;
56
+ background-image: url('{{ image_url | relative_url }}');
57
+ }
58
+ </style>
@@ -1,36 +1,40 @@
1
1
  * {
2
- margin: 0;
3
- padding: 0;
4
- box-sizing: border-box;
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
5
  }
6
6
 
7
7
  figure {
8
- margin: 0;
8
+ margin: 0;
9
9
  }
10
10
 
11
11
  // For correct line number width in Github Gists
12
12
  .gist table tbody tr td {
13
- box-sizing: content-box;
13
+ box-sizing: content-box;
14
+ }
15
+
16
+ pre {
17
+ overflow-x: scroll;
14
18
  }
15
19
 
16
20
  html {
17
- background: $background-color;
21
+ background: $background-color;
18
22
  }
19
23
 
20
24
  // Typography
21
25
  ::selection {
22
- background: $selection-color;
26
+ background: $selection-color;
23
27
  }
24
28
 
25
29
  ::-moz-selection {
26
- background: $selection-color;
30
+ background: $selection-color;
27
31
  }
28
32
 
29
33
  body {
30
- color: $text-color;
31
- font-family: $font-family-main;
32
- font-size: $font-size;
33
- word-wrap: break-word;
34
+ color: $text-color;
35
+ font-family: $font-family-main;
36
+ font-size: $font-size;
37
+ word-wrap: break-word;
34
38
  }
35
39
 
36
40
  h1,
@@ -39,114 +43,143 @@ h3,
39
43
  h4,
40
44
  h5,
41
45
  h6 {
42
- font-family: $font-family-headings;
43
- line-height: 1.3;
44
- margin: 0.67em 0;
45
- a {
46
- color: $text-color;
47
- }
48
-
49
-
46
+ font-family: $font-family-headings;
47
+ line-height: 1.3;
48
+ margin: 0.67em 0;
49
+
50
+ a {
51
+ color: $text-color;
52
+ }
53
+
50
54
  }
51
55
 
52
56
  h1 {
53
- font-size: 2.3em;
57
+ font-size: 2.3em;
54
58
  }
55
59
 
56
60
  h2 {
57
- font-size: 1.75em;
61
+ font-size: 1.75em;
58
62
  }
59
63
 
60
64
  h3 {
61
- font-size: 1.5em;
65
+ font-size: 1.5em;
62
66
  }
63
67
 
64
68
  h4 {
65
- font-size: 1.15em;
69
+ font-size: 1.15em;
70
+ }
71
+
72
+ iframe,
73
+ img,
74
+ embed,
75
+ object,
76
+ video {
77
+ max-width: 100%;
78
+ padding: 0 9%;
79
+ }
80
+
81
+ img[align=left] {
82
+ margin-right: 3%;
83
+ }
84
+
85
+ img[align=right] {
86
+ margin-left: 3%;
66
87
  }
67
88
 
68
89
  /* ---- Responsive ---- */
69
90
 
70
91
  @media screen and (max-width: $break) {
71
- h1 {
72
- font-size: 2em;
73
- }
74
- h2 {
75
- font-size: 1.5em;
76
- }
77
- h3 {
78
- font-size: 1em;
79
- }
80
- h4,
81
- .meta {
82
- font-size: 0.9em;
83
- }
84
- p {
85
- font-size: 0.8em;
86
- }
92
+ h1 {
93
+ font-size: 2em;
94
+ }
95
+ h2 {
96
+ font-size: 1.5em;
97
+ }
98
+ h3 {
99
+ font-size: 1em;
100
+ }
101
+ h4,
102
+ .meta {
103
+ font-size: 0.9em;
104
+ }
105
+ p, li {
106
+ font-size: 0.8em;
107
+ }
108
+
109
+ iframe,
110
+ img,
111
+ embed,
112
+ object,
113
+ video {
114
+ max-width: 100%;
115
+ padding: 0 1%;
116
+ }
87
117
  }
88
118
 
89
119
  @media screen and (max-width: $sm-break) {
90
- h1 {
91
- font-size: 1.5em;
92
- }
93
- h2 {
94
- font-size: 1em;
95
- }
96
- h3 {
97
- font-size: 0.9em;
98
- }
99
- h4,
100
- .meta {
101
- font-size: 0.85em;
102
- }
103
- p {
104
- font-size: 0.8em;
105
- }
120
+ h1 {
121
+ font-size: 1.5em;
122
+ }
123
+ h2 {
124
+ font-size: 1em;
125
+ }
126
+ h3 {
127
+ font-size: 0.9em;
128
+ }
129
+ h4,
130
+ .meta {
131
+ font-size: 0.85em;
132
+ }
133
+ p, li {
134
+ font-size: 0.8em;
135
+ }
136
+
137
+ table {
138
+ overflow-x: scroll;
139
+ }
106
140
  }
107
141
 
108
142
 
109
143
  blockquote {
110
- border-left: 2px solid darken($blockquote-color, 20%);
111
- margin: 1em 1em;
112
- padding: 0.75em 1em;
113
- background-color: $blockquote-color;
114
- box-shadow: 0 2px 2px $border-color;
144
+ border-left: 2px solid darken($blockquote-color, 20%);
145
+ margin: 1em 1em;
146
+ padding: 0.75em 1em;
147
+ background-color: $blockquote-color;
148
+ box-shadow: 0 2px 2px $border-color;
115
149
  }
116
150
 
117
151
  blockquote p:last-child,
118
152
  footer p:last-child {
119
- margin-bottom: 0;
153
+ margin-bottom: 0;
120
154
  }
121
155
 
122
156
  table {
123
- table-layout: fixed;
124
- width: 100%;
125
- word-wrap: break-word;
126
- overflow-x: scroll;
127
- display: inline-block;
157
+ table-layout: fixed;
158
+ width: 100%;
159
+ word-wrap: break-word;
160
+ display: inline-block;
128
161
  }
129
162
 
130
163
  td,
131
164
  th {
132
- padding: 0.5em 1em;
133
- border: 1px solid $border-color;
134
- text-align: left;
165
+ padding: 0.5em 1em;
166
+ border: 1px solid $border-color;
167
+ text-align: left;
135
168
  }
136
169
 
137
170
  table,
138
171
  dl,
139
172
  kbd,
140
173
  samp {
141
- margin: 1em 0;
174
+ margin: 1em 0;
142
175
  }
143
176
 
144
177
  dt {
145
- font-weight: bold;
178
+ font-weight: bold;
146
179
  }
147
180
 
148
181
  dd {
149
- margin-left: 2em;
182
+ margin-left: 2em;
150
183
  }
151
184
 
152
185
  p,
@@ -154,59 +187,43 @@ ol,
154
187
  ul,
155
188
  dl,
156
189
  .math-display {
157
- line-height: 1.5;
158
- margin-bottom: 1em;
190
+ line-height: 1.5;
191
+ margin-bottom: 1em;
159
192
  }
160
193
 
161
194
  // KaTeX math display
162
195
  .math-display {
163
- display: inline-block;
164
- width: 100%;
196
+ display: inline-block;
197
+ width: 100%;
165
198
  }
166
199
 
167
200
  // Lists within lists
168
201
  li {
169
- p {
170
- display: inline;
171
- }
172
- & > ul,
173
- & > ol {
174
- margin-bottom: 0;
175
- margin-left: 1em;
176
- }
202
+ p {
203
+ display: inline;
204
+ }
205
+
206
+ & > ul,
207
+ & > ol {
208
+ margin-bottom: 0;
209
+ margin-left: 1em;
210
+ }
177
211
  }
178
212
 
179
213
  ol,
180
214
  ul {
181
- list-style-position: outside;
182
- margin-left: 1em;
215
+ list-style-position: outside;
216
+ margin-left: 1em;
183
217
  }
184
218
 
185
219
  hr {
186
- border: 0;
187
- border-top: 1px solid $border-color;
188
- border-bottom: 1px solid #fff;
189
- margin: 1em 0;
220
+ border: 0;
221
+ border-top: 1px solid $border-color;
222
+ border-bottom: 1px solid #fff;
223
+ margin: 1em 0;
190
224
  }
191
225
 
192
226
  a {
193
- color: $link-color;
194
- text-decoration: none;
227
+ color: $link-color;
228
+ text-decoration: none;
195
229
  }
196
-
197
- iframe,
198
- img,
199
- embed,
200
- object,
201
- video {
202
- max-width: 100%;
203
- padding: 0 10%;
204
- }
205
-
206
- img[align=left] {
207
- margin-right: 3%;
208
- }
209
-
210
- img[align=right] {
211
- margin-left: 3%;
212
- }
@@ -1,81 +1,96 @@
1
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
- }
2
+ %padding-nav {
3
+ padding: $padding-small $padding-x-large;
4
+ @media (max-width: $xl-break) {
5
+ padding: $padding-small ($padding-large * 2);
6
+ }
7
+ @media (max-width: $l-break) {
8
+ padding: $padding-small $padding-large;
9
+ }
10
+ @media (max-width: $m-break) {
11
+ padding: $padding-small $padding-medium;
12
+ }
13
+ @media (max-width: $sm-break) {
14
+ padding: $padding-small $padding-x-small;
15
+ }
7
16
  }
8
17
 
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
- }
18
+ %padding-post {
19
+ padding: $padding-x-small $padding-x-large;
20
+ @media (max-width: $xl-break) {
21
+ padding: $padding-x-small ($padding-large * 2);
22
+ }
23
+ @media (max-width: $l-break) {
24
+ padding: $padding-x-small $padding-large;
25
+ }
26
+ @media (max-width: $m-break) {
27
+ padding: $padding-x-small $padding-medium;
28
+ }
29
+ @media (max-width: $sm-break) {
30
+ padding: $padding-x-small $padding-small;
31
+ }
17
32
  }
18
33
 
19
- %padding-medium {
20
- padding: $padding-medium $padding-large;
21
- @media (max-width: 1000px) {
22
- padding: $padding-medium * 1.5 $padding-large / 1.6;
23
- }
24
- @media (max-width: 576px) {
25
- padding: $padding-medium;
26
- }
34
+ %padding-header {
35
+ padding: $padding-medium $padding-large;
36
+ @media (min-width: $xl-break) {
37
+ padding: $padding-large $padding-large;
38
+ }
39
+ @media (max-width: $sm-break) {
40
+ padding: $padding-medium;
41
+ }
27
42
  }
28
43
 
29
44
  .header-txt-shadow {
30
- text-shadow: 1px 1px 2px $text-shadow;
45
+ text-shadow: 1px 1px 2px $text-shadow;
31
46
  }
32
47
 
33
48
  // Buttons
34
49
  .button {
35
- border-radius: 0.3em;
36
- border: 1px solid;
37
- display: inline-block;
38
- margin: 1em 0;
39
- padding: 0.5em 0.75em;
50
+ border-radius: 0.3em;
51
+ border: 1px solid;
52
+ display: inline-block;
53
+ margin: 1em 0;
54
+ padding: 0.5em 0.75em;
40
55
  }
41
56
 
42
57
  a.button {
43
- @extend .button-link;
58
+ @extend .button-link;
44
59
  }
45
60
 
46
61
  .button-link {
47
- &:hover {
48
- background: $link-color;
49
- border: 1px solid $link-color;
50
- color: $background-color;
51
- text-decoration: none;
52
- }
62
+ &:hover {
63
+ background: $link-color;
64
+ border: 1px solid $link-color;
65
+ color: $background-color;
66
+ text-decoration: none;
67
+ }
53
68
  }
54
69
 
55
70
  .body-link {
56
- &:hover {
57
- text-decoration: underline;
58
- color: darken($link-color, 15%);
59
- }
71
+ &:hover {
72
+ text-decoration: underline;
73
+ color: darken($link-color, 15%);
74
+ }
60
75
  }
61
76
 
62
77
  .post-link {
63
- &:hover {
64
- text-decoration: none;
65
- color: lighten($link-color, 10%);
66
- }
78
+ &:hover {
79
+ text-decoration: none;
80
+ color: lighten($link-color, 10%);
81
+ }
67
82
  }
68
83
 
69
84
  // States
70
85
  .disabled {
71
- opacity: 0.7;
86
+ opacity: 0.7;
72
87
  }
73
88
 
74
89
  // Custom
75
90
  .text-center {
76
- text-align: center;
91
+ text-align: center;
77
92
  }
78
93
 
79
94
  .right {
80
- float: right;
95
+ float: right;
81
96
  }