techdoc-jekyll-theme 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fca94f611a9b2541753d34355148cd360dc1e84e88c1767386517fc86f91c3a6
4
- data.tar.gz: 67d09d69bfbbafb0bc60a94e670b623a92cbeae4877148e9b0185618db185f6f
3
+ metadata.gz: 176473bfdf1dcf5efe2d3bc9f70b69c5fd2d0053aed878e30070aa7fe28e0cc5
4
+ data.tar.gz: 8b73f5fe0493ab8e31ea0b7128b75e8e409560bd006bcaf8fa7bea2f9a51c501
5
5
  SHA512:
6
- metadata.gz: 3288f75f9ca0026c89b9f7c15300f885f4517ef23db2f499efd46324b31be36f0d2ac93b3d744bdcaab8a90d390b2ff2130339fd1ff0668e4737c067748b502d
7
- data.tar.gz: 3074c2b1290e16c5b0f83d391c88c18f81a4201fedc9ec99b9a80152a07a6606a14dc42e98d87fee940e3efa7dcf497e041e2e401f5b0aa64ef6ee8bc2d0d028
6
+ metadata.gz: 925dd93633a0c5eb9d5ddca5a795ddefb58809690f0629a401eb7334d4e8072f310a9fef1217842db2cfc690fabdd0e0545598c21424d6a8a0734cfa4e27869a
7
+ data.tar.gz: bd03c8d1b6a10faf45a3b0fff7118708a7a1121d3f9cf37175e886a2f26efe4f9711c81cdbcd90bc81d311b9a67e1d56f5a0c9126f1a8dbe4cc9ef97e097f843
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Jianmin Chen
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -2,52 +2,25 @@
2
2
  [![Gem Version](https://badge.fury.io/rb/techdoc-jekyll-theme.svg)](https://badge.fury.io/rb/techdoc-jekyll-theme)
3
3
 
4
4
  ## About
5
-
6
5
  TechDoc is a Jekyll theme designed for writing technical documentation. The templates that come with it are very minimal, so you can quickly get started writing documentation.
7
6
 
8
7
  ## Installation
9
-
10
- Add this line to your Jekyll site's `Gemfile`:
11
-
12
- ```ruby
13
- gem "techdoc"
14
- ```
15
-
16
- And add this line to your Jekyll site's `_config.yml`:
17
-
18
- ```yaml
19
- theme: techdoc
20
- ```
21
-
22
- And then execute:
23
-
24
- $ bundle
25
-
26
- Or install it yourself as:
27
-
28
- $ gem install techdoc
8
+ Take a look at this [page](http://jianmin-chen.github.io/techdoc/2021/04/01/using-this-theme.html), which contains detailed instructions for installation.
29
9
 
30
10
  ## Usage
31
-
32
- Once you've installed the theme using the instructions above, you can start writing technical documentation right away by creating a new `.markdown` file in the `/posts` folder. The file should be named `year-month-day-title.markdown`, and the beginning of the file should look something like this:
33
-
11
+ Once you've installed the theme using the page mentioned above, you can start writing technical documentation right away by creating a new `.markdown` file in the `/posts` folder. The file should be named `year-month-day-title.markdown`, and the beginning of the file should look something like this:
34
12
  ```markdown
35
13
  ---
36
14
  title: <title>
37
15
  layout: post
38
16
  ---
39
17
  ```
40
-
41
18
  Once you've got that, you can start writing away! A quick reference on writing content in Markdown can be found [here](https://kramdown.gettalong.org/quickref.html).
42
19
 
43
- For a more in-depth tutorial, visit the the theme demo.
44
-
45
20
  ## Contributing
46
-
47
- Bug reports and pull requests are welcome on GitHub at https://github.com/jianmin-chen/techdoc. 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.
21
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/jianmin-chen/techdoc](https://github.com/jianmin-chen/techdoc). 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.
48
22
 
49
23
  ## Development
50
-
51
24
  To set up your environment to develop this theme, run `bundle install`.
52
25
 
53
26
  Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your 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.
@@ -56,5 +29,4 @@ When your theme is released, only the files in `_layouts`, `_includes`, `_sass`
56
29
  To add a custom directory to your theme-gem, please edit the regexp in `techdoc.gemspec` accordingly.
57
30
 
58
31
  ## License
59
-
60
32
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -5,7 +5,8 @@
5
5
  <meta charset="UTF-8">
6
6
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
- <link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append:site.github.build_revision | relative_url }}">
8
+ <link rel="stylesheet" href="{{ "/assets/css/styles.css?v=" | append:site.github.build_revision | relative_url }}">
9
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.1/build/styles/default.min.css">
9
10
  <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.1/build/highlight.min.js"></script>
10
11
  <script>hljs.highlightAll();</script>
11
12
  </head>
@@ -13,14 +14,18 @@
13
14
  <div class="row">
14
15
  <nav class="col menu">
15
16
  <div class="menu-content">
16
- <h1 class="display-1"><a href="{{ "/" | absolute_url }}">{{ site.library_name }}</a></h1>
17
- <p class="text-muted">{{ site.library_description }}</p>
18
- <a class="nav-link" href="{{ site.library_link }}">Source Code</a>
19
- {%- if site.posts.size > 0 -%}
20
- {%- for post in site.posts -%}
21
- <a class="nav-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
22
- {%- endfor -%}
23
- {%- endif -%}
17
+ <div>
18
+ <h1 class="display-1"><a href="{{ "/" | absolute_url }}">{{ site.library_name }}</a></h1>
19
+ <p class="text-muted">{{ site.library_description }}</p>
20
+ {%- if site.library_link -%}
21
+ <a class="nav-link" href="{{ site.library_link }}">Source Code</a>
22
+ {%- endif -%}
23
+ {%- if site.posts.size > 0 -%}
24
+ {%- for post in site.posts -%}
25
+ <a class="nav-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
26
+ {%- endfor -%}
27
+ {%- endif -%}
28
+ </div>
24
29
  </div>
25
30
  </nav>
26
31
  <div class="col content-container">
@@ -0,0 +1,287 @@
1
+ /* Import Google Fonts */
2
+ @import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Roboto&family=Playfair+Display&display=swap');
3
+
4
+ :root {
5
+ --main-theme-color: #454545;
6
+ --text-color: #6c757d;
7
+ }
8
+
9
+ * {
10
+ -webkit-box-sizing: border-box;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ /*
15
+ * Basic setup for body
16
+ */
17
+ body, html {
18
+ font-family: "Roboto", sans-serif;
19
+ margin: 0;
20
+ padding: 0;
21
+ min-height: 100vh;
22
+ }
23
+
24
+ img {
25
+ width: 100%;
26
+ }
27
+
28
+ /*
29
+ * Basic typography setup
30
+ */
31
+ a {
32
+ color: var(--text-color);
33
+ font-size: 0.995rem;
34
+ margin: 5px 0;
35
+ text-decoration: none;
36
+ -webkit-transition: opacity 0.2s;
37
+ -o-transition: opacity 0.2s;
38
+ transition: opacity 0.2s;
39
+ }
40
+ a:hover {
41
+ opacity: 0.8;
42
+ }
43
+
44
+ code {
45
+ font-family: "Fira Code", monospace;
46
+ }
47
+
48
+ .display-1 {
49
+ font-family: "Playfair Display", sans-serif;
50
+ margin-top: 4rem;
51
+ }
52
+ .display-1 a {
53
+ color: white;
54
+ display: block;
55
+ font-size: 5rem;
56
+ word-wrap: break-word;
57
+ }
58
+
59
+ .text-muted {
60
+ color: #6c757d;
61
+ }
62
+
63
+ /*
64
+ * Flex layout
65
+ */
66
+ .row {
67
+ display: -webkit-box;
68
+ display: -ms-flexbox;
69
+ display: flex;
70
+ }
71
+
72
+ /*
73
+ * Styles for menu
74
+ */
75
+ .menu {
76
+ background-color: var(--main-theme-color);
77
+ -webkit-box-flex: 1;
78
+ -ms-flex: 1;
79
+ flex: 1;
80
+ }
81
+
82
+ .menu .menu-content {
83
+ -webkit-box-align: end;
84
+ -ms-flex-align: end;
85
+ align-items: flex-end;
86
+ color: white;
87
+ display: -webkit-box;
88
+ display: -ms-flexbox;
89
+ display: flex;
90
+ font-size: 1.2rem;
91
+ padding: 45px;
92
+ position: -webkit-sticky;
93
+ position: sticky;
94
+ top: 0;
95
+ left: 0;
96
+ height: 100vh;
97
+ }
98
+
99
+ /* Navigation links */
100
+ .menu .nav-link {
101
+ color: white;
102
+ display: block;
103
+ }
104
+
105
+ /*
106
+ * Styles for content
107
+ */
108
+ .content-container {
109
+ -webkit-box-flex: 3;
110
+ -ms-flex: 3;
111
+ flex: 3;
112
+ padding: 30px 60px;
113
+ }
114
+
115
+ .content {
116
+ color: #808080;
117
+ line-height: 1.5;
118
+ }
119
+
120
+ .content a {font-size: 0.995rem;}
121
+
122
+ .content blockquote {
123
+ background-color: #f1f1f1;
124
+ color: var(--text-color);
125
+ margin: 0;
126
+ padding: 15px 30px;
127
+ }
128
+
129
+ .content dt {font-weight: 800;}
130
+
131
+ .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
132
+ border-bottom: 1px solid #f1f1f1;
133
+ color: gray;
134
+ font-weight: 400;
135
+ margin: 15px 0;
136
+ padding: 5px 0;
137
+ }
138
+
139
+ .content h1 {
140
+ font-size: 2.5rem;
141
+ }
142
+ .content h2 {
143
+ font-size: 2.4rem;
144
+ }
145
+ .content h3 {
146
+ font-size: 2.3rem;
147
+ }
148
+ .content h4 {
149
+ font-size: 2.2rem;
150
+ }
151
+ .content h5 {
152
+ font-size: 2.1rem;
153
+ }
154
+ .content h6 {
155
+ font-size: 2rem;
156
+ }
157
+
158
+ .content h1:before, .content h2:before, .content h3:before, .content h4:before, .content h5:before, .content h6:before {
159
+ color: #ccc;
160
+ margin-right: 10px;
161
+ }
162
+ .content h1:before {
163
+ content: "#";
164
+ font-size: 2.2rem;
165
+ }
166
+ .content h2:before {
167
+ content: "##";
168
+ font-size: 2.1rem;
169
+ }
170
+ .content h3:before {
171
+ content: "###";
172
+ font-size: 2rem;
173
+ }
174
+ .content h4:before {
175
+ content: "####";
176
+ font-size: 1.9rem;
177
+ }
178
+ .content h5:before {
179
+ content: "#####";
180
+ font-size: 1.8rem;
181
+ }
182
+ .content h6:before {
183
+ content: "######";
184
+ font-size: 1.7rem;
185
+ }
186
+
187
+ .content :not(pre) > code {
188
+ color: #dc3545;
189
+ font-size: 0.995rem;
190
+ word-wrap: break-word;
191
+ }
192
+
193
+ .content pre > code {
194
+ font-size: 0.95rem;
195
+ padding: 15px 30px;
196
+ white-space: pre-wrap;
197
+ }
198
+
199
+ .content table {
200
+ border: 1px solid #f1f1f1;
201
+ border-collapse: collapse;
202
+ overflow-x: scroll;
203
+ min-width: 100%;
204
+ }
205
+
206
+ .content thead > tr, .content tr:nth-child(even) {
207
+ background-color: #f1f1f1;
208
+ }
209
+
210
+ .content th {
211
+ font-weight: 700;
212
+ }
213
+ .content th, .content td {
214
+ padding: 14px 28px;
215
+ text-align: left !important;
216
+ }
217
+
218
+ .content ul {
219
+ margin: 0;
220
+ }
221
+
222
+ /*
223
+ * Styles for footer
224
+ */
225
+ .footer {
226
+ border-top: 1px solid #dee2e6;
227
+ color: #808080;
228
+ margin: 45px 0 15px 0;
229
+ padding: 15px;
230
+ text-align: center;
231
+ }
232
+
233
+ /* Styling for desktop */
234
+ @media screen and (min-width: 1200px) {
235
+ .content-container {
236
+ padding: 60px 120px;
237
+ }
238
+ }
239
+
240
+ @media screen and (min-width: 992px) {
241
+ .menu {
242
+ min-height: 100vh;
243
+ }
244
+
245
+ .content-container {
246
+ -webkit-box-shadow: 0 4px 8px 0 var(--main-theme-color);
247
+ box-shadow: 0 4px 8px 0 var(--main-theme-color);
248
+ }
249
+ }
250
+
251
+ /* Styling for mobile */
252
+ @media screen and (max-width: 991px) {
253
+ .display-1 {
254
+ margin: 2rem 0;
255
+ }
256
+
257
+ .row {
258
+ display: block;
259
+ }
260
+
261
+ .menu .menu-content {
262
+ padding: 25px;
263
+ }
264
+
265
+ .content-container {
266
+ padding: 25px;
267
+ }
268
+
269
+ .content h1 {
270
+ font-size: 2rem;
271
+ }
272
+ .content h2 {
273
+ font-size: 1.95rem;
274
+ }
275
+ .content h3 {
276
+ font-size: 1.9rem;
277
+ }
278
+ .content h4 {
279
+ font-size: 1.85rem;
280
+ }
281
+ .content h5 {
282
+ font-size: 1.8rem;
283
+ }
284
+ .content h6 {
285
+ font-size: 1.75rem;
286
+ }
287
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: techdoc-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jianmin-chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-02 00:00:00.000000000 Z
11
+ date: 2021-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -59,12 +59,12 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - LICENSE
62
63
  - README.md
63
64
  - _config.yml
64
65
  - _layouts/default.html
65
66
  - _layouts/post.html
66
- - assets/css/hljs-theme.css
67
- - assets/css/style.css
67
+ - assets/css/styles.css
68
68
  homepage: https://jianmin-chen.github.io/techdoc/
69
69
  licenses:
70
70
  - MIT
@@ -1,154 +0,0 @@
1
- .hljs {
2
- background: #2e3440;
3
- display: block;
4
- overflow-x: auto;
5
- padding: 0.5em;
6
- }
7
-
8
- .hljs, .hljs-subst {color: #d8dee9;}
9
-
10
- .hljs-selector-tag {color: #81a1c1;}
11
-
12
- .hljs-selector-id {
13
- color: #8fbcbb;
14
- font-weight: 700;
15
- }
16
-
17
- .hljs-selector-class {color: #8fbcbb;}
18
-
19
- .hljs-selector-attr {color: #8fbcbb;}
20
-
21
- .hljs-selector-pseudo {color: #88c0d0;}
22
-
23
- .hljs-addition {background-color: rgba(163,190,140,.5);}
24
-
25
- .hljs-deletion {background-color: rgba(191,97,106,.5);}
26
-
27
- .hljs-built_in,.hljs-type {color: #8fbcbb;}
28
-
29
- .hljs-class {color: #8fbcbb;}
30
-
31
- .hljs-function {color: #88c0d0;}
32
-
33
- .hljs-function > .hljs-title {color: #88c0d0;}
34
-
35
- .hljs-keyword, .hljs-literal, .hljs-symbol {color: #81a1c1;}
36
-
37
- .hljs-number {color: #b48ead;}
38
-
39
- .hljs-regexp {color: #ebcb8b;}
40
-
41
- .hljs-string {color: #a3be8c;}
42
-
43
- .hljs-title {color: #8fbcbb;}
44
-
45
- .hljs-params {color: #d8dee9;}
46
-
47
- .hljs-bullet {color: #81a1c1;}
48
-
49
- .hljs-code {color: #8fbcbb;}
50
-
51
- .hljs-emphasis {font-style: italic;}
52
-
53
- .hljs-formula {color: #8fbcbb;}
54
-
55
- .hljs-strong {font-weight: 700;}
56
-
57
- .hljs-link:hover {text-decoration: underline;}
58
-
59
- .hljs-quote {color: #4c566a;}
60
-
61
- .hljs-comment {color: #4c566a;}
62
-
63
- .hljs-doctag {color: #8fbcbb;}
64
-
65
- .hljs-meta, .hljs-meta-keyword {color: #5e81ac;}
66
-
67
- .hljs-meta-string {color: #a3be8c;}
68
-
69
- .hljs-attr {color: #8fbcbb;}
70
-
71
- .hljs-attribute {color: #d8dee9;}
72
-
73
- .hljs-builtin-name {color: #81a1c1;}
74
-
75
- .hljs-name {color: #81a1c1;}
76
-
77
- .hljs-section {color: #88c0d0;}
78
-
79
- .hljs-tag {color: #81a1c1;}
80
-
81
- .hljs-variable {color: #d8dee9;}
82
-
83
- .hljs-template-variable {color: #d8dee9;}
84
-
85
- .hljs-template-tag {color: #5e81ac;}
86
-
87
- .abnf .hljs-attribute {color: #88c0d0;}
88
-
89
- .abnf .hljs-symbol {color: #ebcb8b;}
90
-
91
- .apache .hljs-attribute {color: #88c0d0;}
92
-
93
- .apache .hljs-section {color: #81a1c1;}
94
-
95
- .arduino .hljs-built_in {color: #88c0d0;}
96
-
97
- .aspectj .hljs-meta {color: #d08770;}
98
-
99
- .aspectj > .hljs-title {color: #88c0d0;}
100
-
101
- .bnf .hljs-attribute {color: #8fbcbb;}
102
-
103
- .clojure .hljs-name {color: #88c0d0;}
104
-
105
- .clojure .hljs-symbol {color: #ebcb8b;}
106
-
107
- .coq .hljs-built_in {color: #88c0d0;}
108
-
109
- .cpp .hljs-meta-string {color: #8fbcbb;}
110
-
111
- .css .hljs-built_in {color: #88c0d0;}
112
-
113
- .css .hljs-keyword {color: #d08770;}
114
-
115
- .diff .hljs-meta {color: #8fbcbb;}
116
-
117
- .ebnf .hljs-attribute {color: #8fbcbb;}
118
-
119
- .glsl .hljs-built_in {color: #88c0d0;}
120
-
121
- .groovy .hljs-meta:not(:first-child) {color: #d08770;}
122
-
123
- .haxe .hljs-meta {color: #d08770;}
124
-
125
- .java .hljs-meta {color: #d08770;}
126
-
127
- .ldif .hljs-attribute {color: #8fbcbb;}
128
-
129
- .lisp .hljs-name {color: #88c0d0;}
130
-
131
- .lua .hljs-built_in {color: #88c0d0;}
132
-
133
- .moonscript .hljs-built_in {color: #88c0d0;}
134
-
135
- .nginx .hljs-attribute{color: #88c0d0}
136
-
137
- .nginx .hljs-section {color: #5e81ac;}
138
-
139
- .pf .hljs-built_in {color:#88c0d0;}
140
-
141
- .processing .hljs-built_in {color: #88c0d0;}
142
-
143
- .scss .hljs-keyword {color: #81a1c1;}
144
-
145
- .stylus .hljs-keyword {color: #81a1c1;}
146
-
147
- .swift .hljs-meta {color: #d08770;}
148
-
149
- .vim .hljs-built_in {
150
- color: #88c0d0;
151
- font-style:italic;
152
- }
153
-
154
- .yaml .hljs-meta {color: #d08770;}
data/assets/css/style.css DELETED
@@ -1,190 +0,0 @@
1
- /* Import Google Fonts */
2
- @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Open+Sans:wght@400;700&display=swap');
3
-
4
- /* Import highlight.js theme */
5
- @import "hljs-theme.css";
6
-
7
- :root {
8
- --main-theme-color: #273036;
9
- --text-color: #6c757d;
10
- }
11
-
12
- * {
13
- -webkit-box-sizing: border-box;
14
- box-sizing: border-box;
15
- }
16
-
17
- /*
18
- * Basic setup for body
19
- */
20
- body, html {
21
- font-family: "Noto Sans", sans-serif;
22
- margin: 0;
23
- padding: 0;
24
- min-height: 100vh;
25
- }
26
-
27
- img {width: 100%;}
28
-
29
- /*
30
- * Basic typography setup
31
- */
32
- a {
33
- color: var(--text-color);
34
- font-size: 0.95rem;
35
- margin: 5px 0;
36
- text-decoration: none;
37
- -webkit-transition: opacity 0.2s;
38
- -o-transition: opacity 0.2s;
39
- transition: opacity 0.2s;
40
- }
41
- a:hover {opacity: 0.8;}
42
-
43
- .display-1 {margin: 4rem 0;}
44
- .display-1 a {
45
- color: white;
46
- display: block;
47
- font-size: 5rem;
48
- word-wrap: break-word;
49
- }
50
-
51
- .text-muted {color: #6c757d;}
52
-
53
- /*
54
- * Flex layout
55
- */
56
- .row {
57
- display: -webkit-box;
58
- display: -ms-flexbox;
59
- display: flex;
60
- }
61
-
62
- /*
63
- * Styles for menu
64
- */
65
- .menu {
66
- background-color: var(--main-theme-color);
67
- -webkit-box-flex: 1;
68
- -ms-flex: 1;
69
- flex: 1;
70
- }
71
-
72
- .menu .menu-content {
73
- color: white;
74
- font-size: 1.2rem;
75
- padding: 45px;
76
- position: -webkit-sticky;
77
- position: sticky;
78
- top: 0;
79
- left: 0;
80
- }
81
-
82
- /* Navigation links */
83
- .menu .nav-link {
84
- color: white;
85
- display: block;
86
- }
87
-
88
- /*
89
- * Styles for content
90
- */
91
- .content-container {
92
- -webkit-box-flex: 2;
93
- -ms-flex: 2;
94
- flex: 2;
95
- padding: 45px;
96
- }
97
-
98
- .content {
99
- color: #242526;
100
- line-height: 1.5;
101
- font-family: "Open Sans", sans-serif;
102
- }
103
-
104
- .content a {font-size: 0.995rem;}
105
-
106
- .content blockquote {
107
- border-left: 0.3rem solid var(--text-color);
108
- color: var(--text-color);
109
- margin: 0;
110
- padding: 0 1rem;
111
- }
112
-
113
- .content dt {font-weight: 800;}
114
-
115
- .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
116
- color: var(--text-color);
117
- font-weight: 400;
118
- margin: 15px 0;
119
- }
120
- .content h1 {font-size: 2.5rem;}
121
- .content h2 {font-size: 2.4rem;}
122
- .content h3 {font-size: 2.3rem;}
123
- .content h4 {font-size: 2.2rem;}
124
- .content h5 {font-size: 2.1rem;}
125
- .content h6 {font-size: 2rem;}
126
-
127
- .content :not(pre) > code {
128
- color: #dc3545;
129
- font-size: 1rem;
130
- word-wrap: break-word;
131
- }
132
-
133
- .content pre > code {
134
- -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
135
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
136
- font-size: 0.95rem;
137
- padding: 15px 30px;
138
- }
139
-
140
- .content table {
141
- border-collapse: collapse;
142
- overflow-x: scroll;
143
- }
144
-
145
- .content thead > tr, .content tr:nth-child(even) {background-color: #dee2e6;}
146
-
147
- .content th {font-weight: 700;}
148
- .content th, .content td {
149
- padding: 7px 14px;
150
- text-align: left !important;
151
- }
152
-
153
- /*
154
- * Styles for footer
155
- */
156
- .footer {
157
- border-top: 1px solid #dee2e6;
158
- color: #808080;
159
- margin: 15px;
160
- padding: 15px;
161
- text-align: center;
162
- }
163
-
164
- /* Styling for desktop */
165
- @media screen and (min-width: 992px) {
166
- .menu {
167
- -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
168
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
169
- min-height: 100vh;
170
- }
171
- }
172
-
173
- /* Styling for mobile */
174
- @media screen and (max-width: 991px) {
175
- .display-1 {margin: 2rem 0;}
176
- .display-1 a {font-size: 3.5rem;}
177
-
178
- .row {display: block;}
179
-
180
- .menu .menu-content {padding: 25px;}
181
-
182
- .content-container {padding: 25px;}
183
-
184
- .content h1 {font-size: 2rem;}
185
- .content h2 {font-size: 1.95rem;}
186
- .content h3 {font-size: 1.9rem;}
187
- .content h4 {font-size: 1.85rem;}
188
- .content h5 {font-size: 1.8rem;}
189
- .content h6 {font-size: 1.75rem;}
190
- }