main.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  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{ 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. .align-center {
  109. display: block;
  110. margin-left: auto;
  111. margin-right: auto;
  112. }
  113. /* Tables */
  114. table {margin: .5em auto 1.5em auto; width: 98%;}
  115. /* Thead */
  116. thead th {padding: .5em .4em; text-align: left;}
  117. thead td {}
  118. /* Tbody */
  119. tbody td {padding: .5em .4em;}
  120. tbody th {}
  121. tbody .alt td {}
  122. tbody .alt th {}
  123. /* Tfoot */
  124. tfoot th {}
  125. tfoot td {}
  126. /* HTML5 tags */
  127. header, section,
  128. aside, nav, article, figure {
  129. display: block;
  130. }
  131. footer {display:none}
  132. /***** Layout *****/
  133. .body {clear: both; margin: 0 auto; width: 100%;}
  134. img.right, figure.right {float: right; margin: 0 0 2em 2em;}
  135. img.left, figure.left {float: left; margin: 0 2em 2em 0;}
  136. /*
  137. Header
  138. *****************/
  139. #banner {
  140. margin: 0 auto;
  141. padding: 2.5em 0 0 0;
  142. display: flex;
  143. flex-direction: column;
  144. align-items: center;
  145. }
  146. /* Banner */
  147. #banner h1 {font-size: 3.571em; line-height: 1;}
  148. #banner h1 a:link, #banner h1 a:visited {
  149. color: #e85520;
  150. display: block;
  151. font-weight: bold;
  152. margin: 0 0 .6em .2em;
  153. text-decoration: none;
  154. }
  155. #banner h1 a:hover, #banner h1 a:active {
  156. background: none;
  157. color: #FFF;
  158. text-shadow: none;
  159. }
  160. #banner h1 strong {font-size: 0.36em; font-weight: normal;}
  161. /* Main Nav */
  162. #banner nav {
  163. background: #000;
  164. font-size: 1.143em;
  165. height: 40px;
  166. line-height: 30px;
  167. margin: 0 auto 2em auto;
  168. padding: 0;
  169. text-align: center;
  170. width: 100%;
  171. }
  172. #banner nav ul {list-style: none; margin: 0 auto; width: 100%;display: flex;justify-content: center;flex-wrap:wrap;}
  173. #banner nav li {float: left; display: inline; margin: 0;}
  174. #banner nav a:link, #banner nav a:visited {
  175. color: #FFF;
  176. display: inline-block;
  177. height: 40px;
  178. padding: 5px 1.5em;
  179. text-decoration: none;
  180. border:0;
  181. position:relative;
  182. text-transform:uppercase;
  183. font-family: 'Typo';
  184. }
  185. #banner nav a:hover, #banner nav a:active,
  186. #banner nav .active a:link, #banner nav .active a:visited {
  187. background: transparent;
  188. color: #FFF;
  189. text-shadow: none !important;
  190. }
  191. #banner nav a:before {
  192. transition: width ease-in 0.3s;
  193. content: "";
  194. background: #e85520;
  195. width: 0px;
  196. height: 2px;
  197. position: absolute;
  198. top: 35px;
  199. z-index: 1000;
  200. left: 50%;
  201. margin-left: -25px;
  202. }
  203. #banner nav a:hover:before, #banner nav .active a:before {
  204. width:50px;
  205. }
  206. /*
  207. Featured
  208. *****************/
  209. #featured {
  210. margin-bottom: 2em;
  211. overflow: hidden;
  212. padding: 20px;
  213. width: 760px;
  214. }
  215. #featured figure {
  216. border: 2px solid #eee;
  217. float: right;
  218. margin: 0.786em 2em 0 5em;
  219. width: 248px;
  220. }
  221. #featured figure img {display: block; float: right;}
  222. #featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
  223. #featured h3 {font-size: 1.429em; margin-bottom: .5em;}
  224. #featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
  225. #featured h3 a:hover, #featured h3 a:active {color: #fff;}
  226. /*
  227. Body
  228. *****************/
  229. #content {
  230. background: #000;
  231. margin-bottom: 2em;
  232. overflow: hidden;
  233. padding: 20px 20px;
  234. max-width: 1200px;
  235. font-family:Arial;
  236. border-radius: 10px;
  237. -moz-border-radius: 10px;
  238. -webkit-border-radius: 10px;
  239. }
  240. /*
  241. Extras
  242. *****************/
  243. #extras {margin: 0 auto 3em auto; overflow: hidden;}
  244. #extras ul {list-style: none; margin: 0;}
  245. #extras li {border-bottom: 1px solid #fff;}
  246. #extras h2 {
  247. color: #C74350;
  248. font-size: 1.429em;
  249. margin-bottom: .25em;
  250. padding: 0 3px;
  251. }
  252. #extras a:link, #extras a:visited {
  253. color: #444;
  254. display: block;
  255. border-bottom: 1px solid #F4E3E3;
  256. text-decoration: none;
  257. padding: .3em .25em;
  258. }
  259. #extras a:hover, #extras a:active {color: #fff;}
  260. /* Blogroll */
  261. #extras .blogroll {
  262. float: left;
  263. width: 615px;
  264. }
  265. #extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
  266. /* Social */
  267. #extras .social {
  268. float: right;
  269. width: 175px;
  270. }
  271. #extras div[class='social'] a {
  272. background-repeat: no-repeat;
  273. background-position: 3px 6px;
  274. padding-left: 25px;
  275. }
  276. /*
  277. About
  278. *****************/
  279. #about {
  280. background: #fff;
  281. font-style: normal;
  282. margin-bottom: 2em;
  283. overflow: hidden;
  284. padding: 20px;
  285. text-align: left;
  286. width: 760px;
  287. border-radius: 10px;
  288. -moz-border-radius: 10px;
  289. -webkit-border-radius: 10px;
  290. }
  291. #about .primary {float: left; width: 165px;}
  292. #about .primary strong {color: #C64350; display: block; font-size: 1.286em;}
  293. #about .photo {float: left; margin: 5px 20px;}
  294. #about .url:link, #about .url:visited {text-decoration: none;}
  295. #about .bio {float: right; width: 500px;}
  296. /*
  297. Footer
  298. *****************/
  299. #contentinfo {padding-bottom: 2em; text-align: right;}
  300. /***** Sections *****/
  301. /* Blog */
  302. .hentry {
  303. display: block;
  304. clear: both;
  305. border-bottom: 1px solid #eee;
  306. padding: 1.5em 0;
  307. }
  308. li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
  309. #content > .hentry {padding: 1em 0;}
  310. .hentry img{display : none ;}
  311. .entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
  312. .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #ccc;}
  313. .entry-title a:visited {background-color: #fff;}
  314. .news article .entry-content { font-family: Arial; }
  315. .hentry .post-info * {font-style: normal;}
  316. /* Content */
  317. .hentry footer {margin-bottom: 2em;}
  318. .hentry footer address {display: inline;}
  319. #posts-list footer address {display: block;}
  320. /* Blog Index */
  321. #posts-list {list-style: none; margin: 0;}
  322. #posts-list .hentry {padding-left: 10px; position: relative;}
  323. #posts-list footer {
  324. left: 10px;
  325. position: relative;
  326. float: left;
  327. top: 0.5em;
  328. width: 190px;
  329. }
  330. /* About the Author */
  331. #about-author {
  332. background: #f9f9f9;
  333. clear: both;
  334. font-style: normal;
  335. margin: 2em 0;
  336. padding: 10px 20px 15px 20px;
  337. border-radius: 5px;
  338. -moz-border-radius: 5px;
  339. -webkit-border-radius: 5px;
  340. }
  341. #about-author strong {
  342. color: #C64350;
  343. clear: both;
  344. display: block;
  345. font-size: 1.429em;
  346. }
  347. #about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
  348. /* Comments */
  349. #comments-list {list-style: none; margin: 0 1em;}
  350. #comments-list blockquote {
  351. background: #f8f8f8;
  352. clear: both;
  353. font-style: normal;
  354. margin: 0;
  355. padding: 15px 20px;
  356. border-radius: 5px;
  357. -moz-border-radius: 5px;
  358. -webkit-border-radius: 5px;
  359. }
  360. #comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
  361. #comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
  362. /* Add a Comment */
  363. #add-comment label {clear: left; float: left; text-align: left; width: 150px;}
  364. #add-comment input[type='text'],
  365. #add-comment input[type='email'],
  366. #add-comment input[type='url'] {float: left; width: 200px;}
  367. #add-comment textarea {float: left; height: 150px; width: 495px;}
  368. #add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
  369. #add-comment input[type='submit'] {float: right; margin: 0 .5em;}
  370. #add-comment * {margin-bottom: .5em;}
  371. @media screen and (max-width:767px) {
  372. h4 {font-size:1.1em;}
  373. #banner h1 a:link, #banner h1 a:visited {
  374. font-size:30px;
  375. text-align:center;
  376. }
  377. #banner nav {
  378. height:auto;
  379. }
  380. .entry-title {
  381. font-size:1.8em;
  382. }
  383. }