Skip to content

Commit c7c42da

Browse files
committed
Centers Inner container in middle of banner
Added additional css
1 parent a6c1ee6 commit c7c42da

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

_sass/main.sass

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,14 @@ a
9696
position: relative
9797
width: 100%
9898
.inner
99-
left: 0
100-
right: 0
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%);
101107
// custom banners
102108
&.welcome
103109
background: url('coderit_background.png') center center fixed
@@ -108,7 +114,6 @@ a
108114
text-align: center
109115
.logo
110116
margin-bottom: 25px
111-
max-width: 60%
112117
#learn-more
113118
&:after
114119
border-color: $white transparent transparent transparent
@@ -371,4 +376,4 @@ a
371376
.inner
372377
padding: 10px 3px
373378
#event-list-cta
374-
width: auto
379+
width: auto

0 commit comments

Comments
 (0)