From 0d6ed203f917b6cfb19cdb26b5a196f1eaf33877 Mon Sep 17 00:00:00 2001 From: mxochicale Date: Sat, 20 Apr 2024 15:39:38 +0100 Subject: [PATCH] adds css: [css/callouts.scss] #28 --- quarto/templates/slides/css/callouts.css | 302 +++++++++++++++++++++++ quarto/templates/slides/index00.qmd | 2 +- 2 files changed, 303 insertions(+), 1 deletion(-) create mode 100644 quarto/templates/slides/css/callouts.css diff --git a/quarto/templates/slides/css/callouts.css b/quarto/templates/slides/css/callouts.css new file mode 100644 index 0000000..07b1365 --- /dev/null +++ b/quarto/templates/slides/css/callouts.css @@ -0,0 +1,302 @@ +:root { + --callout-color: #2a2a2a; + --callout-title-color: #bdbdbd; + --callout-border-hover: #838383; + /*#FF2052;*/ + /*#A9E34C;*/ +} + +.callout { + /* margin-top: 0.5em; */ + /* margin-bottom: 1em; */ + border-radius: 8px!important; + /* padding-left: 2pt; */ + /* padding-right: 2pt; */ + background-color: #1c1c1c; + /* box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; */ + /* max-width: min-content + 20px; */ + /* min-width: max-content; */ + margin-left: auto; + margin-right: auto; + opacity: 100%!important; + display: -webkit-inline-box; + width: fit-content; + /* width: auto; */ +} +.callout:hover { + /* margin-top: 0.5em; */ + /* margin-bottom: 1em; */ + border-radius: 8px!important; + /* padding-left: 2pt; */ + /* padding-right: 2pt; */ + background-color: #1c1c1c; + box-shadow: rgba(0, 0, 0, 0.35) 0px 10px 30px; + /* border: 1px solid var(--callout-border-hover)!important; */ + /* max-width: min-content + 20px; */ + /* min-width: max-content; */ + margin-left: auto; + margin-right: auto; + opacity: 100%!important; + display: -webkit-inline-box; + width: fit-content; + /* width: auto; */ +} +.reveal .callout.callout-style-simple { + padding: 0em 1em; + /* border-left: solid #acacac .3rem; */ + border: 1px solid var(--callout-color); + opacity: 100%!important; + /* border-radius: 2px; */ + /* border-right: none; */ + /* border-top: none; */ + /* border-bottom: none; */ + display: -webkit-inline-flex; + /* box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; */ + /* box-shadow: rgba(0, 0, 0, 0.12) 0 1px 2px rgba(0,0,0,0.24); */ +} +.reveal .callout.callout-style-simple:hover { + padding: 0em 1em; + /* border-left: solid #acacac .3rem; */ + /* border: 1px solid var(--callout-color); */ + opacity: 100%!important; + border: 1px solid var(--callout-border-hover)!important; + /* border-radius: 2px; */ + /* border-right: none; */ + /* border-top: none; */ + /* border-bottom: none; */ + display: -webkit-inline-flex; + box-shadow: rgba(0, 0, 0, 0.35) 0px 10px 30px; + /* box-shadow: rgba(0, 0, 0, 0.12) 0 1px 2px rgba(0,0,0,0.24); */ +} +.callout.callout-style-simple div.callout-title { + color: var(--callout-title-color); + opacity: 100%!important; + width: fit-content; + font-size: 1.15em!important; + font-weight: 700; +} +.callout.callout-style-simple { + padding: 0em 0.5em; + display: flex; +} +.callout.callout-style-default { + border: none; +} +.callout .callout-body-container { + flex-grow: 1; +} +.callout.callout-style-simple .callout-body { + font-size: 1rem; + /* font-weight: 400; */ +} +.callout.callout-style-default .callout-body { + font-size: 1em; + /* font-weight: 400; */ +} +.callout.callout-titled.callout-style-simple .callout-body { + margin-top: auto; +} +.callout:not(.callout-titled) .callout-body { + display: flex; +} +.callout:not(.no-icon).callout-titled.callout-style-simple .callout-content { + padding-left: 2.0em; +} +.callout.callout-titled .callout-header { + padding-top: auto; +} + +.callout.callout-titled .callout-title p { + vertical-align: middle; +} +.callout.callout-titled.callout-style-simple .callout-content p { + margin-top: 0; +} +.callout.callout-titled.callout-style-default .callout-content p { + /* margin-top: 0.7em; */ + margin-top: auto; +} +.callout.callout-style-simple div.callout-title { + border-bottom: none; + font-weight: 600; +} +.callout.callout-style-default div.callout-title { + border-bottom: none; + font-weight: 600; + opacity: 100%!important; + /* font-size: 1.2em!important; */ + letter-spacing: .05em; +} +.callout.callout-style-default div.callout-content { + padding-left: 2em; + padding-right: 2em; +} +.callout.callout-style-simple .callout-icon::before { + height: 1rem; + width: 1rem; + display: inline-block; + content: ""; + background-repeat: no-repeat; + background-size: 1rem 1rem; +} +.callout.callout-style-default .callout-icon::before { + height: 0.9rem; + width: 0.9rem; + display: inline-block; + content: ""; + background-repeat: no-repeat; + background-size: 0.9rem 0.9rem; +} +.callout-title { + display: flex; +} +.callout-icon::before { + padding-right: 0.5rem; + vertical-align: bottom; +} +.callout.no-icon::before { + display: none !important; +} +.callout.callout-titled .callout-body > .callout-content > :last-child { + margin-bottom: 0.5em!important; +} +.callout.callout-titled .callout-icon::before { + padding-right: 0.5rem; +} +.callout:not(.callout-titled) .callout-icon::before { + margin-top: 1rem; + padding-right: 0.5rem; +} + +div.callout-note { + border: 1px solid #4582ec !important; +} +div.callout-warning { + border: 1px solid #FFFF00 !important; +} +div.callout-tip { + border: 1px solid #02b875 !important; +} +div.callout-caution { + border: 1px solid #E599F7 !important; +} +div.callout-important { + border: 1px solid #ff5252 !important; +} + +div.callout-note.callout-style-default .callout-title { + background: none!important; + color: #4582EC !important; + font-weight: bold; +} +div.callout-warning.callout-style-default .callout-title { + background: none!important; + color: #FFFF00 !important; + font-weight: bold; +} +div.callout-caution.callout-style-default .callout-title { + background: none!important; + color: #E599F7!important; + font-weight: bold; +} +div.callout-tip.callout-style-default .callout-title { + background: none!important; + color: #02b875 !important; + font-weight: bold; +} +div.callout-important.callout-style-default .callout-title { + background: none!important; + color: #FF5252 !important; + font-weight: bold; +} + +.callout.callout-titled.callout-style-default .callout-content p { + margin-top: 0!important; +} + +/* .callout-title { */ +/* padding: var(--callout-title-padding); */ +/* display: flex; */ +/* gap: var(--size-4-1); */ +/* font-size: var(--callout-title-size); */ +/* color: rgb(var(--callout-color)); */ +/* line-height: var(--line-height-tight); */ +/* } */ + /* width: fit-content; */ + /* letter-spacing: .05em; */ + /* font-variant-caps: all-small-caps; */ + /* font-size: 1.25em!important; */ + /* z-index: 200; */ + /* padding: 0 0.5em; */ + /* padding-top: 0px; */ + /* padding-right: 0.5em; */ + /* padding-bottom: 0px; */ + /* padding-left: 0.5em; */ + +div.callout.callout-style-simple .callout-icon::before { + color: var(--callout-color)!important; + background-image: url('data:image/svg+xml,')!important; +} + +div.callout-caution .callout-icon::before { + color: #E599F7!important; + background-image: url('data:image/svg+xml,')!important; +} + +div.callout-note .callout-icon::before { + color: #4582ec !important; + /* background-image: url('data:image/svg+xml,'); */ + /* background-image: url('data:image/svg+xml,'); */ + background-image: url('data:image/svg+xml,')!important; + /* background-image: url('data:image/svg+xml,')!important; */ +} + +div.callout-important .callout-icon::before { + color: #ff5252 !important; + background-image: url('data:image/svg+xml,')!important; + /* background-image: url('data:image/svg+xml,')!important; */ + } +div.callout-warning .callout-icon::before { + color: #FFFF00 !important; + background-image: url('data:image/svg+xml,')!important; + /* background-image: url('data:image/svg+xml,')!important; */ +} + +div.callout-tip .callout-icon::before { + color: #02b875!important; + background-image: url('data:image/svg+xml,')!important; + /* background-image: url('data:image/svg+xml,')!important; */ +} + +/* background-image: url('data:image/svg+xml,')!important; */ + +/* background-image: url('data:image/svg+xml,')!important; */ + +/* '); */ +/* background-image: url('data:image/svg+xml,'); */ + /* background-image: url('data:image/svg+xml,'); */ + + /* background-image: url('data:image/svg+xml,')!important; */ + + /* background-image: url('data:image/svg+xml,') */ + + /* background-image: url('data:image/svg+xml,')!important; */ + + /* background-image: url('data:image/svg+xml,')!important; */ + + +div.callout-code { + border: 1px solid #F783AC !important; +} + +div.callout-code.callout-style-default .callout-title { + background: none!important; + color: #F783AC !important; + font-weight: bold; +} + + +div.callout-code .callout-icon::before { + color: #F783AC; + background-image: url('data:image/svg+xml,')!important; +} diff --git a/quarto/templates/slides/index00.qmd b/quarto/templates/slides/index00.qmd index d7a3312..f354b54 100644 --- a/quarto/templates/slides/index00.qmd +++ b/quarto/templates/slides/index00.qmd @@ -15,7 +15,7 @@ format: # NOTES. white, beige, blood, league, serif, moon, night, dark, sky seem to work # NOTES. dark, solarized, simple, white seem not be created theme: [css/dark.scss] - css: [css/default.css] + css: [css/default.css, css/callouts.css] footer: gfm: author: Miguel Xochicale