Skip to content

Instantly share code, notes, and snippets.

View eduardomart's full-sized avatar

Eduardo Martinez eduardomart

View GitHub Profile
/* BOOTSTRAP 3.x GLOBAL STYLES
-------------------------------------------------- */
body {
padding-bottom: 40px;
color: #5a5a5a;
}
/* CUSTOMIZE THE NAVBAR
.background-layers(@top, @bottom) {
background: url(@top), url(@bottom);
background-position: top center, top center;
background-attachment: fixed, fixed;
background-repeat: repeat, repeat;
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
background-size: auto, cover;
}
@eduardomart
eduardomart / .htaccess
Created January 9, 2014 07:36 — forked from lavoiesl/.htaccess
Integrate LESSPHP
# LESS compiler
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} ^(.*)\.css
RewriteCond %1.less -f
RewriteRule ^(.*)\.css lessphp/less.php?f=$1.less
@eduardomart
eduardomart / vertical-center.css
Last active August 24, 2018 15:59
BS3 Vertical center of row items
.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}
@eduardomart
eduardomart / index.html
Created October 31, 2014 06:09
Tabs for MD-LG, Stack for SM
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>BS3 Starter</title>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" />
<!-- Scripts (in production have these just before the ending body tag for best performance) -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<style id="jsbin-css">
@eduardomart
eduardomart / gist:d7a3a0dc3fdcae1ea422
Created January 8, 2015 03:22
FormBuilder Template using Bootstrap
{* BOOTSTRAP FORM *}
{literal}
<script type="text/javascript">
function fbht(htid)
{
var fbhtc=document.getElementById(htid);
if (fbhtc)
{
if (fbhtc.style.display == 'none')
{
@eduardomart
eduardomart / gist:2da3fbb6e5e0c756d009
Last active August 29, 2015 14:19
Webhook two-level menu
{% set top_menu = cms.navigation %}
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
{#
<li id="menu-close" class="text-right">
<a href="#"><span class="fa fa-close"></span></a>
</li>