page.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. @font-face {
  2. font-family: 'inconsolata';
  3. src: url('files/inconsolata.woff') format('woff');
  4. font-weight: normal;
  5. font-style: normal;
  6. }
  7. body {
  8. margin: 30px 20px;
  9. color: #555;
  10. font-family: 'inconsolata';
  11. font-size: 15px;
  12. line-height: 18px;
  13. overflow: auto;
  14. }
  15. a {
  16. color: #1184CE;
  17. }
  18. h1 {
  19. color: #333;
  20. font-size: 25px;
  21. font-weight: normal;
  22. margin-top: 10px;
  23. }
  24. h2 {
  25. color: #4B0;
  26. font-size: 18px;
  27. font-weight: normal;
  28. margin-top: 40px;
  29. }
  30. h3 {
  31. color: #000;
  32. font-size: 16px;
  33. font-weight: normal;
  34. margin-top: 30px;
  35. }
  36. div {
  37. /* padding-left: 30px; */
  38. margin-bottom: 20px;
  39. }
  40. div.desc {
  41. padding-left: 0px;
  42. }
  43. pre, code {
  44. margin-top: 20px;
  45. margin-bottom: 20px;
  46. }
  47. code {
  48. display: block;
  49. width: -webkit-calc( 100% - 40px );
  50. width: -moz-calc( 100% - 40px );
  51. width: calc( 100% - 40px );
  52. padding: 20px;
  53. white-space: pre-wrap;
  54. background-color: #f9f9f9;
  55. overflow: auto;
  56. }
  57. th {
  58. padding: 10px;
  59. text-decoration: underline;
  60. }
  61. td {
  62. text-align: center;
  63. }
  64. table code {
  65. padding: 2px;
  66. margin: 0px;
  67. width: auto;
  68. }
  69. strong {
  70. color: #000;
  71. font-weight: normal;
  72. }
  73. #button {
  74. position: fixed;
  75. top: 20px;
  76. right: 20px;
  77. padding: 8px;
  78. color: #fff;
  79. background-color: #555;
  80. opacity: 0.5;
  81. }
  82. #button:hover {
  83. cursor: pointer;
  84. opacity: 1;
  85. }
  86. a.permalink {
  87. float: right;
  88. margin-left: 5px;
  89. }