[IMP] odoo_theme: improve spacing around code blocks on reference pages
X-original-commit: 794e42f78b
This commit is contained in:
parent
283787fe55
commit
4b227945d8
@ -62,6 +62,7 @@ body {
|
|||||||
|
|
||||||
span.viewcode-link {
|
span.viewcode-link {
|
||||||
float: none;
|
float: none;
|
||||||
|
margin-left: .3rem;
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Header with logo, searchbar and switchers
|
// Header with logo, searchbar and switchers
|
||||||
@ -431,26 +432,25 @@ header {
|
|||||||
grid-template-columns: minmax(0,$o-side-nav-width) minmax(0,auto) minmax(0,$o-on-page-width);
|
grid-template-columns: minmax(0,$o-side-nav-width) minmax(0,auto) minmax(0,$o-on-page-width);
|
||||||
margin-top: $o-headers-height;
|
margin-top: $o-headers-height;
|
||||||
}
|
}
|
||||||
|
p {
|
||||||
|
> code {
|
||||||
|
padding: 0 .3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
code {
|
code {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
padding: 0 .3rem;
|
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
&.sig-prename {
|
&:first-of-type:not(span):not(em) {
|
||||||
margin-right: 0 !important;
|
padding-left: .3rem;
|
||||||
padding-right: 0 !important;
|
|
||||||
|
|
||||||
+ .sig-name {
|
|
||||||
margin-left: 0 !important;
|
|
||||||
padding-left: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
~ .sig-paren, ~ .sig-param, ~.optional{
|
&:last-of-type:not(em) {
|
||||||
font-size: $font-size-secondary;
|
padding-right: .3rem;
|
||||||
|
}
|
||||||
|
~ .sig-paren, ~ .sig-param, ~ .optional {
|
||||||
|
@extend code;
|
||||||
+ .sig-paren {
|
+ .sig-paren {
|
||||||
padding-left: .2rem;
|
padding: 0 .1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.file {
|
&.file {
|
||||||
@ -464,7 +464,6 @@ header {
|
|||||||
|
|
||||||
&:not(.file) {
|
&:not(.file) {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
margin: 0 0.1rem;
|
|
||||||
background: darken($doc_code-bg,3%);
|
background: darken($doc_code-bg,3%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -679,15 +678,27 @@ header {
|
|||||||
@extend code;
|
@extend code;
|
||||||
}
|
}
|
||||||
|
|
||||||
dl.py {
|
dl.py, dl.js {
|
||||||
code {
|
|
||||||
margin-left: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
> dd {
|
> dd {
|
||||||
border-left: 2px solid $gray-lighter;
|
border-left: 3px solid $gray-lighter;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-left: $padding-s;
|
padding-left: $padding-s;
|
||||||
|
padding-top: $padding-xs;
|
||||||
|
}
|
||||||
|
&.class em.property {
|
||||||
|
font-size: $font-size-secondary;
|
||||||
|
&:first-child {
|
||||||
|
border-bottom: 3px solid $gray-lighter;
|
||||||
|
+ [class^=sig] {
|
||||||
|
padding-left: .3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:not(:first-child) {
|
||||||
|
@extend code;
|
||||||
|
&:last-of-type {
|
||||||
|
padding-right: .3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -795,6 +806,7 @@ header {
|
|||||||
a.headerlink {
|
a.headerlink {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
|
line-height: 0;
|
||||||
visibility: hidden !important;
|
visibility: hidden !important;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
|
Loading…
Reference in New Issue
Block a user