mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
chore: update docs theme to v0.5.0
This commit is contained in:
96
docs/_static/css/zama.css
vendored
96
docs/_static/css/zama.css
vendored
@@ -12,6 +12,8 @@
|
||||
--tertiary-color: #414042;
|
||||
--tertiary-color-light: #e6e7e8;
|
||||
--link-color: black;
|
||||
--button-accept-color: #ffd208;
|
||||
--button-decline-color: grey;
|
||||
--primary-font: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
@@ -212,11 +214,9 @@ dl.class > dt:first-of-type {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Admonitions
|
||||
*/
|
||||
/*
|
||||
* Admonitions
|
||||
*/
|
||||
|
||||
/* Important admonition */
|
||||
.rst-content .important .admonition-title {
|
||||
@@ -246,3 +246,89 @@ dl.class > dt:first-of-type {
|
||||
.rst-content .note {
|
||||
background: var(--tertiary-color-light);
|
||||
}
|
||||
|
||||
/*
|
||||
* RGPD
|
||||
*/
|
||||
|
||||
.rgpd {
|
||||
z-index: 300;
|
||||
position: fixed;
|
||||
width: calc(100% - 40px);
|
||||
height: 76px;
|
||||
padding: 17px 0px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
font-size: 16px;
|
||||
padding-left: 12.5%;
|
||||
padding-right: 12.5%;
|
||||
background: black;
|
||||
color: white;
|
||||
opacity: 75%;
|
||||
font-size: 17px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.zama-container {
|
||||
max-width: 1440px;
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.rgpd .zama-container .padded {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.rgpd .consent {
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
|
||||
}
|
||||
|
||||
.rgpd .button {
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 60px;
|
||||
padding: 0px 10px;
|
||||
margin-left: 15px;
|
||||
height: 46px;
|
||||
text-transform: uppercase;
|
||||
font-family: var(--primary-font);
|
||||
font-weight: bold;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
color: black;
|
||||
transition: all 0.33s cubic-bezier(0.33, 0, 0, 1);
|
||||
}
|
||||
|
||||
.rgpd .button::after {
|
||||
background-color: white;
|
||||
height: 46px;
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 3px;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border-radius: 25px;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.rgpd .button-accept::after{
|
||||
background-color: var(--button-accept-color);
|
||||
}
|
||||
|
||||
.rgpd .button-decline::after{
|
||||
background-color: var(--button-decline-color);
|
||||
}
|
||||
|
||||
50
docs/_templates/layout.html
vendored
50
docs/_templates/layout.html
vendored
@@ -16,7 +16,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="{{ sphinx_writer }}" lang="{{ lang_attr }}" >
|
||||
<head>
|
||||
<!-- theme v0.4.1 -->
|
||||
<!-- theme v0.5.0 -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700&display=swap" rel="stylesheet" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script>
|
||||
<script>
|
||||
if(Cookies.get("zama-accept-cookies") !== "yes") {
|
||||
window.YETT_BLACKLIST = [
|
||||
/google/,
|
||||
/googletagmanager\.com/,
|
||||
];
|
||||
}
|
||||
</script>
|
||||
<script src="https://unpkg.com/yett"></script>
|
||||
{#- Do not conflict with RTD insertion of analytics script #}
|
||||
{%- if not READTHEDOCS %}
|
||||
{%- if theme_analytics_id %}
|
||||
@@ -250,13 +262,37 @@
|
||||
</div>
|
||||
{% include "versions.html" -%}
|
||||
|
||||
<script>
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.Navigation.enable({{ 'true' if theme_sticky_navigation|tobool else 'false' }});
|
||||
});
|
||||
</script>
|
||||
|
||||
{%- block footer %} {% endblock %}
|
||||
|
||||
{%- if theme_analytics_id %}
|
||||
<div class="rgpd">
|
||||
<div class="zama-container">
|
||||
<div class="padded">
|
||||
<div class="consent">
|
||||
We use analytics cookies to understand how people view and
|
||||
use our documentation.
|
||||
</div>
|
||||
<div class="button button--black button-accept">Accept</div>
|
||||
<div class="button button--black button-decline">Decline</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
if ((Cookies.get("zama-accept-cookies") === "yes") || Cookies.get("zama-accept-cookies") === "no") {
|
||||
$(".rgpd").hide();
|
||||
}
|
||||
$(".rgpd .button-accept").click(function () {
|
||||
window.yett.unblock();
|
||||
$(".rgpd").hide();
|
||||
Cookies.set("zama-accept-cookies", "yes");
|
||||
});
|
||||
$(".rgpd .button-decline").click(function () {
|
||||
$(".rgpd").hide();
|
||||
Cookies.set("zama-accept-cookies", "no");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif%}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -71,7 +71,6 @@ html_favicon = "_static/favicon.ico"
|
||||
html_theme_options = {
|
||||
"logo_only": False,
|
||||
"analytics_id": "G-XRM93J9QBW",
|
||||
"collapse_navigation": True,
|
||||
}
|
||||
pygments_style = "zenburn"
|
||||
html_last_updated_fmt = None # '%b %d, %Y'
|
||||
|
||||
Reference in New Issue
Block a user