dendron-jekyll 0.3.4 → 0.3.9

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: f00384ff15c57bb496e421fef9de80d959aedb2680e185ca1a445322996b8a14
4
- data.tar.gz: 57fe80534c683952626b15e3e6e6299d7a2552be6c0c250f36d7734b26db5596
3
+ metadata.gz: dae2fdd6b9f10f480152bdaf68b033546933067051e5a1e6fdc4f8f25c70f761
4
+ data.tar.gz: c6db5ca880a638df473ec1bdca696f2b4c2523472799b5e40f43a559fb5a5d33
5
5
  SHA512:
6
- metadata.gz: 26680c60d9775fead95815329fbed05bbd192bfe49eca026b89d97e1d62c4c6711c68fa979908dbbd546bd9bc7faab6d90c8beeb6d3a541a5a09e63c45e8504d
7
- data.tar.gz: a2593446b2c4c171fe87a25710a598275e96ea030fa6ed7c096b72b8a9a39ff55a6c9118455f54104351d22515d2517737706b707d8445741809e211e02c45fa
6
+ metadata.gz: 533efc91832695aa378418874e90a355cf8503c70c1f96a93084b419bcf9b2def857a64eb2de0e688b72a26d1db5c01c9045d0b70f834f8800e8b7335304d004
7
+ data.tar.gz: 8b7ac911a21e71ec12e37550f78d39b53cb1d296c96a90474e3b898c9a78ace8efca351a6a6194891076634f1e7ae056f57079f5e0664c46fd21e009def4a9c8
@@ -37,8 +37,9 @@
37
37
  <meta name="robots" content="noindex, nofollow">
38
38
  {% endif %}
39
39
 
40
+
40
41
  {% seo %}
41
42
 
42
43
  {% include head_custom.html %}
43
44
 
44
- </head>
45
+ </head>
@@ -2,8 +2,9 @@
2
2
  {%- if tocNodes.size > 0 -%}
3
3
  <hr>
4
4
  <h2 class="text-delta">Table of contents</h2>
5
+ {%- assign sorted_nodes = tocNodes | sort_natural:"title" -%}
5
6
  <ul>
6
- {%- for tocNode in tocNodes -%}
7
+ {%- for tocNode in sorted_nodes -%}
7
8
  <li>
8
9
  <a href="{{ tocNode.url | absolute_url }}">{{ tocNode.title }}</a>
9
10
  {%- if tocNode.summary -%}
@@ -97,6 +97,31 @@ layout: table_wrappers
97
97
  {% endif %}
98
98
  {% endunless %}
99
99
  <div id="main-content" class="main-content" role="main">
100
+
101
+ {% if page.sources %}
102
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
103
+ <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
104
+ <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
105
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
106
+
107
+ <div class="alert alert-primary" role="alert">
108
+ This page was generated from content adapted from the following <a href="#" data-html="true" data-toggle="popover" title="Attributions">sources</a>
109
+ </a>
110
+ </div>
111
+
112
+ <script>
113
+ $(function () {
114
+ $('[data-toggle="popover"]').popover({content: `
115
+ <ul>
116
+ {% for source in page.sources %}
117
+ <li> <a href="{{source.url}}" target="_blank">{% if source.name and source.name != "" %} {{source.name}} {% else %} {{source.url}} {% endif %} </li>
118
+ {% endfor %}
119
+ </ul>
120
+ `})
121
+ })
122
+ </script>
123
+ {% endif %}
124
+
100
125
  {% if site.heading_anchors != false %}
101
126
  {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" %}
102
127
  {% else %}
@@ -0,0 +1,114 @@
1
+ // Clear normal iframe styles
2
+ iframe{
3
+ border: none;
4
+ }
5
+
6
+ // Portal styles
7
+ .portal-container{
8
+ overscroll-behavior: contain;
9
+ border: 1px solid #C2DFE3;
10
+ border-radius: 8px;
11
+ margin-bottom: 24px;
12
+ padding: 10px;
13
+
14
+ -webkit-transition: all .20s ease;
15
+ -moz-transition: all .20s ease;
16
+ -ms-transition: all .20s ease;
17
+ -o-transition: all .20s ease;
18
+ transition: all .20s ease;
19
+
20
+ &:hover{
21
+ transform: translateY(-3px);
22
+ box-shadow: 0px 6px 20px 0px rgba(0,0,0,.15);
23
+ border: 1px solid #9DB8BF;
24
+ }
25
+
26
+ .portal-head{
27
+ border-bottom: 1px solid #C2DFE3;
28
+ padding: 12px;
29
+
30
+ .portal-backlink{
31
+ display: flex;
32
+ flex-direction: column;
33
+
34
+ -webkit-transition: all .20s ease;
35
+ -moz-transition: all .20s ease;
36
+ -ms-transition: all .20s ease;
37
+ -o-transition: all .20s ease;
38
+ transition: all .20s ease;
39
+ // @include align-items($align: left);
40
+
41
+ @media(min-width:600px){
42
+ flex-direction: row;
43
+ justify-content: space-between;
44
+ align-items: center;
45
+ }
46
+ .portal-title{
47
+ font-size: 14px;
48
+ color: #9DB8BF;
49
+ .portal-text-title{
50
+ font-weight:700;
51
+ color: #5C6D73;
52
+ }
53
+ }
54
+ .portal-arrow{
55
+ font-size: 14px;
56
+ color: #9DB8BF;
57
+ &:hover{
58
+ opacity:.5;
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ .portal-iframe{
65
+ overflow:hidden;
66
+ }
67
+ .portal-parent{
68
+ overflow:hidden;
69
+ position: relative;
70
+ width:100%;
71
+ box-sizing: border-box;
72
+ .portal-parent-fader-top{
73
+ position: absolute;
74
+ width: 100%;
75
+ margin-left: 0px;
76
+ height: 36px;
77
+ // background-image: linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0));
78
+ z-index: 50;
79
+ }
80
+ .portal-parent-fader-bottom{
81
+ position: absolute;
82
+ width: 100%;
83
+ bottom: 6px;
84
+ margin-left: 0px;
85
+ height: 36px;
86
+ // background-image: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
87
+ z-index: 50;
88
+ }
89
+ .portal-parent-text{
90
+ padding:$base-line-height / 2;
91
+ color: #5C6D73;
92
+ z-index: 40;
93
+ }
94
+ .portal-iframe{
95
+ width:100%;
96
+ height:400px;
97
+ }
98
+ }
99
+ }
100
+
101
+ // Things that happen in the iframe have to be applied to the whole site,
102
+ // as you can't use css on iframe contents – not a major issue for the time being,
103
+ // considering you have to own the site you're transcluding.
104
+ // Make sure your theme's anchor text styling explicitly hits a:link and not all a tags to avoid
105
+ // making quoted text look like a link.
106
+ .portal-quote-text {
107
+ background-color: #C2DFE3;
108
+ color: lighten($text-color, 15%);
109
+
110
+ // This fixes hovers behaving wrong on safari when using an <a> tag to highlight
111
+ &:hover {
112
+ text-decoration: none;
113
+ }
114
+ }
@@ -19,7 +19,14 @@
19
19
  @import "./utilities/utilities";
20
20
  @import "./print";
21
21
 
22
+ // Portal Start
23
+ $base-line-height: 1.5 !default;
24
+ $spacing-unit: 30px !default;
25
+ $text-color: #111 !default;
26
+ // Portal end
27
+
22
28
  @import "minimal-mistakes/variables";
23
29
  @import "minimal-mistakes/vendor/breakpoint/breakpoint";
24
30
  @import "minimal-mistakes/mixins";
25
- @import "minimal-mistakes/sidebar";
31
+ @import "minimal-mistakes/sidebar";
32
+ @import "portal.scss";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dendron-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-11 00:00:00.000000000 Z
11
+ date: 2020-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,6 +109,7 @@ files:
109
109
  - _layouts/single.html
110
110
  - _layouts/table_wrappers.html
111
111
  - _layouts/vendor/compress.html
112
+ - _sass/_portal.scss
112
113
  - _sass/base.scss
113
114
  - _sass/buttons.scss
114
115
  - _sass/code.scss