Update results block

This commit is contained in:
Thomas Dehaeze 2020-11-23 11:47:42 +01:00
parent 4ef3cf9294
commit 95fff52618
2 changed files with 24 additions and 2 deletions

View File

@ -1,3 +1,4 @@
/* Figures */
.figure p{ .figure p{
text-align: center; text-align: center;
} }
@ -13,6 +14,8 @@ table {
margin-right: auto; margin-right: auto;
} }
/* Source Blocks */
.org-src-container > pre.src:before { .org-src-container > pre.src:before {
display: inline; display: inline;
position: absolute; position: absolute;
@ -48,10 +51,16 @@ table {
.org-src-container > pre.src-python:before { content: 'Python'; } .org-src-container > pre.src-python:before { content: 'Python'; }
.org-src-container > pre.src-matlab:before { content: 'Matlab'; } .org-src-container > pre.src-matlab:before { content: 'Matlab'; }
/* Results blocks */
pre.example {
position: relative;
}
pre.example:before { pre.example:before {
content: 'Results'; content: 'Results';
display: inline; display: inline;
position: relative; position: absolute;
color: #808080; color: #808080;
background-color: white; background-color: white;
top: -10px; top: -10px;
@ -61,6 +70,8 @@ pre.example:before {
font-size: 80%; font-size: 80%;
} }
/* Navigation Buttons */
#org-div-home-and-up { #org-div-home-and-up {
text-align: right; text-align: right;
max-width: 1200px; max-width: 1200px;

View File

@ -1250,6 +1250,7 @@ h2.footnotes{
.org-widget-field { /* widget-field */ background-color: #d9d9d9; } .org-widget-field { /* widget-field */ background-color: #d9d9d9; }
.org-widget-inactive { /* widget-inactive */ color: #7f7f7f; } .org-widget-inactive { /* widget-inactive */ color: #7f7f7f; }
.org-widget-single-line-field { /* widget-single-line-field */ background-color: #d9d9d9; } .org-widget-single-line-field { /* widget-single-line-field */ background-color: #d9d9d9; }
/* Figures */
.figure p{ .figure p{
text-align: center; text-align: center;
} }
@ -1265,6 +1266,8 @@ table {
margin-right: auto; margin-right: auto;
} }
/* Source Blocks */
.org-src-container > pre.src:before { .org-src-container > pre.src:before {
display: inline; display: inline;
position: absolute; position: absolute;
@ -1300,10 +1303,16 @@ table {
.org-src-container > pre.src-python:before { content: 'Python'; } .org-src-container > pre.src-python:before { content: 'Python'; }
.org-src-container > pre.src-matlab:before { content: 'Matlab'; } .org-src-container > pre.src-matlab:before { content: 'Matlab'; }
/* Results blocks */
pre.example {
position: relative;
}
pre.example:before { pre.example:before {
content: 'Results'; content: 'Results';
display: inline; display: inline;
position: relative; position: absolute;
color: #808080; color: #808080;
background-color: white; background-color: white;
top: -10px; top: -10px;
@ -1313,6 +1322,8 @@ pre.example:before {
font-size: 80%; font-size: 80%;
} }
/* Navigation Buttons */
#org-div-home-and-up { #org-div-home-and-up {
text-align: right; text-align: right;
max-width: 1200px; max-width: 1200px;