Skip to content

Instantly share code, notes, and snippets.

View robspangler's full-sized avatar

Rob Spangler robspangler

View GitHub Profile
@robspangler
robspangler / skate-or-die.nes
Last active June 17, 2024 17:48
It's a simple choice.
if ( $activity != 'skate' ) {
die();
}
/* All */
h2.custom-class { font-size: 62px; }
/* Tablet & Below */
@media (max-width:992px) {
h2.custom-class { font-size: 52px; }
}
/* Mobile */
@media (max-width:767px) {
@robspangler
robspangler / smooth-scroll.css
Created January 10, 2024 00:22
Pure CSS smooth scrolling with an optional offset (for fixed headers, for example)
html {
scroll-behavior: smooth;
}
#section-id {
scroll-margin-top: 100px;
}
/* Define Variables */
:root {
--base-text-color: #111;
--primary-color: #00f;
--secondary-color: #0f0;
--base-bg-color: #eee;
}
/* Usage */
.sample {