Skip to content

Instantly share code, notes, and snippets.

View gmuraoka's full-sized avatar
👨‍💻
Coding like there's no tomorrow

Gabriel Muraoka gmuraoka

👨‍💻
Coding like there's no tomorrow
View GitHub Profile
/* Commom css */
.clear-both{clear: both;}
.clear-both-before:before{clear: both;}
.clear-both-after:after{clear: both;}
.display-none{display:none;}
.display-block{display: block;}
.display-inline{display: inline;}
.float-left{float: left;}
.float-right{float: right;}
.float-none{float: none;}
<style>
.line {
float: left;
background: #C2DFFF;
width: 2px;
height: 200px;
margin: 0px 0px 0px 10px;
}
.point {
width: 20px;
<style>
body {
margin:50px 0px; padding:0px;
text-align:center;
}
.content {
width:500px;
margin:0px auto;
text-align:left;
<style>
body{
background: #E9F1FC;
}
.line {
float: left;
background: #C3CADA;
width: 2px;
height: 200px;
margin: 0px 0px 0px 10px;
/* Remove zoom e fixa conteudo na viewport: */
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" /> */
/* Media Queries V1.0 */
@media only screen and (max-width: 1460px) { }
@media only screen and (max-width: 1279px) { }
@media only screen and (max-width: 1024px) { }
@media only screen and (max-width: 800px) { }
@media only screen and (max-width: 500px) { }
@media only screen and (max-width: 500px) and (orientation:landscape) { }
@gmuraoka
gmuraoka / areautil
Created August 8, 2013 02:22
Código para obter a área útil da tela.
//DEPENDE DE jQuery, INSERIR ANTES
var width = $(this).width();
var height = $(this).height();
alert("Largura: " +width +"px X Altura:" +height +"px");
@gmuraoka
gmuraoka / header
Last active December 20, 2015 19:09
Basic Header Code
<base href="URLBASE" /><!-- Define a URL base -->
<!-- HTTP 1.1. Desativa o cache do navegador -->
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<!-- HTTP 1.0. -->
<meta http-equiv="Pragma" content="no-cache" />
<!-- Proxies. -->
<meta http-equiv="Expires" content="0" />