global_green.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*
  2. * This CSS is released under Creative Commons Zero 1.0 Universal license:
  3. * https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
  4. */
  5. /* this green style was experimental, but i scrapped it before publishing
  6. the first canoeboot website. i opted for a lighter theme instead. */
  7. .specs
  8. {
  9. float: right;
  10. }
  11. :not(p)
  12. {
  13. max-width: 85em;
  14. margin: 0 auto;
  15. }
  16. @media (min-width:90em)
  17. {
  18. html
  19. {
  20. font-size: 1.05em;
  21. }
  22. }
  23. html
  24. {
  25. background: #143232;
  26. color: #eee;
  27. font-family: sans-serif;
  28. line-height: 1.4;
  29. }
  30. hr{display:none;}
  31. ul,code,pre, #TOC, a:hover
  32. {
  33. background: #102121;
  34. border-radius:0.3em;
  35. }
  36. #TOC{
  37. min-width:25%;
  38. float:left;
  39. margin-right:1.1em;
  40. margin-bottom:1em;
  41. }
  42. ul{padding-left:1em}
  43. a
  44. {
  45. color: #cfc;
  46. }
  47. img,video,iframe,pre
  48. {
  49. max-width: 100%;
  50. overflow: auto;
  51. }
  52. .title>*, header ul>li, .nav ul>li,
  53. #footer ul>li, .h:hover>*
  54. {
  55. display: inline;
  56. margin: 0.7%;
  57. text-align :center;
  58. }
  59. #footer{margin-top:1em}
  60. .title>*, span.date
  61. {
  62. display: block;
  63. }
  64. html, ul, #TOC
  65. {
  66. padding: 1em;
  67. }
  68. .date, .author, .h a
  69. {
  70. display: none;
  71. }
  72. .f, .f *
  73. {
  74. position: fixed;
  75. max-width: 100%;
  76. max-height: 100%;
  77. top: 50%;
  78. left: 50%;
  79. }
  80. .f *
  81. {
  82. transform: translate(-50%, -50%);
  83. }
  84. .f
  85. {
  86. display: none;
  87. top: 0;
  88. left: 0;
  89. width: 100%;
  90. height: 100%;
  91. background: rgba(0, 0, 0, 0.8);
  92. }
  93. *:focus + .f
  94. {
  95. display: block;
  96. }
  97. img
  98. {
  99. cursor: pointer;
  100. }
  101. .l,.r {
  102. max-width:40%;
  103. margin:1em;
  104. }
  105. .r {
  106. float: right;
  107. }
  108. .l {
  109. float: left;
  110. }
  111. .p {
  112. max-width: 13em;
  113. }
  114. span.fcc
  115. {
  116. background: #fcc;
  117. position: fixed;
  118. bottom: 0;
  119. left: 0;
  120. right: 0;
  121. font-size: 0.9em;
  122. }
  123. .fcc p {padding:0; margin: 0}
  124. header ul, #footer ul
  125. {
  126. text-align:center;
  127. margin-top:2em;
  128. margin-bottom:2em;
  129. }
  130. @media (min-width:60em)
  131. {
  132. .title-logo{display:none}
  133. div.title,h1.title {
  134. background:url("/favicon.ico") no-repeat;
  135. background-size:auto 99%;
  136. min-height:3em
  137. }
  138. div.title {background-position:right}
  139. h1.title {padding:0 4em; font-size:2.5em; font-weight:normal;}
  140. #TOC
  141. {
  142. float: left;
  143. margin: 1em;
  144. min-width: 25%;
  145. }
  146. }