Skip to content

Instantly share code, notes, and snippets.

View ScarletPonytail's full-sized avatar

ScarletPonytail ScarletPonytail

View GitHub Profile
-webkit-transform: perspective(1px) translateZ(0) translateY(-4px);
transform: perspective(1px) translateZ(0) translateY(-4px);
@if($fields['button_position'])
{{ $fields['button_text'] }}
{!! $fields['button_text'] !!}
@endif
/* https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements */
h2::before {
font-family: "Font Awesome 5 Free";
font-weight: 800;
content: "\f007";
}
animation-name: zoom;
animation-fill-mode: forwards;
animation-duration: 10s;
animation-timing-function: ease-in-out;
@keyframes zoom {
0% {
transform: scale(1);
}
// Edge
// ---------------------------------------
@mixin edge-only(){
@supports (-ms-accelerator:true) {
& {
@content;
}
}
}
// Multi-use?
@mixin ease {
-webkit-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
a {
@include ease;
// Quick Example
@mixin underline($width) {
width: #{$width};
}
h2 {
@include underline('50%');
}
// Full Example
@mixin slider-track {
-webkit-appearance: none !important;
-moz-appearance: none !important;
appearance: none !important;
width: 100%;
background: #fff !important;
border-color: transparent !important;
color: transparent !important;
}
@ScarletPonytail
ScarletPonytail / test.php
Last active June 4, 2019 12:53
PHP - Echo to console
// Echo a specific thing
<?php echo '<script>console.log("Your stuff here")</script>'; ?>
// Echo a dynamic element
<?php echo '<script>console.log( ' . get_page_template() . ' )</script>'; ?>
background-image: url(../icons/stack/svg/sprite.stack.svg#facebook);