main.css 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. /*
  2. Name: Smashing HTML5
  3. Date: July 2009
  4. Description: Sample layout for HTML5 and CSS3 goodness.
  5. Version: 1.0
  6. License: MIT <http://opensource.org/licenses/MIT>
  7. Licensed by: Smashing Media GmbH <http://www.smashingmagazine.com/>
  8. Original author: Enrique Ramírez <http://enrique-ramirez.com/>
  9. */
  10. /* Imports */
  11. @import url("reset.css");
  12. @import url("pygment.css");
  13. @import url("typogrify.css");
  14. @import url("fonts.css");
  15. /***** Global *****/
  16. /* Body */
  17. body * {
  18. box-sizing: border-box;
  19. }
  20. body {
  21. background: #000; /*#FFF;*/
  22. color: #FFF;
  23. /*font-size: 87.5%; /* Base font size: 14px ***
  24. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;*/
  25. font-size:18px;
  26. font-family: 'Typo';
  27. line-height: 1.429;
  28. margin: 0;
  29. padding: 0;
  30. text-align: left;
  31. }
  32. /* Headings */
  33. h1 {font-size: 2em }
  34. h2 {font-size: 1.571em} /* 22px */
  35. h3 {font-size: 1.429em} /* 20px */
  36. h4 {font-size: 1.286em} /* 18px */
  37. h5 {font-size: 1.143em} /* 16px */
  38. h6 {font-size: 1em} /* 14px */
  39. h1, h2, h3, h4, h5, h6 {
  40. font-weight: 400;
  41. line-height: 1.1;
  42. margin-bottom: .8em;
  43. font-family: 'Typo', arial, serif;
  44. color: #e85520;
  45. }
  46. h3, h4, h5, h6 { margin-top: .8em; }
  47. hr { border: 2px solid #EEEEEE; }
  48. /* Anchors */
  49. a {outline: 0;}
  50. a img {border: 0px; text-decoration: none;}
  51. a:link, a:visited {
  52. color: #FFF;
  53. padding: 0 1px;
  54. text-decoration: underline;
  55. }
  56. a:hover, a:active {
  57. background-color: #000;
  58. color: #fff;
  59. text-decoration: none;
  60. text-shadow: 1px 1px 1px #333;
  61. }
  62. h1 a:hover {
  63. background-color: inherit
  64. }
  65. /* Paragraphs */
  66. div.line-block,
  67. p { margin-top: 1em;
  68. margin-bottom: 1em;}
  69. strong, b {font-weight: bold;}
  70. em, i {font-style: italic;}
  71. /* Lists */
  72. ul {
  73. list-style: outside disc;
  74. margin: 0em 0 0 1.5em;
  75. }
  76. ol {
  77. list-style: outside decimal;
  78. margin: 0em 0 0 1.5em;
  79. }
  80. li { margin-top: 0.5em;}
  81. .post-info {
  82. float:right;
  83. margin:10px;
  84. padding:5px;
  85. }
  86. .post-info p{
  87. margin-top: 1px;
  88. margin-bottom: 1px;
  89. }
  90. .readmore { float: right }
  91. dl {margin: 0 0 1.5em 0;}
  92. dt {font-weight: bold;}
  93. dd {margin-left: 1.5em;}
  94. pre{background-color: rgb(238, 238, 238); padding: 10px; margin: 10px; overflow: auto;}
  95. /* Quotes */
  96. blockquote {
  97. margin: 20px;
  98. font-style: italic;
  99. }
  100. cite {}
  101. q {}
  102. div.note {
  103. float: right;
  104. margin: 5px;
  105. font-size: 85%;
  106. max-width: 300px;
  107. }
  108. /* Tables */
  109. table {margin: .5em auto 1.5em auto; width: 98%;}
  110. /* Thead */
  111. thead th {padding: .5em .4em; text-align: left;}
  112. thead td {}
  113. /* Tbody */
  114. tbody td {padding: .5em .4em;}
  115. tbody th {}
  116. tbody .alt td {}
  117. tbody .alt th {}
  118. /* Tfoot */
  119. tfoot th {}
  120. tfoot td {}
  121. /* HTML5 tags */
  122. header, section,
  123. aside, nav, article, figure {
  124. display: block;
  125. }
  126. footer {display:none}
  127. /***** Layout *****/
  128. .body {clear: both; margin: 0 auto; width: 100%;}
  129. img.right, figure.right {float: right; margin: 0 0 2em 2em;}
  130. img.left, figure.left {float: left; margin: 0 2em 2em 0;}
  131. /*
  132. Header
  133. *****************/
  134. #banner {
  135. margin: 0 auto;
  136. padding: 2.5em 0 0 0;
  137. display: flex;
  138. flex-direction: column;
  139. align-items: center;
  140. }
  141. /* Banner */
  142. #banner h1 {font-size: 3.571em; line-height: 1;}
  143. #banner h1 a:link, #banner h1 a:visited {
  144. color: #e85520;
  145. display: block;
  146. font-weight: bold;
  147. margin: 0 0 .6em .2em;
  148. text-decoration: none;
  149. }
  150. #banner h1 a:hover, #banner h1 a:active {
  151. background: none;
  152. color: #FFF;
  153. text-shadow: none;
  154. }
  155. #banner h1 strong {font-size: 0.36em; font-weight: normal;}
  156. /* Main Nav */
  157. #banner nav {
  158. background: #000;
  159. font-size: 1.143em;
  160. height: 40px;
  161. line-height: 30px;
  162. margin: 0 auto 2em auto;
  163. padding: 0;
  164. text-align: center;
  165. width: 100%;
  166. }
  167. #banner nav ul {list-style: none; margin: 0 auto; width: 100%;display: flex;justify-content: center;flex-wrap:wrap;}
  168. #banner nav li {float: left; display: inline; margin: 0;}
  169. #banner nav a:link, #banner nav a:visited {
  170. color: #FFF;
  171. display: inline-block;
  172. height: 40px;
  173. padding: 5px 1.5em;
  174. text-decoration: none;
  175. border:0;
  176. position:relative;
  177. text-transform:uppercase;
  178. font-family: 'Typo';
  179. }
  180. #banner nav a:hover, #banner nav a:active,
  181. #banner nav .active a:link, #banner nav .active a:visited {
  182. background: transparent;
  183. color: #FFF;
  184. text-shadow: none !important;
  185. }
  186. #banner nav a:before {
  187. transition: width ease-in 0.3s;
  188. content: "";
  189. background: #e85520;
  190. width: 0px;
  191. height: 2px;
  192. position: absolute;
  193. top: 35px;
  194. z-index: 1000;
  195. left: 50%;
  196. margin-left: -25px;
  197. }
  198. #banner nav a:hover:before, #banner nav .active a:before {
  199. width:50px;
  200. }
  201. /*
  202. Featured
  203. *****************/
  204. #featured {
  205. background: #fff;
  206. margin-bottom: 2em;
  207. overflow: hidden;
  208. padding: 20px;
  209. width: 760px;
  210. }
  211. #featured figure {
  212. border: 2px solid #eee;
  213. float: right;
  214. margin: 0.786em 2em 0 5em;
  215. width: 248px;
  216. }
  217. #featured figure img {display: block; float: right;}
  218. #featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
  219. #featured h3 {font-size: 1.429em; margin-bottom: .5em;}
  220. #featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
  221. #featured h3 a:hover, #featured h3 a:active {color: #fff;}
  222. /*
  223. Body
  224. *****************/
  225. #content {
  226. background: #000;
  227. margin-bottom: 2em;
  228. overflow: hidden;
  229. padding: 20px 20px;
  230. max-width: 1200px;
  231. font-family:Arial;
  232. border-radius: 10px;
  233. -moz-border-radius: 10px;
  234. -webkit-border-radius: 10px;
  235. }
  236. /*
  237. Extras
  238. *****************/
  239. #extras {margin: 0 auto 3em auto; overflow: hidden;}
  240. #extras ul {list-style: none; margin: 0;}
  241. #extras li {border-bottom: 1px solid #fff;}
  242. #extras h2 {
  243. color: #C74350;
  244. font-size: 1.429em;
  245. margin-bottom: .25em;
  246. padding: 0 3px;
  247. }
  248. #extras a:link, #extras a:visited {
  249. color: #444;
  250. display: block;
  251. border-bottom: 1px solid #F4E3E3;
  252. text-decoration: none;
  253. padding: .3em .25em;
  254. }
  255. #extras a:hover, #extras a:active {color: #fff;}
  256. /* Blogroll */
  257. #extras .blogroll {
  258. float: left;
  259. width: 615px;
  260. }
  261. #extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
  262. /* Social */
  263. #extras .social {
  264. float: right;
  265. width: 175px;
  266. }
  267. #extras div[class='social'] a {
  268. background-repeat: no-repeat;
  269. background-position: 3px 6px;
  270. padding-left: 25px;
  271. }
  272. /*
  273. About
  274. *****************/
  275. #about {
  276. background: #fff;
  277. font-style: normal;
  278. margin-bottom: 2em;
  279. overflow: hidden;
  280. padding: 20px;
  281. text-align: left;
  282. width: 760px;
  283. border-radius: 10px;
  284. -moz-border-radius: 10px;
  285. -webkit-border-radius: 10px;
  286. }
  287. #about .primary {float: left; width: 165px;}
  288. #about .primary strong {color: #C64350; display: block; font-size: 1.286em;}
  289. #about .photo {float: left; margin: 5px 20px;}
  290. #about .url:link, #about .url:visited {text-decoration: none;}
  291. #about .bio {float: right; width: 500px;}
  292. /*
  293. Footer
  294. *****************/
  295. #contentinfo {padding-bottom: 2em; text-align: right;}
  296. /***** Sections *****/
  297. /* Blog */
  298. .hentry {
  299. display: block;
  300. clear: both;
  301. border-bottom: 1px solid #eee;
  302. padding: 1.5em 0;
  303. }
  304. li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
  305. #content > .hentry {padding: 1em 0;}
  306. .hentry img{display : none ;}
  307. .entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
  308. .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
  309. .entry-title a:visited {background-color: #fff;}
  310. .hentry .post-info * {font-style: normal;}
  311. /* Content */
  312. .hentry footer {margin-bottom: 2em;}
  313. .hentry footer address {display: inline;}
  314. #posts-list footer address {display: block;}
  315. /* Blog Index */
  316. #posts-list {list-style: none; margin: 0;}
  317. #posts-list .hentry {padding-left: 10px; position: relative;}
  318. #posts-list footer {
  319. left: 10px;
  320. position: relative;
  321. float: left;
  322. top: 0.5em;
  323. width: 190px;
  324. }
  325. /* About the Author */
  326. #about-author {
  327. background: #f9f9f9;
  328. clear: both;
  329. font-style: normal;
  330. margin: 2em 0;
  331. padding: 10px 20px 15px 20px;
  332. border-radius: 5px;
  333. -moz-border-radius: 5px;
  334. -webkit-border-radius: 5px;
  335. }
  336. #about-author strong {
  337. color: #C64350;
  338. clear: both;
  339. display: block;
  340. font-size: 1.429em;
  341. }
  342. #about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
  343. /* Comments */
  344. #comments-list {list-style: none; margin: 0 1em;}
  345. #comments-list blockquote {
  346. background: #f8f8f8;
  347. clear: both;
  348. font-style: normal;
  349. margin: 0;
  350. padding: 15px 20px;
  351. border-radius: 5px;
  352. -moz-border-radius: 5px;
  353. -webkit-border-radius: 5px;
  354. }
  355. #comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
  356. #comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
  357. /* Add a Comment */
  358. #add-comment label {clear: left; float: left; text-align: left; width: 150px;}
  359. #add-comment input[type='text'],
  360. #add-comment input[type='email'],
  361. #add-comment input[type='url'] {float: left; width: 200px;}
  362. #add-comment textarea {float: left; height: 150px; width: 495px;}
  363. #add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
  364. #add-comment input[type='submit'] {float: right; margin: 0 .5em;}
  365. #add-comment * {margin-bottom: .5em;}