index.css 2.4 KB

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