Files
citrus-cms/template/docs/dark-mode.html
T
2026-04-28 21:15:09 +03:00

167 lines
7.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Doc - Blogzine Theme</title>
<!-- Meta Tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="Webestica.com">
<!-- Favicon -->
<link rel="shortcut icon" href="assets/images/favicon.ico">
<!-- Google Font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&family=Rubik:wght@400;500;700&display=swap" rel="stylesheet">
<!-- Plugins CSS -->
<link rel="stylesheet" type="text/css" href="assets/vendor/font-awesome/css/all.min.css">
<!-- Theme CSS -->
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<link rel="stylesheet" type="text/css" href="assets/css/doc.css">
<link rel="stylesheet" type="text/css" href="assets/css/prism.css">
<link rel="stylesheet" type="text/css" href="assets/vendor/glightbox/css/glightbox.css">
</head>
<body>
<!-- **************** MAIN CONTENT START **************** -->
<main>
<!-- Navbar top START -->
<div class="navbar-top bg-dark px-3 px-sm-4 px-md-5">
<div class="d-flex justify-content-between align-items-center">
<!-- Logo START -->
<a class="navbar-brand py-3" href="index.html">
<img class="navbar-brand-item" src="assets/images/logo.svg" alt="logo">
</a>
<!-- Logo END -->
<!-- Navbar right -->
<div>
<ul class="text-end list-inline m-0">
<li class="list-inline-item me-2 me-md-4"> <a class="text-white" href="https://blogzine.webestica.com">Live Preview</a> </li>
<li class="list-inline-item me-2 me-md-4"> <a class="text-white" href="https://support.webestica.com" target="_blank">Support</a> </li>
<li class="list-inline-item text-white"> <span class="badge bg-danger text-white">v1.2.0</span></li>
</ul>
</div>
</div>
</div>
<!-- Navbar top END -->
<div class="container-fluid px-0">
<div class="page-wrapper">
<!-- Left sidebar START -->
<nav class="navbar navbar-expand-sm navbar-light bg-light px-3">
<a class="navbar-brand py-2 d-sm-none" href="#">Doc nav</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#docNav" aria-controls="docNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="docNav">
<div class="left-sidebar bg-light">
<div class="content h-100vh">
<div class="list-group list-group-borderless p-3 p-md-4">
<b class="text-dark text-uppercase mb-2">Getting Started</b>
<a class="list-group-item" href="index.html">Introduction</a>
<a class="list-group-item" href="gulp.html">Gulp</a>
<a class="list-group-item" href="customization.html">Customization</a>
<a class="list-group-item" href="color-scheme.html">Color Scheme</a>
<a class="list-group-item" href="logo-settings.html">Logo Settings</a>
<a class="list-group-item" href="page-loading.html">Page Loading</a>
<a class="list-group-item" href="fonts.html">Fonts</a>
<a class="list-group-item" href="dark-mode.html">Dark mode</a>
<a class="list-group-item" href="rtl.html">RTL Version</a>
<a class="list-group-item" href="lazy-load.html">Lazy Load</a>
<a class="list-group-item" href="sources-and-credits.html">Sources and Credits</a>
<a class="list-group-item" href="changelog.html">Changelog</a>
<a class="list-group-item" href="updates.html">Updates</a>
<a class="list-group-item" href="support.html">Support</a>
<b class="text-dark text-uppercase mt-3 mb-2">Component</b>
<a class="list-group-item" href="alerts.html">Alerts</a>
<a class="list-group-item" href="avatar.html">Avatar</a>
<a class="list-group-item" href="badges.html">Badges</a>
<a class="list-group-item" href="breadcrumb.html">Breadcrumb</a>
<a class="list-group-item" href="buttons.html">Buttons</a>
<a class="list-group-item" href="card.html">Card</a>
<a class="list-group-item" href="font-icons.html">Font icons</a>
<a class="list-group-item" href="google-map.html">Google Map</a>
<a class="list-group-item" href="nav-and-tabs.html">Nav and Tabs</a>
<a class="list-group-item" href="pagination.html">Pagination</a>
<a class="list-group-item" href="progress.html">Progress</a>
<a class="list-group-item" href="sticky-element.html">Sticky element</a>
<a class="list-group-item" href="sticky-footer.html">Sticky footer</a>
<a class="list-group-item" href="utility-classes.html">Utility classes</a>
<b class="text-dark text-uppercase mt-3 mb-2">Plugins</b>
<a class="list-group-item" href="tiny-slider.html">Tiny Slider</a>
</div>
</div>
</div>
</div>
</nav>
<!-- Left sidebar END -->
<!-- Main content START -->
<div class="main-content">
<div class="row">
<div class="col-12">
<!-- Page title -->
<div class="my-5">
<h1>Dark mode</h1>
<p class="lead">How to work with dark mode?</p>
<hr class="my-5">
</div>
<!-- Page content START -->
<p>Dark mode is enabled by default with dark mode switcher on every page. If you don't want switcher you just need to remove switcher code from all HTML files.</p>
<pre class="my-3">
<code class="language-markup" data-lang="html">&lt;!-- Dark mode switch --&gt;
&lt;div class="modeswitch" id="darkModeSwitch"&gt;
&lt;div class="switch"&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>
<h5 class="mt-5">Only dark mode</h5>
<p>If you prefer only dark mode in your theme you just need to replace <code>style.css</code> with <code>style-dark.css</code> file in all HTML files.</p>
<pre>
<code class="language-markup" data-lang="html">&lt;!-- Theme CSS --&gt;
&lt;link rel="stylesheet" type="text/css" href="assets/css/style-dark.css"&gt;
</code></pre>
<h5 class="mt-5">Disable dark mode</h5>
<p>Simply remove switcher code from all HTML files and delete <code>style-dark.scss</code> file and <code>dark</code> folder.</p>
<h5 class="mt-5">Dark mode items</h5>
<p>If you need to show or hide any elements in dark or light mode use <code>.light-mode-item</code> for elements that you want to show in light mode only and use<code>.dark-mode-item</code> for elements that you want to show in dark mode only. See below examples that we have used in theme logo</p>
<pre>
<code class="language-markup" data-lang="html">&lt;img class="light-mode-item" src="assets/images/logo.svg" alt="logo"&gt;
&lt;img class="dark-mode-item" src="assets/images/logo-light.svg" alt="logo"&gt;
</code></pre>
<!-- Page content END -->
</div>
</div>
</div>
<!-- Main content END -->
</div>
</div>
</main>
<!-- =======================
JavaScripts -->
<!-- Bootstrap JS -->
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/simple-scrollbar.min.js"></script>
<script src="assets/js/prism.js"></script>
<script src="assets/js/clipboard.min.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.js"></script>
<!-- Template Functions -->
<script src="assets/js/functions.js"></script>
</body>
</html>