Skip to content

Instantly share code, notes, and snippets.

View stowball's full-sized avatar

Matt Stow stowball

View GitHub Profile
@stowball
stowball / replatforming-comparison.md
Last active November 21, 2019 05:36
Replatforming Comparison

Replatforming Comparison

Current

CSS: 247 kB (1.2 MB) JS: 818 kB (3.4 MB)

Flow

CSS: 14.2 kB (90 kB)

@stowball
stowball / foo.md
Last active November 7, 2019 04:18
  • [ ]
  • [ ]
  • [x]
@stowball
stowball / storybook-viewport-dark-theme.user.css
Last active November 10, 2019 11:25
Simple user stylesheet CSS to add the viewport size to the Storybook header. Install with a browser add-on such as Stylus or Stylebot
#root > div > .react-draggable + .react-draggable ~ div:last-child > div > div:first-child::before,
#root > div > .react-draggable + .react-draggable ~ div:last-child > div > div:first-child::after {
background: #333;
color: #999;
content: attr(style);
direction: rtl;
font-family: monospace;
font-size: 14px;
overflow: hidden;
padding: 0 5px;
@stowball
stowball / rethinking-css.md
Created May 28, 2019 00:27
Rethinking CSS "article"

Rethinking CSS

In this article, I hope to define what I feel are the biggest issues with CSS and, ultimately, how those issues can be overcome.

Table of Contents

@stowball
stowball / example-input.html
Last active January 16, 2023 23:17
Fetch a remote SVG as an <img> and convert it to an inline SVG
<img
alt="accessible text"
class="fill-color-red"
height="16"
src="some.svg"
width="16"
onload="fetchSvgInline(this)"
/>
@stowball
stowball / hucssley-default.css
Created May 14, 2019 04:56
Hucssley's default CSS output
This file has been truncated, but you can view the full file.
*,
*::before,
*::after {
box-sizing: border-box;
}
a,
abbr,
acronym,
address,
@stowball
stowball / input.scss
Last active April 19, 2019 06:13
WIP Utility Class Library
/* ------------------------- */
/* WIP Utility Class Library */
/* */
/* Works well with Purgecss */
/* ------------------------- */
// Functions and Mixins
@function hu-em($target, $context: 16) {
@return hu-strip-unit($target / $context) * 1em;