Path: blob/main/projects/chrome-dino/style.css
1835 views
/* Copyright 2013 The Chromium Authors. All rights reserved.1* Use of this source code is governed by a BSD-style license that can be2* found in the LICENSE file. */34html, body {5padding: 0;6margin: 0;7width: 100%;8height: 100%;9}1011.icon {12-webkit-user-select: none;13user-select: none;14display: inline-block;15}161718.hidden {19display: none;20}212223/* Offline page */24.offline {25transition: filter 1.5s cubic-bezier(0.65, 0.05, 0.36, 1),26background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);27}2829.offline body {30transition: background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);31}32.offline.inverted {33background-color: #000;34filter: invert(1);35}3637.offline.inverted body {38background-color: #fff;39}4041.offline .interstitial-wrapper {42color: #2b2b2b;43font-size: 0.8em;44line-height: 1.55;45margin: 0 auto;46max-width: 600px;47padding-top: 150px;48width: 100%;49}5051.offline .runner-container {52direction: ltr;53height: 150px;54max-width: 600px;55overflow: hidden;56position: absolute;57top: 35px;58width: 44px;59}6061.offline .runner-canvas {62height: 150px;63max-width: 600px;64opacity: 1;65overflow: hidden;66position: absolute;67top: 0;68z-index: 10;69}7071.offline .controller {72background: rgba(247, 247, 247, .1);73height: 100vh;74left: 0;75position: absolute;76top: 0;77width: 100vw;78z-index: 1;79}8081#offline-resources {82display: none;83}848586.arcade-mode,87.arcade-mode .runner-container,88.arcade-mode .runner-canvas {89image-rendering: -moz-crisp-edges;90image-rendering: -webkit-crisp-edges;91image-rendering: pixelated;92image-rendering: crisp-edges;93max-width: 100%;94overflow: hidden;95}9697.arcade-mode #buttons,98.arcade-mode #main-content {99opacity: 0;100overflow: hidden;101}102103.arcade-mode .interstitial-wrapper {104height: 100vh;105max-width: 100%;106overflow: hidden;107}108109.arcade-mode .runner-container {110image-rendering: -moz-crisp-edges;111image-rendering: -webkit-crisp-edges;112image-rendering: pixelated;113image-rendering: crisp-edges;114left: 0;115margin: auto;116right: 0;117transform-origin: top center;118transition: transform 250ms cubic-bezier(0.4, 0, 1, 1) 400ms;119z-index: 2;120}121122123@media (prefers-color-scheme: dark) {124125body {126background-color: #000;127}128129.offline .runner-canvas {130filter: invert(1);131}132133.offline.inverted {134background-color: #fff;135filter: invert(1);136}137138.offline.inverted body {139background-color: #fff;140}141142h1{filter: invert(1);}143}144145@media (max-width: 420px) {146.suggested-left > #control-buttons, .suggested-right > #control-buttons {147float: none;148}149.snackbar {150left: 0;151bottom: 0;152width: 100%;153border-radius: 0;154}155}156157@media (max-height: 350px) {158h1 {159margin: 0 0 15px;160}161.icon-offline {162margin: 0 0 10px;163}164.interstitial-wrapper {165margin-top: 5%;166}167.nav-wrapper {168margin-top: 30px;169}170}171172@media (min-width: 600px) and (max-width: 736px) and (orientation: landscape) {173.offline .interstitial-wrapper {174margin-left: 0;175margin-right: 0;176}177}178179@media (min-width: 420px) and (max-width: 736px) and (min-height: 240px) and (max-height: 420px) and (orientation:landscape) {180.interstitial-wrapper {181margin-bottom: 100px;182}183}184185@media (min-height: 240px) and (orientation: landscape) {186.offline .interstitial-wrapper {187margin-bottom: 90px;188}189.icon-offline {190margin-bottom: 20px;191}192}193194@media (max-height: 320px) and (orientation: landscape) {195.icon-offline {196margin-bottom: 0;197}198.offline .runner-container {199top: 10px;200}201}202203@media (max-width: 240px) {204.interstitial-wrapper {205overflow: inherit;206padding: 0 8px;207}208}209210