Skip to content

Instantly share code, notes, and snippets.

View ladislavsulc's full-sized avatar

Ladislav Šulc ladislavsulc

View GitHub Profile
/* Responsive FB likebox */
#fb-root {
display: none;
}
/* To fill the container and nothing else */
.fb_iframe_widget, .fb_iframe_widget span, .fb_iframe_widget span iframe[style] {
width: 100% !important;
}
@ladislavsulc
ladislavsulc / Czech districts (select)
Last active April 18, 2017 13:57
Czech districts (select)
<select name="districts" class="eLiteSelect">
<option value="1">Vyberte</option>
<option value="2">Hlavní město Praha</option>
<option value="3">Středočeský</option>
<option value="4">Jihočeský</option>
<option value="5">Plzeňský</option>
<option value="6">Karlovarský</option>
<option value="7">Ústecký</option>
<option value="8">Liberecký</option>
<option value="9">Královéhradecký</option>
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
$('.backtotop').click(function(e){
e.preventDefault();
$('html, body').animate({scrollTop:0}, 'slow');
});
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../yt-video/yt-search-video.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@ladislavsulc
ladislavsulc / gist:7024a921b774960cf566
Created November 28, 2014 20:16
Background Size Cover (crossbrowser)
@include background-size(cover);
background-image: url('../gfx/bg.jpg');
background-position: center top;
background-repeat: no-repeat;
background-attachment: scroll;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='../gfx/bg.jpg',
sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
@ladislavsulc
ladislavsulc / Gruntfile.js
Created November 28, 2014 21:18
Webapp Grunt File + Compass + Sprites
// Generated on 2014-11-28 using
// generator-webapp 0.5.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
@ladislavsulc
ladislavsulc / gist:208c322d7a6eb7327f5e
Created November 29, 2014 00:15
Background Size Cover (webapp + grunt + compass) crossbrowser
@include background-size(cover);
background-image: image_url('bg.jpg');
background-position: center top;
background-repeat: no-repeat;
background-attachment: scroll;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src="image_url('bg.jpg')",
sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
@ladislavsulc
ladislavsulc / Stretch HMLT5 Video
Created December 13, 2014 21:52
Stretch HTML5 Video 100% height and width - in a relative container - crossbrowser -> just adjust the absolute position to where you want to have the camera
.bg-video {
position: absolute;
left: 0;
right: 0;
bottom: 0;
min-width: 100%;
/*min-height: 100%;*/
/*width: 100%;*/
/*height: 100%;*/
z-index: 99;