Skip to content

Commit 73cb3b6

Browse files
committed
Fix mobile styles
1 parent 5e8e32e commit 73cb3b6

File tree

3 files changed

+80
-54
lines changed

3 files changed

+80
-54
lines changed

css/mobile.css

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
font-family: 'Source Sans Pro', sans-serif;
6060
}
6161

62-
a:active, a:focus, button:active, button:focus {
62+
a:active,
63+
a:focus,
64+
button:active,
65+
button:focus {
6366
outline: 0;
6467
border: none;
6568
-moz-outline-style: none;
@@ -101,7 +104,8 @@ a:active, a:focus, button:active, button:focus {
101104
font-size: 2rem;
102105
}
103106

104-
.splash-image-pixel, .splash-image-art {
107+
.splash-image-pixel,
108+
.splash-image-art {
105109
height: 30vh;
106110
width: 30vh;
107111
/* background-image: url('../img/profile.png'); */
@@ -161,7 +165,8 @@ a:active, a:focus, button:active, button:focus {
161165
cursor: pointer;
162166
}
163167

164-
.welcome-box:hover .welcome-box-label, .welcome-label-selected {
168+
.welcome-box:hover .welcome-box-label,
169+
.welcome-label-selected {
165170
opacity: 1 !important;
166171
}
167172

@@ -192,7 +197,7 @@ a:active, a:focus, button:active, button:focus {
192197
z-index: -1;
193198
}
194199

195-
video {
200+
video, #design-video {
196201
position: absolute;
197202
top: 0;
198203
left: 0;
@@ -221,7 +226,9 @@ video {
221226
.splash-video-container {
222227
background: url('../img/art/15_new.png') center center / cover no-repeat;
223228
}
224-
video, #splash-video {
229+
230+
video,
231+
#splash-video {
225232
display: none;
226233
}
227234
}
@@ -300,6 +307,10 @@ video {
300307
cursor: pointer;
301308
}
302309

310+
.expand-button i {
311+
font-size: 200%;
312+
}
313+
303314
.expand-button-black {
304315
color: black;
305316
border: 2px solid black;
@@ -314,13 +325,15 @@ video {
314325
margin-left: 3vh;
315326
margin-right: 3vh;
316327
}
328+
317329
.expand-button:hover {
318330
width: 24vh;
319331
border-radius: 8vh;
320332
border: 3px solid white;
321333
background-color: white;
322334
color: black;
323335
}
336+
324337
.expand-button:hover i {
325338
color: black;
326339
transform: translateY(-0.5rem);
@@ -342,7 +355,7 @@ video {
342355

343356
#launch-button {
344357
height: 8vh;
345-
width: 16vh;
358+
width: 20vh;
346359
background-color: rgba(0, 0, 0, 0);
347360
border: 2px solid white;
348361
color: white;
@@ -357,15 +370,17 @@ video {
357370
cursor: pointer;
358371
}
359372

360-
#launch-button:hover, .launch-button-activated {
373+
#launch-button:hover,
374+
.launch-button-activated {
361375
width: 8vh !important;
362376
border-radius: 100%;
363377
box-shadow: 0px 0px 12px 1px white;
364378
border: 0px;
365379
background-color: white !important;
366380
}
367381

368-
#launch-button:hover i, .launch-button-activated i {
382+
#launch-button:hover i,
383+
.launch-button-activated i {
369384
color: black;
370385
}
371386

@@ -388,7 +403,8 @@ video {
388403

389404
/* BUTTONS */
390405

391-
#back-button-container, #close-button-container {
406+
#back-button-container,
407+
#close-button-container {
392408
position: absolute;
393409
opacity: 0;
394410
z-index: 999;
@@ -496,6 +512,7 @@ video {
496512
margin-right: auto;
497513
padding: 0;
498514
z-index: -10;
515+
background: url('../img/design.png') center center / cover no-repeat;
499516
}
500517

501518
@media (max-aspect-ratio: 16/9) {
@@ -581,7 +598,8 @@ video {
581598
animation: org-img-anim-3 1s ease-in-out infinite;
582599
}
583600

584-
#org-img-3, #org-img-2 {
601+
#org-img-3,
602+
#org-img-2 {
585603
clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
586604
}
587605

@@ -603,7 +621,8 @@ video {
603621
position: relative;
604622
}
605623

606-
.org-border:before, .org-border:after {
624+
.org-border:before,
625+
.org-border:after {
607626
content: '';
608627
display: block;
609628
position: absolute;
@@ -781,14 +800,17 @@ video {
781800
pointer-events: all;
782801
}
783802

784-
.code-image, .code-hover, .art-hover {
803+
.code-image,
804+
.code-hover,
805+
.art-hover {
785806
height: 100%;
786807
width: 100%;
787808
margin: auto;
788809
vertical-align: middle;
789810
}
790811

791-
.code-hover, .art-hover {
812+
.code-hover,
813+
.art-hover {
792814
position: absolute;
793815
pointer-events: none;
794816
background-color: #55555555;
@@ -807,14 +829,16 @@ video {
807829
line-height: normal;
808830
}
809831

810-
.code-image-container, .art-image-container {
832+
.code-image-container,
833+
.art-image-container {
811834
position: relative;
812835
cursor: pointer;
813836
border-radius: 10px;
814837
border: 3px solid transparent;
815838
}
816839

817-
.code-image-container:hover .code-hover, .art-image-container:hover .art-hover {
840+
.code-image-container:hover .code-hover,
841+
.art-image-container:hover .art-hover {
818842
opacity: 1;
819843
}
820844

js/mobile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $(document).ready(() => {
9999
$('#launch-button').hover(function () {
100100
setTimeout(() => {
101101
if ($('#launch-button:hover').length > 0) {
102-
$('#launch-button').html(`<i class="fas fa-rocket"></i>`)
102+
$('#launch-button').html(`<i class="icon-rocket"></i>`)
103103
}
104104
}, 100);
105105
}, function () {

0 commit comments

Comments
 (0)