You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
3.3 KiB

7 years ago
7 years ago
7 years ago
  1. /**********************************************************************************
  2. *
  3. * Copyright (C) 2017 MuK IT GmbH
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. **********************************************************************************/
  19. .o_preview_viewerjs,
  20. .o_preview_viewerjs iframe {
  21. position: absolute;
  22. display: block;
  23. width: 100%;
  24. height: 100%;
  25. }
  26. .o_preview_pdfjs,
  27. .o_preview_pdfjs iframe {
  28. position: absolute;
  29. display: block;
  30. width: 100%;
  31. height: 100%;
  32. }
  33. .o_preview_unsupported {
  34. padding: 20px 30px 20px 30px;
  35. .o_preview_unsupported_body {
  36. padding-top: 25px;
  37. }
  38. .o_preview_unsupported_info {
  39. padding-bottom: 15px;
  40. }
  41. .o_preview_unsupported_icon {
  42. padding-top: 15px;
  43. }
  44. .o_preview_unsupported_table > tbody > tr {
  45. border-top: 1px solid rgb(221, 221, 221);
  46. }
  47. .o_preview_unsupported_table > tbody > tr:first-child {
  48. border-top: 0;
  49. }
  50. .o_preview_unsupported_table > tbody > tr > td {
  51. border-top: 0;
  52. }
  53. .o_preview_unsupported_download {
  54. padding-top: 25px;
  55. padding-bottom: 5px;
  56. }
  57. }
  58. /* Based on a CodePen Snippet by Dave McCarthy */
  59. .loader {
  60. height: 20px;
  61. width: 250px;
  62. position: absolute;
  63. top: 0;
  64. bottom: 0;
  65. left: 0;
  66. right: 0;
  67. margin: auto;
  68. .loader--dot {
  69. animation-name: loader;
  70. animation-timing-function: ease-in-out;
  71. animation-duration: 3s;
  72. animation-iteration-count: infinite;
  73. height: 20px;
  74. width: 20px;
  75. border-radius: 100%;
  76. background-color: black;
  77. position: absolute;
  78. border: 2px solid white;
  79. }
  80. .loader--dot:first-child {
  81. background-color: #8cc759;
  82. animation-delay: 0.5s;
  83. }
  84. .loader--dot:nth-child(2) {
  85. background-color: #8c6daf;
  86. animation-delay: 0.4s;
  87. }
  88. .loader--dot:nth-child(3) {
  89. background-color: #ef5d74;
  90. animation-delay: 0.3s;
  91. }
  92. .loader--dot:nth-child(4) {
  93. background-color: #f9a74b;
  94. animation-delay: 0.2s;
  95. }
  96. .loader--dot:nth-child(5) {
  97. background-color: #60beeb;
  98. animation-delay: 0.1s;
  99. }
  100. .loader--dot:nth-child(6) {
  101. background-color: #fbef5a;
  102. animation-delay: 0s;
  103. }
  104. .loader--text {
  105. position: absolute;
  106. top: 200%;
  107. left: 0;
  108. right: 0;
  109. width: 4rem;
  110. margin: auto;
  111. }
  112. .loader--text:after {
  113. content: "Loading";
  114. font-weight: bold;
  115. animation-name: loading-text;
  116. animation-duration: 3s;
  117. animation-iteration-count: infinite;
  118. }
  119. @keyframes loader {
  120. 15% {
  121. transform: translateX(0);
  122. }
  123. 45% {
  124. transform: translateX(230px);
  125. }
  126. 65% {
  127. transform: translateX(230px);
  128. }
  129. 95% {
  130. transform: translateX(0);
  131. }
  132. }
  133. @keyframes loading-text {
  134. 0% {
  135. content: "Loading";
  136. }
  137. 25% {
  138. content: "Loading.";
  139. }
  140. 50% {
  141. content: "Loading..";
  142. }
  143. 75% {
  144. content: "Loading...";
  145. }
  146. }
  147. }