Skip to content
#

itcss

Here are 113 public repositories matching this topic...

marcinkrzeminski
marcinkrzeminski commented Oct 25, 2019

Add an option for a front-page.twig template in page.php.

Code is very similar to what we have in index.php

<?php
global $post;

$context   = \Timber\Timber::get_context();
$templates = [ 'page-' . $post->post_name . '.twig', 'page.twig' ];

if ( is_front_page() ) {
	array_unshift( $templates, 'front-page.twig' );
}
Timber::render( $templates, $context );
d-asensio
d-asensio commented Jul 28, 2017

Could be great to modify the mixing o-pack--space to not to generate the css output of the selector but the border-spacing property, that way the user will be able to apply that spacing to its components via SCSS instead of classes in the markup.

Here you can see what I mean:

@mixin o-pack--space($_space-name: "none", $_space-value: 0) {
  .o-pack--space-#{$_space-name} {
    bor

Improve this page

Add a description, image, and links to the itcss topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the itcss topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.