Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions doc/.sphinx/_static/cookie-banner.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/* Cookie policy styling WILL BE REMOVED when implementation of new theme with vanilla is implemented */
.cookie-policy {
overflow: auto;
position: absolute;
top: 40%;
z-index: 50;
}

dialog.cookie-policy {
background-color: #fff;
height: auto;
max-height: 80vh;
max-width: 40rem;
padding: 0, 1rem 0 1rem;
width: auto;
}

.p-modal {
color: #000000;
}

header.p-modal__header {
margin-bottom: .5rem;
}

header.p-modal__header::after {
background-color: #d9d9d9;
content: "";
height: 1px;
left: 0;
margin-left: 1rem;
margin-right: 1rem;
position: absolute;
right: 0;
}

h2#cookie-policy-title.p-modal__title {
align-self: flex-end;
color: #000000;
font-size: 1.5rem;
font-style: normal;
font-weight: 275;
line-height: 2rem;
margin: 0 0 1.05rem 0;
padding: 0.45rem 0 0 0;
}

div#cookie-policy-content {
color: #000000;
}

.cookie-policy p {
font-size: 1rem;
line-height: 1.5rem;
margin-top: 0;
padding-top: .4rem;
}

.cookie-policy p a {
text-decoration: none;
}
.cookie-policy button {
border-style: solid;
border-width: 1.5px;
cursor: pointer;
display: inline-block;
font-size: 1rem;
font-weight: 400;
justify-content: center;
line-height: 1.5rem;
padding: calc(.4rem - 1px) 1rem;
text-align: center;
text-decoration: none;
transition-duration: .1s;
transition-property: background-color,border-color;
transition-timing-function: cubic-bezier(0.55,0.055,0.675,0.19);
}

.cookie-policy button {
background-color: #fff;
border-color: rgba(0,0,0,0.56);
color: #000;
}

.cookie-policy .p-button--positive {
background-color: #0e8420;
border-color: #0e8420;
color: #fff;
}
1 change: 1 addition & 0 deletions doc/.sphinx/_static/js/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions doc/.sphinx/_templates/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
<header id="header" class="p-navigation">
<script type="module" src="{{ pathto('_static/js/bundle.js', 1) }}">
</script>

<!-- Google Tag Manager -->
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0];
var j = d.createElement(s);
var dl = '';
if (l != 'dataLayer') {
dl = '&l=' + l;
}
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-KNX3CJC');
</script>

<div class="p-navigation__nav" role="menubar">

<ul class="p-navigation__links" role="menu">
Expand Down
8 changes: 6 additions & 2 deletions doc/custom_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,14 @@
]

# Add CSS files (located in .sphinx/_static/)
custom_html_css_files = []
custom_html_css_files = [
'cookie-banner.css'
]

# Add JavaScript files (located in .sphinx/_static/)
custom_html_js_files = []
custom_html_js_files = [
'js/bundle.js',
]

## The following settings override the default configuration.

Expand Down
Loading