persona-jekyll 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c23c8a8db08eeea537f6233980dfb027698a7c83e63439aaa61cf4085ee24ce6
4
- data.tar.gz: bd3d54f10058ac1b6a1d4bc06f465c21fa22dfd331db9eaa5f91595c73a4c680
3
+ metadata.gz: '0178a526a7ed91160e5c60469618e597d34616d94bb4f8fb306115273af755b8'
4
+ data.tar.gz: bfab39ea2a8b678ea09f98b42a4e9ce74e564261d3d2a1c7c6c04e9a64cab4c3
5
5
  SHA512:
6
- metadata.gz: 33bc0224b0035aca1602b8e1384027da241088280fbd6be94c2dc734d79b8680a780bd9a950f0c8b8a32774517a3c90dbe354e8fc89f353a4a10fbb4a66a2b04
7
- data.tar.gz: 253abd394ae15f9931cf8e5d37c6ee4a0db280f79a994ffde6e9fa56048566b3d929a56321699ef5b7e70217f3aa517054cbe7f670e409c6148357c84c468cd3
6
+ metadata.gz: f54bf6ac112248331bdfcc66e4115cf857392ce639e8273f17277b8632e491f447496500679ba6a82451f24f1f1c053b5fefb5e9e6bfb5ee2053d2fa2432933f
7
+ data.tar.gz: 5c9768ad48402affe22d47b09d9f5de675a690bef2fa2524a24cde4368cff4fc3be0c4b68afeec633d03c88e34d84b549a3827db9b528bcda3a0fdf46ce4b90c
@@ -0,0 +1,33 @@
1
+ <footer class="site-footer h-card">
2
+ <data class="u-url" href="{{ "/" | relative_url }}"></data>
3
+ <div class="wrapper">
4
+ <div class="footer-col-wrapper">
5
+ <div class="footer-col footer-col-left">
6
+ <ul class="contact-list">
7
+ {%- if site.email -%}
8
+
9
+ {%- if site.author_full -%}
10
+ <li class="p-name">
11
+ {{ site.author_full | escape }}
12
+ </li>
13
+ {%- endif -%}
14
+
15
+ <li>
16
+ <a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a>
17
+ </li>
18
+ {%- endif -%}
19
+ </ul>
20
+ </div>
21
+
22
+ <div class="footer-col footer-col-right">
23
+ {%- if site.copyright_msg -%}
24
+ {{site.copyright_msg}}
25
+ {%- else -%}
26
+ <p>Theme by <a href="https://novasys.di.fct.unl.pt/~gb">Guilherme Borges</a>
27
+ <br>
28
+ Based on <a href="https://github.com/jekyll/minima">minima</a></p>
29
+ {%- endif -%}
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </footer>
@@ -0,0 +1,29 @@
1
+ <header class="site-header" role="banner">
2
+ <div class="wrapper">
3
+ {%- assign default_paths = site.pages | map: "path" -%}
4
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
5
+ <a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
6
+
7
+ {%- if page_paths -%}
8
+ <nav class="site-nav">
9
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
10
+ <label for="nav-trigger">
11
+ <span class="menu-icon">
12
+ <svg viewBox="0 0 18 15" width="18px" height="15px">
13
+ <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
14
+ </svg>
15
+ </span>
16
+ </label>
17
+
18
+ <div class="trigger">
19
+ {%- for page in site.data.nav.pages -%}
20
+ <a class="page-link" href="{{ page.url }}">{{ page.title }}</a>
21
+ {%- if forloop.last == false -%}
22
+ /
23
+ {%- endif -%}
24
+ {%- endfor -%}
25
+ </div>
26
+ </nav>
27
+ {%- endif -%}
28
+ </div>
29
+ </header>
@@ -1,21 +1,21 @@
1
1
  <ul class="icons">
2
2
  {% if site.twitter_username %}
3
- <li>
3
+ <li class="icon">
4
4
  <a href="https://twitter.com/{{ site.twitter_username }}" class="fa fa-twitter" title="Twitter"></a>
5
5
  </li>
6
6
  {% endif %}
7
7
  {% if site.github_username %}
8
- <li>
8
+ <li class="icon">
9
9
  <a href="https://github.com/{{ site.github_username }}" class="fa fa-github" title="GitHub"></a>
10
10
  </li>
11
11
  {% endif %}
12
12
  {% if site.gitlab_username %}
13
- <li>
13
+ <li class="icon">
14
14
  <a href="https://gitlab.com/{{ site.gitlab_username }}" class="fa fa-gitlab" title="GitLab"></a>
15
15
  </li>
16
16
  {% endif %}
17
17
  {% if site.scholar_username %}
18
- <li>
18
+ <li class="icon">
19
19
  <a href="https://scholar.google.pt/citations?user={{ site.scholar_username }}" class="fa fa-graduation-cap" title="Google Scholar"></a>
20
20
  </li>
21
21
  {% endif %}
@@ -0,0 +1,13 @@
1
+ <aside class="page-sidebar">
2
+ {% if site.profile_picture %}
3
+ <p><img src="{{site.profile_picture}}" class="profile_picture"/></p>
4
+ {% endif %}
5
+
6
+ <p>{{site.author_full}}</p>
7
+ <p>{{site.address}}</p>
8
+ <p>
9
+ <i class="fa fa-envelope"></i>
10
+ <a href="mailto:{{site.email}}">{{site.email}}</a>
11
+ </p>
12
+ {% include icons.html %}
13
+ </aside>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
3
  <head>
4
4
  <title>{{site.title}}</title>
5
5
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
@@ -7,51 +7,28 @@
7
7
  <link rel="stylesheet" type="text/css" href="assets/main.css">
8
8
 
9
9
  <meta charset="UTF-8">
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
11
  <meta name="description" content="{{site.description}}">
11
12
  <meta name="keywords" content="{{site.keywords}}">
12
13
  <meta name="author" content="{{site.author}}">
13
14
  </head>
14
15
  <body>
15
- <div id="wrapper">
16
- <header>
17
- <div id="title">
18
- {{site.title}}
19
- </div>
20
- <nav>
21
- <ul>
22
- {% for item in site.data.nav.pages %}
23
- <li>
24
- <a href="{{ item.url }}" alt="{{ item.title }}">{{ item.title }}</a>
25
- {% if forloop.last == false %}
26
- /
27
- {% endif %}
28
- </li>
29
- {% endfor %}
30
- </ul>
31
- </nav>
32
- </header>
33
- <main>
34
- {{ content }}
35
- </main>
36
- <aside>
37
- {% if site.profile_picture %}
38
- <img src="{{site.profile_picture}}" class="profile_picture"/>
39
- {% endif %}
40
- {{site.author}}
41
- <p><i class="fa fa-envelope"></i> <a href="mailto:{{site.email}}">{{site.email}}</a></p>
42
- {% include icons.html %}
43
- </aside>
16
+ {%- include header.html -%}
44
17
 
45
- <footer>
46
- {% if site.copyright_msg %}
47
- <div id="copyright">
48
- {{site.copyright_msg}}
49
- </div>
50
- {% endif %}
51
- <div id="theme">
52
- Theme by <a href="https://novasys.di.fct.unl.pt/~gb">Guilherme Borges</a>
53
- </div>
54
- </footer>
18
+ <div class="main-content">
19
+ <div class="wrapper-sidebar">
20
+ <main class="page-content" aria-label="Content">
21
+ <div class="wrapper">
22
+ {{ content }}
23
+ </div>
24
+ </main>
25
+
26
+ {%- if page.sidebar -%}
27
+ {%- include sidebar.html -%}
28
+ {%- endif -%}
29
+ </div>
55
30
  </div>
31
+
32
+ {%- include footer.html -%}
56
33
  </body>
57
34
  </html>
@@ -1,63 +1,54 @@
1
- $page_width: 800px;
2
- $sidebar_width: 250px;
3
-
4
- html {
5
- height: 100%;
6
- width: 100%;
7
- margin: 0;
8
- padding: 0;
9
- }
10
-
11
- body {
12
- height: 100%;
13
- width: 100%;
14
- margin: 0;
15
- padding: 0;
16
- font-family: 'Noto Sans', sans-serif;
17
- overflow-y: hidden;
18
- }
19
-
20
- a {
21
- text-decoration: none;
22
- color: #1ea896;
23
- }
24
-
25
- hr {
26
- border: 0px;
27
- height: 0px;
28
- border-top: 1px solid rgba(0, 0, 0, 0.1);
29
- }
30
-
31
- .profile_picture {
32
- max-width: $sidebar_width;
33
- }
34
-
35
- .icons {
36
- list-style-type: none;
37
- margin: 0;
38
- padding: 0;
39
- font-size: 1.4em;
40
-
41
- li {
42
- display: inline-block;
43
- padding: 0 1em 0 0;
44
-
45
- .icon {
46
-
47
- }
1
+ @charset "utf-8";
2
+
3
+ // Define defaults for each variable.
4
+ $base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
5
+ $base-font-size: 16px !default;
6
+ $base-font-weight: 400 !default;
7
+ $small-font-size: $base-font-size * 0.875 !default;
8
+ $base-line-height: 1.5 !default;
9
+
10
+ $spacing-unit: 30px !default;
11
+
12
+ $text-color: #111 !default;
13
+ $background-color: #fdfdfd !default;
14
+ $brand-color: #1EA896 !default;
15
+
16
+ $grey-color: #828282 !default;
17
+ $grey-color-light: lighten($grey-color, 40%) !default;
18
+ $grey-color-dark: darken($grey-color, 25%) !default;
19
+
20
+ $table-text-align: left !default;
21
+
22
+ // Width of the content area
23
+ $content-width: 750px !default;
24
+ $sidebar-width: 300px !default;
25
+
26
+ $on-palm: 600px !default;
27
+ $on-laptop: 1050px !default;
28
+
29
+ // Use media queries like this:
30
+ // @include media-query($on-palm) {
31
+ // .wrapper {
32
+ // padding-right: $spacing-unit / 2;
33
+ // padding-left: $spacing-unit / 2;
34
+ // }
35
+ // }
36
+ @mixin media-query($device) {
37
+ @media screen and (max-width: $device) {
38
+ @content;
48
39
  }
49
40
  }
50
41
 
51
- #wrapper {
52
- margin: 0 auto;
53
- margin-top: 10px;
54
- //height: 90%;
55
- width: $page_width;
56
- min-height: 90%;
57
- position: relative;
58
- //border: 1px red solid;
42
+ @mixin relative-font-size($ratio) {
43
+ font-size: $base-font-size * $ratio;
59
44
  }
60
45
 
61
- @import 'header';
62
- @import 'footer';
63
- @import 'content';
46
+ // Import partials.
47
+ @import
48
+ "persona/base",
49
+ "persona/header",
50
+ "persona/footer",
51
+ "persona/sidebar",
52
+ "persona/layout",
53
+ "persona/syntax-highlighting"
54
+ ;
@@ -0,0 +1,246 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ body, h1, h2, h3, h4, h5, h6,
5
+ p, blockquote, pre, hr,
6
+ dl, dd, ol, ul, figure {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+ /**
12
+ * Basic styling
13
+ */
14
+ body {
15
+ font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
16
+ color: $text-color;
17
+ background-color: $background-color;
18
+ -webkit-text-size-adjust: 100%;
19
+ -webkit-font-feature-settings: "kern" 1;
20
+ -moz-font-feature-settings: "kern" 1;
21
+ -o-font-feature-settings: "kern" 1;
22
+ font-feature-settings: "kern" 1;
23
+ font-kerning: normal;
24
+ display: flex;
25
+ min-height: 100vh;
26
+ flex-direction: column;
27
+ }
28
+
29
+ /**
30
+ * Set `margin-bottom` to maintain vertical rhythm
31
+ */
32
+ h1, h2, h3, h4, h5, h6,
33
+ p, blockquote, pre,
34
+ ul, ol, dl, figure,
35
+ %vertical-rhythm {
36
+ margin-bottom: $spacing-unit / 2;
37
+ }
38
+
39
+ /**
40
+ * `main` element
41
+ */
42
+ main {
43
+ display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
44
+ }
45
+
46
+ aside {
47
+ display: block;
48
+ }
49
+
50
+ /**
51
+ * Images
52
+ */
53
+ img {
54
+ max-width: 100%;
55
+ vertical-align: middle;
56
+ }
57
+
58
+ /**
59
+ * Figures
60
+ */
61
+ figure > img {
62
+ display: block;
63
+ }
64
+
65
+ figcaption {
66
+ font-size: $small-font-size;
67
+ }
68
+
69
+ /**
70
+ * Lists
71
+ */
72
+ ul, ol {
73
+ margin-left: $spacing-unit;
74
+ }
75
+
76
+ li {
77
+ > ul,
78
+ > ol {
79
+ margin-bottom: 0;
80
+ }
81
+ }
82
+
83
+ /**
84
+ * Headings
85
+ */
86
+ h1, h2, h3, h4, h5, h6 {
87
+ font-weight: $base-font-weight;
88
+ }
89
+
90
+ /**
91
+ * Links
92
+ */
93
+ a {
94
+ color: $brand-color;
95
+ text-decoration: none;
96
+
97
+ &:visited {
98
+ color: darken($brand-color, 15%);
99
+ }
100
+
101
+ &:hover {
102
+ color: $text-color;
103
+ text-decoration: underline;
104
+ }
105
+
106
+ .social-media-list &:hover {
107
+ text-decoration: none;
108
+
109
+ .username {
110
+ text-decoration: underline;
111
+ }
112
+ }
113
+ }
114
+
115
+ /**
116
+ * Blockquotes
117
+ */
118
+ blockquote {
119
+ color: $grey-color;
120
+ border-left: 4px solid $grey-color-light;
121
+ padding-left: $spacing-unit / 2;
122
+ @include relative-font-size(1.125);
123
+ letter-spacing: -1px;
124
+ font-style: italic;
125
+
126
+ > :last-child {
127
+ margin-bottom: 0;
128
+ }
129
+ }
130
+
131
+ /**
132
+ * Code formatting
133
+ */
134
+ pre, code {
135
+ @include relative-font-size(0.9375);
136
+ border: 1px solid $grey-color-light;
137
+ border-radius: 3px;
138
+ background-color: #eef;
139
+ }
140
+
141
+ code {
142
+ padding: 1px 5px;
143
+ }
144
+
145
+ pre {
146
+ padding: 8px 12px;
147
+ overflow-x: auto;
148
+
149
+ > code {
150
+ border: 0;
151
+ padding-right: 0;
152
+ padding-left: 0;
153
+ }
154
+ }
155
+
156
+ /**
157
+ * Wrapper
158
+ */
159
+ .wrapper {
160
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
161
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
162
+ margin-right: auto;
163
+ margin-left: auto;
164
+ padding-right: $spacing-unit;
165
+ padding-left: $spacing-unit;
166
+ @extend %clearfix;
167
+
168
+ @include media-query($on-laptop) {
169
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
170
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
171
+ padding-right: $spacing-unit / 2;
172
+ padding-left: $spacing-unit / 2;
173
+ }
174
+ }
175
+
176
+ .wrapper-sidebar {
177
+ max-width: -webkit-calc(#{$content-width} + #{$sidebar-width} + (#{$spacing-unit} * 3));
178
+ max-width: calc(#{$content-width} + #{$sidebar-width} + (#{$spacing-unit} * 3));
179
+ margin-right: auto;
180
+ margin-left: auto;
181
+ padding-right: $spacing-unit;
182
+ padding-left: calc(#{$spacing-unit} + #{$sidebar-width} + (#{$spacing-unit} * 3));
183
+ @extend %clearfix;
184
+
185
+ @include media-query($on-laptop) {
186
+ max-width: -webkit-calc(#{$content-width} + #{$sidebar-width} + #{$spacing-unit});
187
+ max-width: calc(#{$content-width} + #{$sidebar-width} + #{$spacing-unit});
188
+ padding-right: $spacing-unit / 2;
189
+ padding-left: $spacing-unit / 2;
190
+ }
191
+ }
192
+
193
+ /**
194
+ * Clearfix
195
+ */
196
+ %clearfix:after {
197
+ content: "";
198
+ display: table;
199
+ clear: both;
200
+ }
201
+
202
+ /**
203
+ * Icons
204
+ */
205
+ .svg-icon {
206
+ width: 16px;
207
+ height: 16px;
208
+ display: inline-block;
209
+ fill: #{$grey-color};
210
+ padding-right: 5px;
211
+ vertical-align: text-top;
212
+ }
213
+
214
+ .social-media-list {
215
+ li + li {
216
+ padding-top: 5px;
217
+ }
218
+ }
219
+
220
+ /**
221
+ * Tables
222
+ */
223
+ table {
224
+ margin-bottom: $spacing-unit;
225
+ width: 100%;
226
+ text-align: $table-text-align;
227
+ color: lighten($text-color, 18%);
228
+ border-collapse: collapse;
229
+ border: 1px solid $grey-color-light;
230
+ tr {
231
+ &:nth-child(even) {
232
+ background-color: lighten($grey-color-light, 6%);
233
+ }
234
+ }
235
+ th, td {
236
+ padding: ($spacing-unit / 3) ($spacing-unit / 2);
237
+ }
238
+ th {
239
+ background-color: lighten($grey-color-light, 3%);
240
+ border: 1px solid darken($grey-color-light, 4%);
241
+ border-bottom-color: darken($grey-color-light, 12%);
242
+ }
243
+ td {
244
+ border: 1px solid $grey-color-light;
245
+ }
246
+ }
@@ -0,0 +1,63 @@
1
+ .site-footer {
2
+ border-top: 1px solid $grey-color-light;
3
+ padding: $spacing-unit 0;
4
+ }
5
+
6
+ .footer-heading {
7
+ @include relative-font-size(1.125);
8
+ margin-bottom: $spacing-unit / 2;
9
+ }
10
+
11
+ .contact-list, .social-media-list {
12
+ list-style: none;
13
+ margin-left: 0;
14
+ }
15
+
16
+ .footer-col-wrapper {
17
+ @include relative-font-size(0.9375);
18
+ color: $grey-color;
19
+ margin-left: -$spacing-unit / 2;
20
+ margin-right: -$spacing-unit / 2;
21
+ @extend %clearfix;
22
+ }
23
+
24
+ .footer-col {
25
+ float: left;
26
+ margin-bottom: $spacing-unit / 2;
27
+ padding-left: $spacing-unit / 2;
28
+ padding-right: $spacing-unit / 2;
29
+ }
30
+
31
+ .footer-col-left {
32
+ width: -webkit-calc(45% - (#{$spacing-unit} / 2));
33
+ width: calc(45% - (#{$spacing-unit} / 2));
34
+ float: left;
35
+ text-align: left;
36
+ }
37
+
38
+ .footer-col-right {
39
+ width: -webkit-calc(45% - (#{$spacing-unit} / 2));
40
+ width: calc(45% - (#{$spacing-unit} / 2));
41
+ float: right;
42
+ text-align: right;
43
+ }
44
+
45
+ @include media-query($on-laptop) {
46
+ .footer-col-left {
47
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
48
+ width: calc(50% - (#{$spacing-unit} / 2));
49
+ }
50
+
51
+ .footer-col-right {
52
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
53
+ width: calc(100% - (#{$spacing-unit} / 2));
54
+ }
55
+ }
56
+
57
+ @include media-query($on-palm) {
58
+ .footer-col {
59
+ float: none;
60
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
61
+ width: calc(100% - (#{$spacing-unit} / 2));
62
+ }
63
+ }
@@ -0,0 +1,102 @@
1
+ .site-header {
2
+ border-top: 5px solid $grey-color-dark;
3
+ border-bottom: 1px solid $grey-color-light;
4
+ min-height: $spacing-unit * 1.865;
5
+
6
+ // Positioning context for the mobile navigation icon
7
+ position: relative;
8
+ }
9
+
10
+ .site-title {
11
+ @include relative-font-size(1.625);
12
+ font-weight: 300;
13
+ line-height: $base-line-height * $base-font-size * 2.25;
14
+ letter-spacing: -1px;
15
+ margin-bottom: 0;
16
+ float: left;
17
+
18
+ &, &:visited {
19
+ color: $grey-color-dark;
20
+ }
21
+ }
22
+
23
+ .site-nav {
24
+ float: right;
25
+ line-height: $base-line-height * $base-font-size * 2.25;
26
+
27
+ .nav-trigger {
28
+ display: none;
29
+ }
30
+
31
+ .menu-icon {
32
+ display: none;
33
+ }
34
+
35
+ .page-link {
36
+ color: $brand-color;
37
+ line-height: $base-line-height;
38
+
39
+ // gaps between nav items, but not on the last one
40
+ &:not(:last-child) {
41
+ margin-right: 5px;
42
+ }
43
+
44
+ // same for first
45
+ &:not(:first-child) {
46
+ margin-left: 5px;
47
+ }
48
+ }
49
+
50
+ @include media-query($on-palm) {
51
+ position: absolute;
52
+ top: 9px;
53
+ right: $spacing-unit / 2;
54
+ background-color: $background-color;
55
+ border: 1px solid $grey-color-light;
56
+ border-radius: 5px;
57
+ text-align: right;
58
+
59
+ label[for="nav-trigger"] {
60
+ display: block;
61
+ float: right;
62
+ width: 36px;
63
+ height: 36px;
64
+ z-index: 2;
65
+ cursor: pointer;
66
+ }
67
+
68
+ .menu-icon {
69
+ display: block;
70
+ float: right;
71
+ width: 36px;
72
+ height: 26px;
73
+ line-height: 0;
74
+ padding-top: 10px;
75
+ text-align: center;
76
+
77
+ > svg {
78
+ fill: $grey-color-dark;
79
+ }
80
+ }
81
+
82
+ input ~ .trigger {
83
+ clear: both;
84
+ display: none;
85
+ }
86
+
87
+ input:checked ~ .trigger {
88
+ display: block;
89
+ padding-bottom: 5px;
90
+ }
91
+
92
+ .page-link {
93
+ display: block;
94
+ padding: 5px 10px;
95
+
96
+ &:not(:last-child) {
97
+ margin-right: 0;
98
+ }
99
+ margin-left: 20px;
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Page content
3
+ */
4
+ .main-content {
5
+ padding: $spacing-unit 0;
6
+ flex: 1 0 auto;
7
+ }
8
+
9
+ .page-content {
10
+ display: inline-block;
11
+ vertical-align: top;
12
+ margin-bottom: $spacing-unit / 2;
13
+ }
14
+
15
+ .page-sidebar {
16
+ width: calc(#{$sidebar_width} - #{$spacing-unit});
17
+ padding-left: calc(#{$spacing-unit});
18
+
19
+ display: inline-block;
20
+ vertical-align: top;
21
+ margin-bottom: $spacing-unit / 2;
22
+ }
23
+
24
+ .page-heading {
25
+ @include relative-font-size(2);
26
+ }
27
+
28
+ .post-list-heading {
29
+ @include relative-font-size(1.75);
30
+ }
31
+
32
+ .post-list {
33
+ margin-left: 0;
34
+ list-style: none;
35
+
36
+ > li {
37
+ margin-bottom: $spacing-unit;
38
+ }
39
+ }
40
+
41
+ .post-meta {
42
+ font-size: $small-font-size;
43
+ color: $grey-color;
44
+ }
45
+
46
+ .post-link {
47
+ display: block;
48
+ @include relative-font-size(1.5);
49
+ }
50
+
51
+ /**
52
+ * Posts
53
+ */
54
+ .post-header {
55
+ margin-bottom: $spacing-unit;
56
+ }
57
+
58
+ .post-title,
59
+ .post-content h1 {
60
+ @include relative-font-size(2.625);
61
+ letter-spacing: -1px;
62
+ line-height: 1;
63
+
64
+ @include media-query($on-laptop) {
65
+ @include relative-font-size(2.25);
66
+ }
67
+ }
68
+
69
+ .post-content {
70
+ margin-bottom: $spacing-unit;
71
+
72
+ h2 {
73
+ @include relative-font-size(2);
74
+
75
+ @include media-query($on-laptop) {
76
+ @include relative-font-size(1.75);
77
+ }
78
+ }
79
+
80
+ h3 {
81
+ @include relative-font-size(1.625);
82
+
83
+ @include media-query($on-laptop) {
84
+ @include relative-font-size(1.375);
85
+ }
86
+ }
87
+
88
+ h4 {
89
+ @include relative-font-size(1.25);
90
+
91
+ @include media-query($on-laptop) {
92
+ @include relative-font-size(1.125);
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,22 @@
1
+ aside {
2
+ color: $grey-color;
3
+ }
4
+
5
+ .profile_picture {
6
+ max-width: $sidebar_width;
7
+ }
8
+
9
+ .icons {
10
+ list-style-type: none;
11
+ margin: 0;
12
+ padding: 0;
13
+ font-size: 1.4em;
14
+
15
+ .icon {
16
+ display: inline-block;
17
+ padding: 0 1em 0 0;
18
+ a:hover {
19
+ text-decoration: none;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Syntax highlighting styles
3
+ */
4
+ .highlight {
5
+ background: #fff;
6
+ @extend %vertical-rhythm;
7
+
8
+ .highlighter-rouge & {
9
+ background: #eef;
10
+ }
11
+
12
+ .c { color: #998; font-style: italic } // Comment
13
+ .err { color: #a61717; background-color: #e3d2d2 } // Error
14
+ .k { font-weight: bold } // Keyword
15
+ .o { font-weight: bold } // Operator
16
+ .cm { color: #998; font-style: italic } // Comment.Multiline
17
+ .cp { color: #999; font-weight: bold } // Comment.Preproc
18
+ .c1 { color: #998; font-style: italic } // Comment.Single
19
+ .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
20
+ .gd { color: #000; background-color: #fdd } // Generic.Deleted
21
+ .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
22
+ .ge { font-style: italic } // Generic.Emph
23
+ .gr { color: #a00 } // Generic.Error
24
+ .gh { color: #999 } // Generic.Heading
25
+ .gi { color: #000; background-color: #dfd } // Generic.Inserted
26
+ .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
27
+ .go { color: #888 } // Generic.Output
28
+ .gp { color: #555 } // Generic.Prompt
29
+ .gs { font-weight: bold } // Generic.Strong
30
+ .gu { color: #aaa } // Generic.Subheading
31
+ .gt { color: #a00 } // Generic.Traceback
32
+ .kc { font-weight: bold } // Keyword.Constant
33
+ .kd { font-weight: bold } // Keyword.Declaration
34
+ .kp { font-weight: bold } // Keyword.Pseudo
35
+ .kr { font-weight: bold } // Keyword.Reserved
36
+ .kt { color: #458; font-weight: bold } // Keyword.Type
37
+ .m { color: #099 } // Literal.Number
38
+ .s { color: #d14 } // Literal.String
39
+ .na { color: #008080 } // Name.Attribute
40
+ .nb { color: #0086B3 } // Name.Builtin
41
+ .nc { color: #458; font-weight: bold } // Name.Class
42
+ .no { color: #008080 } // Name.Constant
43
+ .ni { color: #800080 } // Name.Entity
44
+ .ne { color: #900; font-weight: bold } // Name.Exception
45
+ .nf { color: #900; font-weight: bold } // Name.Function
46
+ .nn { color: #555 } // Name.Namespace
47
+ .nt { color: #000080 } // Name.Tag
48
+ .nv { color: #008080 } // Name.Variable
49
+ .ow { font-weight: bold } // Operator.Word
50
+ .w { color: #bbb } // Text.Whitespace
51
+ .mf { color: #099 } // Literal.Number.Float
52
+ .mh { color: #099 } // Literal.Number.Hex
53
+ .mi { color: #099 } // Literal.Number.Integer
54
+ .mo { color: #099 } // Literal.Number.Oct
55
+ .sb { color: #d14 } // Literal.String.Backtick
56
+ .sc { color: #d14 } // Literal.String.Char
57
+ .sd { color: #d14 } // Literal.String.Doc
58
+ .s2 { color: #d14 } // Literal.String.Double
59
+ .se { color: #d14 } // Literal.String.Escape
60
+ .sh { color: #d14 } // Literal.String.Heredoc
61
+ .si { color: #d14 } // Literal.String.Interpol
62
+ .sx { color: #d14 } // Literal.String.Other
63
+ .sr { color: #009926 } // Literal.String.Regex
64
+ .s1 { color: #d14 } // Literal.String.Single
65
+ .ss { color: #990073 } // Literal.String.Symbol
66
+ .bp { color: #999 } // Name.Builtin.Pseudo
67
+ .vc { color: #008080 } // Name.Variable.Class
68
+ .vg { color: #008080 } // Name.Variable.Global
69
+ .vi { color: #008080 } // Name.Variable.Instance
70
+ .il { color: #099 } // Literal.Number.Integer.Long
71
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: persona-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Borges
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-21 00:00:00.000000000 Z
11
+ date: 2018-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -61,14 +61,20 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - LICENSE
63
63
  - README.md
64
+ - _includes/footer.html
65
+ - _includes/header.html
64
66
  - _includes/icons.html
67
+ - _includes/sidebar.html
65
68
  - _layouts/default.html
66
69
  - _layouts/page.html
67
70
  - _layouts/post.html
68
- - _sass/content.scss
69
- - _sass/footer.scss
70
- - _sass/header.scss
71
71
  - _sass/persona.scss
72
+ - _sass/persona/_base.scss
73
+ - _sass/persona/_footer.scss
74
+ - _sass/persona/_header.scss
75
+ - _sass/persona/_layout.scss
76
+ - _sass/persona/_sidebar.scss
77
+ - _sass/persona/_syntax-highlighting.scss
72
78
  - assets/main.scss
73
79
  homepage: https://gitlab.com/sgtpepperpt/jekyll-persona
74
80
  licenses:
@@ -1,17 +0,0 @@
1
- main {
2
- width: $page_width - $sidebar_width - 10px;
3
- float: left;
4
- height: 100%;
5
-
6
- text-align: justify;
7
- text-justify: inter-word;
8
-
9
- padding-right: 5px;
10
- }
11
-
12
- aside {
13
- width: $sidebar_width;
14
- float: right;
15
-
16
- padding-left: 5px;
17
- }
@@ -1,25 +0,0 @@
1
- footer {
2
- position: absolute;
3
- bottom: 0;
4
- width: 100%;
5
-
6
- height: 40px;
7
-
8
- display: flex;
9
- align-items: center;
10
- justify-content: space-between;
11
-
12
- border-top: 1px solid rgba(0, 0, 0, 0.1);
13
-
14
- font-size: 11px;
15
-
16
- #copyright {
17
- display: inline-block;
18
- float: left;
19
- }
20
-
21
- #theme {
22
- display: inline-block;
23
- float: right;
24
- }
25
- }
@@ -1,50 +0,0 @@
1
- header {
2
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
3
- margin-bottom: 5px;
4
-
5
- height: 50px;
6
-
7
- display: flex;
8
- align-items: center;
9
- justify-content: space-between;
10
- }
11
-
12
- #title {
13
- display: inline-block;
14
- float: left;
15
-
16
- height: 40px;
17
- line-height: 40px;
18
- text-align: center;
19
-
20
- font-size: 30px;
21
- font-family: 'Noto Serif', serif;
22
- }
23
-
24
- nav {
25
- display: inline-block;
26
- float: right;
27
-
28
- height: 20px;
29
- line-height: 20px;
30
- text-align: center;
31
-
32
- a {
33
- text-decoration: none;
34
- color: #1ea896;
35
- }
36
-
37
- a:hover {
38
- color: #ff715b;
39
- }
40
-
41
- ul {
42
- list-style-type: none;
43
- margin: 0;
44
- padding: 0;
45
-
46
- li {
47
- display: inline-block;
48
- }
49
- }
50
- }