Merge branch '12.0-one-doc-edi' of github.com:odoo/documentation-user into 12.0-one-doc-edi

This commit is contained in:
Victor Feyens 2021-03-08 16:35:55 +01:00
commit 9a436fb206
23 changed files with 370 additions and 177 deletions

View File

@ -39,6 +39,7 @@ edi: clean html
static: extensions/odoo_theme/static/style.css static: extensions/odoo_theme/static/style.css
cp -r extensions/odoo_theme/static/* _build/html/_static/ cp -r extensions/odoo_theme/static/* _build/html/_static/
cp -r static/* _build/html/_static/
html: extensions/odoo_theme/static/style.css html: extensions/odoo_theme/static/style.css
@echo "Starting build..." @echo "Starting build..."

View File

@ -188,7 +188,7 @@ html_js_files = [
'js/coa-valuation-anglo-saxon.js', 'js/coa-valuation-anglo-saxon.js',
] ]
html_css_files = [ html_css_files = [
'css/accounting.css', #'css/accounting.css',
'css/legal.css', 'css/legal.css',
] ]

View File

@ -85,18 +85,16 @@
{# Custom landing page on the root of the documentation #} {# Custom landing page on the root of the documentation #}
{% include "layout_templates/homepage.html" %} {% include "layout_templates/homepage.html" %}
{% else %} {% else %}
<div class="row"> <article class="doc-body">
<article class="doc-body mb-5">
<!-- Beacon used by the Sphinx search to know where to look for a string --> <!-- Beacon used by the Sphinx search to know where to look for a string -->
<div role="main"> <div role="main">
{% block body %} {% endblock %} {% block body %} {% endblock %}
</div> </div>
{# Do not show the edition link for pages without content #} {# Do not show the edition link for pages without content #}
{% if github_link and not 'has_only_toc' in meta %} {% if github_link and 'has_only_toc' not in meta and pagename != 'search' %}
<a href="{{ github_link(mode='edit') }}" class="o_git_link"><i class="i-edit"></i> Edit on GitHub</a> <a href="{{ github_link(mode='edit') }}" class="o_git_link"><i class="i-edit"></i> Edit on GitHub</a>
{% endif %} {% endif %}
</article> </article>
</div>
{% endif %} {% endif %}
</div> </div>
<div id="mask"></div> <div id="mask"></div>

View File

@ -1,12 +1,12 @@
<div class="o_get_help row"> <div class="o_get_help d-lg-flex text-center text-lg-start">
<div class="col-12 col-md-10"> <div class="col-12 col-lg-10">
<h5><i class="i-o-help me-2"></i>Get Help</h5> <h5><i class="i-o-help me-2"></i>Get Help</h5>
<div> <div>
<a href="https://odoo.com/help" target="_blank" class="btn btn-outline-secondary">Contact Support</a> <a href="https://odoo.com/help" target="_blank" class="btn btn-outline-secondary">Contact Support</a>
<a href="" target="_blank" class="btn btn-outline-secondary">Ask the Odoo Community</a> <a href="" target="_blank" class="btn btn-outline-secondary">Ask the Odoo Community</a>
</div> </div>
</div> </div>
<div class="col-12 col-md-2"> <div class="col-12 col-lg-2 mt-5 mt-lg-0">
<a href="https://www.odoo.com"> <a href="https://www.odoo.com">
<img src="{{ pathto('_static/img/logos/odoo_logo.svg', 1) }}" width="100" alt="Odoo"/> <img src="{{ pathto('_static/img/logos/odoo_logo.svg', 1) }}" width="100" alt="Odoo"/>
</a> </a>

View File

@ -2,7 +2,7 @@
<a href="{{ pathto(master_doc) }}" class="o_logo"> <a href="{{ pathto(master_doc) }}" class="o_logo">
<img src="{{ pathto('_static/img/logos/odoo_logo.svg', 1) }}" <img src="{{ pathto('_static/img/logos/odoo_logo.svg', 1) }}"
height="30" alt="Odoo"/> height="30" alt="Odoo"/>
<span class="text-dark fw_extralight">docs</span> <span>docs</span>
</a> </a>
</div> </div>
{% include "layout_templates/searchbox.html" %} {% include "layout_templates/searchbox.html" %}

View File

@ -1,8 +1,18 @@
<div class="o_languages me-2"> <div class="o_languages me-2">
<div class="dropdown"> <div class="dropdown">
<button class="btn border dropdown-toggle" id="languages" data-bs-toggle="dropdown"> {% if alternate_languages|length > 0 %}
<button class="btn border dropdown-toggle"
id="languages"
data-bs-toggle="dropdown">
{{ language }} {# The current language #} {{ language }} {# The current language #}
</button> </button>
{% else %}
<button class="btn border"
id="languages"
disabled="">
{{ language }} {# The current language #}
</button>
{% endif %}
<ul class="dropdown-menu" aria-labelledby="languages"> <ul class="dropdown-menu" aria-labelledby="languages">
{% for alternate_language, language_code, url in alternate_languages %} {% for alternate_language, language_code, url in alternate_languages %}
<li><a class="dropdown-item" href="{{ url }}">{{ alternate_language }}</a></li> <li><a class="dropdown-item" href="{{ url }}">{{ alternate_language }}</a></li>

View File

@ -4,9 +4,19 @@
</div> </div>
<div class="col-8"> <div class="col-8">
<div class="dropdown"> <div class="dropdown">
<button class="btn border dropdown-toggle" id="versions" data-bs-toggle="dropdown"> {% if alternate_versions|length > 0 %}
<button class="btn border dropdown-toggle"
id="versions"
data-bs-toggle="dropdown">
{{ version }} {# The current version #} {{ version }} {# The current version #}
</button> </button>
{% else %}
<button class="btn border"
id="versions"
disabled="">
{{ version }} {# The current version #}
</button>
{% endif %}
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="versions"> <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="versions">
{% for alternate_version, url in alternate_versions %} {% for alternate_version, url in alternate_versions %}
<li><a class="dropdown-item" href="{{ url }}">{{ alternate_version }}</a></li> <li><a class="dropdown-item" href="{{ url }}">{{ alternate_version }}</a></li>

View File

@ -15,12 +15,13 @@ class OdooStyle(Style):
default_style = '' default_style = ''
background_color = '#F8F8F8' background_color = '#F8F8F8'
highlight_color = '#EAEAEA'
styles = { styles = {
Whitespace: '#bbbbbb', Whitespace: '#bbbbbb',
Comment: 'italic #008800', Comment: 'italic #008800',
String: '#800080', String: '#800080',
Number: 'bold #2e8b57', Number: 'bold',
Other: 'bg:#ffffe0', Other: 'bg:#ffffe0',
Keyword: '#2c2cff', Keyword: '#2c2cff',
Keyword.Reserved: 'bold #353580', Keyword.Reserved: 'bold #353580',
@ -36,7 +37,7 @@ class OdooStyle(Style):
Generic: '#2c2cff', Generic: '#2c2cff',
Generic.Emph: '#008800', Generic.Emph: '#008800',
Generic.Error: '#d30202', Generic.Error: '#d30202',
Error: 'bg:#e3d2d2 #a61717' Error: 'bg:#ffe2e2 #a61717'
} }
import types import types

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 263 KiB

After

Width:  |  Height:  |  Size: 263 KiB

View File

@ -423,3 +423,9 @@
content: $i-edit; content: $i-edit;
} }
} }
.i-close {
&:before {
content: $i-close;
}
}

View File

@ -87,12 +87,12 @@
//-- add icon //-- add icon
@mixin inline-icomoon($icon-content, $margin) { @mixin inline-icomoon($icon-content, $margin, $v-align: middle, $font-size: 1.5rem, $font-weight: $fw_regular) {
content: '#{$icon-content}'; content: '#{$icon-content}';
font-family: '#{$icomoon-font-family}' !important; font-family: '#{$icomoon-font-family}' !important;
@include font-size(1.5rem); @include font-size($font-size);
font-weight: $fw_regular; font-weight: $font-weight;
vertical-align: middle; vertical-align: $v-align;
margin: $margin; margin: $margin;
} }

View File

@ -22,7 +22,7 @@ div.section::after {
} }
/* -- relbar ---------------------------------------------------------------- */ /* -- relbar ---------------------------------------------------------------- */
/*
div.related { div.related {
width: 100%; width: 100%;
font-size: 90%; font-size: 90%;
@ -45,7 +45,7 @@ div.related li {
div.related li.right { div.related li.right {
float: right; float: right;
margin-right: 5px; margin-right: 5px;
} } */
/* -- search page ----------------------------------------------------------- */ /* -- search page ----------------------------------------------------------- */
@ -54,12 +54,12 @@ ul.search {
padding: 0; padding: 0;
} }
ul.search li { /* ul.search li {
padding: 5px 0 5px 20px; padding: 5px 0 5px 20px;
background-image: url(file.png); background-image: url(file.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 0 7px; background-position: 0 7px;
} } */
ul.search li a { ul.search li a {
font-weight: bold; font-weight: bold;
@ -205,7 +205,6 @@ div.body td {
} }
p.rubric { p.rubric {
margin-top: 30px;
font-weight: bold; font-weight: bold;
} }
@ -241,9 +240,9 @@ img.align-default, .figure.align-default {
text-align: center; text-align: center;
} }
.align-default { /* .align-default {
text-align: center; text-align: center;
} } */
.align-right { .align-right {
text-align: right; text-align: right;
@ -266,9 +265,9 @@ p.sidebar-title {
font-weight: bold; font-weight: bold;
} }
div.admonition, div.topic, blockquote { /* div.admonition, div.topic, blockquote {
clear: left; clear: left;
} } */
/* -- topics ---------------------------------------------------------------- */ /* -- topics ---------------------------------------------------------------- */
@ -308,20 +307,20 @@ div.body p.centered {
/* -- content of sidebars/topics/admonitions -------------------------------- */ /* -- content of sidebars/topics/admonitions -------------------------------- */
div.sidebar > :last-child, /* div.sidebar > :last-child,
div.topic > :last-child, div.topic > :last-child,
div.admonition > :last-child { div.admonition > :last-child {
margin-bottom: 0; margin-bottom: 0;
} } */
div.sidebar::after, /* div.sidebar::after,
div.topic::after, div.topic::after,
div.admonition::after, div.admonition::after,
blockquote::after { blockquote::after {
display: block; display: block;
content: ''; content: '';
clear: both; clear: both;
} } */
/* -- tables ---------------------------------------------------------------- */ /* -- tables ---------------------------------------------------------------- */
@ -392,9 +391,9 @@ div.figure {
padding: 0.5em; padding: 0.5em;
} }
div.figure p.caption { /* div.figure p.caption {
padding: 0.3em; padding: 0.3em;
} } */
div.figure p.caption span.caption-number { div.figure p.caption span.caption-number {
font-style: italic; font-style: italic;
@ -548,9 +547,9 @@ dl > dd:last-child > :last-child {
margin-bottom: 0; margin-bottom: 0;
} }
dt:target, span.highlighted { /* dt:target, span.highlighted {
background-color: #fbe54e; background-color: #fbe54e;
} } */
rect.highlighted { rect.highlighted {
fill: #fbe54e; fill: #fbe54e;
@ -595,9 +594,9 @@ dl.glossary dt {
margin-left: 1.5em; margin-left: 1.5em;
} }
.guilabel, .menuselection { /* .guilabel, .menuselection {
font-family: sans-serif; font-family: sans-serif;
} } */
.accelerator { .accelerator {
text-decoration: underline; text-decoration: underline;
@ -613,10 +612,10 @@ dl.glossary dt {
content: ":"; content: ":";
} }
abbr, acronym { /* abbr, acronym {
border-bottom: dotted 1px; border-bottom: dotted 1px;
cursor: help; cursor: help;
} } */
/* -- code displays --------------------------------------------------------- */ /* -- code displays --------------------------------------------------------- */
@ -672,9 +671,9 @@ table.highlighttable td.code {
overflow: hidden; overflow: hidden;
} }
.highlight .hll { /* .highlight .hll {
display: block; display: block;
} } */
div.highlight pre, div.highlight pre,
table.highlighttable pre { table.highlighttable pre {
@ -716,17 +715,17 @@ div.literal-block-wrapper {
code.descname { code.descname {
background-color: transparent; background-color: transparent;
font-weight: bold; font-weight: bold;
font-size: 1.2em; /* font-size: 1.2em; */
} }
code.descclassname { code.descclassname {
background-color: transparent; background-color: transparent;
} }
code.xref, a code { /* code.xref, a code {
background-color: transparent; background-color: transparent;
font-weight: bold; font-weight: bold;
} } */
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
background-color: transparent; background-color: transparent;

View File

@ -20,9 +20,21 @@
} }
@font-face { @font-face {
font-family: Inter; font-family: 'Inter';
src: url('fonts/Inter-VariableFont_slnt,wght.ttf') format("truetype-variations"); font-weight: 100 900;
font-weight: 1 999; font-display: swap;
font-style: normal;
font-named-instance: 'Regular';
src: url("Inter-roman.var.woff2?v=3.15") format("woff2");
}
@font-face {
font-family: 'Inter';
font-weight: 100 900;
font-display: swap;
font-style: italic;
font-named-instance: 'Italic';
src: url("Inter-italic.var.woff2?v=3.15") format("woff2");
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -160,6 +160,7 @@ $i-exercise: "\e918";
$i-lightbulb: "\e921"; $i-lightbulb: "\e921";
$i-check: "\e909"; $i-check: "\e909";
$i-edit: "\e932"; $i-edit: "\e932";
$i-close: "\e933";
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -28,6 +28,7 @@ $display-line-height: 1;
// //
// For each of Bootstrap's buttons, define text, background, and border color. // For each of Bootstrap's buttons, define text, background, and border color.
$btn-font-size: $font-size-secondary;
$btn-font-weight: $fw_semibold; $btn-font-weight: $fw_semibold;
$btn-focus-box-shadow: 0 0 0 transparent; $btn-focus-box-shadow: 0 0 0 transparent;

View File

@ -11,7 +11,7 @@ div[aria-label="related navigation"] {
} }
body { body {
a { a:not(:hover), a.o_logo {
text-decoration: none !important; text-decoration: none !important;
} }
dd { dd {
@ -46,11 +46,12 @@ header.o_main_header{
margin-right: 3rem; margin-right: 3rem;
> .o_logo { > .o_logo {
img { img {
margin-right: 0.2rem; margin-bottom: -2px;
vertical-align: text-bottom; vertical-align: baseline;
} }
span { span {
font-size: 2rem; @include font-size($font-size-base);
color: $o-violet;
} }
} }
} }
@ -67,6 +68,16 @@ header.o_main_header{
color: $gray; color: $gray;
} }
} }
.highlight-link {
margin-bottom: 0;
display: flex;
align-items: center;
a {
padding: 0 1rem;
@include font-size($font-size-secondary);
}
}
.o_languages { .o_languages {
width: 120px; width: 120px;
} }
@ -189,6 +200,11 @@ header.o_main_header{
&:not(.toctree-l1) { &:not(.toctree-l1) {
.o_toc_entry_wrapper { .o_toc_entry_wrapper {
&:not(.o_page_toc_title) {
display: flex;
align-items: baseline;
}
> i[class^="i-"] { > i[class^="i-"] {
display: inline-block; display: inline-block;
margin-right: .2rem; margin-right: .2rem;
@ -237,7 +253,7 @@ header.o_main_header{
font-weight: $fw_bold; font-weight: $fw_bold;
color: $gray-darker; color: $gray-darker;
padding-left: .5rem; padding-left: .5rem;
margin-bottom: 0; margin-bottom: .5rem;
} }
a { a {
@ -364,6 +380,8 @@ header.o_main_header{
&.has_code_col { &.has_code_col {
article.doc-body { article.doc-body {
padding-left: 1rem;
padding-right: 1rem;
> *{ > *{
max-width: 100%; max-width: 100%;
@ -384,6 +402,12 @@ header.o_main_header{
@include code-col(); @include code-col();
} }
.o_git_link {
top: .5rem;
right: calc(43% + 1rem);
}
section { section {
> * { > * {
@ -393,6 +417,10 @@ header.o_main_header{
clear: left; clear: left;
} }
> h1 {
max-width: calc(54% - 120px);
}
> h1, > h2, > h3, > h4, > h5, > h6 { > h1, > h2, > h3, > h4, > h5, > h6 {
float: none; float: none;
clear: none; clear: none;
@ -406,15 +434,10 @@ header.o_main_header{
padding: 1rem; padding: 1rem;
blockquote { blockquote {
font-family: $font-family-serif;
font-weight: $fw_semibold; font-weight: $fw_semibold;
font-style: italic; font-style: italic;
} }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
color: $white;
}
pre { pre {
font-size: 12px; font-size: 12px;
} }
@ -435,6 +458,7 @@ header.o_main_header{
border-top: 0; border-top: 0;
div[class^="highlight"] { div[class^="highlight"] {
border: 0;
margin: 0; margin: 0;
} }
} }
@ -448,21 +472,47 @@ header.o_main_header{
} }
} }
article { article.doc-body {
position: relative; position: relative;
.o_git_link { .o_git_link {
@include font-size($font-size-secondary); @include font-size($font-size-secondary);
@include o-position-absolute($top: 1rem, $right: 1rem); @include o-position-absolute($top: calc(#{$o-header-height} + 1rem), $right: 1rem);
i { i {
margin-right: .2rem; margin-right: .2rem;
} }
} }
.command {
font-family: var(--bs-font-monospace);
}
dt { .field-list {
@include font-size($font-size-secondary);
padding: .5rem;
border: 1px solid $gray-light;
ul {
list-style: none;
}
}
code {
display: inline-block;
color: inherit;
background: $doc_code-bg;
padding: 0 .3rem;
margin: 0.1rem;
border: 1px solid $gray-light;
}
/* dt {
&:before { &:before {
@include scroll-padding() @include scroll-padding()
} }
} */
// Search items highlighted
dt:target, span.highlighted {
background-color: lighten($color-alpha, 50%);
} }
section { section {
@ -478,20 +528,31 @@ header.o_main_header{
color: $o-violet-dark; color: $o-violet-dark;
font-weight: $fw_bold; font-weight: $fw_bold;
max-width: calc(100% - 120px); max-width: calc(100% - 120px);
+ p {
margin-top: 1rem;
}
} }
> h2 { > h2 {
font-family: $font-family-serif;
color: $gray-darker; color: $gray-darker;
padding-bottom: .5rem; margin-top: .5rem;
margin-bottom: 1.5rem;
padding-bottom: .3rem;
border-bottom: 1px solid $gray-light; border-bottom: 1px solid $gray-light;
} }
> h3 { > h3 {
color: $gray-darkest; color: $gray-darkest;
font-weight: $fw_extrabold; font-weight: $fw_bold;
}
> h4, > h5, > h6 {
font-weight: $fw_semibold;
} }
a.headerlink { a.headerlink {
text-decoration: none;
visibility: hidden !important; visibility: hidden !important;
&:after { &:after {
content: '#{$i-link}'; content: '#{$i-link}';
@ -505,19 +566,15 @@ header.o_main_header{
@include o-transition(all, .1s) @include o-transition(all, .1s)
} }
} }
// This makes permalinks only visible on hover.
h1, h2, h3, h4, h5, h6, dt, caption, p.caption, div.code-block-caption { h1, h2, h3, h4, h5, h6, dt, caption, p.caption, div.code-block-caption {
&:hover > a.headerlink:after{ &:hover > a.headerlink:after{
// This makes permalinks only visible on hover.
visibility: visible; visibility: visible;
opacity: 1; opacity: 1;
} }
} }
} }
.img-fluid {
margin-bottom: 1rem;
}
} }
div[class^="highlight"] { div[class^="highlight"] {
@ -525,6 +582,7 @@ header.o_main_header{
overflow-x: auto; overflow-x: auto;
border: 1px solid $gray-light; border: 1px solid $gray-light;
margin: 1px 0 24px 0; margin: 1px 0 24px 0;
max-width: 90vw;
div[class^="highlight"] { div[class^="highlight"] {
padding: 0px; padding: 0px;
@ -539,6 +597,90 @@ header.o_main_header{
overflow: auto; overflow: auto;
} }
} }
// fixes on pages
.guilabel, .menuselection {
font-weight: $fw_semibold;
}
.dfn{
@include font-size($font-size-secondary);
line-height: 1;
color: $o-violet;
font-weight: $fw_semibold;
&:before {
content:'?';
display: inline-block;
width: 15px;
height: 15px;
background-color: $o-violet;
border: 1px solid $o-violet;
border-radius: 20px;
text-align: center;
color: $white;
font-weight: $fw_extrabold;
margin: 0 .2rem;
}
}
.pq-patch em {
display: block;
border-radius: 4px 4px 0 0;
background: $gray-lighter;
padding: .2rem 1rem;
@include font-size($font-size-secondary);
font-weight: 600;
}
img.img-fluid:not([alt="green"]):not([alt="orange"]):not([alt="red"]) {
border: 1px solid $gray-lighter;
background: $white;
margin-bottom: 1rem;
padding: .5rem;
}
.container .container:not([class^="col"]) {
padding: 0;
margin: 0;
}
ul, ol {
text-align: left;
}
.figure {
.caption, .caption-text {
font-weight: $fw_semibold;
color: $gray;
}
.caption, .caption-text, .legend, .legend p{
font-style: italic;
margin: 0 auto;
}
&:not([class^="col"]) .legend {
max-width: 60%;
}
}
// restyle numbers on lists
ol {
/* list-style: none;
counter-reset: a;
> li {
position: relative;
counter-increment: a;
&:before {
content: counter(a) '.';
font-weight: $fw_semibold;
@include o-position-absolute(auto, auto, auto, -1.8rem);
}
} */
ol {
list-style: lower-alpha;
> li:before {
content: none;
}
}
}
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Alerts // Alerts
@ -548,111 +690,102 @@ header.o_main_header{
// alert-danger // alert-danger
// alert-go_to // alert-go_to
// alert-exercise // alert-exercise
// alert-success // alert-success // removed : never used in doc
.alert { .alert {
position: relative; position: relative;
display: block; display: block;
border-radius: 0; border-radius: 0;
border-width: 0 0 0 3px; border-width: 0 0 0 3px;
@include font-size($font-size-secondary);
> p { code {
background-color: $white !important;
}
> p , > ul{
margin-bottom: .5rem;
}
> *:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
> h3, > .alert-title { > h3, > .alert-title {
line-height: 1em; line-height: 1em;
margin: 0 0 10px 0; margin: 0 0 10px 0;
font-size: 1rem; @include font-size($font-size-base);
font-weight: $fw_bold; font-weight: $fw_bold;
&:before { &:before {
@include inline-icomoon($i-info, 0 .2rem 0 0); @include inline-icomoon($i-info, 0 .2rem 0 0, baseline, $font-size-base, inherit);
@include media-breakpoint-down(md) { @include media-breakpoint-down(md) {
display:none; display:none;
} }
} }
} }
&.alert-success { &.alert-info, &[class^="admonition"] {
border-color: lighten($brand-success, 30%);
background-color: lighten($brand-success, 45%);
color: darken($brand-success, 35%);
> .alert-title, > h3 {
color: $brand-success
}
> .alert-title:before, > h3:before {
content: '#{$i-check}';
}
}
&.alert-info {
border-color: tint-color($brand-info, 30%); border-color: tint-color($brand-info, 30%);
background-color: tint-color($brand-info, 85%); background-color: tint-color($brand-info, 85%);
color: shade-color($brand-info, 35%); color: shade-color($brand-info, 35%);
> .alert-title, > h3 { > .alert-title, > h3 {
color: $brand-info color: $brand-info;
} &:before {
> .alert-title:before, > h3:before {
content: '#{$i-info}'; content: '#{$i-info}';
} }
} }
}
&.alert-note { &.alert-note {
border-color: tint-color($brand-info, 30%); border-color: shade-color($info, 30%);
background-color: tint-color($brand-info, 85%); background-color: $gray-lightest;
color: shade-color($brand-info, 35%); color: shade-color($info, 55%);
> .alert-title, > h3 { > .alert-title, > h3 {
color: $brand-info color: shade-color($info, 45%);
} &:before {
> .alert-title:before, > h3:before {
content: '#{$i-note}'; content: '#{$i-note}';
} }
} }
&.alert-tip, &.tip {
border-color: tint-color($brand-info, 30%);
background-color: tint-color($brand-info, 85%);
color: shade-color($brand-info, 35%);
> .alert-title, > h3 {
color: $brand-info
} }
> .alert-title:before, > h3:before { &.alert-tip, &.tip {
border-color: shade-color($color-alpha, 10%);
background-color: $gray-lightest;
color: shade-color($color-alpha, 55%);
> .alert-title, > h3 {
color: shade-color($color-alpha, 40%);
&:before {
content: '#{$i-lightbulb}'; content: '#{$i-lightbulb}';
@include font-size(1.2rem);
}
} }
} }
&.alert-warning, &.warning { &.alert-warning, &.warning {
border-color: $warning; border-color: $brand-warning;
> .alert-title, > h3 { > .alert-title, > h3 {
color: $brand-warning; color: shade-color($brand-warning, 10%);
} &:before {
> .alert-title:before, > h3:before {
content: '#{$i-warning}'; content: '#{$i-warning}';
} }
} }
}
&.alert-danger { &.alert-danger {
border-color: $danger; border-color: $danger;
> .alert-title, > h3 { > .alert-title, > h3 {
color: $brand-danger color: darken($brand-danger,20%);
} &:before {
> .alert-title:before, > h3:before {
content: '#{$i-danger}'; content: '#{$i-danger}';
} }
} }
}
&.alert-exercise { &.alert-exercise {
border-color: tint-color($doc_exercise, 30%); border-color: tint-color($doc_exercise, 30%);
@ -670,21 +803,19 @@ header.o_main_header{
&.alert-go_to { &.alert-go_to {
display: inline-block; display: inline-block;
border-color: tint-color($secondary, 60%); border-color: $o-violet;
background-color: tint-color($secondary, 80%); background-color: $gray-lightest;
border-width: 2px; width: calc(50% - 1rem);
margin: 2em auto;
a { a {
color: shade-color($secondary, 35%); color: $o-violet-dark;
} }
> .alert-title, > h3 { > .alert-title, > h3 {
color: $secondary; color: $o-violet-dark;
} }
> .alert-title:before, > h3:before { > .alert-title:before, > h3:before {
content: '#{$i-view-more}'; content: '#{$i-arrow-right}';
} }
} }
} }

View File

@ -2,7 +2,15 @@
main.index .toctree-wrapper > .row:first-child > .col-md-3 { main.index .toctree-wrapper > .row:first-child > .col-md-3 {
margin: 0 !important; margin: 0 !important;
} }
.doc-aside {
border: 1px solid #d5d5d5;
background-color: #f8f8f8;
padding: 0 !important;
font-size: 14px;
}
.doc-aside p{
padding: .5rem;
}
.intro-list { .intro-list {
margin-top: 1em; margin-top: 1em;
} }
@ -12,13 +20,16 @@ main.index .toctree-wrapper > .row:first-child > .col-md-3 {
} }
.related { .related {
background-color: hsl(219, 76%, 88%) !important; background-color: hsl(317deg 16% 90%) !important;
transition: .3s;
} }
.secondary { .secondary {
background-color: hsl(219, 67%, 94%) !important; background-color: hsl(180deg 67% 94%) !important;
transition: .3s;
} }
.highlight-op { .highlight-op {
background-color: hsl(219, 67%, 94%); background-color: hsl(317deg 16% 90%) !important;
transition: .3s;
} }
label:hover, label:hover,
@ -28,16 +39,20 @@ label:hover,
cursor: pointer; cursor: pointer;
} }
.accounts-table { /*.accounts-table {
font-size: 90%; font-size: 90%;
} }*/
.accounts-table dl { .accounts-table dl {
margin: 0; margin: 0;
padding: .5rem 0;
} }
.accounts-table h4, .accounts-table h5 { .accounts-table h4, .accounts-table h5 {
font-weight: normal; font-weight: 700;
text-transform: uppercase;
padding: .5rem;
} }
.accounts-table h4 { .accounts-table h4 {
@ -50,10 +65,11 @@ label:hover,
/* P&L & Balance Sheet columns */ /* P&L & Balance Sheet columns */
.accounts-table > div > div { .accounts-table > div > div {
flex: 1; flex: 1;
padding: 5px; padding: .5rem;
margin: 0 .5rem; }
border: 2px solid #666;
border-radius: 3px; .accounts-table > div > div:first-child {
border-right: 1px solid #d5d5d5
} }
/* sections */ /* sections */
@ -64,19 +80,20 @@ label:hover,
.accounts-table > div > div div > h5 { .accounts-table > div > div div > h5 {
order: 99; order: 99;
border-top: 1px solid #d5d5d5;
text-transform: uppercase; border-bottom: 1px solid #d5d5d5;
/*text-transform: uppercase;*/
padding: 0.3em 0; /*padding: 0.3em 0;*/
border-image: linear-gradient(to bottom, transparent, rgb(221, 225, 231), transparent, rgb(221, 225, 231), transparent) 5 0 10 / 3px 0 3px; /*border-image: linear-gradient(to bottom, transparent, rgb(221, 225, 231), transparent, rgb(221, 225, 231), transparent) 5 0 10 / 3px 0 3px;*/
} }
.accounts-table > div > div div div > h5 { .accounts-table > div > div div div > h5 {
/* slightly smaller than normal 14px h5 size */ /* slightly smaller than normal 14px h5 size */
font-size: 12.5px; font-size: 12.5px;
border-image: linear-gradient(to bottom, transparent, rgb(221, 225, 231), transparent, rgb(221, 225, 231), transparent) 5 0 5; /*border-image: linear-gradient(to bottom, transparent, rgb(221, 225, 231), transparent, rgb(221, 225, 231), transparent) 5 0 5;*/
} }
.accounts-table dt { .accounts-table dt {
font-weight: normal; font-weight: 700;
padding: 0 .5rem;
} }
.accounts-table dt span { .accounts-table dt span {
font-style: italic; font-style: italic;
@ -102,20 +119,21 @@ label:hover,
@media (min-width: 992px) { @media (min-width: 992px) {
.accounts-table, .doc-aside .highlighter-target { .accounts-table, .doc-aside .highlighter-target {
font-size: 90%; /*font-size: 90%;*/
color: #888 !important; /*color: #8d8d8d !important;*/
} }
.doc-aside .highlighter-target th { .doc-aside .highlighter-target th {
font-weight: normal; font-weight: 400;
font-size: 110%; /*font-size: 110%;*/
} }
.accounts-table .related, .doc-aside .highlighter-target .related { .accounts-table .related, .doc-aside .highlighter-target .related {
background-color: transparent !important; /*background-color: #eee !important;*/
color: #eee !important; color: #7A436B !important;
} }
.accounts-table .secondary, .doc-aside .highlighter-target .secondary { .accounts-table .secondary, .doc-aside .highlighter-target .secondary {
background-color: transparent !important; background-color: #eee !important;
color: #aaa !important; color: #7A436B !important;
} }
.chart-of-accounts .highlight-op, .chart-of-accounts .highlight-op,
@ -133,7 +151,9 @@ label:hover,
background-color: #030035; background-color: #030035;
} }
} }
.entries-listing {
padding: .5rem;
}
.journal-entries .entries-listing p { .journal-entries .entries-listing p {
font-style: italic; font-style: italic;
} }
@ -141,6 +161,7 @@ label:hover,
#reconciliation .reconciliation-example div.buttons { #reconciliation .reconciliation-example div.buttons {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-bottom: 1rem;
} }
#reconciliation .reconciliation-example div.buttons button { #reconciliation .reconciliation-example div.buttons button {
margin: 0 0.5em; margin: 0 0.5em;
@ -148,40 +169,41 @@ label:hover,
@keyframes reconcile { @keyframes reconcile {
0% { 0% {
font-size: 100%; opacity: 1;
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
background-color: rgba(2, 0, 31, 0); background-color: transparent;
} }
60% { 60% {
background-color: rgba(2, 0, 31, 1); background-color: hsl(317deg 16% 90%);
} }
80% { 80% {
font-size: 100%; opacity: 1;
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
} }
100% { 100% {
font-size: 0%; opacity: 0;
padding-top: 0; padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
display: none; display: none;
} }
} }
.reconcile1 .invoice1, .reconcile1 .invoice1 td { .reconcile1 .invoice1, .reconcile1 .invoice1 td {
animation: reconcile 5s ease-in forwards; animation: reconcile 2s;
} }
.reconcile2 .invoice2, .reconcile2 .invoice2 td { .reconcile2 .invoice2, .reconcile2 .invoice2 td {
animation: reconcile 5s ease-in forwards; animation: reconcile 2s;
} }
.invoice1.reconciled, .invoice2.reconciled { .invoice1.reconciled, .invoice2.reconciled {
display: none; display: none;
} }
blockquote.highlights { blockquote.highlights, blockquote.highlights p{
border: none; border: none;
margin-bottom: 0; margin-top: 1rem;
margin-bottom: 1rem;
text-align: center; text-align: center;
} }

View File

@ -13,7 +13,7 @@
var AccountsTable = React.createClass({ var AccountsTable = React.createClass({
render: function () { render: function () {
return React.DOM.div( return React.DOM.div(
{ style: { marginTop: '1em' } }, { style: { marginTop: '0' } },
React.DOM.div(// P&L React.DOM.div(// P&L
highlight(this.props.current === 'p-l'), highlight(this.props.current === 'p-l'),
React.DOM.h4(null, "Profit & Loss"), React.DOM.h4(null, "Profit & Loss"),