Skip to content

Instantly share code, notes, and snippets.

View vosidiy's full-sized avatar

vosidiy

View GitHub Profile
@vosidiy
vosidiy / basic.html
Created December 12, 2019 15:55
Smart scroll
<nav class="navbar smart-scroll navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">Brand</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main_nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="navbar-nav">
<li class="nav-item active"> <a class="nav-link" href="#">Home </a> </li>
<li class="nav-item"><a class="nav-link" href="#"> About </a></li>
<li class="nav-item"><a class="nav-link" href="#"> Services </a></li>
@vosidiy
vosidiy / basic.html
Created December 12, 2019 15:50
Scrollspy
<nav id="navbar_1" class="navbar fixed-top navbar-expand navbar-light bg-white">
<a class="navbar-brand" href="#">Brand</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main_nav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="nav nav-pills ml-auto">
<li class="nav-item"><a href="#section_1" class="scrollto nav-link active"> Section 1 </a></li>
<li class="nav-item"><a href="#section_2" class="scrollto nav-link"> Section 2 </a></li>
<li class="nav-item"><a href="#section_3" class="scrollto nav-link"> Section 3 </a></li>
@vosidiy
vosidiy / basic.html
Last active December 12, 2019 15:45
Overlay onclick
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">Brand</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main_nav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="navbar-nav">
<li class="nav-item active"> <a class="nav-link" href="#">Home </a> </li>
<li class="nav-item"><a class="nav-link" href="#"> About </a></li>
@vosidiy
vosidiy / basic.html
Last active December 12, 2019 15:31
Offcanvas on mobile
<b class="screen-overlay"></b>
<button data-trigger="#navbar_main" class="d-lg-none btn btn-warning" type="button"> Show navbar </button>
<nav id="navbar_main" class="mobile-offcanvas navbar navbar-expand-lg navbar-dark bg-primary">
<div class="offcanvas-header">
<button class="btn btn-danger btn-close float-right"> &times Close </button>
<h5 class="py-2 text-white">Main navbar</h5>
</div>
<ul class="navbar-nav">
@vosidiy
vosidiy / basic.html
Created December 12, 2019 15:25
Offcanvas collapse
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-trigger="#main_nav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse" id="main_nav">
<div class="offcanvas-header mt-3">
<button class="btn btn-outline-danger btn-close float-right"> &times Close </button>
<h5 class="py-2 text-white">Main navbar</h5>
</div>
@vosidiy
vosidiy / basic.html
Last active April 5, 2020 04:50
Offcanvas desktop
<b class="screen-overlay"></b>
<!-- offcanvas panel -->
<aside class="offcanvas" id="my_offcanvas1">
<header class="p-4 bg-light border-bottom">
<button class="btn btn-outline-danger btn-close"> &times Close </button>
<h6 class="mb-0">First offcanvas </h6>
</header>
<nav class="list-group list-group-flush">
<a href="#" class="list-group-item">Home</a>
@vosidiy
vosidiy / basic.html
Created December 12, 2019 12:35
Modal custom
<button data-toggle="modal" data-target="#modal_aside_right" class="btn btn-primary" type="button"> Modal aside right </button>
<div id="modal_aside_right" class="modal fixed-right fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-aside" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Right fixed sample</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@vosidiy
vosidiy / basic.html
Last active December 12, 2019 12:33
mega submenu
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main_nav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="navbar-nav">
<li class="nav-item"> <a class="nav-link" href="#"> Home </a> </li>
<li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown"> Mega submenu </a>
<ul class="dropdown-menu">
@vosidiy
vosidiy / base.html
Created December 9, 2019 19:53
fixed top
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">Brand</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main_nav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="navbar-nav">
<li class="nav-item active"> <a class="nav-link" href="#">Home </a> </li>
<li class="nav-item"><a class="nav-link" href="#"> About </a></li>
<li class="nav-item"><a class="nav-link" href="#"> Services </a></li>
@vosidiy
vosidiy / basic.html
Created December 9, 2019 19:32
Fixed on scroll
<header>
<div class="bg-warning py-2">
<div class="container">
Some top header info
</div>
</div>
<nav id="navbar_top" class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="#">Navbar</a>