Skip to content

Commit 10555b9

Browse files
committed
Merge pull request #228 from codeschool/404_page_styles
404 page styles
2 parents df837a8 + b5d0479 commit 10555b9

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

client/stylesheets/structures/_errorHero.sass

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
// .errorHero
1111
// .errorHero-img
12+
// .errorHero-img-boat
13+
// .errorHero-img-ocean
1214
//
1315
// *************************************
1416
@@ -31,9 +33,42 @@
3133
// ----- Image ----- //
3234
3335
.errorHero-img
36+
$errorHero-img-width: 90vw
3437
bottom: 0
3538
height: calc(100vh - #{$site-header-height-l} - #{$site-footer-height})
36-
left: 4vw // FIXME: Magic number!
39+
left: (100 - $errorHero-img-width) / 2
3740
max-width: none
3841
position: absolute
39-
width: 90vw
42+
width: $errorHero-img-width
43+
44+
@media screen and (min-aspect-ratio: 3 / 2)
45+
$errorHero-img-width-l: 70vw
46+
left: (100 - $errorHero-img-width-l) / 2
47+
width: $errorHero-img-width-l
48+
49+
// Scaffolding
50+
51+
// Scaffolding: Boat
52+
53+
.errorHero-img-boat
54+
animation: errorHero-img-boat 1.25s ease-in-out infinite alternate
55+
transform-origin: center
56+
57+
// Scaffolding: Ocean
58+
59+
.errorHero-img-ocean
60+
animation: slideLeft1of6 2.5s linear infinite
61+
62+
// ------------------------------------
63+
// Animations
64+
// ------------------------------------
65+
66+
// ----- Image ----- //
67+
68+
// Boat
69+
70+
@-webkit-keyframes errorHero-img-boat
71+
from
72+
transform: translateY(-$errorHero-bob-offset) rotate(-2deg)
73+
to
74+
transform: translateY($errorHero-bob-offset) rotate(1deg)

0 commit comments

Comments
 (0)