Skip to content

Instantly share code, notes, and snippets.

View thbland's full-sized avatar

Troy Bland thbland

View GitHub Profile
@thbland
thbland / check-box-radial-wash.markdown
Created February 26, 2023 18:11
Check Box Radial Wash

Check Box Radial Wash

Very Android Lollipop. Wanted this feature when designing an app, and wanted to see what it would take in CSS.

Because of z-index issues, the background of the li has to be drawn with a :before element. Will fix it when I have time.

Check it out on Dribbble!: https://dribbble.com/shots/1968649-Radial-Checkbox

A Pen by Taylor Palmer on CodePen.

@thbland
thbland / index.pug
Created February 26, 2023 18:05
Overlay Signup Form
main(role="main")
button#popup-trigger.popup-trigger.btn: span Signup Now
i.fa.fa-plus-square-o
#overlay.overlay
#overlay-background.overlay-background
#overlay-content.overlay-content
#overlay-close.fa.fa-times.fa-lg.overlay-close
h1.main-heading Signup Now
h3.blurb Creating an account is free —
span.blurb-tagline and won't take longer than a couple of seconds.
@thbland
thbland / index.pug
Created February 26, 2023 09:32
Simple Tile Hover Effect
.tiles
a.tile(href="#")
img(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/216995/1.jpg")
.details
span.title Lorem Ipsum Dolor
span.info Quisque vel felis lectus donec vitae dapibus magna
a.tile(href="#")
img(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/216995/2.jpg")
.details
span.title Lorem Ipsum Dolor
@thbland
thbland / index.pug
Created February 26, 2023 09:32
Simple Tile Hover Effect
.tiles
a.tile(href="#")
img(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/216995/1.jpg")
.details
span.title Lorem Ipsum Dolor
span.info Quisque vel felis lectus donec vitae dapibus magna
a.tile(href="#")
img(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/216995/2.jpg")
.details
span.title Lorem Ipsum Dolor
@thbland
thbland / index.html
Created February 26, 2023 09:30
Python in HTML - PyScript
<!DOCTYPE html>
<html>
<head>
<title>PyScript — Python in Browser</title>
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
</head>
<body>
<py-script> print('Hello, Python in HTML!') </py-script>
</body>
</html>
@thbland
thbland / index.html
Created February 23, 2023 00:32
Mobile Google/Tumblr Style Loader
<div class="loader">
<i class="grey"></i>
</div>
@thbland
thbland / auto-fill-vs-auto-fit.markdown
Created December 30, 2022 06:03
auto-fill vs auto-fit
@thbland
thbland / devextreme-javascript-data-grid.markdown
Created December 24, 2022 20:26
DevExtreme - JavaScript Data Grid
@thbland
thbland / index.html
Created December 17, 2022 04:50
Web Components Example
<h1>Expenses</h1>
<!--first layout-->
<template id="expense-template">
<style>
#expenses {
display: flex;
}
.expense1 {
@thbland
thbland / index.html
Created November 5, 2022 16:35
Simple Responsive CSS Grid System
<main class="grid-wrap">
<div class="grid">
<span>One column default</span>
</div>
<div class="grid">
<span>Half column 1</span>
<span>Half column 2</span>
</div>