Skip to content

Instantly share code, notes, and snippets.

View ericwbailey's full-sized avatar

Eric Bailey ericwbailey

View GitHub Profile
@ericwbailey
ericwbailey / _component.scss
Created May 29, 2019 19:50
#writing #thoughtbot
$_color-outline: saturate($brand-primary, 20%);
.component {
border: 2px solid $color-outline;
// Other component code
}
@ericwbailey
ericwbailey / _variables.scss
Created May 29, 2019 19:49
#writing #thoughtbot
$crimson: #a51c30;
// Other color variables
$brand-primary: $crimson;
@ericwbailey
ericwbailey / _c-tab.scss
Created May 29, 2019 19:48
#writing #thoughtbot
.c-tab {
border: 1px solid c(tab, border);
color: c(tab, type);
padding: 1rem 3rem;
a {
color: c(tab, link);
}
}
@ericwbailey
ericwbailey / _c.scss
Created May 29, 2019 19:45
#writing #thoughtbot
@function c(
$name,
$theme:null,
$component:null,
) {
// Retrieve a palette color value
@if ($theme == null) and ($component == null) {
@return map-get($colors, $name);
}
// Retrieve a component color value
@ericwbailey
ericwbailey / _colors.scss
Created May 29, 2019 19:41
#writing #thoughtbot
$colors: (
blue: #007aff,
green: #4cd964,
red: #ff3b30,
tab: (
border: hsla(3, 100%, 59%, 0.50),
type: #8e8e93
)
);
@ericwbailey
ericwbailey / card.html
Last active March 2, 2019 17:23
Max Böck card tweet (https://twitter.com/mxbck/status/1099722405612843008) #comment #twitter
<div class="card">
<a href="/foo" class="card__link" aria-labelledby="card-1234-title">
<h2 class="card__title" id="card-1234-title">The Card Title</h2>
<img class="card__image" src="/some/image.jpg" alt="">
<small class="card__meta">Some category</small>
<p class="card_summary">Lorem ipsum, dolor sit amet!</p>
</a>
</div>
@ericwbailey
ericwbailey / cloudSettings
Last active October 19, 2021 01:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-19T01:18:14.578Z","extensionVersion":"v3.4.3"}
@ericwbailey
ericwbailey / file-types.css
Last active December 8, 2020 07:03
#writing #css-tricks
/*
* Archives
* A compressed collection of data.
*/
a[href$=".7z"],
a[href$=".cab"],
a[href$=".gz"],
a[href$=".lzh"],
a[href$=".rar"],
a[href$=".tar"],
@ericwbailey
ericwbailey / opentype.json
Last active March 2, 2019 17:06
#writing
{
"caps-to-small-caps": {
"name": "Caps to Small Caps",
"category": "Common",
"example": "asfab ASFAB Asfab",
"description": "",
"more-info": ""
},
"case-sensitive-forms": {
"name": "Case Sensitive Forms",
@ericwbailey
ericwbailey / resources.md
Last active March 2, 2019 17:08
Boston CSS Designing for Inclusion talk resource links #speaking #boston-css