annotate app/assets/stylesheets/sticky_footer.scss @ 378:e84276bf344a

Immediate return instead of unless ... end.
author nanaya <me@myconan.net>
date Sat, 06 Jun 2015 22:36:32 +0900
parents 5a4d31e97937
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
259
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 /* Sticky footer styles
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
2 -------------------------------------------------- */
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
3
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
4 html,
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 body {
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
6 height: 100%;
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
7 /* The html and body elements cannot have any padding or margin. */
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
8 }
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
9
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
10 /* Wrapper for page content to push down footer */
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
11 #wrap {
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
12 min-height: 100%;
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
13 height: auto !important;
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
14 height: 100%;
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
15 /* Negative indent footer by its height */
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
16 margin: 0 auto -60px;
284
bd29f6af1f1c Add a bit more padding on footer.
edogawaconan <me@myconan.net>
parents: 259
diff changeset
17 /* Pad bottom by footer height + 10 */
bd29f6af1f1c Add a bit more padding on footer.
edogawaconan <me@myconan.net>
parents: 259
diff changeset
18 padding: 0 0 70px;
259
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
19 }
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
20
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
21 /* Set the fixed height of the footer here */
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
22 #footer {
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
23 height: 60px;
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
24 background-color: #f5f5f5;
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
25 }
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
26
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
27
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
28 /* Custom page CSS
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
29 -------------------------------------------------- */
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
30 /* Not required for template or sticky footer method. */
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
31
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
32 .container .credit {
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
33 margin: 20px 0;
5d084a9716ca Update basic layout and css.
edogawaconan <me@myconan.net>
parents:
diff changeset
34 }