Skip to content

Commit 182e761

Browse files
committed
Revert "Added styling to center inner-container in banner"
1 parent 3de734b commit 182e761

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

_sass/main.sass

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,8 @@ a
9696
position: relative
9797
width: 100%
9898
.inner
99-
position: absolute;
100-
left: 50%;
101-
top: 50%;
102-
min-width: 300px;
103-
transform: translate(-50%, -50%);
104-
-webkit-transform: translate(-50%, -50%);
105-
-moz-transform: translate(-50%, -50%);
106-
-o-transform: translate(-50%, -50%);
99+
left: 0
100+
right: 0
107101
// custom banners
108102
&.welcome
109103
background: url('coderit_background.png') center center fixed
@@ -114,6 +108,7 @@ a
114108
text-align: center
115109
.logo
116110
margin-bottom: 25px
111+
max-width: 60%
117112
#learn-more
118113
&:after
119114
border-color: $white transparent transparent transparent
@@ -376,4 +371,4 @@ a
376371
.inner
377372
padding: 10px 3px
378373
#event-list-cta
379-
width: auto
374+
width: auto

assets/css/main.css

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,8 @@ a {
7777
position: relative;
7878
width: 100%; }
7979
.banner .inner {
80-
position: absolute;
81-
left: 50%;
82-
top: 50%;
83-
min-width: 300px;
84-
transform: translate(-50%, -50%);
85-
-webkit-transform: translate(-50%, -50%);
86-
-moz-transform: translate(-50%, -50%);
87-
-o-transform: translate(-50%, -50%);}
80+
left: 0;
81+
right: 0; }
8882
.banner.welcome {
8983
background: url("coderit_background.png") center center fixed;
9084
font-size: 1.25em;
@@ -93,7 +87,8 @@ a {
9387
padding: 60px 0 80px;
9488
text-align: center; }
9589
.banner.welcome .logo {
96-
margin-bottom: 25px;}
90+
margin-bottom: 25px;
91+
max-width: 60%; }
9792
.banner.welcome #learn-more:after {
9893
border-color: white transparent transparent transparent;
9994
border-style: solid;

0 commit comments

Comments
 (0)