Skip to content

Added styling to center inner-container in banner #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 11, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions _sass/main.sass
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,14 @@ a
position: relative
width: 100%
.inner
left: 0
right: 0
position: absolute;
left: 50%;
top: 50%;
min-width: 300px;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
// custom banners
&.welcome
background: url('coderit_background.png') center center fixed
Expand All @@ -108,7 +114,6 @@ a
text-align: center
.logo
margin-bottom: 25px
max-width: 60%
#learn-more
&:after
border-color: $white transparent transparent transparent
Expand Down Expand Up @@ -371,4 +376,4 @@ a
.inner
padding: 10px 3px
#event-list-cta
width: auto
width: auto
13 changes: 9 additions & 4 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,14 @@ a {
position: relative;
width: 100%; }
.banner .inner {
left: 0;
right: 0; }
position: absolute;
left: 50%;
top: 50%;
min-width: 300px;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);}
.banner.welcome {
background: url("coderit_background.png") center center fixed;
font-size: 1.25em;
Expand All @@ -87,8 +93,7 @@ a {
padding: 60px 0 80px;
text-align: center; }
.banner.welcome .logo {
margin-bottom: 25px;
max-width: 60%; }
margin-bottom: 25px;}
.banner.welcome #learn-more:after {
border-color: white transparent transparent transparent;
border-style: solid;
Expand Down