Skip to content

Instantly share code, notes, and snippets.

Eduardo Martinez eduardomart

View GitHub Profile
View gist:2da3fbb6e5e0c756d009
{% 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>
@eduardomart
eduardomart / gist:d7a3a0dc3fdcae1ea422
Created Jan 8, 2015
FormBuilder Template using Bootstrap
View gist:d7a3a0dc3fdcae1ea422
{* BOOTSTRAP FORM *}
{literal}
<script type="text/javascript">
function fbht(htid)
{
var fbhtc=document.getElementById(htid);
if (fbhtc)
{
if (fbhtc.style.display == 'none')
{
@eduardomart
eduardomart / index.html
Created Oct 31, 2014
Tabs for MD-LG, Stack for SM
View index.html
<!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 / vertical-center.css
Last active Aug 24, 2018
BS3 Vertical center of row items
View vertical-center.css
.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}
@eduardomart
eduardomart / .htaccess
Created Jan 9, 2014 — forked from lavoiesl/.htaccess
Integrate LESSPHP
View .htaccess
# LESS compiler
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} ^(.*)\.css
RewriteCond %1.less -f
RewriteRule ^(.*)\.css lessphp/less.php?f=$1.less
View fixed-screen-layered-background.less
.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;
}
View jsbin.eyUkuME.css
/* BOOTSTRAP 3.x GLOBAL STYLES
-------------------------------------------------- */
body {
padding-bottom: 40px;
color: #5a5a5a;
}
/* CUSTOMIZE THE NAVBAR
You can’t perform that action at this time.