Skip to content

Commit

Permalink
fixes to sticky element and footer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Moreau committed Feb 10, 2017
1 parent 06d8940 commit ac06cf8
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 29 deletions.
6 changes: 3 additions & 3 deletions components/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1>Imarc Components list</h1>
<a href="features.html">Features</a>
</li>
<li>
<a href="mobile-navigation.html">Mobile Navigation</a>
<a href="mobile-navigation.html">Mobile navigation</a>
</li>
<li>
Modal windows
Expand All @@ -80,10 +80,10 @@ <h1>Imarc Components list</h1>
<a href="pagination.html">Pagination</a>
</li>
<li>
<a href="progress.html">Progress</a>
<a href="progress.html">Progress breadcrumbs</a>
</li>
<li>
<a href="scroll-to-section.html">Scroll to Section</a>
<a href="scroll-to-section.html">Scroll to section</a>
</li>
<li>
<a href="sticky-element.html">Sticky element</a>
Expand Down
6 changes: 3 additions & 3 deletions components/progress.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Progress Component - Imarc</title>
<title>Progress Breadcrumbs Component - Imarc</title>
<meta name="description" content="The Imarc Boilerplate is a streamlined starting point for building websites." />
<meta name="web_author" content="Imarc, A Digital Agency | Boston + Silicon Valley | more info at imarc.com" />
<meta name="viewport" content="width=device-width" />
Expand All @@ -14,9 +14,9 @@
<main>
<section class="intro">
<div class="container">
<h1>Progress Breadcrumb</h1>
<h1>Progress Breadcrumbs</h1>
<p>
Below is an example of a progress breadcrumb.
Below is an example of progress breadcrumbs.
</p>
</div>
</section>
Expand Down
38 changes: 19 additions & 19 deletions components/sticky-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,18 @@
<body>
<div class="torso">
<div class="container">
<div class="group">
<aside class="primary">
<section style="background-color: #EEE; width: 100%; z-index: 1;">
<h3>Sticky Bar</h3>
<p>
This is a simple sticky bar.
</p>
</section>
</aside>
<section class="intro">
<h1>Sticky Element</h1>
<p>
The Sticky Element component can be used to make elements switch between being in the flow of the page and being fixed. It can be used for sidebars, sticking images along scroll text, etc. It also supports having the element while 'stuck' move slowly if you'd like, for a parallax effect.
</p>

<p>
This page includes both an example of an element stuck to the side as well as one stuck temporarily within the flow of the page.
</p>
</section>
<div class="wrap">
<main>
<section class="intro">
<h1>Sticky Element</h1>
<p>
The Sticky Element component can be used to make elements switch between being in the flow of the page and being fixed. It can be used for sidebars, sticking images along scroll text, etc. It also supports having the element while 'stuck' move slowly if you'd like, for a parallax effect.
</p>

<p>
This page includes both an example of an element stuck to the side as well as one stuck temporarily within the flow of the page.
</p>
</section>

<section>
<h2>Usage</h2>
Expand Down Expand Up @@ -226,6 +218,14 @@ <h2>
</section>

</main>
<aside class="primary">
<section style="background-color: #EEE; width: 100%; z-index: 1;">
<h3>Sticky Bar</h3>
<p>
This is a simple sticky bar.
</p>
</section>
</aside>
</div>
</div>
</div>
Expand Down
8 changes: 6 additions & 2 deletions css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/styles.css.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ footer.primary {
}
}
nav ul {
justify-content: center;
margin-bottom: 2rem;
text-align: center;
}
Expand Down Expand Up @@ -1053,14 +1054,16 @@ table {
footer.primary {
.wrapper {
display: flex;
justify-content: space-between;
> * {
flex: 1 0 0;
}
> nav {
flex-grow: 2;
margin-bottom: 0;
}
> nav > ul {
justify-content: center;
}
}
.branding {
margin-right: 0;
Expand Down

0 comments on commit ac06cf8

Please sign in to comment.