This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function modulus( leftValue, rightValue ) { | |
var remainder = leftValue; | |
while ( remainder >= rightValue ) { | |
remainder-rightValue; | |
} | |
return remainder; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Get ACF fields recursivly | |
* (if post does not have value look upward until found) | |
*/ | |
function get_field_recursive( $field, $level_id = null ) { | |
// If no ID is passed set to post ID | |
$level_id = $level_id == null ? get_queried_object_id() : $level_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
@media only screen and (max-device-width: 480px){ | |
body{ | |
font-size: 100px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Bounce | |
*/ | |
html {height: 97%;} | |
body { | |
background-color: hsl(0,50%,50%); | |
background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5) 65%, rgba(0,0,0,0.4) 65%, rgba(0,0,0,.1)); | |
height: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mixed CSS3 demo | |
*/ | |
body { | |
background: hsla(5,20%,70%,1); | |
font: 16px/22px sans-serif; | |
text-shadow: 1px 1px 0 rgba(255,255,255,0.5); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
} | |
/* Button */ | |
.button { | |
background-color: hsla(90,40%,50%,1); | |
border-style: solid; | |
border-width: 1px; | |
border-color: rgba(255,255,255,0.7) rgba(0,0,0,0.2) rgba(0,0,0,0.2) rgba(255,255,255,0.4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mixed CSS3 demo | |
*/ | |
body { | |
background: hsla(5,20%,70%,1); | |
font: 16px/22px sans-serif; | |
text-shadow: 1px 1px 0 rgba(255,255,255,0.5); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CSS demo | |
*/ | |
@keyframes demo { | |
0%{ | |
margin-left: 0; | |
width: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mobile first demo | |
*/ | |
* {box-sizing: border-box;} | |
body { | |
/*background: hsl(60,80%,70%);*/ | |
background-color: hsl(60,30%,70%); | |
background-image: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mobile first live demo | |
*/ | |
* {box-sizing: border-box;} | |
body { | |
/*background: hsl(60,80%,70%);*/ | |
background-color: hsl(60,30%,70%); |
NewerOlder