index.css 2.3 KB

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