demo.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. body {
  2. max-width: 700px;
  3. margin: 0 auto;
  4. padding: 45px 10px;
  5. }
  6. .example {
  7. position: relative;
  8. margin: 15px 0 0;
  9. padding: 39px 19px 14px;
  10. background-color: #fff;
  11. border-radius: 4px 4px 0 0;
  12. border: 1px solid #ddd;
  13. }
  14. @media (max-width:500px) {
  15. .example {
  16. padding: 39px 10px 14px;
  17. }
  18. }
  19. .example:after {
  20. content: "Example";
  21. position: absolute;
  22. top: 0;
  23. left: 0;
  24. padding: 2px 8px;
  25. font-size: 12px;
  26. font-weight: bold;
  27. background-color: #f5f5f5;
  28. color: #9da0a4;
  29. border-radius: 4px 0 4px 0;
  30. }
  31. .highlight {
  32. position: relative;
  33. border-radius: 0 0 4px 4px;
  34. border: 1px solid #ddd;
  35. border-top: none;
  36. }
  37. .highlight.highlight-middle {
  38. margin: 0;
  39. border-radius: 0;
  40. }
  41. .highlight-html:after {
  42. content: "HTML";
  43. position: absolute;
  44. top: 0;
  45. right: 0;
  46. padding: 2px 8px;
  47. font-size: 12px;
  48. font-weight: bold;
  49. background-color: #f5f5f5;
  50. color: #555;
  51. border-radius: 0 0 0 4px;
  52. }
  53. .highlight-js:after {
  54. content: "js";
  55. position: absolute;
  56. top: 0;
  57. right: 0;
  58. padding: 2px 8px;
  59. font-size: 12px;
  60. font-weight: bold;
  61. background-color: #f5f5f5;
  62. color: #555;
  63. border-radius: 0 0 0 4px;
  64. }
  65. .btn {
  66. background: #fff;
  67. border: 1px solid #ddd;
  68. border-radius: 4px;
  69. height: 40px;
  70. font-size: 14px;
  71. margin: 0 0 10px;
  72. cursor: pointer;
  73. outline: none;
  74. }
  75. summary {
  76. outline: none;
  77. cursor: pointer;
  78. margin-bottom: 10px;
  79. }
  80. #events {
  81. font-size: 12px;
  82. margin-top: 5px;
  83. height: 120px;
  84. overflow: scroll;
  85. }
  86. #events p {
  87. margin: 0;
  88. line-height: 17px;
  89. }
  90. /* github-corner */
  91. .github-corner:hover .octo-arm {
  92. animation: octocat-wave 560ms ease-in-out
  93. }
  94. @keyframes octocat-wave {
  95. 0%,
  96. 100% {
  97. transform: rotate(0)
  98. }
  99. 20%,
  100. 60% {
  101. transform: rotate(-25deg)
  102. }
  103. 40%,
  104. 80% {
  105. transform: rotate(10deg)
  106. }
  107. }
  108. @media (max-width:500px) {
  109. .github-corner:hover .octo-arm {
  110. animation: none
  111. }
  112. .github-corner .octo-arm {
  113. animation: octocat-wave 560ms ease-in-out
  114. }
  115. }
  116. /* modernizr */
  117. .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; }
  118. .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; }