index.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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:transparent;
  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. h1 {
  24. font-weight: normal;
  25. }
  26. a {
  27. color: #bf9dde;
  28. }
  29. #grid {
  30. width: 100%;
  31. height: 100%;
  32. position: fixed;
  33. left: 0px;
  34. bottom: 0px;
  35. z-index: -1;
  36. }
  37. .stretch {
  38. width:100%;
  39. height:100%;
  40. }
  41. /* Offline page */
  42. .offline .interstitial-wrapper {
  43. color: #bf9dde;
  44. font-size: 1em;
  45. line-height: 1.55;
  46. margin: 0 auto;
  47. max-width: 600px;
  48. padding-top: 100px;
  49. width: 100%;
  50. text-shadow: #bf9dde 0 0 10px;
  51. }
  52. .offline .runner-container {
  53. height: 150px;
  54. max-width: 600px;
  55. overflow: hidden;
  56. position: absolute;
  57. top: 35px;
  58. width: 44px;
  59. }
  60. .offline .runner-canvas {
  61. height: 150px;
  62. max-width: 600px;
  63. opacity: 1;
  64. overflow: hidden;
  65. position: absolute;
  66. top: 0;
  67. z-index: 2;
  68. }
  69. .offline .controller {
  70. background: rgba(247, 247, 247, .1);
  71. height: 100vh;
  72. left: 0;
  73. position: absolute;
  74. top: 0;
  75. width: 100vw;
  76. z-index: 1;
  77. }
  78. #offline-resources {
  79. display: none;
  80. }
  81. @media (max-width: 420px) {
  82. .suggested-left > #control-buttons, .suggested-right > #control-buttons {
  83. float: none;
  84. }
  85. .snackbar {
  86. left: 0;
  87. bottom: 0;
  88. width: 100%;
  89. border-radius: 0;
  90. }
  91. }
  92. @media (max-height: 350px) {
  93. h1 {
  94. margin: 0 0 15px;
  95. }
  96. .icon-offline {
  97. margin: 0 0 10px;
  98. }
  99. .interstitial-wrapper {
  100. margin-top: 5%;
  101. }
  102. .nav-wrapper {
  103. margin-top: 30px;
  104. }
  105. }
  106. @media (min-width: 600px) and (max-width: 736px) and (orientation: landscape) {
  107. .offline .interstitial-wrapper {
  108. margin-left: 0;
  109. margin-right: 0;
  110. }
  111. }
  112. @media (min-width: 420px) and (max-width: 736px) and (min-height: 240px) and (max-height: 420px) and (orientation:landscape) {
  113. .interstitial-wrapper {
  114. margin-bottom: 100px;
  115. }
  116. }
  117. @media (min-height: 240px) and (orientation: landscape) {
  118. .offline .interstitial-wrapper {
  119. margin-bottom: 90px;
  120. }
  121. .icon-offline {
  122. margin-bottom: 20px;
  123. }
  124. }
  125. @media (max-height: 320px) and (orientation: landscape) {
  126. .icon-offline {
  127. margin-bottom: 0;
  128. }
  129. .offline .runner-container {
  130. top: 10px;
  131. }
  132. }
  133. @media (max-width: 240px) {
  134. .interstitial-wrapper {
  135. overflow: inherit;
  136. padding: 0 8px;
  137. }
  138. }