index.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /* Copyright 2013 The Chromium Authors. All rights reserved.
  2. * Use of this source code is governed by a BSD-style license that can be
  3. * found in the LICENSE file. */
  4. html, body {
  5. padding: 0;
  6. margin: 0;
  7. width: 100%;
  8. height: 100%;
  9. background-color: #000;
  10. }
  11. .icon {
  12. -webkit-user-select: none;
  13. user-select: none;
  14. display: inline-block;
  15. }
  16. .icon-offline {
  17. content: -webkit-image-set( url(assets/default_100_percent/100-error-offline.png) 1x, url(assets/default_200_percent/200-error-offline.png) 2x);
  18. position: relative;
  19. }
  20. .hidden {
  21. display: none;
  22. }
  23. /* Offline page */
  24. .offline .interstitial-wrapper {
  25. color: #2b2b2b;
  26. font-size: 1em;
  27. line-height: 1.55;
  28. margin: 0 auto;
  29. max-width: 600px;
  30. padding-top: 100px;
  31. width: 100%;
  32. }
  33. .offline .runner-container {
  34. height: 150px;
  35. max-width: 600px;
  36. overflow: hidden;
  37. position: absolute;
  38. top: 35px;
  39. width: 44px;
  40. }
  41. .offline .runner-canvas {
  42. height: 150px;
  43. max-width: 600px;
  44. opacity: 1;
  45. overflow: hidden;
  46. position: absolute;
  47. top: 0;
  48. z-index: 2;
  49. }
  50. .offline .controller {
  51. background: rgba(247, 247, 247, .1);
  52. height: 100vh;
  53. left: 0;
  54. position: absolute;
  55. top: 0;
  56. width: 100vw;
  57. z-index: 1;
  58. }
  59. #offline-resources {
  60. display: none;
  61. }
  62. @media (max-width: 420px) {
  63. .suggested-left > #control-buttons, .suggested-right > #control-buttons {
  64. float: none;
  65. }
  66. .snackbar {
  67. left: 0;
  68. bottom: 0;
  69. width: 100%;
  70. border-radius: 0;
  71. }
  72. }
  73. @media (max-height: 350px) {
  74. h1 {
  75. margin: 0 0 15px;
  76. }
  77. .icon-offline {
  78. margin: 0 0 10px;
  79. }
  80. .interstitial-wrapper {
  81. margin-top: 5%;
  82. }
  83. .nav-wrapper {
  84. margin-top: 30px;
  85. }
  86. }
  87. @media (min-width: 600px) and (max-width: 736px) and (orientation: landscape) {
  88. .offline .interstitial-wrapper {
  89. margin-left: 0;
  90. margin-right: 0;
  91. }
  92. }
  93. @media (min-width: 420px) and (max-width: 736px) and (min-height: 240px) and (max-height: 420px) and (orientation:landscape) {
  94. .interstitial-wrapper {
  95. margin-bottom: 100px;
  96. }
  97. }
  98. @media (min-height: 240px) and (orientation: landscape) {
  99. .offline .interstitial-wrapper {
  100. margin-bottom: 90px;
  101. }
  102. .icon-offline {
  103. margin-bottom: 20px;
  104. }
  105. }
  106. @media (max-height: 320px) and (orientation: landscape) {
  107. .icon-offline {
  108. margin-bottom: 0;
  109. }
  110. .offline .runner-container {
  111. top: 10px;
  112. }
  113. }
  114. @media (max-width: 240px) {
  115. .interstitial-wrapper {
  116. overflow: inherit;
  117. padding: 0 8px;
  118. }
  119. }