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 if ( !empty(get_field('condition')) ): // Check if condition is applied ?> | |
<?php // Display if condition is valid | |
$condition = get_field('condition'); | |
if(eval("return $condition;")): ?> | |
<InnerBlocks /> | |
<?php else: // If condition is not valid display message ?> | |
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
.container{ | |
width: 90%; | |
max-width: 1400; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
$size: ( | |
"xxs": 3, |
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 taken from: https://websemantics.uk/tools/responsive-font-calculator/ | |
// Set up Min - Max Viewport (without px) | |
$viewport-min: 800; | |
$viewport-max: 1680; | |
// TypeClamp Mixin |
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 /* Template Name: Awesome Page */ | |
get_header(); | |
?> | |
<div class="latest-posts"></div> | |
<script> |
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
$columns: ( | |
1: 1, | |
2: 2, | |
3: 3, | |
); | |
@each $number, $col in $columns { | |
.grid-#{$number} { | |
grid-template-columns: repeat(#{$col}, 1fr); |
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
.col{ | |
width: 100%; | |
} | |
.col--1-2{ | |
@extend .col; | |
max-width: 50%; | |
} | |
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
.bth{ | |
background: red; | |
} | |
.btn-big{ | |
@extend .bth; | |
font-size: 12px; | |
} |
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
$columns: 12; | |
$breakpoints: ( | |
small : 480px, | |
medium: 640px, | |
large : 1024px | |
); | |
$gutter: ( | |
null : 10px, |
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
.xs-1 { | |
width: 25%; | |
} | |
.xs-2 { | |
width: 50%; | |
} | |
.xs-3 { | |
width: 75%; |