From 2fb56b21956d2a56a01a910b3392a629b8614d54 Mon Sep 17 00:00:00 2001 From: kthoden Date: Thu, 3 Sep 2020 19:29:33 +0200 Subject: [PATCH] Add code for info box --- src/pug/chapter03.pug | 28 ++++++++++++++++++++++++++++ src/styles/base/typography.scss | 10 ++++++++++ 2 files changed, 38 insertions(+) diff --git a/src/pug/chapter03.pug b/src/pug/chapter03.pug index 8f4ad8af3..5126ca067 100644 --- a/src/pug/chapter03.pug +++ b/src/pug/chapter03.pug @@ -256,6 +256,34 @@ block page-content li LaTeX: A typesetting system li User: This is you! a(href="#").accordion__pageup + +publications-accordion-item( + '2.4 Text boxes', + 'Simple info boxes with a grey background.', + 'active', + true, + ['32', '33'] + ) + .row.boxed(id='34') + .flags + +infobox + p + | An infobox + .row.boxed(id='35') + .flags + +infobox + p + | The EOA flavour of Latex offers quite a few commands that help you markup words in your text. And also, if you want to include words in different writing systems, they have to be preceded by commands so that the system can switch to the correct font. The whole scope is gathered in the next, rather experimental section. + .row.boxed(id='36') + .flags + +infobox + p + | The EOA flavour of Latex offers quite a few commands that help you markup words in your text. And also, if you want to include words in different writing systems, they have to be preceded by commands so that the system can switch to the correct font. The whole scope is gathered in the next, rather experimental section. + .row.boxed(id='37') + .flags + +infobox + p + | The EOA flavour of Latex offers quite a few commands that help you markup words in your text. And also, if you want to include words in different writing systems, they have to be preceded by commands so that the system can switch to the correct font. The whole scope is gathered in the next, rather experimental section. + a(href="#").accordion__pageup +publications-accordion-item( 'Footnotes', '', diff --git a/src/styles/base/typography.scss b/src/styles/base/typography.scss index 623a9f1d4..38f62c231 100755 --- a/src/styles/base/typography.scss +++ b/src/styles/base/typography.scss @@ -71,3 +71,13 @@ p { p:last-child { margin-bottom: 0; } + +.boxed { + background-color: #f4f4f4; + padding-bottom: 0.1px; + + p { + margin-left: 30px; + margin-right: 30px; + } +}