hyde.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. /*
  2. * __ __
  3. * /\ \ /\ \
  4. * \ \ \___ __ __ \_\ \ __
  5. * \ \ _ `\/\ \/\ \ /'_` \ /'__`\
  6. * \ \ \ \ \ \ \_\ \/\ \_\ \/\ __/
  7. * \ \_\ \_\/`____ \ \___,_\ \____\
  8. * \/_/\/_/`/___/> \/__,_ /\/____/
  9. * /\___/
  10. * \/__/
  11. *
  12. * Designed, built, and released under MIT license by @mdo. Learn more at
  13. * https://github.com/poole/hyde.
  14. */
  15. /*
  16. * Contents
  17. *
  18. * Global resets
  19. * Sidebar
  20. * Container
  21. * Reverse layout
  22. * Themes
  23. */
  24. /*
  25. * Global resets
  26. *
  27. * Update the foundational and global aspects of the page.
  28. * Notice, since we use @media, the size we set here for the font
  29. * will change many elements of the page, since they use 'em' width.
  30. * em - size relative to nearst font size
  31. * rem - "reset" font size, whatever was set for the whole html
  32. * below will effect all rem and the coming ems (until nested).
  33. */
  34. html {
  35. font-family: Roboto, Helvetica, Arial, sans-serif;
  36. }
  37. .sidebar {
  38. text-align: left;
  39. border-color: rgba(0,0,0,.35);
  40. padding: 1rem .1rem;
  41. color: rgba(0,0,0,.5);
  42. background-color: #eee8d5;
  43. background-image: linear-gradient(230deg, #eee8d5 0%, #aa8970 190%);
  44. overflow-y: auto;
  45. overflow-x: hidden;
  46. scrollbar-width: none;
  47. }
  48. .sidebar a {
  49. color: rgba(,0,0,.5);
  50. }
  51. .sidebar-nav {
  52. margin-left: -1em;
  53. padding-left: 1em;
  54. list-style-type: none;
  55. }
  56. .sidebar-icons li {
  57. padding: .5em;
  58. display: inline;
  59. text-decoration: none;
  60. list-style-type: none;
  61. }
  62. /* img { */
  63. /* border-style: solid; */
  64. /* border-width: .15em; */
  65. /* } */
  66. .sidebar-nav h3 {
  67. font-family: "Righteous", serif;
  68. font-weight: normal;
  69. color: #515151;
  70. margin-bottom: 0em;
  71. }
  72. /*
  73. links in sidebar for both formats (narrow and wide)
  74. 1. fonts
  75. 2. no underline for links (interferes with the button effect)
  76. 3. padding for top and bottom is 0em, but 1em for right and left.
  77. */
  78. .sidebar-nav a {
  79. font-family: "Ruda", ariel;
  80. font-size: 1em;
  81. text-decoration: none;
  82. padding: 0em 1em;
  83. }
  84. .sidebar-nav a:hover {
  85. background-color: rgba(0,0,0,.5);
  86. color: #eee8d5;
  87. }
  88. .pagination li {
  89. display: inline;
  90. list-style: none;
  91. text-color: #8B0000;
  92. border-radius: .25rem;
  93. margin: 10px 0;
  94. padding: .5rem;
  95. justify-content: center;
  96. }
  97. .pagination a {
  98. text-color: #8B0000;
  99. }
  100. /*
  101. From here below, style specific for narrow (less than 800px) screens, like phones and tablets.
  102. */
  103. @media (min-width: 800px) {
  104. html {
  105. font-size: 12pt;
  106. }
  107. /*
  108. For wide view, the sidebar:
  109. 1. 15em wide
  110. 2. It is fixed, so it can show by the side of the posts (content) div
  111. 3. height is 100% so it stretches to the length of the posts div
  112. */
  113. .sidebar {
  114. width: 15em;
  115. position: fixed;
  116. height: 100%;
  117. border-right-style: ridge;
  118. border-width: 1em;
  119. }
  120. /*
  121. The owl logo is tricky.
  122. 1. position in percent allows up so use minus, to move a bit above text line.
  123. 2. size of 3.3 seems to align with the "of" in the logo.
  124. */
  125. .sidebar h1 {
  126. color: #8B0000;
  127. padding-bottom: 0em;
  128. margin-right: -1em;
  129. margin-top: 0em;
  130. font-family: Righteous;
  131. word-spacing: 100em;
  132. line-height: 1em;
  133. font-size: 3.5em;
  134. font-weight: normal;
  135. text-transform: capitalize;
  136. /* background-image: url("/taonaw_logo.png"); */
  137. /* background-repeat: no-repeat; */
  138. /* background-position: 100% 32%; */
  139. /* background-size: 3.3em; */
  140. }
  141. /*
  142. in wide format:
  143. 1. margin-left makes sure the posts are not under the sidebar
  144. 2. padding to keep it from touching border, top or bottom of windows
  145. */
  146. .content {
  147. margin-left: 15em;
  148. padding: 1em;
  149. }
  150. }
  151. @media (max-width: 800px) {
  152. .sidebar h1 {
  153. color: #8B0000;
  154. margin-top: 0em;
  155. padding-top: 0em;
  156. padding-bottom: .2em;
  157. font-family: Righteous;
  158. font-size: 3.5em;
  159. text-align: center;
  160. font-weight: normal;
  161. line-height: 3rem;
  162. letter-spacing: .1rem;
  163. text-transform: capitalize;
  164. border-bottom: solid .15rem rgba(0,0,0,.5);
  165. }
  166. .sidebar h3 {
  167. text-align: center;
  168. font-size: 1.5em;
  169. }
  170. .sidebar-nav li {
  171. margin-left: 1em;
  172. display: inline-block;
  173. padding: .1em .5em;
  174. }
  175. .sidebar {
  176. border-bottom-style: ridge;
  177. border-width: 1em;
  178. /* background-image: url("/taonaw_logo.png"); */
  179. /* background-repeat: no-repeat; */
  180. /* background-position: 100% 100%; */
  181. /* background-size: 10em; */
  182. }
  183. .sidebar-nav a {
  184. font-size: 1em;
  185. padding: 0em;
  186. }
  187. .content {
  188. margin: 2em 1em;
  189. }
  190. }
  191. /*
  192. .sidebar-nav-item:focus {the
  193. text-decoration: underline;
  194. }
  195. .sidebar-nav-item.active {
  196. font-weight: bold;
  197. }
  198. */
  199. /* Sticky sidebar
  200. *
  201. * Add the `sidebar-sticky` class to the sidebar's container to affix it the
  202. * contents to the bottom of the sidebar in tablets and up.
  203. *
  204. *
  205. * @media (min-width: 48em) {
  206. * .sidebar-sticky {
  207. * position: absolute;
  208. * right: 1rem;
  209. * bottom: 1rem;
  210. * left: 1rem;
  211. * }
  212. *}
  213. */
  214. /* Container
  215. *
  216. * Align the contents of the site above the proper threshold with some margin-fu
  217. * with a 25%-wide `.sidebar`.
  218. */
  219. /*
  220. .content {
  221. padding-top: 1rem;
  222. padding-bottom: 1rem;
  223. }
  224. */