2023-05-25 10:46:07 +00:00
<!DOCTYPE html>
< html lang = "en" dir = "ltr" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0" >
2023-09-05 11:10:04 +00:00
< meta name = "generator" content = "Hugo 0.118.2" >
2023-09-18 19:07:16 +00:00
< meta name = "generator" content = "Relearn 5.21.0+tip" >
2023-05-25 10:46:07 +00:00
< meta name = "description" content = "Show content in a single tab" >
< meta name = "author" content = "Sören Weber" >
< title > Tab :: Hugo Relearn Theme< / title >
< link href = "https://McShelby.github.io/hugo-theme-relearn/shortcodes/tab/index.html" rel = "alternate" hreflang = "x-default" >
< link href = "https://McShelby.github.io/hugo-theme-relearn/shortcodes/tab/index.html" rel = "alternate" hreflang = "en" >
< link href = "https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/tab/index.html" rel = "alternate" hreflang = "pir" >
< link href = "https://McShelby.github.io/hugo-theme-relearn/shortcodes/tab/index.html" rel = "canonical" type = "text/html" title = "Tab :: Hugo Relearn Theme" >
< link href = "../../shortcodes/tab/index.xml" rel = "alternate" type = "application/rss+xml" title = "Tab :: Hugo Relearn Theme" >
2023-09-23 23:02:03 +00:00
< link href = "../../images/logo.svg?1695510113" rel = "icon" type = "image/svg+xml" >
2023-05-25 10:46:07 +00:00
<!-- https://github.com/filamentgroup/loadCSS/blob/master/README.md#how - to - use -->
2023-09-23 23:02:03 +00:00
< link href = "../../css/fontawesome-all.min.css?1695510114" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../css/fontawesome-all.min.css?1695510114" rel = "stylesheet" > < / noscript >
< link href = "../../css/nucleus.css?1695510114" rel = "stylesheet" >
< link href = "../../css/auto-complete.css?1695510114" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../css/auto-complete.css?1695510114" rel = "stylesheet" > < / noscript >
< link href = "../../css/perfect-scrollbar.min.css?1695510114" rel = "stylesheet" >
< link href = "../../css/fonts.css?1695510114" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../css/fonts.css?1695510114" rel = "stylesheet" > < / noscript >
< link href = "../../css/theme.css?1695510114" rel = "stylesheet" >
< link href = "../../css/theme-auto.css?1695510114" rel = "stylesheet" id = "R-variant-style" >
< link href = "../../css/variant.css?1695510114" rel = "stylesheet" >
< link href = "../../css/print.css?1695510114" rel = "stylesheet" media = "print" >
< link href = "../../css/format-print.css?1695510114" rel = "stylesheet" >
< link href = "../../css/ie.css?1695510114" rel = "stylesheet" >
< script src = "../../js/url.js?1695510114" > < / script >
< script src = "../../js/variant.js?1695510114" > < / script >
2023-05-25 10:46:07 +00:00
< script >
// hack to let hugo tell us how to get to the root when using relativeURLs, it needs to be called *url= for it to do its magic:
// https://github.com/gohugoio/hugo/blob/145b3fcce35fbac25c7033c91c1b7ae6d1179da8/transform/urlreplacers/absurlreplacer.go#L72
window.index_js_url="../../index.search.js";
var root_url="../../";
var baseUri=root_url.replace(/\/$/, '');
// translations
window.T_Copy_to_clipboard = 'Copy to clipboard';
window.T_Copied_to_clipboard = 'Copied to clipboard!';
window.T_Copy_link_to_clipboard = 'Copy link to clipboard';
window.T_Link_copied_to_clipboard = 'Copied link to clipboard!';
window.T_No_results_found = 'No results found for \u0022{0}\u0022';
window.T_N_results_found = '{1} results found for \u0022{0}\u0022';
// some further base stuff
var baseUriFull='https:\/\/McShelby.github.io\/hugo-theme-relearn/';
2023-08-12 14:11:21 +00:00
window.variants & & variants.init( [ 'auto', 'relearn-bright', 'relearn-light', 'relearn-dark', 'zen-light', 'zen-dark', 'neon', 'learn', 'blue', 'green', 'red' ] );
2023-05-25 10:46:07 +00:00
< / script >
< style >
2023-09-23 08:19:35 +00:00
#R-body img.bg-white {
2023-05-25 10:46:07 +00:00
background-color: white;
}
< / style >
< / head >
< body class = "mobile-support print disableInlineCopyToClipboard" data-url = "../../shortcodes/tab/index.html" >
2023-09-23 08:19:35 +00:00
< div id = "R-body" class = "default-animation" >
< div id = "R-body-overlay" > < / div >
< nav id = "R-topbar" >
2023-09-18 18:49:44 +00:00
< div class = "topbar-wrapper" >
2023-09-13 21:30:04 +00:00
< div class = "topbar-sidebar-divider" > < / div >
2023-09-18 18:49:44 +00:00
< div class = "topbar-area topbar-area-start" data-area = "start" >
< div class = "topbar-button topbar-button-sidebar" data-content-empty = "disable" data-width-s = "show" data-width-m = "hide" data-width-l = "hide" >
< button class = "topbar-control" onclick = "toggleNav()" type = "button" title = "Menu (CTRL+ALT+n)" >
2023-09-12 21:10:21 +00:00
< i class = "fa-fw fas fa-bars" > < / i >
< / button >
< / div >
2023-09-13 21:30:04 +00:00
< / div >
2023-09-20 22:28:27 +00:00
< ol class = "topbar-breadcrumbs breadcrumbs highlightable" itemscope itemtype = "http://schema.org/BreadcrumbList" > < li
2023-09-21 15:25:13 +00:00
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">< a itemprop = "item" href = "../../shortcodes/index.html" > < span itemprop = "name" > Shortcodes< / span > < / a > < meta itemprop = "position" content = "2" > > < / li > < li
2023-09-23 22:28:49 +00:00
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">< span itemprop = "name" > Tab< / span > < meta itemprop = "position" content = "2" > < / li >
2023-09-13 21:30:04 +00:00
< / ol >
2023-09-18 18:49:44 +00:00
< div class = "topbar-area topbar-area-end" data-area = "end" >
2023-09-12 21:19:47 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / nav >
2023-09-23 08:19:35 +00:00
< div id = "R-main-overlay" > < / div >
< main id = "R-body-inner" class = "highlightable default" tabindex = "-1" >
2023-05-25 10:46:07 +00:00
< div class = "flex-block-wrapper" >
< article class = "default" >
< header class = "headline" >
< / header >
< h1 id = "tab" > Tab< / h1 >
< p > You can use a < code > tab< / code > shortcode to display a single tab.< / p >
< p > This is especially useful if you want to flag your code example with an explicit language.< / p >
< p > If you want multiple tabs grouped together you can wrap your tabs into the < a href = "../../shortcodes/tabs/" > < code > tabs< / code > shortcode< / a > .< / p >
2023-06-03 22:20:43 +00:00
2023-09-23 23:02:03 +00:00
< div class = "tab-panel" data-tab-group = "583410e2aafd2d7aa0a232898cec0b0e" >
2023-05-25 10:46:07 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-05-25 10:46:07 +00:00
< button
data-tab-item="c"
2023-06-06 16:16:06 +00:00
class="tab-nav-button tab-panel-style cstyle initial active"
2023-09-23 23:02:03 +00:00
onclick="switchTab('583410e2aafd2d7aa0a232898cec0b0e','c')"
2023-05-25 10:46:07 +00:00
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > c< / div >
< div class = "tab-nav-text" > c< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-05-25 10:46:07 +00:00
< div
data-tab-item="c"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2023-06-21 23:23:13 +00:00
< div class = "wrap-code highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-python" data-lang = "python" > < span class = "line" > < span class = "cl" > < span class = "n" > printf< / span > < span class = "p" > (< / span > < span class = "s2" > " Hello World!" < / span > < span class = "p" > );< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / div >
< h2 id = "usage" > Usage< / h2 >
< p > While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.< / p >
2023-06-05 16:33:00 +00:00
< div class = "tab-panel" data-tab-group = "shortcode-parameter" >
2023-05-25 10:46:07 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-05-25 10:46:07 +00:00
< button
data-tab-item="shortcode"
2023-06-06 16:16:06 +00:00
class="tab-nav-button tab-panel-style cstyle initial active"
2023-05-25 10:46:07 +00:00
onclick="switchTab('shortcode-parameter','shortcode')"
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > shortcode< / div >
< div class = "tab-nav-text" > shortcode< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< button
data-tab-item="partial"
2023-06-06 16:16:06 +00:00
class="tab-nav-button tab-panel-style cstyle initial"
2023-05-25 10:46:07 +00:00
onclick="switchTab('shortcode-parameter','partial')"
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > partial< / div >
< div class = "tab-nav-text" > partial< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-05-25 10:46:07 +00:00
< div
data-tab-item="shortcode"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2023-06-21 23:23:13 +00:00
< div class = "wrap-code highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " c" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2023-05-25 10:46:07 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```c
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > printf(" Hello World!" );
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< div
data-tab-item="partial"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2023-06-21 23:23:13 +00:00
< div class = "wrap-code highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "nx" > partial< / span > < span class = "s" > " shortcodes/tab.html" < / span > < span class = "p" > (< / span > < span class = "nx" > dict< / span >
2023-07-27 15:06:14 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " page" < / span > < span class = "p" > .< / span >
2023-06-05 22:32:57 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " title" < / span > < span class = "s" > " c" < / span >
2023-06-03 21:51:49 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " content" < / span > < span class = "p" > (< / span > < span class = "s" > " ```c\nprintf(\" Hello World!\" )\n```" < / span > < span class = "p" > |< / span > < span class = "p" > .< / span > < span class = "nx" > RenderString< / span > < span class = "p" > )< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > )}}< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / div >
< h3 id = "parameter" > Parameter< / h3 >
< table >
< thead >
< tr >
2023-07-27 15:06:14 +00:00
< th > Name< / th >
< th > Default< / th >
< th > Notes< / th >
2023-05-25 10:46:07 +00:00
< / tr >
< / thead >
< tbody >
< tr >
2023-07-27 15:06:14 +00:00
< td > < strong > style< / strong > < / td >
< td > see notes< / td >
< td > The style scheme used for the tab. If you don’ t set a style and you display a single code block inside of the tab, its default styling will adapt to that of a < code > code< / code > block. Otherwise < code > default< / code > is used.< br > < br > - by severity: < code > info< / code > , < code > note< / code > , < code > tip< / code > , < code > warning< / code > < br > - by brand color: < code > primary< / code > , < code > secondary< / code > , < code > accent< / code > < br > - by color: < code > blue< / code > , < code > green< / code > , < code > grey< / code > , < code > orange< / code > , < code > red< / code > < br > - by special color: < code > default< / code > , < code > transparent< / code > , < code > code< / code > < / td >
2023-06-05 22:32:57 +00:00
< / tr >
< tr >
2023-07-27 15:06:14 +00:00
< td > < strong > color< / strong > < / td >
< td > see notes< / td >
< td > The < a href = "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value" target = "_blank" > CSS color value< / a > to be used. If not set, the chosen color depends on the < strong > style< / strong > . Any given value will overwrite the default.< br > < br > - for severity styles: a nice matching color for the severity< br > - for all other styles: the corresponding color< / td >
2023-06-05 22:32:57 +00:00
< / tr >
< tr >
2023-07-27 15:06:14 +00:00
< td > < strong > title< / strong > < / td >
< td > see notes< / td >
< td > Arbitrary title for the tab. Depending on the < strong > style< / strong > there may be a default title. Any given value will overwrite the default.< br > < br > - for severity styles: the matching title for the severity< br > - for all other styles: < em > < empty> < / em > < br > < br > If you want no title for a severity style, you have to set this parameter to < code > " " < / code > (a non empty string filled with spaces)< / td >
2023-06-05 22:32:57 +00:00
< / tr >
< tr >
2023-07-27 15:06:14 +00:00
< td > < strong > icon< / strong > < / td >
< td > see notes< / td >
< td > < a href = "../../shortcodes/icon/#finding-an-icon" > Font Awesome icon name< / a > set to the left of the title. Depending on the < strong > style< / strong > there may be a default icon. Any given value will overwrite the default.< br > < br > - for severity styles: a nice matching icon for the severity< br > - for all other styles: < em > < empty> < / em > < br > < br > If you want no icon for a severity style, you have to set this parameter to < code > " " < / code > (a non empty string filled with spaces)< / td >
2023-05-25 10:46:07 +00:00
< / tr >
< tr >
2023-07-27 15:06:14 +00:00
< td > < em > < strong > < content> < / strong > < / em > < / td >
< td > < em > < empty> < / em > < / td >
< td > Arbitrary text to be displayed in the tab.< / td >
2023-05-25 10:46:07 +00:00
< / tr >
< / tbody >
< / table >
< h2 id = "examples" > Examples< / h2 >
2023-06-05 22:32:57 +00:00
< h3 id = "single-code-block-with-collapsed-margins" > Single Code Block with Collapsed Margins< / h3 >
2023-08-12 23:25:30 +00:00
< div class = "wrap-code highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Code" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```python
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > printf(" Hello World!" );
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2023-09-23 23:02:03 +00:00
< div class = "tab-panel" data-tab-group = "041b7b6f38ee821a06ed23cf00b3c0df" >
2023-05-25 10:46:07 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-05-25 10:46:07 +00:00
< button
2023-09-05 11:10:04 +00:00
data-tab-item="code"
2023-06-06 16:16:06 +00:00
class="tab-nav-button tab-panel-style cstyle initial active"
2023-09-23 23:02:03 +00:00
onclick="switchTab('041b7b6f38ee821a06ed23cf00b3c0df','code')"
2023-05-25 10:46:07 +00:00
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > Code< / div >
< div class = "tab-nav-text" > Code< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-05-25 10:46:07 +00:00
< div
2023-09-05 11:10:04 +00:00
data-tab-item="code"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2023-06-21 23:23:13 +00:00
< div class = "wrap-code highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-python" data-lang = "python" > < span class = "line" > < span class = "cl" > < span class = "n" > printf< / span > < span class = "p" > (< / span > < span class = "s2" > " Hello World!" < / span > < span class = "p" > );< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / div >
2023-06-05 22:32:57 +00:00
< h3 id = "mixed-markdown-content" > Mixed Markdown Content< / h3 >
2023-08-12 23:25:30 +00:00
< div class = "wrap-code highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " _**Mixed**_" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "nx" > tab< / span > < span class = "nx" > can< / span > < span class = "nx" > not< / span > < span class = "nx" > only< / span > < span class = "nx" > contain< / span > < span class = "nx" > code< / span > < span class = "nx" > but< / span > < span class = "nx" > arbitrary< / span > < span class = "nx" > text< / span > < span class = "p" > .< / span > < span class = "nx" > In< / span > < span class = "nx" > this< / span > < span class = "k" > case< / span > < span class = "nx" > text< / span > < span class = "o" > **< / span > < span class = "nx" > and< / span > < span class = "o" > **< / span > < span class = "nx" > code< / span > < span class = "nx" > will< / span > < span class = "nx" > get< / span > < span class = "nx" > a< / span > < span class = "nx" > margin< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```python
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > printf(" Hello World!" );
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2023-09-23 23:02:03 +00:00
< div class = "tab-panel" data-tab-group = "88ee7af48bd40a1788f73a9e1d37f79d" >
2023-05-25 10:46:07 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-05-25 10:46:07 +00:00
< button
2023-09-05 11:10:04 +00:00
data-tab-item="emstrongmixedstrongem"
2023-06-06 16:16:06 +00:00
class="tab-nav-button tab-panel-style cstyle initial active"
2023-09-23 23:02:03 +00:00
onclick="switchTab('88ee7af48bd40a1788f73a9e1d37f79d','emstrongmixedstrongem')"
2023-05-25 10:46:07 +00:00
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > < em > < strong > Mixed< / strong > < / em > < / div >
< div class = "tab-nav-text" > < em > < strong > Mixed< / strong > < / em > < / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-05-25 10:46:07 +00:00
< div
2023-09-05 11:10:04 +00:00
data-tab-item="emstrongmixedstrongem"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2023-08-12 23:25:30 +00:00
< p > A tab can not only contain code but arbitrary text. In this case text < strong > and< / strong > code will get a margin.< / p >
2023-06-21 23:23:13 +00:00
< div class = "wrap-code highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-python" data-lang = "python" > < span class = "line" > < span class = "cl" > < span class = "n" > printf< / span > < span class = "p" > (< / span > < span class = "s2" > " Hello World!" < / span > < span class = "p" > );< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / div >
2023-06-05 22:32:57 +00:00
< h3 id = "understanding-style-and-color-behavior" > Understanding < code > style< / code > and < code > color< / code > Behavior< / h3 >
< p > The < code > style< / code > parameter affects how the < code > color< / code > parameter is applied.< / p >
2023-06-21 23:23:13 +00:00
< div class = "wrap-code highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< < / span > < span class = "nx" > tabs< / span > < span class = "p" > > }}< / span >
2023-06-05 22:32:57 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " just colored style" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > The< / span > < span class = "s" > `style`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > is< / span > < span class = "nx" > set< / span > < span class = "nx" > to< / span > < span class = "nx" > a< / span > < span class = "nx" > color< / span > < span class = "nx" > style< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > This< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > the< / span > < span class = "nx" > background< / span > < span class = "nx" > to< / span > < span class = "nx" > a< / span > < span class = "nx" > lighter< / span > < span class = "nx" > version< / span > < span class = "nx" > of< / span > < span class = "nx" > the< / span > < span class = "nx" > chosen< / span > < span class = "nx" > style< / span > < span class = "nx" > color< / span > < span class = "nx" > as< / span > < span class = "nx" > configured< / span > < span class = "nx" > in< / span > < span class = "nx" > your< / span > < span class = "nx" > theme< / span > < span class = "nx" > variant< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " just color" < / span > < span class = "nx" > color< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Only< / span > < span class = "nx" > the< / span > < span class = "s" > `color`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > is< / span > < span class = "nx" > set< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > This< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > the< / span > < span class = "nx" > background< / span > < span class = "nx" > to< / span > < span class = "nx" > a< / span > < span class = "nx" > lighter< / span > < span class = "nx" > version< / span > < span class = "nx" > of< / span > < span class = "nx" > the< / span > < span class = "nx" > chosen< / span > < span class = "nx" > CSS< / span > < span class = "nx" > color< / span > < span class = "nx" > value< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " default style and color" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " default" < / span > < span class = "nx" > color< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > The< / span > < span class = "s" > `style`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > affects< / span > < span class = "nx" > how< / span > < span class = "nx" > the< / span > < span class = "s" > `color`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > is< / span > < span class = "nx" > applied< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > The< / span > < span class = "s" > `default`< / span > < span class = "nx" > style< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > the< / span > < span class = "nx" > background< / span > < span class = "nx" > to< / span > < span class = "nx" > your< / span > < span class = "s" > `--MAIN-BG-color`< / span > < span class = "nx" > as< / span > < span class = "nx" > configured< / span > < span class = "k" > for< / span > < span class = "nx" > your< / span > < span class = "nx" > theme< / span > < span class = "nx" > variant< / span > < span class = "nx" > resembling< / span > < span class = "nx" > the< / span > < span class = "k" > default< / span > < span class = "nx" > style< / span > < span class = "nx" > but< / span > < span class = "nx" > with< / span > < span class = "nx" > different< / span > < span class = "nx" > color< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " just severity style" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " info" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > The< / span > < span class = "s" > `style`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > is< / span > < span class = "nx" > set< / span > < span class = "nx" > to< / span > < span class = "nx" > a< / span > < span class = "nx" > severity< / span > < span class = "nx" > style< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > This< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > the< / span > < span class = "nx" > background< / span > < span class = "nx" > to< / span > < span class = "nx" > a< / span > < span class = "nx" > lighter< / span > < span class = "nx" > version< / span > < span class = "nx" > of< / span > < span class = "nx" > the< / span > < span class = "nx" > chosen< / span > < span class = "nx" > style< / span > < span class = "nx" > color< / span > < span class = "nx" > as< / span > < span class = "nx" > configured< / span > < span class = "nx" > in< / span > < span class = "nx" > your< / span > < span class = "nx" > theme< / span > < span class = "nx" > variant< / span > < span class = "nx" > and< / span > < span class = "nx" > also< / span > < span class = "nx" > affects< / span > < span class = "nx" > the< / span > < span class = "nx" > chosen< / span > < span class = "nx" > icon< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " severity style and color" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " info" < / span > < span class = "nx" > color< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > The< / span > < span class = "s" > `style`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > affects< / span > < span class = "nx" > how< / span > < span class = "nx" > the< / span > < span class = "s" > `color`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > is< / span > < span class = "nx" > applied< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > This< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > the< / span > < span class = "nx" > background< / span > < span class = "nx" > to< / span > < span class = "nx" > a< / span > < span class = "nx" > lighter< / span > < span class = "nx" > version< / span > < span class = "nx" > of< / span > < span class = "nx" > the< / span > < span class = "nx" > chosen< / span > < span class = "nx" > CSS< / span > < span class = "nx" > color< / span > < span class = "nx" > value< / span > < span class = "nx" > and< / span > < span class = "nx" > also< / span > < span class = "nx" > affects< / span > < span class = "nx" > the< / span > < span class = "nx" > chosen< / span > < span class = "nx" > icon< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< < / span > < span class = "o" > /< / span > < span class = "nx" > tabs< / span > < span class = "p" > > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2023-09-23 23:02:03 +00:00
< div class = "tab-panel" data-tab-group = "9a153e827a1da6f80a3ed9b0eb4427aa" >
2023-06-05 22:32:57 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-06-05 22:32:57 +00:00
< button
2023-09-05 11:10:04 +00:00
data-tab-item="just-colored-style"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle blue active"
2023-09-23 23:02:03 +00:00
onclick="switchTab('9a153e827a1da6f80a3ed9b0eb4427aa','just-colored-style')"
2023-06-05 22:32:57 +00:00
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > just colored style< / div >
< div class = "tab-nav-text" > just colored style< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-05 22:32:57 +00:00
< / button >
< button
2023-09-05 11:10:04 +00:00
data-tab-item="just-color"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle filled" style="--VARIABLE-BOX-color: blue;"
2023-09-23 23:02:03 +00:00
onclick="switchTab('9a153e827a1da6f80a3ed9b0eb4427aa','just-color')"
2023-06-05 22:32:57 +00:00
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > just color< / div >
< div class = "tab-nav-text" > just color< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-05 22:32:57 +00:00
< / button >
< button
2023-09-05 11:10:04 +00:00
data-tab-item="default-style-and-color"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle default" style="--VARIABLE-BOX-color: blue;"
2023-09-23 23:02:03 +00:00
onclick="switchTab('9a153e827a1da6f80a3ed9b0eb4427aa','default-style-and-color')"
2023-06-05 22:32:57 +00:00
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > default style and color< / div >
< div class = "tab-nav-text" > default style and color< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-05 22:32:57 +00:00
< / button >
< button
2023-09-05 11:10:04 +00:00
data-tab-item="just-severity-stylefa-fw-fas-fa-info-circle"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle info"
2023-09-23 23:02:03 +00:00
onclick="switchTab('9a153e827a1da6f80a3ed9b0eb4427aa','just-severity-stylefa-fw-fas-fa-info-circle')"
2023-06-05 22:32:57 +00:00
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > < i class = "fa-fw fas fa-info-circle" > < / i > just severity style< / div >
< div class = "tab-nav-text" > < i class = "fa-fw fas fa-info-circle" > < / i > just severity style< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-05 22:32:57 +00:00
< / button >
< button
2023-09-05 11:10:04 +00:00
data-tab-item="severity-style-and-colorfa-fw-fas-fa-info-circle"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle info" style="--VARIABLE-BOX-color: blue;"
2023-09-23 23:02:03 +00:00
onclick="switchTab('9a153e827a1da6f80a3ed9b0eb4427aa','severity-style-and-colorfa-fw-fas-fa-info-circle')"
2023-06-05 22:32:57 +00:00
>
2023-09-21 19:35:16 +00:00
< span >
2023-06-06 16:16:06 +00:00
< div class = "tab-nav-hidden" > < i class = "fa-fw fas fa-info-circle" > < / i > severity style and color< / div >
< div class = "tab-nav-text" > < i class = "fa-fw fas fa-info-circle" > < / i > severity style and color< / div >
2023-09-21 19:35:16 +00:00
< / span >
2023-06-05 22:32:57 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="just-colored-style"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle blue active">
< div class = "tab-content-text" >
< p > The < code > style< / code > parameter is set to a color style.< / p >
< p > This will set the background to a lighter version of the chosen style color as configured in your theme variant.< / p >
< / div >
< / div >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="just-color"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle filled" style="--VARIABLE-BOX-color: blue;">
< div class = "tab-content-text" >
< p > Only the < code > color< / code > parameter is set.< / p >
< p > This will set the background to a lighter version of the chosen CSS color value.< / p >
< / div >
< / div >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="default-style-and-color"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle default" style="--VARIABLE-BOX-color: blue;">
< div class = "tab-content-text" >
< p > The < code > style< / code > parameter affects how the < code > color< / code > parameter is applied.< / p >
< p > The < code > default< / code > style will set the background to your < code > --MAIN-BG-color< / code > as configured for your theme variant resembling the default style but with different color.< / p >
< / div >
< / div >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="just-severity-stylefa-fw-fas-fa-info-circle"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle info">
< div class = "tab-content-text" >
< p > The < code > style< / code > parameter is set to a severity style.< / p >
< p > This will set the background to a lighter version of the chosen style color as configured in your theme variant and also affects the chosen icon.< / p >
< / div >
< / div >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="severity-style-and-colorfa-fw-fas-fa-info-circle"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle info" style="--VARIABLE-BOX-color: blue;">
< div class = "tab-content-text" >
< p > The < code > style< / code > parameter affects how the < code > color< / code > parameter is applied.< / p >
< p > This will set the background to a lighter version of the chosen CSS color value and also affects the chosen icon.< / p >
< / div >
< / div >
< / div >
< / div >
2023-05-25 10:46:07 +00:00
< footer class = "footline" >
2023-05-26 06:40:21 +00:00
2023-05-25 10:46:07 +00:00
< / footer >
< / article >
< / div >
< / main >
< / div >
2023-09-23 23:02:03 +00:00
< script src = "../../js/clipboard.min.js?1695510114" defer > < / script >
< script src = "../../js/perfect-scrollbar.min.js?1695510114" defer > < / script >
< script src = "../../js/theme.js?1695510114" defer > < / script >
2023-05-25 10:46:07 +00:00
< / body >
< / html >