Skip to content

Instantly share code, notes, and snippets.

View vikas5914's full-sized avatar
💭
I may be slow to respond.

Vikas Kapadiya vikas5914

💭
I may be slow to respond.
View GitHub Profile
// Turn all HTML <a> elements into client side router links, no special framework-specific <Link> component necessary!
// Example using the Next.js App Router.
import { useRouter } from 'next/navigation';
import { useEffect } from 'react';
function useLinkHandler() {
let router = useRouter();
useEffect(() => {
let onClick = e => {
@revmitcz
revmitcz / Bootstrap 4 (August 2017 BETA) Enhancements & Fixes.md
Last active March 5, 2020 18:44
Bootstrap 4 (August 2017 BETA) Enhancements & Fixes

Some Basic BS4 (beta) Enhancements / Fixes

Quick Overview

This is just my own collection of Bootstrap 4 enhancements. I recommend putting the SCSS snippets into an .scss/.sass file that imports bootstrap.scss at the top, but you're welcome to use them however you'd like.

I also included enhancements_compiled.css gist, which is a compiled version of these enhancements using Bootstrap 4 default sizes & colors, for those who don't re-compile SASS from BS4 source.

Buttons

The buttons.css gist contains the following enhancements :