demo.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. width: 128px;
  70. height: 40px;
  71. font-size: 14px;
  72. margin: 0 0 10px;
  73. cursor: pointer;
  74. outline: none;
  75. }
  76. summary {
  77. outline: none;
  78. cursor: pointer;
  79. margin-bottom: 10px;
  80. }
  81. /* github-corner */
  82. .github-corner:hover .octo-arm {
  83. animation: octocat-wave 560ms ease-in-out
  84. }
  85. @keyframes octocat-wave {
  86. 0%,
  87. 100% {
  88. transform: rotate(0)
  89. }
  90. 20%,
  91. 60% {
  92. transform: rotate(-25deg)
  93. }
  94. 40%,
  95. 80% {
  96. transform: rotate(10deg)
  97. }
  98. }
  99. @media (max-width:500px) {
  100. .github-corner:hover .octo-arm {
  101. animation: none
  102. }
  103. .github-corner .octo-arm {
  104. animation: octocat-wave 560ms ease-in-out
  105. }
  106. }
  107. /* modernizr */
  108. .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; }
  109. .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; }