Skip to content

Instantly share code, notes, and snippets.

@andreasisaak
andreasisaak / SassMeister-input.scss
Created March 9, 2018 16:17
Precise control over responsive typography for Sass
// ----
// libsass (v3.3.6)
// ----
// =========================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------
// Indrek Paas @indrekpaas
//
@andreasisaak
andreasisaak / SassMeister-input.scss
Created March 9, 2018 16:17
Precise control over responsive typography for Sass
// ----
// libsass (v3.3.6)
// ----
// =========================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------
// Indrek Paas @indrekpaas
//
.logo {
width: 204px;
height: 100px;
background: url('/img/logo.png');
}
@media
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
@andreasisaak
andreasisaak / gist:5712103
Last active December 18, 2015 02:39 — forked from tim-bec/gist:5711780
<?php
#Vorbereiten
$longtext = MetaModelFactory::byTableName('mm_projects')->findById($arrItem['raw']['project']['id'])->get('introduction');
# Longtext an string übergeben
echo String::getInstance()->substr($longtext['value'], 120);
?>