minimal-light 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4be9196e4c4e6845109af3895328cd6ad0933bef533bbf6beb76e282ebc63da0
4
+ data.tar.gz: 0f81a8b189ef6eed798fd736c1c2b24b9754b102dc094ea620d29ccb60516a8e
5
+ SHA512:
6
+ metadata.gz: 74d30d331147cd6035a6ac92e04734c5d11b29a3a3ff1f17f1d8c6372c97d69cfc66d322551d87982e04249171c4207b08efad1a9883963b295710a01ee27512
7
+ data.tar.gz: 8f03137441afcef6cf447e105598f74f5dd475ddbcbb50cd22e00b894a2cf021183b06a38ab2814a30b76848598339c151fffad2be4901715e949451a53250f1
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/>
@@ -0,0 +1,109 @@
1
+ # The Minimal Light Theme
2
+
3
+ [![LICENSE](https://img.shields.io/github/license/yaoyao-liu/minimal-academic)](https://github.com/yaoyao-liu/minimal-light/blob/master/LICENSE)
4
+ [![gem](https://img.shields.io/gem/v/jekyll-minimal-light)](https://rubygems.org/gems/jekyll-minimal-light)
5
+ [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.5-orange.svg)](https://jekyllrb.com/)
6
+ [![Build Status](https://travis-ci.com/yaoyao-liu/jekyll-minimal-academic.svg?branch=master)](https://travis-ci.com/yaoyao-liu/jekyll-minimal-academic)
7
+
8
+ [Demo the theme](https://minimal-light.yyliu.net/)
9
+
10
+ *This is the source code of my homepage. I build this website based on [minimal](https://github.com/orderedlist/minimal).*
11
+ <br>
12
+ *Feel free to use the source code anywhere you like.*
13
+
14
+ ## Features
15
+
16
+ - Simple and elegant personal homepage theme
17
+ - Jekyll theme, deploy automatically by GitHub pages
18
+ - Support Markdown
19
+ - Support dark mode
20
+
21
+ ## Usage
22
+
23
+ ### Using on GitHub
24
+
25
+ To use this theme, add the following to your site's `_config.yml`:
26
+
27
+ ```yaml
28
+ remote_theme: yaoyao-liu/minimal-light
29
+ ```
30
+
31
+ ### Using with Jekyll
32
+
33
+ *You need to install [Ruby](https://www.ruby-lang.org/en/) and [Jekyll](https://jekyllrb.com/) fisrt.*
34
+
35
+ Clone this repository:
36
+
37
+ ```bash
38
+ git clone https://github.com/yaoyao-liu/minimal-light.git
39
+ cd minimal-light
40
+ ```
41
+ Install and run:
42
+
43
+ ```bash
44
+ bundle install
45
+ bundle exec jekyll server
46
+ ```
47
+ View the live page using `localhost`:
48
+ <http://localhost:4000>. You can get the html files in `_site` folder.
49
+
50
+ ## Customizing
51
+
52
+ ### Configuration variables
53
+
54
+ Minimal Academic theme will respect the following variables, if set in your site's `_config.yml`:
55
+
56
+ ```yaml
57
+ title: Your Name
58
+ affiliation: Your Affiliation
59
+ email: yourname (at) example.edu
60
+ google_scholar: https://scholar.google.com/
61
+ github_link: https://github.com/yaoyao-liu/minimal-light
62
+ linkedin: https://www.linkedin.com/
63
+ avatar: ./assets/img/avatar.png
64
+ google_analytics: UA-111540567-4
65
+ favicon: ./assets/img/favicon.png
66
+ favicon_dark: ./assets/img/favicon-dark.png
67
+ description: The Minimal Light is a simple and elegant jekyll theme for academic personal homepage.
68
+ canonical: https://minimal-light.yyliu.net/
69
+ remote_theme: yaoyao-liu/minimal-light
70
+ ```
71
+ ### Editing `index.md`
72
+
73
+ Edit `index.md` and add your personal information (e.g. publications, research).
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
+ 3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
89
+
90
+ ### Layouts
91
+
92
+ If you'd like to change the theme's HTML layout:
93
+
94
+ 1. [Copy the original template](https://github.com/yaoyao-liu/minimal-light/blob/master/_layouts/homepage.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
95
+ 2. Create a file called `/_layouts/homepage.html` in your site
96
+ 3. Paste the default layout content copied in the first step
97
+ 4. Customize the layout as you'd like
98
+
99
+ ## License
100
+
101
+ This work is licensed under a [Creative Commons Zero v1.0 Universal](https://github.com/yaoyao-liu/minimal-light/blob/master/LICENSE) License.
102
+
103
+ ## Acknowledgements
104
+
105
+ Our project uses the source code from the following repositories:
106
+
107
+ * [pages-themes/minimal](https://github.com/pages-themes/minimal)
108
+
109
+ * [orderedlist/minimal](https://github.com/orderedlist/minimal)
@@ -0,0 +1,92 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
+ <head>
4
+ <title>{{ site.title }} | {{site.affiliation}}</title>
5
+
6
+ <meta charset="UTF-8">
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <meta name="description" content="{{ site.description }}">
10
+ {% if site.keywords %}
11
+ <meta name="keywords" content="{{ site.keywords }}">
12
+ {% endif %}
13
+ {% if site.canonical %}
14
+ <link rel="canonical" href="{{ site.canonical }}"/>
15
+ {% endif %}
16
+
17
+ <link rel="icon" media="(prefers-color-scheme:dark)" href="{{ site.favicon_dark }}" type="image/png" />
18
+ <link rel="icon" media="(prefers-color-scheme:light)" href="{{ site.favicon }}" type="image/png" />
19
+ <script src="./assets/js/favicon-switcher.js" type="application/javascript"></script>
20
+
21
+ <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/academicons/1.8.6/css/academicons.min.css integrity="sha256-uFVgMKfistnJAfoCUQigIl+JfUaP47GrRKjf6CTPVmw=" crossorigin=anonymous>
22
+ <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin=anonymous>
23
+
24
+ <link rel="stylesheet" href="./assets/css/style.css">
25
+ </head>
26
+ <body>
27
+ <div class="wrapper">
28
+ <header>
29
+
30
+ {% if site.avatar %}
31
+ <a class="image avatar"><img src="{{site.avatar}}" alt="avatar" onContextMenu="return false" /></a>
32
+ {% endif %}
33
+
34
+ <h1>{{ site.title }}</h1>
35
+ <p>
36
+ {% if site.position %}
37
+ {{ site.position }}
38
+ <br>
39
+ {% endif %}
40
+ {{ site.affiliation }}
41
+ <br>
42
+ {% if site.email %}
43
+ {{ site.email }}</p>
44
+ {% endif %}
45
+
46
+ </header>
47
+ <section>
48
+
49
+ {{ content }}
50
+
51
+ <br>
52
+
53
+ <p><small>Powered by Jekyll and <a href="https://github.com/yaoyao-liu/minimal-light" target="_blank" rel="noopener">Minimal Light</a> theme.</small></p>
54
+
55
+ </section>
56
+ <footer>
57
+ <div class="social-icons">
58
+
59
+ {% if site.linkedin %}
60
+ <a href="{{ site.linkedin }}" target="_blank">
61
+ <i class="fab fa-linkedin-in"></i>
62
+ </a>
63
+ {% endif %}
64
+ {% if site.google_scholar %}
65
+ <a href="{{ site.google_scholar}}" target="_blank">
66
+ <i class="ai ai-google-scholar" style="font-size:1.6rem"></i>
67
+ </a>
68
+ {% endif %}
69
+ {% if site.github_link %}
70
+ <a href="{{ site.github_link }}" target="_blank">
71
+ <i class="fab fa-github"></i>
72
+ </a>
73
+ {% endif %}
74
+ </div>
75
+ <br>
76
+ <br>
77
+ <br>
78
+ </footer>
79
+ </div>
80
+ <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
81
+ {% if site.google_analytics %}
82
+ <script>
83
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
84
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
85
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
86
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
87
+ ga('create', '{{ site.google_analytics }}', 'auto');
88
+ ga('send', 'pageview');
89
+ </script>
90
+ {% endif %}
91
+ </body>
92
+ </html>
File without changes
@@ -0,0 +1,452 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,600&display=swap');
2
+
3
+ body {
4
+ background-color: #fff;
5
+ padding:0px;
6
+ font: 16.0px/1.5 Crimson Pro, serif;
7
+ color:#595959;
8
+ font-weight:400;
9
+ margin:0
10
+ }
11
+
12
+ .social-icons a{display:inline-block;height:3rem;width:3rem;background-color:#495057;color:#fff!important;border-radius:100%;text-align:center;font-size:1.5rem;line-height:3.1rem;margin-right:1rem}.social-icons a:last-child{margin-right:0}.social-icons a:hover{background-color:#000000}
13
+
14
+ autocolor{
15
+ color:#494949;
16
+ }
17
+
18
+ lightonly {
19
+ visibility: visible;
20
+ }
21
+
22
+ darkonly {
23
+ visibility: hidden;
24
+ }
25
+
26
+ education {
27
+ font-weight: 500;
28
+ font-size: 115%;
29
+ }
30
+ papertitle {
31
+ font-weight: 600;
32
+ font-size: 100%;
33
+ }
34
+
35
+ @media (prefers-color-scheme: dark) {
36
+ body {
37
+ background-color: #20212b;
38
+ color: #dadbdf;
39
+ }
40
+
41
+ h3, h4, h5, h6 {
42
+ color:#dadbdf;
43
+ }
44
+
45
+ autocolor{
46
+ color:#dadbdf;
47
+ }
48
+
49
+ lightonly {
50
+ visibility: hidden;
51
+ }
52
+
53
+ darkonly {
54
+ visibility: visible;
55
+ }
56
+
57
+ papertitle {
58
+ color:#eeeff0;
59
+ }
60
+
61
+ }
62
+
63
+
64
+ .image {
65
+ border-radius: 0.35em;
66
+ border: 0;
67
+ display: inline-block;
68
+ position: relative;
69
+ }
70
+
71
+ .image:before {
72
+ -moz-transition: opacity 0.2s ease-in-out;
73
+ -webkit-transition: opacity 0.2s ease-in-out;
74
+ -ms-transition: opacity 0.2s ease-in-out;
75
+ transition: opacity 0.2s ease-in-out;
76
+ border-radius: 0.35em;
77
+ content: '';
78
+ display: block;
79
+ height: 100%;
80
+ left: 0;
81
+ opacity: 0.5;
82
+ position: absolute;
83
+ top: 0;
84
+ width: 100%;
85
+ }
86
+
87
+ .image.avatar {
88
+ border-radius: 100%;
89
+ }
90
+
91
+ .image.avatar:before {
92
+ display: none;
93
+ }
94
+
95
+ .image.avatar img {
96
+ border-radius: 100%;
97
+ width: 50%;
98
+ padding:20px;
99
+ }
100
+
101
+ #header .image.avatar {
102
+ margin: 0 0 1em 0;
103
+ width: 8.00em;
104
+ }
105
+
106
+ h1, h3, h4, h5, h6 {
107
+ font-weight: 600;
108
+ color:#043361;
109
+ margin:0 0 20px;
110
+ }
111
+
112
+ h2 {
113
+ color:#043361;
114
+ margin:2px 0px 15px;
115
+ font-size: 157%;
116
+ }
117
+
118
+ @media (prefers-color-scheme: dark) {
119
+ h1, h3, h4, h5, h6 {
120
+ color:rgb(62, 183, 240);
121
+ }
122
+
123
+ h2 {
124
+ color:rgb(62, 183, 240);
125
+ }
126
+ }
127
+
128
+ p, ul, ol, table, pre, dl {
129
+ margin:0 0 20px;
130
+ }
131
+
132
+ h1, h2, h3 {
133
+ line-height:1.1;
134
+ }
135
+
136
+ h1 {
137
+ font-size:28px;
138
+ font-weight: 500;
139
+ }
140
+
141
+ h2 {
142
+ font-weight: 500;
143
+ }
144
+
145
+ h3, h4, h5, h6 {
146
+ color:#494949;
147
+ font-weight: 500;
148
+ }
149
+
150
+ a {
151
+ color:#39c;
152
+ text-decoration:none;
153
+ }
154
+
155
+ a:hover {
156
+ color:#069;
157
+ }
158
+
159
+ @media (prefers-color-scheme: dark) {
160
+ a {
161
+ color:rgb(62, 183, 240);
162
+ }
163
+ }
164
+
165
+ a small {
166
+ font-size:11px;
167
+ color:#777;
168
+ margin-top:-0.3em;
169
+ display:block;
170
+ }
171
+
172
+ a:hover small {
173
+ color:#777;
174
+ }
175
+
176
+ .wrapper {
177
+ width:960px;
178
+ margin:0 auto;
179
+ }
180
+
181
+ blockquote {
182
+ border-left:1px solid #e5e5e5;
183
+ margin:0;
184
+ padding:0 0 0 20px;
185
+ font-style:italic;
186
+ }
187
+
188
+ code, pre {
189
+ font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
190
+ color:#333;
191
+ }
192
+
193
+ pre {
194
+ max-width:500px;
195
+ padding:8px 15px;
196
+ background: #f8f8f8;
197
+ border-radius:5px;
198
+ border:1px solid #e5e5e5;
199
+ overflow-x: auto;
200
+ }
201
+
202
+ table {
203
+ width:100%;
204
+ border-collapse:collapse;
205
+ }
206
+
207
+ th, td {
208
+ text-align:left;
209
+ padding:5px 10px;
210
+ border-bottom:1px solid #e5e5e5;
211
+ }
212
+
213
+ dt {
214
+ color:#444;
215
+ font-weight:500;
216
+ }
217
+
218
+ th {
219
+ color:#444;
220
+ }
221
+
222
+ img {
223
+ max-width:100%;
224
+ }
225
+
226
+ header {
227
+ width:220px;
228
+ float:left;
229
+ position:fixed;
230
+ -webkit-font-smoothing:subpixel-antialiased;
231
+ padding-top:4.0em;
232
+ text-align:center
233
+ }
234
+
235
+
236
+
237
+ header ul {
238
+ list-style:none;
239
+ height:40px;
240
+ padding:0;
241
+ background: #f4f4f4;
242
+ border-radius:5px;
243
+ border:1px solid #e0e0e0;
244
+ width:270px;
245
+ }
246
+
247
+ header li {
248
+ width:89px;
249
+ float:left;
250
+ border-right:1px solid #e0e0e0;
251
+ height:40px;
252
+ }
253
+
254
+ header li:first-child a {
255
+ border-radius:5px 0 0 5px;
256
+ }
257
+
258
+ header li:last-child a {
259
+ border-radius:0 5px 5px 0;
260
+ }
261
+
262
+ header ul a {
263
+ line-height:1;
264
+ font-size:11px;
265
+ color:#999;
266
+ display:block;
267
+ text-align:center;
268
+ padding-top:6px;
269
+ height:34px;
270
+ }
271
+
272
+ header ul a:hover {
273
+ color:#999;
274
+ }
275
+
276
+ header ul a:active {
277
+ background-color:#f0f0f0;
278
+ }
279
+
280
+ strong {
281
+ color:#222;
282
+ font-weight:500;
283
+ }
284
+
285
+ @media (prefers-color-scheme: dark) {
286
+ strong {
287
+ color:#eeeff0;
288
+ }
289
+ }
290
+
291
+ header ul li + li + li {
292
+ border-right:none;
293
+ width:89px;
294
+ }
295
+
296
+ header ul a strong {
297
+ font-size:14px;
298
+ display:block;
299
+ color:#222;
300
+ }
301
+
302
+ section {
303
+ width:650px;
304
+ float:right;
305
+ padding-top:4.0em;
306
+ padding-bottom:50px;
307
+ }
308
+
309
+ small {
310
+ font-size:11px;
311
+ }
312
+
313
+ hr {
314
+ border:0;
315
+ background:#e5e5e5;
316
+ height:1px;
317
+ margin:0 0 20px;
318
+ }
319
+
320
+ footer {
321
+ width:220px;
322
+ float:left;
323
+ position:fixed;
324
+ bottom:30px;
325
+ -webkit-font-smoothing:subpixel-antialiased;
326
+ text-align:center;
327
+ }
328
+
329
+ @media print, screen and (max-width: 960px) {
330
+
331
+ div.wrapper {
332
+ width:auto;
333
+ margin:0;
334
+ }
335
+
336
+
337
+ header, section, footer {
338
+ float:none;
339
+ position:static;
340
+ width:auto;
341
+ }
342
+
343
+ header {
344
+ padding-right:320px;
345
+ }
346
+
347
+ section {
348
+ border:1px solid #e5e5e5;
349
+ border-width:1px 0;
350
+ padding:20px 0;
351
+ margin:0 0 20px;
352
+ }
353
+
354
+ header a small {
355
+ display:inline;
356
+ }
357
+
358
+ header ul {
359
+ position:absolute;
360
+ right:50px;
361
+ top:52px;
362
+ }
363
+
364
+
365
+ .image.avatar img {
366
+ border-radius: 100%;
367
+ width: 30%;
368
+ padding:20px;
369
+ }
370
+ #head1o2 {
371
+ visibility: hidden;
372
+ }
373
+
374
+ #head2o2 {
375
+ visibility: hidden;
376
+ }
377
+
378
+ }
379
+
380
+ @media print, screen and (max-width: 960px) {
381
+ body {
382
+ word-wrap:break-word;
383
+ padding:15px;
384
+ }
385
+
386
+ header {
387
+ padding:0;
388
+ }
389
+
390
+ header ul, header p.view {
391
+
392
+ }
393
+
394
+ pre, code {
395
+ word-wrap:normal;
396
+ }
397
+ }
398
+
399
+ @media print, screen and (max-width: 480px) {
400
+ body {
401
+ padding:15px;
402
+ }
403
+
404
+ header ul {
405
+ width:99%;
406
+ }
407
+
408
+ header li, header ul li + li + li {
409
+ width:33%;
410
+ }
411
+
412
+ .image.avatar img {
413
+ border-radius: 100%;
414
+ width: 40%;
415
+ padding:20px;
416
+ }
417
+ #head1o2 {
418
+ visibility: hidden;
419
+ }
420
+
421
+ #head2o2 {
422
+ visibility: hidden;
423
+ }
424
+
425
+ }
426
+
427
+ @media print {
428
+ body {
429
+ padding:0.4in;
430
+ font-size:12pt;
431
+ color:#444;
432
+ }
433
+ }
434
+
435
+ .biblink {
436
+ text-decoration:none;
437
+ display: inline;
438
+ margin-right: 0px;
439
+ }
440
+
441
+ .fakelink {
442
+ text-decoration: none;
443
+ cursor: pointer;
444
+ }
445
+
446
+ .bibref {
447
+ font-size: 70%;
448
+ margin-top: 10px;
449
+ margin-left: 0px;
450
+ display:none;
451
+ font-family: monospace;
452
+ }
@@ -0,0 +1,209 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight .cm {
4
+ color: #999988;
5
+ font-style: italic;
6
+ }
7
+ .highlight .cp {
8
+ color: #999999;
9
+ font-weight: bold;
10
+ }
11
+ .highlight .c1 {
12
+ color: #999988;
13
+ font-style: italic;
14
+ }
15
+ .highlight .cs {
16
+ color: #999999;
17
+ font-weight: bold;
18
+ font-style: italic;
19
+ }
20
+ .highlight .c, .highlight .cd {
21
+ color: #999988;
22
+ font-style: italic;
23
+ }
24
+ .highlight .err {
25
+ color: #a61717;
26
+ background-color: #e3d2d2;
27
+ }
28
+ .highlight .gd {
29
+ color: #000000;
30
+ background-color: #ffdddd;
31
+ }
32
+ .highlight .ge {
33
+ color: #000000;
34
+ font-style: italic;
35
+ }
36
+ .highlight .gr {
37
+ color: #aa0000;
38
+ }
39
+ .highlight .gh {
40
+ color: #999999;
41
+ }
42
+ .highlight .gi {
43
+ color: #000000;
44
+ background-color: #ddffdd;
45
+ }
46
+ .highlight .go {
47
+ color: #888888;
48
+ }
49
+ .highlight .gp {
50
+ color: #555555;
51
+ }
52
+ .highlight .gs {
53
+ font-weight: bold;
54
+ }
55
+ .highlight .gu {
56
+ color: #aaaaaa;
57
+ }
58
+ .highlight .gt {
59
+ color: #aa0000;
60
+ }
61
+ .highlight .kc {
62
+ color: #000000;
63
+ font-weight: bold;
64
+ }
65
+ .highlight .kd {
66
+ color: #000000;
67
+ font-weight: bold;
68
+ }
69
+ .highlight .kn {
70
+ color: #000000;
71
+ font-weight: bold;
72
+ }
73
+ .highlight .kp {
74
+ color: #000000;
75
+ font-weight: bold;
76
+ }
77
+ .highlight .kr {
78
+ color: #000000;
79
+ font-weight: bold;
80
+ }
81
+ .highlight .kt {
82
+ color: #445588;
83
+ font-weight: bold;
84
+ }
85
+ .highlight .k, .highlight .kv {
86
+ color: #000000;
87
+ font-weight: bold;
88
+ }
89
+ .highlight .mf {
90
+ color: #009999;
91
+ }
92
+ .highlight .mh {
93
+ color: #009999;
94
+ }
95
+ .highlight .il {
96
+ color: #009999;
97
+ }
98
+ .highlight .mi {
99
+ color: #009999;
100
+ }
101
+ .highlight .mo {
102
+ color: #009999;
103
+ }
104
+ .highlight .m, .highlight .mb, .highlight .mx {
105
+ color: #009999;
106
+ }
107
+ .highlight .sb {
108
+ color: #d14;
109
+ }
110
+ .highlight .sc {
111
+ color: #d14;
112
+ }
113
+ .highlight .sd {
114
+ color: #d14;
115
+ }
116
+ .highlight .s2 {
117
+ color: #d14;
118
+ }
119
+ .highlight .se {
120
+ color: #d14;
121
+ }
122
+ .highlight .sh {
123
+ color: #d14;
124
+ }
125
+ .highlight .si {
126
+ color: #d14;
127
+ }
128
+ .highlight .sx {
129
+ color: #d14;
130
+ }
131
+ .highlight .sr {
132
+ color: #009926;
133
+ }
134
+ .highlight .s1 {
135
+ color: #d14;
136
+ }
137
+ .highlight .ss {
138
+ color: #990073;
139
+ }
140
+ .highlight .s {
141
+ color: #d14;
142
+ }
143
+ .highlight .na {
144
+ color: #008080;
145
+ }
146
+ .highlight .bp {
147
+ color: #999999;
148
+ }
149
+ .highlight .nb {
150
+ color: #0086B3;
151
+ }
152
+ .highlight .nc {
153
+ color: #445588;
154
+ font-weight: bold;
155
+ }
156
+ .highlight .no {
157
+ color: #008080;
158
+ }
159
+ .highlight .nd {
160
+ color: #3c5d5d;
161
+ font-weight: bold;
162
+ }
163
+ .highlight .ni {
164
+ color: #800080;
165
+ }
166
+ .highlight .ne {
167
+ color: #990000;
168
+ font-weight: bold;
169
+ }
170
+ .highlight .nf {
171
+ color: #990000;
172
+ font-weight: bold;
173
+ }
174
+ .highlight .nl {
175
+ color: #990000;
176
+ font-weight: bold;
177
+ }
178
+ .highlight .nn {
179
+ color: #555555;
180
+ }
181
+ .highlight .nt {
182
+ color: #000080;
183
+ }
184
+ .highlight .vc {
185
+ color: #008080;
186
+ }
187
+ .highlight .vg {
188
+ color: #008080;
189
+ }
190
+ .highlight .vi {
191
+ color: #008080;
192
+ }
193
+ .highlight .nv {
194
+ color: #008080;
195
+ }
196
+ .highlight .ow {
197
+ color: #000000;
198
+ font-weight: bold;
199
+ }
200
+ .highlight .o {
201
+ color: #000000;
202
+ font-weight: bold;
203
+ }
204
+ .highlight .w {
205
+ color: #bbbbbb;
206
+ }
207
+ .highlight {
208
+ background-color: #f8f8f8;
209
+ }
Binary file
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "minimal-light";
Binary file
Binary file
@@ -0,0 +1,64 @@
1
+ ;(function(mod){
2
+ function collectLinks() {
3
+ return Array.prototype.slice.apply(
4
+ document.head.querySelectorAll('link[rel*="icon"]')
5
+ )
6
+ }
7
+
8
+ function applyLink(source, target) {
9
+ target.setAttribute('type', source.getAttribute('type'))
10
+ target.setAttribute('href', source.getAttribute('href'))
11
+ }
12
+
13
+ // eslint-disable-next-line no-unused-vars
14
+ function initSwitcher(delay) {
15
+ // Exit if media queries aren't supported
16
+ if (typeof window.matchMedia !== 'function') {
17
+ return function noop() {}
18
+ }
19
+
20
+ var links = collectLinks()
21
+ var current = document.createElement('link')
22
+ var prevMatch
23
+
24
+ current.setAttribute('rel', 'shortcut icon')
25
+ document.head.appendChild(current)
26
+
27
+ function faviconApplyLoop() {
28
+ var matched
29
+
30
+ links.forEach(function(link) {
31
+ if (window.matchMedia(link.media).matches) {
32
+ matched = link
33
+ }
34
+ })
35
+
36
+ if (! matched) {
37
+ return
38
+ }
39
+
40
+ if (matched.media !== prevMatch) {
41
+ prevMatch = matched.media
42
+ applyLink(matched, current)
43
+ }
44
+ }
45
+
46
+ var intervalId = setInterval(faviconApplyLoop, delay || 300)
47
+
48
+ function unsubscribe() {
49
+ clearInterval(intervalId)
50
+ links.forEach(function(link) {
51
+ document.head.appendChild(link)
52
+ })
53
+ }
54
+
55
+ faviconApplyLoop()
56
+ links.forEach(function(link) {
57
+ document.head.removeChild(link)
58
+ })
59
+
60
+ return unsubscribe
61
+ }
62
+
63
+ initSwitcher()
64
+ })()
@@ -0,0 +1,27 @@
1
+ (function(document) {
2
+ var metas = document.getElementsByTagName('meta'),
3
+ changeViewportContent = function(content) {
4
+ for (var i = 0; i < metas.length; i++) {
5
+ if (metas[i].name == "viewport") {
6
+ metas[i].content = content;
7
+ }
8
+ }
9
+ },
10
+ initialize = function() {
11
+ changeViewportContent("width=device-width, minimum-scale=1.0, maximum-scale=1.0");
12
+ },
13
+ gestureStart = function() {
14
+ changeViewportContent("width=device-width, minimum-scale=0.25, maximum-scale=1.6");
15
+ },
16
+ gestureEnd = function() {
17
+ initialize();
18
+ };
19
+
20
+
21
+ if (navigator.userAgent.match(/iPhone/i)) {
22
+ initialize();
23
+
24
+ document.addEventListener("touchstart", gestureStart, false);
25
+ document.addEventListener("touchend", gestureEnd, false);
26
+ }
27
+ })(document);
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minimal-light
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Yaoyao Liu
8
+ - MPI for Informatics
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2020-04-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jekyll
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">"
19
+ - !ruby/object:Gem::Version
20
+ version: '3.5'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '5.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">"
29
+ - !ruby/object:Gem::Version
30
+ version: '3.5'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ - !ruby/object:Gem::Dependency
35
+ name: jekyll-seo-tag
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: html-proofer
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rubocop
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.50'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.50'
76
+ - !ruby/object:Gem::Dependency
77
+ name: w3c_validators
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ description:
91
+ email:
92
+ - yaoyao.liu@mpi-inf.mpg.de
93
+ executables: []
94
+ extensions: []
95
+ extra_rdoc_files: []
96
+ files:
97
+ - LICENSE
98
+ - README.md
99
+ - _layouts/homepage.html
100
+ - _sass/fonts.scss
101
+ - _sass/minimal-light.scss
102
+ - _sass/rouge-github.scss
103
+ - assets/.DS_Store
104
+ - assets/css/style.scss
105
+ - assets/img/avatar.png
106
+ - assets/img/favicon-dark.png
107
+ - assets/img/favicon.png
108
+ - assets/js/favicon-switcher.js
109
+ - assets/js/scale.fix.js
110
+ homepage: https://github.com/yaoyao-liu/minimal-light
111
+ licenses:
112
+ - CC0-1.0
113
+ metadata: {}
114
+ post_install_message:
115
+ rdoc_options: []
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 2.4.0
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 2.7.0
128
+ requirements: []
129
+ rubygems_version: 3.0.3
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: Minimal Light is a Jekyll theme for academic GitHub Pages
133
+ test_files: []