main.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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(
  16. url(default_100_percent/offline/100-error-offline.png) 1x,
  17. url(default_200_percent/offline/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,
  64. .suggested-right > #control-buttons {
  65. float: none;
  66. }
  67. .snackbar {
  68. left: 0;
  69. bottom: 0;
  70. width: 100%;
  71. border-radius: 0;
  72. }
  73. }
  74. @media (max-height: 350px) {
  75. h1 {
  76. margin: 0 0 15px;
  77. }
  78. .icon-offline {
  79. margin: 0 0 10px;
  80. }
  81. .interstitial-wrapper {
  82. margin-top: 5%;
  83. }
  84. .nav-wrapper {
  85. margin-top: 30px;
  86. }
  87. }
  88. @media (min-width: 600px) and (max-width: 736px) and (orientation: landscape) {
  89. .offline .interstitial-wrapper {
  90. margin-left: 0;
  91. margin-right: 0;
  92. }
  93. }
  94. @media (min-width: 420px) and (max-width: 736px) and
  95. (min-height: 240px) and (max-height: 420px) and
  96. (orientation:landscape) {
  97. .interstitial-wrapper {
  98. margin-bottom: 100px;
  99. }
  100. }
  101. @media (min-height: 240px) and (orientation: landscape) {
  102. .offline .interstitial-wrapper {
  103. margin-bottom: 90px;
  104. }
  105. .icon-offline {
  106. margin-bottom: 20px;
  107. }
  108. }
  109. @media (max-height: 320px) and (orientation: landscape) {
  110. .icon-offline {
  111. margin-bottom: 0;
  112. }
  113. .offline .runner-container {
  114. top: 10px;
  115. }
  116. }
  117. @media (max-width: 240px) {
  118. button {
  119. padding-left: 12px;
  120. padding-right: 12px;
  121. }
  122. .interstitial-wrapper {
  123. overflow: inherit;
  124. padding: 0 8px;
  125. }
  126. }
  127. @media (max-width: 120px) {
  128. button {
  129. width: auto;
  130. }
  131. }