Created
June 20, 2013 17:34
-
-
Save RudyOnRails/5824839 to your computer and use it in GitHub Desktop.
Trying to see where this 8px margin on my body element is coming from...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the top of the | |
* compiled file, but it's generally better to create a new file per style scope. | |
* | |
*= require_self | |
*= require_tree . | |
*/ | |
nav { | |
background-color: #b3b3b3; | |
height: 40px; | |
} | |
a { | |
color: white; | |
text-decoration: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! 5 | |
%html(lang="en") | |
%head | |
%meta(charset="utf-8") | |
%meta(name="viewport" content="width=device-width, initial-scale=1.0") | |
%title= content_for?(:title) ? yield(:title) : "Kevin Musiorski" | |
= csrf_meta_tags | |
/ Le HTML5 shim, for IE6-8 support of HTML elements | |
/[if lt IE 9] | |
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js" | |
= stylesheet_link_tag "application", :media => "all" | |
%link(href="images/favicon.ico" rel="shortcut icon") | |
%link(href="images/apple-touch-icon.png" rel="apple-touch-icon") | |
%link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72") | |
%link(href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114") | |
%body | |
%nav | |
=link_to "Resume", "resume", :target => "blank" | |
= yield | |
/ | |
Javascripts | |
\================================================== | |
/ Placed at the end of the document so the pages load faster | |
= javascript_include_tag "application" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, | |
figure, figcaption, footer, header, hgroup, | |
menu, nav, output, ruby, section, summary, | |
time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; | |
font: inherit; | |
vertical-align: baseline; | |
} | |
/* HTML5 display-role reset for older browsers */ | |
article, aside, details, figcaption, figure, | |
footer, header, hgroup, menu, nav, section { | |
display: block; | |
} | |
body { | |
line-height: 1; | |
} | |
ol, ul { | |
list-style: none; | |
} | |
blockquote, q { | |
quotes: none; | |
} | |
blockquote:before, blockquote:after, | |
q:before, q:after { | |
content: ''; | |
content: none; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment