Skip to content

Instantly share code, notes, and snippets.

View zastrow's full-sized avatar
🦄
Making the Web a magical place

Philip Zastrow zastrow

🦄
Making the Web a magical place
View GitHub Profile
@zastrow
zastrow / Unlink.scss
Created August 1, 2018 20:14
Mixin to remove the default link styles of an <a>
@zastrow
zastrow / Delist.scss
Created August 1, 2018 20:12
Removes default list styles from a <ul> or <ol>
@mixin delist {
// This removes default list styles
list-style: none;
padding: 0;
margin: 0;
}
@zastrow
zastrow / Unbuttonize Mixin.scss
Last active March 10, 2025 14:19
Remove Default Button Styles
@mixin unbuttonize {
// This removes styles added by default to button elements.
// For when something should semantically be a button,
// but isn't buttony in appearance.
background-color: transparent;
border: none;
margin: 0;
padding: 0;
text-align: inherit;
font: inherit;
@zastrow
zastrow / Grid Support Mixin.scss
Created November 1, 2017 22:52
Microsoft Edge 15 down support an older spec of CSS grid which can cause some layout issues, this mixin utilizes a compound @supports query to weed out this issue.
// Microsoft Edge 15 down support an older spec of CSS grid
// which can cause some layout issues, this mixin utilizes
// a compound @supports query to weed out this issue.
@mixin grid-support {
@supports (display: grid) and (not (display: -ms-grid)) {
@content;
}
}
@zastrow
zastrow / SassMeister-input.scss
Created May 23, 2017 14:08
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
@function strip-units($number) {
@return $number / ($number * 0 + 1);
}
@function px2rem($number) {
@zastrow
zastrow / grayscale.scss
Created April 5, 2017 09:55
Simple color function for defining grays with Sass
// Grayscale
@function gray($level) {
@if $level == 0 {
@return white;
}
@else if $level == 100 {
@return black;
}
@else {
@return darken(white, $level * 1%);;
@zastrow
zastrow / SassMeister-input-HTML.html
Created September 3, 2014 03:20
Generated by SassMeister.com.
<h1>Heading One</h1>
<h2>Heading Two</h2>
<h3>Heading Three</h3>
@zastrow
zastrow / SassMeister-input-HTML.html
Created September 3, 2014 03:10
Generated by SassMeister.com.
<p>Phasellus nisi metus, posuere eu velit ac, semper rhoncus diam. Integer consequat, lacus et dictum auctor, sem lacus consequat libero, quis imperdiet risus dui eu ex. Sed imperdiet tortor quis nunc faucibus, quis commodo nisl dapibus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut dictum augue commodo, dignissim tortor ut, aliquet dui. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris efficitur congue diam, iaculis sodales tortor iaculis eget. Praesent eu egestas sem, ac facilisis leo. Integer luctus mi in eleifend tempor.</p>
<p>Curabitur magna erat, sollicitudin ac aliquam sit amet, egestas ut est. Fusce nibh enim, convallis ut volutpat molestie, maximus sed ipsum. Nam tempus ex eu diam posuere, a placerat ante ornare. Nulla quam ipsum, tincidunt nec tincidunt a, aliquam eu elit. Aliquam sit amet nibh nibh. Nam auctor elit nulla, eget facilisis felis volutpat vel. Integer tempor malesuada ultricies. Praesent in
@zastrow
zastrow / SassMeister-input-HTML.html
Created September 3, 2014 02:19
Generated by SassMeister.com.
<a href="#" class="feature-class">Feature Link</a>
<div class="parent-class">
<a href="#" class="feature-class">Feature Link with Parent</a>
</div>
@zastrow
zastrow / SassMeister-input-HTML.html
Created September 3, 2014 02:01
Generated by SassMeister.com.
<a href="#" class="feature-class">Feature Link</a>
<a href="#" class="feature-class style-class">Feature Style Link</a>