Skip to content

Instantly share code, notes, and snippets.

View 7studio's full-sized avatar

Xavier Zalawa 7studio

View GitHub Profile
@7studio
7studio / article.html
Last active August 29, 2015 13:56
schemas
<!--
# Article
* http://schema.org/Article
* https://developers.google.com/structured-data/rich-snippets/articles
* http://coding.smashingmagazine.com/2012/10/23/road-reusable-html-components/
-->
<div class="Article" itemscope itemtype="http://schema.org/Article">
<h? class="Article-headline" itemprop="headline">{{title}}</h?>
@7studio
7studio / index.html
Last active August 29, 2015 14:08
components/navs.nested.css
<div class="nav">
<strong class="nav-name">{{ titre }}</strong>
<ul class="nav-list nav-list--inline">
<li class="nav-item">
<a class="nav-link" href="{{ url }}">{{ lien }}</a>
</li>
<li class="nav-item nav-item--withChildren">
<a class="nav-link" href="{{ url }}">{{ lien }}</a>
<div class="nav-panel">
@7studio
7studio / print.css
Last active August 29, 2015 14:08
Universal CSS for web printing
/*
* @print
*
* Styles communs pour la mise en page à l'impression
* ===
*
* …
*
* ## Ressources
*
@7studio
7studio / print.css
Created November 18, 2014 08:10
Is there a way to comment this statement including the comments?
/*
* 1. …
* 2. Autorise la cessure à l'intérieur de la chaîne qui sera affichée
* pour éviter son dépassement de la boîte de page.
*/
a::after {
font-size: .83em; /*1 */
word-wrap: break-word; /* 2 */
}
a[href^="/"]::after {
@7studio
7studio / utils.css
Created November 6, 2015 17:01
Bichoco v0.1.0
.u-cfAlt {
overflow: hidden !important;
}
.u-cfBi:before,
.u-cfBi:after {
clear: both;
display: table;
content: "";
}
@7studio
7studio / dir.md
Created January 17, 2013 12:31
A test of BICOCHO structure in WordPress
config/
  _example.scss
  _example.style.scss
  _example.editor-style.scss
core/
  _variables.scss
  _utilities.scss
  _helpers.scss
  modules/
 html.scss
@7studio
7studio / README.md
Last active December 25, 2015 04:29
Debug baselines, leadings and grids with the help of the background CSS property.
@function adjust_decimal_precision($f, $v, $p: 0) {
$n : if(0>=$p, 1, 10);
@while ($p > 1) {
$n: 10*10;
$p: $p - 1;
}
@if 'percentage' == $f { @return round(percentage($v) * $n) / $n; }
@else if 'round' == $f { @return round($v * $n) / $n; }
@7studio
7studio / functions.php
Last active December 19, 2016 15:17
WP + TinyMCE + Color Picker Plugin + Text Color Plugin = ❤️
<?php
if ( ! function_exists( 'thistle_remove_tiny_mce_colorpicker' ) ) {
/**
* Pulls out the colorpicker plugin from TinyMCE.
* Without this plugin the end user cannot select a custom color.
*
* @link https://www.tinymce.com/docs/plugins/colorpicker/
*
* @param array $plugins An array of default TinyMCE plugins.