diff options
author | Humberto Alfonso Díaz <humberto.alfonso@asvito.es> | 2019-12-10 14:24:43 +0100 |
---|---|---|
committer | Lorenzo Tilve <ltilve@igalia.com> | 2020-02-04 19:03:18 +0100 |
commit | 9a47d56486ca9d6852613e98582bba8257b08d81 (patch) | |
tree | 6b9efd80f6a3f0c7ec1a57138a763d2a7d021067 /src/styles | |
parent | 427a12e11932716a87741686e558a0ad8b49bb03 (diff) |
BUGFIX Add landscape/portrait support
Diffstat (limited to 'src/styles')
-rw-r--r-- | src/styles/landscape.scss | 22 | ||||
-rw-r--r-- | src/styles/main.scss | 8 | ||||
-rw-r--r-- | src/styles/portrait.scss | 19 |
3 files changed, 40 insertions, 9 deletions
diff --git a/src/styles/landscape.scss b/src/styles/landscape.scss index b7e1bf7..58185de 100644 --- a/src/styles/landscape.scss +++ b/src/styles/landscape.scss @@ -3,4 +3,26 @@ html { background-image: url('../images/horizontal_background.png'); } + + body { + .speedometertop { + display: none; + } + + .speedometerbottom { + display: block; + } + + .inforow { + margin-top: 0 !important; + } + + .car { + .warning { + left: 40%; + top: 50%; + animation: blink 3s linear infinite; + } + } + } }
\ No newline at end of file diff --git a/src/styles/main.scss b/src/styles/main.scss index bb0cd5a..e3fa602 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -21,14 +21,6 @@ body { .speed { font-size: 8rem; } - - .car { - .warning { - left: 35%; - top: 50%; - animation: blink 3s linear infinite; - } - } .log { display: none; diff --git a/src/styles/portrait.scss b/src/styles/portrait.scss index f8db5e4..a123e32 100644 --- a/src/styles/portrait.scss +++ b/src/styles/portrait.scss @@ -5,6 +5,23 @@ background-position: top center; background-repeat: no-repeat; background-color: transparent; - height: 992px; + } + + body { + .speedometertop { + display: block; + } + + .speedometerbottom { + display: none; + } + + .car { + .warning { + left: 35%; + top: 50%; + animation: blink 3s linear infinite; + } + } } }
\ No newline at end of file |