Skip to content

Commit c06861a

Browse files
committed
Edit this page now can be set or not
1 parent 66de167 commit c06861a

File tree

4 files changed

+49
-52
lines changed

4 files changed

+49
-52
lines changed

src/css/helios-gcx.css

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -337,17 +337,10 @@ feedback-stars {
337337

338338
.full-articles .doc {
339339
margin: 0 0 0 2em;
340-
-ms-overflow-style: none;
341-
/* for Internet Explorer, Edge */
342-
scrollbar-width: none;
343-
/* for Firefox */
344-
overflow-y: scroll;
345-
padding: 0;
346340
}
347341

348342
.enlighter-default {
349343
margin: 0!important;
350-
font-family: 'Roboto Mono', monospace!important;
351344
}
352345

353346
gcx-full-code {
@@ -357,15 +350,22 @@ gcx-full-code {
357350
scrollbar-width: none;
358351
/* for Firefox */
359352
overflow-y: scroll;
360-
flex: 0 1 50%;
361-
min-width: auto;
362353
}
363354

364355
gcx-full-code::-webkit-scrollbar {
365356
display: none;
366357
/* for Chrome, Safari, and Opera */
367358
}
368359

360+
.full-articles .doc {
361+
-ms-overflow-style: none;
362+
/* for Internet Explorer, Edge */
363+
scrollbar-width: none;
364+
/* for Firefox */
365+
overflow-y: scroll;
366+
padding: 0;
367+
}
368+
369369
.full-articles .doc::-webkit-scrollbar {
370370
display: none;
371371
/* for Chrome, Safari, and Opera */
@@ -404,10 +404,24 @@ schema#gcx-schema {
404404

405405
.full-articles {
406406
flex: 0 1 50%;
407+
z-index: 999;
408+
}
409+
410+
.full-articles .doc {
411+
height: auto!important;
407412
}
408413

409414
gcx-full {
410415
width: 100%;
416+
position: relative;
417+
}
418+
419+
gcx-full-code {
420+
flex: 0 1 50%;
421+
min-width: auto;
422+
position: relative;
423+
right: 0.75px;
424+
height: auto!important;
411425
}
412426

413427

@@ -925,6 +939,10 @@ label.switch_label:after {
925939

926940
/* Right Block - Code */
927941

942+
.enlighter-default {
943+
font-family: 'Roboto Mono', monospace!important;
944+
}
945+
928946
.enlighter-t-bootstrap4 .enlighter-m0 {
929947
color: #8A3FFC!important;
930948
}
@@ -992,6 +1010,14 @@ label.switch_label:after {
9921010
background-color: #20293A!important;
9931011
}
9941012

1013+
.dark-mode .doc .sect1.active {
1014+
background-color: #20293A!important;
1015+
}
1016+
9951017
.dark-mode .enlighter-t-bootstrap4 div.enlighter>div.enlighter-special {
9961018
background-color: #20293A!important;
1019+
}
1020+
1021+
.dark-mode .enlighter-t-bootstrap4 .enlighter-k10 {
1022+
color: #ffffff!important;
9971023
}

src/js/08-gcx-helios.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,6 @@
11
;
22
(function () {
33
'use strict'
4-
console.log('cargando JS 08-gcx-helios')
5-
window.intercomSettings = { app_id: 'bpbxnnmr' }
6-
7-
var w = window
8-
var ic = w.Intercom
9-
if (typeof ic === 'function') {
10-
ic('reattach_activator')
11-
ic('update', w.intercomSettings)
12-
} else {
13-
var d = document
14-
var i = function () {
15-
i.c(arguments)
16-
}
17-
i.q = []
18-
i.c = function (args) {
19-
i.q.push(args)
20-
}
21-
w.Intercom = i
22-
var l = function () {
23-
var s = d.createElement('script')
24-
s.type = 'text/javascript'
25-
s.async = true
26-
s.src = 'https://widget.intercom.io/widget/bpbxnnmr'
27-
var x = d.getElementsByTagName('script')[0]
28-
x.parentNode.insertBefore(s, x)
29-
}
30-
if (w.attachEvent) {
31-
w.attachEvent('onload', l)
32-
} else {
33-
w.addEventListener('load', l, false)
34-
}
35-
}
364

375
/*Dark theme verification*/
386
var theme = window.localStorage.getItem('theme')

src/partials/head-scripts.hbs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@
6969
</script>
7070
{{/with}}
7171
<script>window.uiRootPath = '{{{uiRootPath}}}'</script>
72-
<script async type="module" src="{{{uiRootPath}}}/js/vendor/two-columns/two-columns.esm.js"></script>
73-
<script async nomodule src="{{{uiRootPath}}}/js/vendor/two-columns/two-columns.js"></script>
72+
<script type="module" src="{{{uiRootPath}}}/js/vendor/two-columns/two-columns.esm.js"></script>
73+
<script nomodule src="{{{uiRootPath}}}/js/vendor/two-columns/two-columns.js"></script>
7474

75-
<script async type="module" src="{{{uiRootPath}}}/js/vendor/gcx-contact-form/gcx-contact-form.esm.js"></script>
76-
<script async nomodule src="{{{uiRootPath}}}/js/vendor/gcx-contact-form/gcx-contact-form.js"></script>
75+
<script type="module" src="{{{uiRootPath}}}/js/vendor/gcx-contact-form/gcx-contact-form.esm.js"></script>
76+
<script nomodule src="{{{uiRootPath}}}/js/vendor/gcx-contact-form/gcx-contact-form.js"></script>
7777

78-
<script async type="module" src="{{{uiRootPath}}}/js/vendor/gcx-schema/gcx-schema.esm.js"></script>
79-
<script async nomodule src="{{{uiRootPath}}}/js/vendor/gcx-schema/gcx-schema.js"></script>
78+
<script type="module" src="{{{uiRootPath}}}/js/vendor/gcx-schema/gcx-schema.esm.js"></script>
79+
<script nomodule src="{{{uiRootPath}}}/js/vendor/gcx-schema/gcx-schema.js"></script>
8080

81-
<script async src="{{{uiRootPath}}}/js/lib/enlighterjs.min.js"></script>
81+
<script src="{{{uiRootPath}}}/js/lib/enlighterjs.min.js"></script>

src/partials/toolbar.hbs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
{{> nav-toggle}}
33
{{> breadcrumbs}}
44
{{> page-versions}}
5-
<!--<div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
5+
6+
{{#with page.editUrl}}
7+
<div class="edit-this-page"><a href="{{this}}">Edit this Page</a></div>
8+
{{/with}}
69
{{!-- LLP: 02.14.2022 The following is from stargate/antori-ui-docs, if we choose to implement CI --}}
710
{{!-- {{#if (and page.fileUri (not env.CI))}}
8-
<div class="edit-this-page"><a href="{{page.fileUri}}">Edit this Page</a></div>
11+
<div class="edit-this-page">B<a href="{{page.fileUri}}">Edit this Page</a></div>
912
{{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}
10-
<div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
11-
{{/if}} --}} -->
13+
<div class="edit-this-page">C<a href="{{page.editUrl}}">Edit this Page</a></div>
14+
{{/if}} --}}
1215
</div>

0 commit comments

Comments
 (0)