Skip to content

Instantly share code, notes, and snippets.

Avatar
🥃
Sipping bourbon (probably)

Justin Hall wKovacs64

🥃
Sipping bourbon (probably)
View GitHub Profile
@wKovacs64
wKovacs64 / mq.ts
Created May 26, 2020
CSS-in-JS Media Query Utility Function in TypeScript
View mq.ts
const breakpointMap = {
// mobile-first, so there is no 'xs' for portrait phones
sm: 576, // landscape phones
md: 768, // tablets
lg: 992, // landscape tablets and desktops
xl: 1200, // extra large desktops
};
type Breakpoints = typeof breakpointMap;
type BreakpointLabel = keyof Breakpoints;
@wKovacs64
wKovacs64 / fixed-width-numbers.css
Created Feb 15, 2018
Fixed width numbers CSS
View fixed-width-numbers.css
/* https://twitter.com/wesbos/status/932644812582522880/ */
font-feature-settings: "tnum";
font-variant-numeric: tabular-nums;
@wKovacs64
wKovacs64 / DividerItemDecoration.java
Last active Aug 29, 2015 — forked from AviBenHamo/DividerItemDecoration.java
DividerItemDecoration updated with grid support and without deprecation
View DividerItemDecoration.java
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
You can’t perform that action at this time.