Skip to content

Instantly share code, notes, and snippets.

View spadino's full-sized avatar
🎯
Focusing

Andrea Spada spadino

🎯
Focusing
View GitHub Profile
@spadino
spadino / tabs.scss
Created October 7, 2015 14:17 — forked from cbfrance/tabs.scss
compass scss tab mixin
@import "colors";
@import "buttons.scss";
@import "compass/css3";
@mixin tabs {
float: left;
width: 100%;
background: transparent;
margin: 0!important;
height: 43px;
@spadino
spadino / block-grid.scss
Last active September 17, 2015 01:42 — forked from Jursdotme/block-grid.scss
Foundation 5 style Block-Grid for Bootstrap 3 (SASS Version)
// Block Grid
// Technique adapted from Foundation 5 for Bootstrap 3.
// https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss
// Original LESS Version by Christopher Mitchell (https://gist.github.com/ChrisTM)
// Converted to SCSS by Rasmus Jürs (https://github.com/Jursdotme)
[class*="block-grid-"] {
display: block;
margin: -($grid-gutter-width/2);
padding: 0;
@spadino
spadino / flags.php
Created July 30, 2015 14:27
Flags Language Swicher for Kirby
<ul class="flags">
<?php foreach($site->languages() as $lang): ?>
<li class="flag"><a href="<?php echo $page->url($lang->code()) ?>">
<img src="<?php echo url('assets/images/flags/24/' . $lang . '.png') ?>"></a>
</li>
<?php endforeach ?>
</ul>
@spadino
spadino / languageswitch.php
Last active August 29, 2015 14:26 — forked from stchr/languageswitch.php
Language Switch for Kirby
<?php foreach (c::get('lang.available') as $lang): ?>
<a<?php if($lang == c::get('lang.current')) echo ' class="active"' ?> href="<?php echo url($page->uid(), $lang) ?>">
<img src="<?php echo url('assets/images/flags/' . $lang . '.png') ?>" alt="" /><?php echo $lang ?>
</a>
<?php endforeach ?>