Skip to content

Commit 4fc528d

Browse files
committed
fix centering of elements on wide displays
1 parent 7cc6f3d commit 4fc528d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

assets/css/master.styl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ html
1414
size 800 600
1515
position absolute !important
1616
top 0
17-
left 0
1817
z-index: -1
18+
left: 50%
19+
margin-left: -400px
1920

2021
#hud
2122
z-index 100
@@ -28,7 +29,8 @@ html
2829
font-style italic
2930
font-size 36px
3031
line-height 40px
31-
32+
left: 50%;
33+
margin-left: -400px;
3234

3335

3436
.altitude
@@ -37,13 +39,13 @@ html
3739
top 24px
3840
left 30px
3941
size 25px 540px
40-
border-radius 8px
42+
border-radius 8px
4143
border 5px solid #C0E5E8
4244
opacity .85
4345
background: linear-gradient(bottom, #59c6d9, 70% #257a8b, #104b5b)
4446
// rgba(89, 198, 217, 0.5), 70% rgba(37, 122, 139, 0.5), rgba(16, 75, 91, 0.5)
4547
// background-color #257A8B
46-
48+
4749

4850

4951
.dot

0 commit comments

Comments
 (0)