Skip to content

Instantly share code, notes, and snippets.

View mrmrs's full-sized avatar

Adam Morse mrmrs

View GitHub Profile
@mrmrs
mrmrs / front-end-testing.md
Last active April 7, 2016 21:41
Thoughts on front-end testing

UI development as a first-class citizen

The single hardest part of front-end development at scale is making changes to code and understanding all of the visual and behavioral effects that will occur as a result.

When you build a component, tests should be written that expose each state a component can be in. This test should generate a static html file and a corresponding image for every discrete state a component can be in.

@mrmrs
mrmrs / adobe-display-none.css
Created May 26, 2015 07:41
Single purpose rulesets from adobe.com that set elements to display none
/* ADOBE */
footer [class*=resp-navwr-] nav>a {
display: none;
}
footer .region-footer .resp-navwr-region nav.region-list>ul i {
display: none;
}
.vjs-default-skin.vjs-controls-disabled .vjs-control-bar {
display: none;
@mrmrs
mrmrs / stackoverflow-display-none.css
Last active August 29, 2015 14:21
Single purpose rulesets from stackoverflow.com to set display: none on elements
/* STACKOVERFLOW */
.edit-block {
display: none;
}
#feed-link-text {
display: none;
}
.faq-page .col-section>.col-detail {
display: none;
@mrmrs
mrmrs / apple-display-none.css
Created May 26, 2015 07:29
single purpose rulests from apple.com to set display: none on elements
/* APPLE */
#globalheader .gh-tab-search.enhance .gh-search,
#globalheader .gh-tab-search.enhance.active .gh-search {
display: none;
}
.directorynav>.column input {
display: none;
}
#globalheader {
@mrmrs
mrmrs / yahoo-display-none.css
Created May 26, 2015 07:22
Single purpose rulesets to set an element to display none
/* YAHOO */
.BreakPoint .Bp-1 .Box2,
.BreakPoint .Bp-1 .Box3,
.BreakPoint .Bp-1 .Box4,
.BreakPoint .Bp-1 .BoxLast,
.BreakPoint .Bp-2 .Box3,
.BreakPoint .Bp-2 .Box4,
.BreakPoint .Bp-2 .BoxLast,
.BreakPoint .Bp-3 .Box4,
@mrmrs
mrmrs / shopify-display-none.css
Created May 26, 2015 07:17
Single purpose rulesets that set display none on an element
.marketing-input-focus+.marketing-form__messages .error+.suggest,
.marketing-input:focus+.marketing-form__messages .error+.suggest,
.marketing-input.focus+.marketing-form__messages .error+.suggest,
.marketing-textarea:focus+.marketing-form__messages .error+.suggest,
.marketing-textarea.focus+.marketing-form__messages .error+.suggest {
display: none;
}
.marketing-nav-wrapper.js-is-active .icon-caret-down {
display: none;
}
@mrmrs
mrmrs / instagram-display-none.css
Created May 26, 2015 07:02
Single purpose rulesets that set an element to display: none for instagram.com
/* INSTAGRAM */
.spring-refresh.page-home #reactModalMountPoint {
display: none;
}
.page-accounts .password-reset p:not(.form-text):not(.form-actions) {
display: none;
}
.hide {
display: none !important;
@mrmrs
mrmrs / salesforce-display-none.css
Created May 26, 2015 06:54
Single purpose rulesets used to set an element to do display none
/* SALESFORCE */
.product-selector {
display: none;
}
.header-nav-container .header-nav-list li .search-container {
display: none;
}
.media.left>.media-hdr>.media-title,
.media.right>.media-hdr>.media-title {
@mrmrs
mrmrs / medium-display-none.css
Created May 26, 2015 04:26
Single purpose rulesets for medium.com that set an element to display none
/* MEDIUM */
.metabar--postSecondaryBar .voteWidget--text .icon--heart {
display: none;
}
.metabar-shareActions .button>.icon--readingList2:before,
.metabar-shareActions .button.is-active>.icon--readingList2outline:before {
display: none;
}
@mrmrs
mrmrs / pinterest-display-none.css
Last active March 21, 2016 15:07
All of the single purpose rulesets that set an element to display: none in the css used for pinterest.com
/* PINTEREST */
.BoardPage.placeBoardV2.mapView .transformWrapper .BoardHeader .boardHeaderWrapper {
display: none;
}
.BoardPage.placeBoardV2.mapView .transformWrapper .Grid .gridContainer .AddPinRepWithPlace {
display: none;
}
.BoardPage.placeBoardV2.mapView .transformWrapper .Grid .GridFooter {
display: none !important;