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);
}
// Multi-use?
@mixin ease {
-webkit-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
a {
@include ease;
@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;
}
// Edge
// ---------------------------------------
@mixin edge-only(){
@supports (-ms-accelerator:true) {
& {
@content;
}
}
}
// Quick Example
@mixin underline($width) {
width: #{$width};
}
h2 {
@include underline('50%');
}
// Full Example
background-image: url(../icons/stack/svg/sprite.stack.svg#facebook);
<div class="formatted-text">
{{ items }}
</div>