Skip to content

Instantly share code, notes, and snippets.

View ericwbailey's full-sized avatar

Eric Bailey ericwbailey

View GitHub Profile
@ericwbailey
ericwbailey / card.html
Created July 31, 2020 04:33
#writing #thoughtbot
<div class="case-study-cards-grid__card">
<img
alt="The Real Simple Energy account page, highlighting $60 in savings from using their service."
src="/img/case-study-card__real-simple-energy_v2.jpg"
loading="lazy"
class="case-study-cards-grid__image u-pointer"
onclick="location.href='/case-studies/real-simple-energy'" />
<div class="case-study-cards-grid__text-wrapper">
<div>
<p class="case-study-cards-grid__description type-body">
@ericwbailey
ericwbailey / usepanda.css
Created July 24, 2020 19:46
Stylus tweaks to fix Panda's desktop web UI. #panda #stylus
.article-details {
display: none;
}
const { DateTime } = require("luxon");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(pluginSyntaxHighlight);
eleventyConfig.setDataDeepMerge(true);
eleventyConfig.addLayoutAlias("post", "layouts/post.njk");
@ericwbailey
ericwbailey / feedly.css
Last active July 24, 2020 19:44
Stylus tweaks to fix Feedly's desktop web UI. #feedly #stylus
.LeftnavList {
width: 220px;
}
.LeftnavListRow__text {
width: 100px;
}
.feedlyChrome--leftnav-open .LeftnavPin {
left: 284px;
@ericwbailey
ericwbailey / twitter.css
Last active August 12, 2026 15:57
Stylus tweaks to fix Twitter's desktop web UI. #twitter #stylus
/*
* LOGO
*/
[aria-label="Twitter"] {
display: none;
}
/*
* LEFT COLUMN
@ericwbailey
ericwbailey / Resources.md
Last active June 19, 2021 12:52
Accessibility at Scale resources: noti.st/ericwbailey/bYNh0Y/accessibility-at-scale #talk #enterjs
@ericwbailey
ericwbailey / _c-tab.scss
Created May 29, 2019 19:59
#writing #thoughtbot
.c-tab {
color: var(--color-tab-type);
// Other component declarations
@media (prefers-color-scheme: dark) {
--color-tab-link: #ffffff;
color: var(--color-tab-link)
// Other component theme tweaks
}
@ericwbailey
ericwbailey / _root.scss
Created May 29, 2019 19:59
#writing #thoughtbot
:root {
--color-tab-link: #007aff;
// Other CSS Custom property declarations
}
@ericwbailey
ericwbailey / _colors.scss
Created May 29, 2019 19:54
#writing #thoughtbot
$colors: (
tab (
background: #6b9cdd,
border: #00e2ff,
link: #ffffe7,
link-hover: #ffd5d9,
link-active: #ffadfb,
type: #ffffff,
dark-theme: (
@ericwbailey
ericwbailey / _c-tab.scss
Created May 29, 2019 19:54
#writing #thoughtbot
.c-tab {
color: c(tab, type);
border: 1px solid c(tab, border);
padding: 1rem 3rem;
@media (prefers-color-scheme: dark) {
background-color: c(tab, dark-theme, background);
}
a {