style.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. body {
  2. max-width: 800px;
  3. margin: auto;
  4. padding: .2em;
  5. line-height: 1.5em;
  6. }
  7. /* Table of Contents, if wanted
  8. Add to yaml:
  9. output:
  10. blogdown::html_page:
  11. toc: true
  12. */
  13. #TableOfContents, #TOC {
  14. border: 1px solid #eee;
  15. border-radius: 5px;
  16. }
  17. /* Header and Footer */
  18. .menu li { display: inline-block; }
  19. .article-meta, .menu a {
  20. text-decoration: none;
  21. background: #556B2F;
  22. color: #FFF;
  23. padding: 5px;
  24. font-size: .7em;
  25. border-radius: 5px;
  26. }
  27. .terms { font-size: .9em; }
  28. .menu, .article-meta, footer { text-align: center; }
  29. .title { font-size: 1.1em; }
  30. footer a { text-decoration: none; }
  31. .pull-left {
  32. float: left
  33. }
  34. .pull-right {
  35. float: right
  36. }
  37. a {
  38. color: #613DC1;
  39. text-decoration: none;
  40. }
  41. a:hover {
  42. text-decoration: underline;
  43. }
  44. /* Adjust background at your leisure! */
  45. header {
  46. position: relative;
  47. width: 100%;
  48. height: 1.75rem;
  49. font-family: "Lucida Console" , "Liberation Mono";
  50. font-size: .875rem;
  51. /*background: #613DC1;*/
  52. background: linear-gradient(to right, green , blue ,green);
  53. border-bottom: 1px solid #000;
  54. }
  55. header ul,
  56. header ol {
  57. margin: 0;
  58. padding: 0;
  59. list-style: none
  60. }
  61. header nav {
  62. padding: 0 0.5rem
  63. }
  64. header a {
  65. color: #fff;
  66. line-height: 1.75rem;
  67. padding: 0 0.5rem
  68. }
  69. header a:hover,
  70. header .current a {
  71. color: #fff
  72. }
  73. /* Code Boxes */
  74. pre {
  75. border: 1px solid #ddd;
  76. box-shadow: 5px 5px 5px #eee;
  77. background: #f8f8f8;
  78. padding: 1em;
  79. overflow-x: auto;
  80. }
  81. code { background: #f9f9f9; }
  82. pre code { background: none; }
  83. /* Images, tables, misc. */
  84. img, iframe, video { max-width: 100%; }
  85. main { hyphens: auto; }
  86. blockquote {
  87. background: #f9f9f9;
  88. border-left: 5px solid #ccc;
  89. padding: 3px 1em 3px;
  90. }
  91. table {
  92. margin: auto;
  93. border-top: 1px solid #666;
  94. border-bottom: 1px solid #666;
  95. }
  96. table thead th { border-bottom: 1px solid #ddd; }
  97. th, td { padding: 5px; }
  98. tr:nth-child(even) { background: #eee }