Skip to content

Instantly share code, notes, and snippets.

View jensgro's full-sized avatar

Jens Grochtdreis jensgro

View GitHub Profile
@jensgro
jensgro / styles.css
Last active August 29, 2015 14:09 — forked from pburtchaell/styles.css
vw and vh for iOS
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing
* the height of element `.foo` —which is a full width and height cover image.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*/
@jensgro
jensgro / SassMeister-input-HTML.html
Created November 10, 2014 07:44
Navigation with Flexbox
<header class="top-bar">
<nav>
<ul class="nav">
<li class="nav-item"><a href="#">Home<span class="nav-subtitle">the beginning</span></a></li>
<li class="nav-item">
<a href="#">Portfolio<span class="nav-subtitle">my work</span></a>
<ul class="nav-submenu">
<li class="nav-subitem"><a href="#">Print Design</a></li>
<li class="nav-subitem"><a href="#">Web Design</a></li>
<li class="nav-subitem"><a href="#">Development</a></li>
@jensgro
jensgro / SassMeister-input-HTML.html
Last active August 29, 2015 14:06
Linear gradient with Compass
<div class="test"></div>
@jensgro
jensgro / SassMeister-input-HTML.html
Last active August 29, 2015 14:06
Sass-variables and generated content.
<h1>!</h1>
<h2>You can combine</h2>
<h3>include a variable into "content"</h3>
@jensgro
jensgro / SassMeister-input.scss
Created August 29, 2014 06:11
Easy BEMing with Sass
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.block {
&__element {
color: red;
}
&--modifier {
@jensgro
jensgro / SassMeister-input-HTML.html
Created August 27, 2014 17:14
25%-grids with Zen-Grids
<div>
<div class="ym-g25-1">
<div class="img-teaser">
<img src="http://placehold.it/230x240" alt="">
<a href="#" class="teaserlink">super-toller Link</a>
</div>
<!-- /.teaser -->
</div>
<div class="ym-g25-2">
<div class="img-teaser">
@jensgro
jensgro / SassMeister-input-HTML.html
Created August 27, 2014 16:34
25%-grids with Singularity
<div>
<div class="ym-g25-1">
<div class="img-teaser">
<img src="http://placehold.it/230x240" alt="">
<a href="#" class="teaserlink">super-toller Link</a>
</div>
<!-- /.teaser -->
</div>
<div class="ym-g25-2">
<div class="img-teaser">
@jensgro
jensgro / SassMeister-input.scss
Last active August 29, 2015 14:05
rem-mixin with oldIE-Fallback
// ----
// Sass (v3.3.14)
// Compass (v1.0.0)
// ----
// http://css-tricks.com/snippets/css/less-mixin-for-rem-font-sizing/
@function strip-unit($value) {
@return $value / ($value * 0 + 1);
}
<div tabindex="0" class="button-silver" role="button" aria-pressed="false"></div>
@jensgro
jensgro / enterprise-link.html
Last active February 10, 2019 15:30
Enterprise-Code from hell