demo.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. body {
  2. max-width: 700px;
  3. margin: 0 auto;
  4. padding: 45px 10px;
  5. position: relative;
  6. }
  7. .show-dialog {
  8. cursor: pointer;
  9. border: 1px solid #f00;
  10. width: 120px;
  11. height: 40px;
  12. line-height: 40px!important;
  13. text-align: center;
  14. border-radius: 4px;
  15. }
  16. .float-dplayer {
  17. display: none;
  18. width: 100%;
  19. height: 100%;
  20. background: rgba(0, 0, 0, .3);
  21. position: fixed;
  22. top: 0;
  23. left: 0;
  24. z-index: 99;
  25. }
  26. .dplayer-container {
  27. width: 700px;
  28. height: 358px;
  29. border: 1px solid #f00;
  30. position: absolute;
  31. top: 50%;
  32. left: 50%;
  33. transform: translate(-50%, -50%);
  34. }
  35. .close-dialog {
  36. position: absolute;
  37. right: 40px;
  38. top: 10px;
  39. font-size: 40px!important;
  40. font-weight: normal!important;
  41. color: #fff;
  42. cursor: pointer;
  43. z-index: 100;
  44. }
  45. .example {
  46. position: relative;
  47. margin: 15px 0 0;
  48. padding: 39px 19px 14px;
  49. background-color: #fff;
  50. border-radius: 4px 4px 0 0;
  51. border: 1px solid #ddd;
  52. }
  53. @media (max-width:500px) {
  54. .example {
  55. padding: 39px 10px 14px;
  56. }
  57. }
  58. .example:after {
  59. content: "Example";
  60. position: absolute;
  61. top: 0;
  62. left: 0;
  63. padding: 2px 8px;
  64. font-size: 12px;
  65. font-weight: bold;
  66. background-color: #f5f5f5;
  67. color: #9da0a4;
  68. border-radius: 4px 0 4px 0;
  69. }
  70. .highlight {
  71. position: relative;
  72. border-radius: 0 0 4px 4px;
  73. border: 1px solid #ddd;
  74. border-top: none;
  75. }
  76. .highlight.highlight-middle {
  77. margin: 0;
  78. border-radius: 0;
  79. }
  80. .highlight-html:after {
  81. content: "HTML";
  82. position: absolute;
  83. top: 0;
  84. right: 0;
  85. padding: 2px 8px;
  86. font-size: 12px;
  87. font-weight: bold;
  88. background-color: #f5f5f5;
  89. color: #555;
  90. border-radius: 0 0 0 4px;
  91. }
  92. .highlight-js:after {
  93. content: "js";
  94. position: absolute;
  95. top: 0;
  96. right: 0;
  97. padding: 2px 8px;
  98. font-size: 12px;
  99. font-weight: bold;
  100. background-color: #f5f5f5;
  101. color: #555;
  102. border-radius: 0 0 0 4px;
  103. }
  104. .btn {
  105. background: #fff;
  106. border: 1px solid #ddd;
  107. border-radius: 4px;
  108. height: 40px;
  109. font-size: 14px;
  110. margin: 0 0 10px;
  111. cursor: pointer;
  112. outline: none;
  113. }
  114. summary {
  115. outline: none;
  116. cursor: pointer;
  117. margin-bottom: 10px;
  118. }
  119. #events {
  120. font-size: 12px;
  121. margin-top: 5px;
  122. height: 120px;
  123. overflow: scroll;
  124. }
  125. #events p {
  126. margin: 0;
  127. line-height: 17px;
  128. }
  129. /* github-corner */
  130. .github-corner:hover .octo-arm {
  131. animation: octocat-wave 560ms ease-in-out
  132. }
  133. @keyframes octocat-wave {
  134. 0%,
  135. 100% {
  136. transform: rotate(0)
  137. }
  138. 20%,
  139. 60% {
  140. transform: rotate(-25deg)
  141. }
  142. 40%,
  143. 80% {
  144. transform: rotate(10deg)
  145. }
  146. }
  147. @media (max-width:500px) {
  148. .github-corner:hover .octo-arm {
  149. animation: none
  150. }
  151. .github-corner .octo-arm {
  152. animation: octocat-wave 560ms ease-in-out
  153. }
  154. }
  155. /* modernizr */
  156. .adownload li.adownload{ color: green; }.canvas li.canvas{ color: green; }.cssanimations li.cssanimations{ color: green; }.csstransforms li.csstransforms{ color: green; }.documentfragment li.documentfragment{ color: green; }.fullscreen li.fullscreen{ color: green; }.localstorage li.localstorage{ color: green; }.svg li.svg{ color: green; }.texttrackapi li.texttrackapi{ color: green; }.track li.track{ color: green; }.todataurljpeg li.todataurljpeg{ color: green; }.todataurlpng li.todataurlpng{ color: green; }.todataurlwebp li.todataurlwebp{ color: green; }.video li.video{ color: green; }.websockets li.websockets{ color: green; }.setclasses li.setclasses{ color: green; }
  157. .no-adownload li.adownload{ color: red; }.no-canvas li.canvas{ color: red; }.no-cssanimations li.cssanimations{ color: red; }.no-csstransforms li.csstransforms{ color: red; }.no-documentfragment li.documentfragment{ color: red; }.no-fullscreen li.fullscreen{ color: red; }.no-localstorage li.localstorage{ color: red; }.no-svg li.svg{ color: red; }.no-texttrackapi li.texttrackapi{ color: red; }.no-track li.track{ color: red; }.no-todataurljpeg li.todataurljpeg{ color: red; }.no-todataurlpng li.todataurlpng{ color: red; }.no-todataurlwebp li.todataurlwebp{ color: red; }.no-video li.video{ color: red; }.no-websockets li.websockets{ color: red; }.no-setclasses li.setclasses{ color: red; }