225 lines
8.2 KiB
HTML
225 lines
8.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>Sticky element</h1>
|
|
<p class="lead">Sticky element is an element that sticks to the top of the page while scrolling the page</p>
|
|
<hr class="my-5">
|
|
</div>
|
|
<!-- Page content START -->
|
|
|
|
<p>You can easily transform any element into Sticky by adding just two things:</p>
|
|
<ol>
|
|
<li><code>data-sticky</code> attribute to your element</li>
|
|
<li><code>data-sticky-container</code> attribute to the parent</li>
|
|
</ol>
|
|
|
|
<div class="position-relative">
|
|
<pre id="copy-1" class="my-3">
|
|
<code class="language-markup" data-lang="html">
|
|
<section>
|
|
<div class="container" data-sticky-container>
|
|
<div class="row">
|
|
<!-- Sidebar START -->
|
|
<div class="col-md-4">
|
|
<div data-sticky data-margin-top="80" data-sticky-for="768">
|
|
Sidebar Content here
|
|
</div>
|
|
</div>
|
|
<!-- Sidebar END -->
|
|
|
|
<div class="col-md-8">
|
|
...
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</code>
|
|
</pre>
|
|
<button id="copy_id-1" data-clipboard-action="copy" data-clipboard-target="#copy-1" class="copy-link btn btn-primary btn-sm">Copy</button>
|
|
</div>
|
|
|
|
<h4 class="mt-5 mb-3">Available options:</h4>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered">
|
|
<thead class="table-dark">
|
|
<tr>
|
|
<th>Option</th>
|
|
<th>Type</th>
|
|
<th>Default</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>data-sticky-wrap</td>
|
|
<td>boolean</td>
|
|
<td>false</td>
|
|
<td>When it's <code>true</code> sticky element is wrapped in <code><span></span></code> which has sticky element dimensions. Prevents content from "jumping".</td>
|
|
</tr>
|
|
<tr>
|
|
<td>data-margin-top</td>
|
|
<td>number</td>
|
|
<td>0</td>
|
|
<td>Margin between page and sticky element when scrolled</td>
|
|
</tr>
|
|
<tr>
|
|
<td>data-sticky-for</td>
|
|
<td>number</td>
|
|
<td>0</td>
|
|
<td>Breakpoint which when is bigger than viewport width, sticky is activated and when is smaller, then sticky is destroyed</td>
|
|
</tr>
|
|
<tr>
|
|
<td>data-sticky-class</td>
|
|
<td>string</td>
|
|
<td>null</td>
|
|
<td>Class added to sticky element when it is stuck</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h4 class="mt-5">Required plugin </h4>
|
|
<p class="mt-3">Copy-paste the following script at the end of your page after <code>bootstrap.bundle.min.js</code> to enable it.</p>
|
|
<div class="position-relative">
|
|
<pre id="copy-3" class="my-3">
|
|
<code class="language-markup" data-lang="html">
|
|
<script src="assets/vendor/sticky-js/sticky.min.js"></script>
|
|
</code>
|
|
</pre>
|
|
<button id="copy_id-3" data-clipboard-action="copy" data-clipboard-target="#copy-3" class="copy-link btn btn-primary btn-sm">Copy</button>
|
|
</div>
|
|
|
|
|
|
<!-- 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> |