style.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. @import "reset.css";
  2. /*
  3. THIS CSS FILE DOES NOT CONTAIN ANY COLOR/BACKGROUND DEFINITIONS
  4. ALL DEFAULT STYLES ARE FOR THE SMALLEST DEVICE, A SMARTPHONE THAT REGISTERS AS min-width 320px AND LESS THAN 29em
  5. OR A DESKTOP BROWSER RESIZED TO 320px WIDTH
  6. */
  7. * {
  8. box-sizing: border-box;
  9. }
  10. html,body {
  11. height:100%;
  12. width:100%;
  13. }
  14. body {
  15. font-family: "Segoe UI",Cantarell,AquaBase,Roboto,"Open Sans","Droid Sans",sans-serif;
  16. -webkit-font-smoothing: antialiased;
  17. /* footer stay down, even with dynamic footer height:; stackoverflow.com/a/20352949 */
  18. display: flex;
  19. flex-direction: column;
  20. }
  21. /*HTML tags*/
  22. h1 {
  23. font-size: 3em;
  24. line-height: 2em;
  25. }
  26. h2 {
  27. font-size: 2em;
  28. padding: 0.5em 0;
  29. line-height: 1.4em;
  30. }
  31. h3 {
  32. padding-top: 0.5em;
  33. font-size: 1.5em;
  34. line-height: 1.4em;
  35. }
  36. h4 {
  37. padding-top: 0.5em;
  38. font-size: 1.2em;
  39. line-height: 1.4em;
  40. }
  41. p, .paragraph {
  42. padding:0.5em 0;
  43. }
  44. /*
  45. The first paragraph of the actual article is slightly larger
  46. */
  47. /*
  48. article > div > p:first-of-type {
  49. font-size: 115%;
  50. }
  51. */
  52. a, a:visited {
  53. text-decoration: none;
  54. }
  55. a:hover, a:active {
  56. text-decoration: underline;
  57. }
  58. em,i {
  59. font-style: italic;
  60. }
  61. strong,b {
  62. font-weight: bold;
  63. }
  64. code,pre {
  65. font: 1.1em monospace;
  66. white-space: pre-wrap;
  67. word-wrap: break-word;
  68. }
  69. :not(pre) > code {
  70. line-height: 100%;
  71. padding: 0.1em 0.2em 0 0.2em;
  72. }
  73. pre {
  74. line-height:130%;
  75. padding: 0.4em 0 0.4em 0.4em;
  76. margin: 0.4em 0;
  77. border-width: 0.2em;
  78. border-style: solid;
  79. max-height: 30em;
  80. overflow: auto;
  81. /* allows user to select ALL text in code box with 1 click: */
  82. -webkit-user-select: all; /* Chrome 49+ */
  83. -moz-user-select: all; /* Firefox 43+ */
  84. -ms-user-select: all; /* No support yet */
  85. user-select: all; /* Likely future */
  86. }
  87. blockquote {
  88. padding: 0.4em 0.4em 0.4em 0.9em;
  89. border-left-width: 0.6em;
  90. border-left-style: double;
  91. margin: 0.5em 0;
  92. }
  93. kbd {
  94. font-family: monospace;
  95. padding: 0.2em 0.3em 0.1em 0.3em;
  96. border-width: 0.2em;
  97. border-style: solid;
  98. border-radius: 0.2em;
  99. margin: 0.1em;
  100. }
  101. ul,ol {
  102. padding: .25em 0 .25em 1.5em;
  103. }
  104. li {
  105. padding-top: .2em;
  106. }
  107. hr {
  108. height: 0;
  109. border-width: 2px;
  110. border-style: solid;
  111. margin: 1.5em 0;
  112. }
  113. /*various elements*/
  114. header .inner, footer .inner {
  115. padding: .5em;
  116. }
  117. /*HEADER*/
  118. header .inner {
  119. position:relative;
  120. height:60px;
  121. padding-right: 56px; /*leave space for header image*/
  122. }
  123. header ul, nav ul {
  124. list-style: none;
  125. padding:0;
  126. }
  127. header ul li {
  128. float: left;
  129. padding: .8em .3em .8em 0;
  130. font-size: 1.2em;
  131. }
  132. header ul li:last-of-type {
  133. padding-right: 0;
  134. }
  135. header ul li a {
  136. padding: .8em .5em .5em 0;
  137. }
  138. header .inner img {
  139. height:100%;
  140. -ms-interpolation-mode: nearest-neighbor;
  141. image-rendering: -webkit-optimize-contrast;
  142. image-rendering: -webkit-crisp-edges;
  143. image-rendering: -moz-crisp-edges;
  144. image-rendering: -o-crisp-edges;
  145. image-rendering: pixelated;
  146. padding:0;
  147. /*margin:0 56px 0 0;*/
  148. position: absolute;
  149. right:0;
  150. top:0;
  151. }
  152. header div.title {
  153. display:none;
  154. }
  155. /*########################*/
  156. /* clickable menu*/
  157. input#menu-icon {
  158. display: none;
  159. }
  160. label[for="menu-icon"] {
  161. display: inline-block;
  162. width: 100%;
  163. padding: 0 .25em .13em .1em;
  164. font-size: 3em;
  165. /*line-height: .8em;*/
  166. }
  167. label[for="menu-icon"] span {
  168. font-size:.8rem;
  169. vertical-align: .7rem;
  170. margin-left: .1rem;
  171. }
  172. input[type=checkbox] ~ label span::before {
  173. content: "Open"
  174. }
  175. input[type=checkbox]:checked ~ label span::before {
  176. content: "Close"
  177. }
  178. nav#menu-icon {
  179. display: none;
  180. list-style: none;
  181. padding: .5em;
  182. }
  183. input[type=checkbox]:checked ~ nav#menu-icon {
  184. display: inline-block;
  185. }
  186. .flexbox {
  187. display:flex;
  188. }
  189. .flexbox > *:first-child {
  190. align-self: center;
  191. flex: 1 0 auto;
  192. }
  193. .flexbox > *:last-child {
  194. align-self: center;
  195. flex: 0 1 auto;
  196. }
  197. .small, aside {
  198. line-height: 1.4em;
  199. font-size: 0.8em;
  200. }
  201. .small span {
  202. padding: 0 0.2em;
  203. }
  204. .tag_cloud > div {
  205. letter-spacing: .75em;
  206. font-size: 0.9em;
  207. font-weight: bold;
  208. }
  209. .tag_cloud ul {
  210. padding:0;
  211. word-break: break-all;
  212. }
  213. .tag_cloud li {
  214. display: inline-block;
  215. padding: 0;
  216. margin-right: .1rem;
  217. }
  218. /* this is the tag count */
  219. .tag_cloud li span {
  220. font-size:0.7rem; /*must be rem here!*/
  221. line-height:1;
  222. }
  223. .tag_cloud li a {
  224. padding: .2rem .2rem .2rem 0;
  225. display: block;
  226. }
  227. section#content > * {
  228. padding: .5em;
  229. }
  230. section#content {
  231. margin-bottom: 1.5em;
  232. }
  233. article {
  234. line-height: 1.4em;
  235. }
  236. article aside .tag {
  237. float:right;
  238. margin-left:0.5em;
  239. }
  240. article aside .date {
  241. float:left;
  242. }
  243. article aside .author {
  244. float:left;
  245. margin-left:0.5em;
  246. }
  247. article.fullpage {
  248. margin-top: 1em;
  249. }
  250. article.fullpage aside {
  251. margin-bottom: 2em;
  252. }
  253. article img {
  254. width: 100%;
  255. float: none;
  256. }
  257. article img.right, article img.left {
  258. float: none;
  259. }
  260. .border {
  261. border-width: 0.2em;
  262. border-style: solid;
  263. }
  264. footer {
  265. margin-top: auto;
  266. }
  267. footer p a {
  268. padding: 0.5em 0.2em;
  269. }
  270. footer .right {
  271. margin-left: 1em;
  272. }
  273. .right {
  274. float:right;
  275. }
  276. .left {
  277. float:left;
  278. }
  279. /* Input Styles */
  280. input,
  281. textarea,
  282. select {
  283. border-width: 0.1em;
  284. border-style: solid;
  285. margin: 0;
  286. font-size: 100%;
  287. border-radius: 0;
  288. }
  289. input:focus,
  290. textarea:focus,
  291. select:focus {
  292. border-width: 0.1em;
  293. border-style: solid;
  294. }
  295. /* remove stupid red border - stackoverflow.com/a/6189446 */
  296. input:required, input:invalid {
  297. box-shadow:none;
  298. }
  299. .pagination {
  300. margin: 1em 0 0 0;
  301. position: relative;
  302. }
  303. .pagination .previous {
  304. float: left;
  305. }
  306. .pagination .next {
  307. float: right;
  308. }
  309. .pagination .current {
  310. position: absolute;
  311. text-align: center;
  312. width:100%;
  313. z-index: -10;
  314. left:0;
  315. }
  316. /*------------CLEARFIX!----------------*/
  317. .clearfix:before,.clearfix:after {
  318. content: " ";
  319. display: table;
  320. }
  321. .clearfix:after {
  322. clear: both;
  323. }
  324. .clearfix {
  325. *zoom: 1;
  326. }
  327. /*
  328. THIS IS WHAT MY PHONE REGISTERS AS IN LANDSCAPE MODE
  329. */
  330. @media screen and (min-width: 480px) and (max-width: 767px) {
  331. header .inner, footer .inner, section#content > * {
  332. /*just adding a little horizontal spacing*/
  333. padding-left: 1em;
  334. }
  335. }
  336. @media screen and (min-width: 480px) and (max-width: 1023px) {
  337. header .inner, footer .inner, section#content > * {
  338. /*just adding a little horizontal spacing*/
  339. padding-right: 1em;
  340. }
  341. }
  342. /*
  343. NON-MOBILE DEVICES (ALSO LAPTOPS) USUALLY START AT THIS BREAKPOINT
  344. */
  345. @media screen and (min-width: 768px) {
  346. header .inner {
  347. height:75px;
  348. }
  349. body > .inner {
  350. padding: 1em 0;
  351. }
  352. section#sidebar {
  353. float: left;
  354. width: 30%;
  355. }
  356. label[for="menu-icon"] {
  357. display:none;
  358. }
  359. nav#menu-icon {
  360. display: inline-block;
  361. position:initial;
  362. }
  363. input#menu-icon {
  364. display: none;
  365. }
  366. section#content {
  367. float: right;
  368. width: 70%;
  369. padding-left: 0.5em;
  370. }
  371. .tag_cloud > div {
  372. font-size: 1rem;
  373. margin-bottom: .5em;
  374. }
  375. .tag_cloud li a {
  376. padding: .3rem .3rem .3rem 0;
  377. }
  378. article img {
  379. width: initial;
  380. }
  381. article img.right, article img.left {
  382. max-width: 50%;
  383. }
  384. article img.right {
  385. float: right;
  386. margin: 0 0 1em 1em;
  387. }
  388. article img.left {
  389. float: left;
  390. margin: 0 1em 1em 0;
  391. }
  392. }
  393. @media screen and (min-width: 1024px) {
  394. .inner {
  395. width:90%;
  396. margin: 0 auto;
  397. }
  398. header .inner img {
  399. left:50%;
  400. margin-left:-28px; /*half of image width*/
  401. }
  402. header .inner {
  403. padding-right: 0;
  404. }
  405. header .inner div.title {
  406. display: initial;
  407. float: right;
  408. padding: .5em;
  409. font-size: 1.6em;
  410. }
  411. header .inner ul li {
  412. font-size: 1.3em;
  413. }
  414. }