Skip to content

Instantly share code, notes, and snippets.

@clanceyp
clanceyp / dabblet.css
Last active January 8, 2018 10:50
The first commented line is your dabblet’s title
/** * The first commented line is your dabblet’s title *//** * The first commented line is your dabblet’s title */
body { background-color: grey;}
.boom, .background-test { width: 1440px; height: 320px; min-height: 320px; overflow: scroll; resize: both; }
.boom { background-color: silver; background-repeat: no-repeat; background-size: cover; background-position: 50% 50%; min-width: 200px; min-height: 200px; overflow: scroll; resize: both; position: relative; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTQ0MHB4IiBoZWlnaHQ9IjMyMHB4IiB2aWV3Qm94PSIwIDAgMTQ0MCAzMjAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE0NDAgMzIwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6IzAyNDU1NDt9LnN0MXtjbGlwLXBhdGg6dXJsKCNTVkdJRF8yXyk7fS5zdDJ7ZmlsbDojMDU0QjVGO
<title>Your page title</title>
<style>
/* these styles must come before the js */
title {
font-family: xxs;
}
@media only screen and (min-width: 480px) {
title {
font-family: xs;
}
h1 {
color: silver;
font-family: monospace;
margin: 12px 0;
padding: 0;
text-align: center;
}
h1[data-content-length='4'] { font-size: 36vw; }
h1[data-content-length='7'] { font-size: 23vw; }
h1[data-content-length='10'] { font-size: 16vw; }
@clanceyp
clanceyp / dabblet.css
Last active October 21, 2019 15:52
test for floating colour bg blocks in header
/* test for floating colour bg blocks in header */
body {
background-color: #fefefe;
}
div {
background-color: lightgrey;
border: 1px dashed silver;
margin: 50px auto;
text-align: center;
width: 50%;
@clanceyp
clanceyp / dabblet.css
Last active August 29, 2015 14:19
Untitled
@import url(http://fonts.googleapis.com/css?family=Lato:100);
a { color : black; text-decoration: none}
.hero-panel { background-color: #171717;padding: 0 40px;font-family: "Lato", "Gill Sans", Georgia, Times, serif; }
.hero-panel>.component-content {margin: 0 auto; max-width: 1200px;}
.hero-panel .component-header { border-top: 0 none; font-size: 8.5rem;font-weight:100; line-height: 8rem; margin: 0; padding: 0.5rem 2rem;}
.hero-panel .component-heading { color: #00717b; text-align:center; margin:20px 0; letter-spacing:14px}
@media only screen and (min-width : 860px) {
.hero-panel .list-of-entities__item-image-container { position: relative;}
.hero-panel .list-of-entities__item-image-container img { max-width: 300px;}
@clanceyp
clanceyp / dabblet.css
Last active August 29, 2015 14:19
Untitled
@import url(http://fonts.googleapis.com/css?family=Lato:100);
.hero-panel { background-color: #171717;padding: 0 40px;font-family: "Lato", "Gill Sans", Georgia, Times, serif; }
.hero-panel .component-header { border-top: 0 none; font-size: 8.5rem;font-weight:100; line-height: 50px; line-height: 8rem; margin: 0; padding: 5px 20px; padding: 0.5rem 2rem;}
.hero-panel .component-heading { color: #00717b; text-align:center; margin:20px 0; letter-spacing:14px}
.hero-panel .list-of-entities__item-image-container { position: relative;}
.hero-panel .list-of-entities__item-image-container img { max-width: 300px;}
.hero-panel .list-of-entities > .component-content { display: table; width: 100%;}
.hero-panel .list-of-entities__container { display: table-row;}
.hero-panel .list-of-entities__item { display: table-cell; text-align: center; vertical-align: middle; width: 33%;}
.hero-panel .list-of-entities__item-link { min-height: 500px; position: relative;}
@clanceyp
clanceyp / dabblet.css
Created January 2, 2014 15:59
Grid background for menu
/**
* Grid background for menu
*/
div.wrapper {
height: 100%;
overflow: hidden;
width: 100%;
}
div.wrapper:before {
@clanceyp
clanceyp / dabblet.css
Created June 27, 2013 14:18
slide down details list
/* slide down details list */
@keyframes slideDown {
0% {
opacity: 0;
height: 0;
}
100% {
opacity: 1;
height: 20px;
}
@keyframes slideDown {
0% {
opacity: 0;
height: 0;
}
100% {
opacity: 1;
height: 20px;
}
}
@clanceyp
clanceyp / dabblet.css
Created June 26, 2013 12:10
Spinning cube
/* Spinning cube */
@keyframes go {
0% {
transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale3d(1,1,1);
}
100% {
transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg) scale3d(1,1,1);
}
}
@keyframes back {