mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
361 lines
8.0 KiB
CSS
361 lines
8.0 KiB
CSS
/** css/zama.css **/
|
|
|
|
/* This line is theme specific - it includes the base theme CSS */
|
|
@import 'theme.css'; /* for the Read the Docs theme */
|
|
|
|
:root {
|
|
/* primary: yellow, secondary: orange, tertiary: black */
|
|
--primary-color: #ffd208;
|
|
--primary-color-darker: #cba706;
|
|
--secondary-color: #ffb854;
|
|
--secondary-color-light: #fff0d9;
|
|
--tertiary-color: #414042;
|
|
--tertiary-color-light: #e6e7e8;
|
|
--link-color: black;
|
|
--button-accept-color: #ffd208;
|
|
--button-decline-color: grey;
|
|
--primary-font: Archivo, sans-serif;
|
|
}
|
|
|
|
.zama-header {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 201;
|
|
height: 43px;
|
|
background: black;
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 40px;
|
|
justify-content: flex-end;
|
|
font-size: 16px;
|
|
box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
|
|
}
|
|
|
|
.zama-header > a {
|
|
display: flex;
|
|
height: 33px;
|
|
align-items: center;
|
|
color: #fff;
|
|
font-weight: bold ;
|
|
font-family: var(--primary-font);
|
|
text-decoration: none;
|
|
margin-left: 30px;
|
|
}
|
|
|
|
.zama-header > a:hover,
|
|
.zama-header > a:focus,
|
|
.zama-header > a:active {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--primary-font);
|
|
color: black;
|
|
}
|
|
|
|
/* Change code blocks font size slightly (normally 12px)*/
|
|
.rst-content pre.literal-block, .rst-content div[class^="highlight"] pre, .rst-content .linenodiv pre {
|
|
font-size: 13px !important;
|
|
}
|
|
|
|
.rst-content .toctree-wrapper>p.caption, h1, h2, h3, h4, h5, h6, legend {
|
|
font-family: var(--primary-font);
|
|
}
|
|
|
|
input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week] {
|
|
font-family: var(--primary-font);
|
|
}
|
|
.wy-side-nav-search input[type=text]{
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.wy-side-nav-search {
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
.wy-menu-vertical {
|
|
padding-bottom: 30px;
|
|
}
|
|
|
|
.wy-menu-vertical header,
|
|
.wy-menu-vertical p.caption {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.wy-side-nav-search > a {
|
|
position: relative;
|
|
padding-top: 50px;
|
|
color: black;
|
|
}
|
|
|
|
.wy-side-nav-search > a::before {
|
|
display: none;
|
|
}
|
|
|
|
.wy-side-nav-search > a .logo {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
padding: 0;
|
|
|
|
/* Adjust this to change the adjustment of the Zama's logo, on the top left */
|
|
margin: 0 0 0 -88px !important;
|
|
}
|
|
.wy-grid-for-nav {
|
|
padding-top: 43px;
|
|
}
|
|
|
|
.wy-body-for-nav {
|
|
background: rgba(0,0,0,.05);
|
|
}
|
|
.wy-nav-content-wrap {
|
|
background: none;
|
|
}
|
|
|
|
.wy-nav-side {
|
|
top: 43px;
|
|
}
|
|
|
|
.rst-content code.literal,
|
|
.rst-content tt.literal {
|
|
color: var(--primary-color);
|
|
background-color: #696969;
|
|
}
|
|
|
|
/* increase padding for top menu + version bar */
|
|
.wy-menu-vertical {
|
|
padding-bottom: 60px;
|
|
}
|
|
|
|
/* fix version box font */
|
|
.rst-versions {
|
|
font-family: var(--primary-font);
|
|
}
|
|
|
|
/* fix version link color */
|
|
.rst-versions a {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* fix version fa-caret-down empty space on click */
|
|
.rst-versions.shift-up {
|
|
overflow-y: unset;
|
|
}
|
|
/* current version color */
|
|
.rst-versions .rst-current-version {
|
|
color: var(--primary-color)
|
|
}
|
|
|
|
|
|
.wy-nav-content a {
|
|
color: var(--link-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.rst-footer-buttons a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.wy-nav-content a:hover,
|
|
.wy-nav-content a:focus,
|
|
.wy-nav-content a:active {
|
|
color: var(--link-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.wy-nav-content a.btn:hover,
|
|
.wy-nav-content a.btn:focus,
|
|
.wy-nav-content a.btn:active{
|
|
color: black;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.wy-nav-content {
|
|
max-width: none;
|
|
background-color: white;
|
|
}
|
|
|
|
.rst-content {
|
|
max-width: 800px;
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
|
|
.wy-nav-top {
|
|
color: #696969;
|
|
background: #343131
|
|
}
|
|
.wy-nav-top a {
|
|
color:var(--primary-color);
|
|
}
|
|
|
|
html.writer-html4 .rst-content dl:not(.docutils)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt {
|
|
display: table;
|
|
margin: 6px 0;
|
|
font-size: 90%;
|
|
line-height: normal;
|
|
background: var(--tertiary-color-light);
|
|
color: var(--tertiary-color);
|
|
border-top: 3px solid var(--primary-color);
|
|
padding: 6px;
|
|
position: relative;
|
|
}
|
|
|
|
html.writer-html4 .rst-content dl:not(.docutils)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt a {
|
|
color: var(--tertiary-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
html.writer-html4 .rst-content dl:not(.docutils)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt a:hover,
|
|
html.writer-html4 .rst-content dl:not(.docutils)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt a:focus,
|
|
html.writer-html4 .rst-content dl:not(.docutils)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt a:active {
|
|
color: var(--tertiary-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Api doc
|
|
* Newlines (\a) and spaces (\20) before each parameter
|
|
* https://github.com/sphinx-doc/sphinx/issues/1514
|
|
*/
|
|
|
|
/* Newlines (\a) and spaces (\20) before each parameter */
|
|
.sig-param::before {
|
|
content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
|
|
white-space: pre;
|
|
}
|
|
|
|
/* Newline after the last parameter (so the closing bracket is on a new line) */
|
|
dt em.sig-param:last-of-type::after {
|
|
content: "\a";
|
|
white-space: pre;
|
|
}
|
|
|
|
/* To have blue background of width of the block (instead of width of content) */
|
|
dl.class > dt:first-of-type {
|
|
display: block !important;
|
|
}
|
|
|
|
/*
|
|
* Admonitions
|
|
*/
|
|
|
|
/* Important admonition */
|
|
.rst-content .important .admonition-title {
|
|
background: var(--secondary-color);
|
|
}
|
|
|
|
.rst-content .important {
|
|
background: var(--secondary-color-light);
|
|
}
|
|
|
|
/* Hint admonition */
|
|
.rst-content .hint .admonition-title {
|
|
background: var(--tertiary-color);
|
|
}
|
|
|
|
.rst-content .hint {
|
|
background: var(--tertiary-color-light);
|
|
}
|
|
|
|
/* Note admonition */
|
|
|
|
.rst-content .note .admonition-title {
|
|
background: var(--tertiary-color);
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.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);
|
|
}
|