Advertisement
markotvz

CSS with WebKit gradient bug

Jan 2nd, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 13.63 KB | None | 0 0
  1. /*
  2. Theme Name: Marko Idzan custom web template
  3. Theme URI: http://underscores.me/
  4. Author: Marko Idzan
  5. Author URI: http://markoidzan.from.hr
  6. Description: Custom made template for my personal web/blog
  7. Version: 1.0
  8. License: GNU General Public License
  9. License URI: license.txt
  10. Tags:
  11.  
  12. This theme, like WordPress, is licensed under the GPL.
  13. Use it to make something cool, have fun, and share what you've learned with others.
  14.  
  15. Resetting and rebuilding styles have been helped along thanks to the fine work of
  16. Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
  17. along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
  18. and Blueprint http://www.blueprintcss.org/
  19. */
  20.  
  21. @font-face {
  22. font-family : "'Monda'";
  23. font-style : normal;
  24. font-weight : 400;
  25. src : local('Monda Regular'), local('Monda-Regular'), url(http://themes.googleusercontent.com/static/fonts/monda/v1/Ar_3VpXmUWnrZSibgBG1mA.ttf) format('truetype');
  26. }
  27.  
  28. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
  29. border : 0;
  30. font-family : inherit;
  31. font-size : 100%;
  32. font-style : inherit;
  33. font-weight : inherit;
  34. margin : 0;
  35. outline : 0;
  36. padding : 0;
  37. vertical-align : baseline;
  38. }
  39. html {
  40. font-size : 62.5%;
  41. overflow-y : scroll;
  42. }
  43. article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
  44. display : block;
  45. }
  46. ol, ul {
  47. list-style : none;
  48. }
  49. table {
  50. border-collapse : separate;
  51. border-spacing : 0;
  52. }
  53. caption, th, td {
  54. font-weight : normal;
  55. text-align : left;
  56. }
  57. blockquote:before, blockquote:after, q:before, q:after {
  58. content : "";
  59. }
  60. blockquote, q {
  61. quotes : "" "";
  62. }
  63. a:focus {
  64. outline : thin dotted;
  65. }
  66. a:hover, a:active {
  67. outline : 0;
  68. }
  69. a img {
  70. border : 0;
  71. }
  72. body, button, input, select, textarea {
  73. color : #000000;
  74. font-family: 'Monda', sans-serif;
  75. font-size : 16px;
  76. font-size : 1.6rem;
  77. line-height : 1.5;
  78. background:
  79. radial-gradient(black 15%, transparent 16%) 0 0,
  80. radial-gradient(black 15%, transparent 16%) 8px 8px,
  81. radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
  82. radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
  83. background-color:#282828;
  84. background-size:16px 16px;
  85.  
  86. }
  87. h1, h2, h3, h4, h5, h6 {
  88. clear : both;
  89. margin : 0.6em 0;
  90. }
  91. h1 {
  92. font-size : 36px;
  93. font-size : 3.6rem;
  94. }
  95. h2 {
  96. font-size : 28px;
  97. font-size : 2.8rem;
  98. }
  99. h3 {
  100. font-size : 22px;
  101. font-size : 2.2rem;
  102. }
  103. h4 {
  104. font-size : 16px;
  105. font-size : 1.6rem;
  106. }
  107. h5 {
  108. font-size : 14px;
  109. font-size : 1.4rem;
  110. }
  111. h6 {
  112. font-size : 12px;
  113. font-size : 1.2rem;
  114. }
  115. hr {
  116. background-color : #fff;
  117. border : 0;
  118. height : 1px;
  119. margin-bottom : 1.5em;
  120. }
  121. p {
  122. margin-bottom : 1.5em;
  123. }
  124. ul, ol {
  125. margin : 0 0 1.5em 3em;
  126. }
  127. ul {
  128. list-style : disc;
  129. }
  130. ol {
  131. list-style : decimal;
  132. }
  133. ul ul, ol ol, ul ol, ol ul {
  134. margin-bottom : 0;
  135. margin-left : 1.5em;
  136. }
  137. dt {
  138. font-weight : bold;
  139. }
  140. dd {
  141. margin : 0 1.5em 1.5em;
  142. }
  143. b, strong {
  144. font-weight : bold;
  145. }
  146. dfn, cite, em, i {
  147. font-style : italic;
  148. }
  149. blockquote {
  150. font-style : italic;
  151. margin : 0 1.5em;
  152. }
  153. address {
  154. margin : 0 0 1.5em;
  155. }
  156. pre {
  157. background : #8E8A82;
  158. font-family : "Courier 10 Pitch", Courier, monospace;
  159. font-size : 15px;
  160. font-size : 1.5rem;
  161. line-height : 1.6;
  162. margin-bottom : 1.6em;
  163. padding : 1.6em;
  164. overflow : auto;
  165. max-width : 100%;
  166. }
  167. code, kbd, tt, var {
  168. font : 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  169. }
  170. abbr, acronym {
  171. border-bottom : 1px dotted #666;
  172. cursor : help;
  173. }
  174. mark, ins {
  175. background : #fff9c0;
  176. text-decoration : none;
  177. }
  178. sup, sub {
  179. font-size : 75%;
  180. height : 0;
  181. line-height : 0;
  182. position : relative;
  183. vertical-align : baseline;
  184. }
  185. sup {
  186. bottom : 1ex;
  187. }
  188. sub {
  189. top : 0.5ex;
  190. }
  191. small {
  192. font-size : 75%;
  193. }
  194. big {
  195. font-size : 125%;
  196. }
  197. figure {
  198. margin : 0;
  199. }
  200. table {
  201. margin : 0 0 1.5em;
  202. width : 100%;
  203. }
  204. th {
  205. font-weight : bold;
  206. }
  207. button, html input[type="button"], input[type="reset"], input[type="submit"] {
  208. border : #ccc solid 1px;
  209. border-color : #ccc #ccc #bbb #ccc;
  210. border-radius : 3px;
  211. background : #e6e6e6;
  212. box-shadow : 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 15px 17px rgba(255, 255, 255, 0.5) inset, 0 -5px 12px rgba(0, 0, 0, 0.05) inset;
  213. color : rgba(0, 0, 0, 0.8);
  214. cursor : pointer;
  215. font-size : 12px;
  216. font-size : 1.4rem;
  217. line-height : 1;
  218. padding : 1.12em 1.5em 1em;
  219. text-shadow : 0 1px 0 rgba(255, 255, 255, 0.8);
  220. }
  221. button:hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover {
  222. border-color : #ccc #bbb #aaa #bbb;
  223. box-shadow : 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 15px 17px rgba(255, 255, 255, 0.8) inset, 0 -5px 12px rgba(0, 0, 0, 0.02) inset;
  224. }
  225. button:focus, html input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, button:active, html input[type="button"]:active, input[type="reset"]:active, input[type="submit"]:active {
  226. border-color : #aaa #bbb #bbb #bbb;
  227. box-shadow : 0 -1px 0 rgba(255, 255, 255, 0.5) inset, 0 2px 5px rgba(0, 0, 0, 0.15) inset;
  228. }
  229. input[type="checkbox"], input[type="radio"] {
  230. box-sizing : border-box;
  231. padding : 0;
  232. }
  233. input[type="search"] {
  234. box-sizing : content-box;
  235. }
  236. input[type="text"], input[type="email"], textarea {
  237. background : rgba(255, 255, 255, 0.3);
  238. border : #ccc solid 1px;
  239. border-radius : 3px;
  240. padding : 6px;
  241. }
  242. input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  243. background : #fff;
  244. }
  245. textarea {
  246. overflow : auto;
  247. padding-left : 3px;
  248. vertical-align : top;
  249. width : 98%;
  250. }
  251. a, a:visited {
  252. color : #735D1B;
  253. text-decoration : none;
  254. transition : all 0.3s ease-in-out;
  255. }
  256. a:hover, a:focus, a:active {
  257. color : #D3A20F;
  258. }
  259. .alignleft {
  260. display : inline;
  261. float : left;
  262. margin-right : 1.5em;
  263. margin-bottom : 1em;
  264. }
  265. .alignright {
  266. display : inline;
  267. float : right;
  268. margin-left : 1.5em;
  269. margin-bottom : 1em;
  270. }
  271. .aligncenter {
  272. clear : both;
  273. display : block;
  274. margin : 1.5em auto;
  275. }
  276. .assistive-text {
  277. clip : rect(1px 1px 1px 1px);
  278. clip : rect(1px,1px,1px,1px);
  279. position : absolute !important ;
  280. }
  281. .site-title, .entry-title, .page-title, .entry-content, .entry-summary, .widget-title, .comments-title, .comment .reply, .comment-meta, .comment-author, #reply-title {
  282. font-family: 'Monda', sans-serif;
  283.  
  284. }
  285. #main, .main-navigation, .site-title, .site-description {
  286. margin : 0 auto;
  287. max-width : 1050px;
  288. }
  289. #main {
  290. clear : both;
  291. overflow : hidden;
  292. }
  293. #primary {
  294. float : left;
  295. margin : 0 -27% 0 0;
  296. padding : 2em;
  297. width : 90%;
  298. }
  299. #content {
  300. margin : 0 27% 0 0;
  301. }
  302. #secondary, #tertiary {
  303. background : #fff;
  304. float : right;
  305. margin : 1em 1em 0;
  306. padding : 2em 2em 0;
  307. position : relative;
  308. width : 20%;
  309. }
  310. #tertiary {
  311. padding-top : 0;
  312. }
  313. .site-footer {
  314. clear : both;
  315. width : 100%;
  316. }
  317. .site-header hgroup {
  318. background:
  319. radial-gradient(black 15%, transparent 16%) 0 0,
  320. radial-gradient(black 15%, transparent 16%) 8px 8px,
  321. radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
  322. radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
  323. background-color:#282828;
  324. background-size:16px 16px;
  325.  
  326. padding : 1.5em 2em;
  327. }
  328. .site-title {
  329. font-size : 50px;
  330. font-size : 4.5rem;
  331. font-style : italic;
  332. }
  333. .site-description {
  334. font-size : 13px;
  335. font-size : 1.3rem;
  336. }
  337. .site-title a, .site-description {
  338. color : #FFFFFF;
  339. }
  340. .main-navigation {
  341. clear : both;
  342. display : block;
  343. padding : 1.5em;
  344. }
  345. .main-navigation:after {
  346. clear : both;
  347. content : "";
  348. display : block;
  349. }
  350. .main-navigation ul {
  351. list-style : none;
  352. margin : 0;
  353. padding-left : 0;
  354. }
  355. .main-navigation li {
  356. float : left;
  357. margin : 0.5em 0;
  358. position : relative;
  359. }
  360. .main-navigation a {
  361. color : #CCC8BF;
  362. display : block;
  363. font-size : 1.4rem;
  364. font-weight : bold;
  365. margin-right : 2em;
  366. text-decoration : none;
  367. }
  368. .main-navigation ul ul {
  369. background : #000000;
  370. border : rgba(0, 0, 0, 0.1) solid 1px;
  371. display : none;
  372. float : left;
  373. position : absolute;
  374. top : 1.2em;
  375. left : 0;
  376. z-index : 99999;
  377. }
  378. .main-navigation ul ul ul {
  379. left : 100%;
  380. top : 0;
  381. }
  382. .main-navigation ul ul a {
  383. padding : 0 1.5em;
  384. width : 200px;
  385. }
  386. .main-navigation li:hover > a, .main-navigation li.current_page_item a, .main-navigation li.current-menu-item a, .main-navigation ul ul a:hover {
  387. color : #ffffff;
  388. }
  389. .main-navigation ul li:hover > ul {
  390. display : block;
  391. }
  392. .menu-toggle {
  393. color : #000000;
  394. cursor : pointer;
  395. font-size : 20px;
  396. font-weight : bold;
  397. text-align : center;
  398. }
  399. .main-small-navigation .menu {
  400. display : none;
  401. }
  402. .site-main {
  403. background : #fff;
  404. border : rgba(0, 0, 0, 0.1) solid 1px;
  405. border-width : 3px 1px;
  406. }
  407. .hentry {
  408. border-bottom : 1px solid rgba(0, 0, 0, 0.1);
  409. margin : 0 0 1.5em;
  410. padding-bottom : 1.5em;
  411. }
  412. .entry-title, .page-title {
  413. font-size : 28px;
  414. font-size : 2.8rem;
  415. font-style : italic;
  416. margin : 0 0 0.2em;
  417. }
  418. .entry-title a {
  419. text-decoration : none;
  420. }
  421. body.search .page-title, body.archive .page-title {
  422. font-size : 16px;
  423. font-size : 1.6rem;
  424. margin-bottom : 1em;
  425. }
  426. .entry-meta {
  427. clear : both;
  428. font-size : 12px;
  429. font-size : 1.2rem;
  430. }
  431. .byline {
  432. display : none;
  433. }
  434. .single .byline, .group-blog .byline {
  435. display : inline;
  436. }
  437. .entry-content, .entry-summary {
  438. margin : 1.5em 0 0;
  439. }
  440. .entry-content table, .comment-content table {
  441. border : #d9d9d9 solid 1px;
  442. border-left-width : 0;
  443. margin : 0 -0.083em 2.083em 0;
  444. text-align : left;
  445. width : 100%;
  446. }
  447. .entry-content tr th, .entry-content thead th, .comment-content tr th, .comment-content thead th {
  448. border-left : 1px solid #d9d9d9;
  449. font-weight : bold;
  450. padding : 0.5em 1.25em;
  451. }
  452. .entry-content tr td, .comment-content tr td {
  453. border : #d9d9d9 solid 1px;
  454. border-width : 1px 0 0 1px;
  455. padding : 0.5em 1.25em;
  456. }
  457. .entry-content tr.odd td, .comment-content tr.odd td {
  458. background : #dfd6c7;
  459. }
  460. .page-links {
  461. clear : both;
  462. margin : 0 0 1.5em;
  463. }
  464. .format-aside .entry-content {
  465. border-left : 4px solid rgba(0, 0, 0, 0.1);
  466. padding-left : 1em;
  467. }
  468. .site-header img, .entry-content img, .comment-content img, .widget img {
  469. max-width : 100%;
  470. }
  471. .site-header img, .entry-content img, .widget-img, img[class*="align"], img[class*="wp-image-"], .wp-caption img {
  472. height : auto;
  473. }
  474. .site-header img, .entry-content img, .widget img, img.size-full {
  475. max-width : 100%;
  476. width : auto;
  477. }
  478. .entry-content img.wp-smiley, .comment-content img.wp-smiley {
  479. border : none;
  480. margin-bottom : 0;
  481. margin-top : 0;
  482. padding : 0;
  483. }
  484. .wp-caption {
  485. border : #ccc solid 1px;
  486. max-width : 100%;
  487. }
  488. .wp-caption.aligncenter, .wp-caption.alignleft, .wp-caption.alignright, .wp-caption.alignnone {
  489. margin-bottom : 1.5em;
  490. }
  491. .wp-caption img {
  492. display : block;
  493. margin : 1.2% auto 0;
  494. max-width : 98%;
  495. }
  496. .wp-caption-text {
  497. text-align : center;
  498. }
  499. .wp-caption .wp-caption-text {
  500. margin : 0.8075em 0;
  501. }
  502. #content .gallery {
  503. margin-bottom : 1.5em;
  504. }
  505. .wp-caption-text, .gallery-caption {
  506. font-size : 12px;
  507. font-size : 1.2rem;
  508. font-style : italic;
  509. }
  510. #content .gallery a img {
  511. border : none;
  512. height : auto;
  513. max-width : 90%;
  514. }
  515. #content .gallery dd {
  516. margin : 0;
  517. }
  518. embed, iframe, object {
  519. max-width : 100%;
  520. }
  521. .site-content .site-navigation {
  522. font-size : 13px;
  523. font-size : 1.3rem;
  524. font-style : italic;
  525. margin : 0 0 1.5em;
  526. overflow : hidden;
  527. }
  528. .site-content .nav-previous {
  529. float : left;
  530. width : 50%;
  531. }
  532. .site-content .nav-next {
  533. float : right;
  534. text-align : right;
  535. width : 50%;
  536. }
  537. #comments {
  538. clear : both;
  539. }
  540. .comments-title, #reply-title {
  541. font-size : 20px;
  542. font-size : 2rem;
  543. }
  544. .commentlist li {
  545. list-style : none;
  546. }
  547. .commentlist, .children {
  548. list-style : none;
  549. margin : 0;
  550. }
  551. .children {
  552. margin : 0 0 0 6%;
  553. }
  554. .commentlist li.comment, .commentlist li.pingback {
  555. border-bottom : 1px solid rgba(0, 0, 0, 0.2);
  556. padding-left : 2.5em;
  557. }
  558. .commentlist .children li, .commentlist li:last-of-type {
  559. border : none;
  560. }
  561. article.comment, li.pingback {
  562. overflow : hidden;
  563. padding : 2.5em 0 0.7em;
  564. position : relative;
  565. }
  566. .children article.comment, .children li.pingback {
  567. padding-top : 1.0em;
  568. }
  569. .comment .avatar {
  570. float : left;
  571. margin-right : 1.25em;
  572. }
  573. .comment-author {
  574. font-size : 14px;
  575. font-size : 1.4rem;
  576. }
  577. .comment-meta {
  578. font-size : 12px;
  579. font-size : 1.2rem;
  580. }
  581. .comment-content {
  582. font-size : 13px;
  583. font-size : 1.3rem;
  584. margin : 1em 0 0 4.5em;
  585. }
  586. .comment .reply {
  587. font-size : 12px;
  588. font-size : 1.2rem;
  589. text-align : right;
  590. }
  591. li.pingback {
  592. font-weight : bold;
  593. }
  594. li.pingback a {
  595. font-weight : normal;
  596. }
  597. .comment-notes, #commentform .form-allowed-tags, p.nocomments, p.logged-in-as, #commentform label {
  598. font-size : 13px;
  599. font-size : 1.3rem;
  600. }
  601. .required {
  602. color : #880000;
  603. }
  604. #commentform label {
  605. font-weight : bold;
  606. padding : 1em 0;
  607. }
  608. #commentform input[type="text"] {
  609. margin-left : 0.5em;
  610. }
  611. #commentform #comment {
  612. margin-top : 0.6em;
  613. }
  614. #commentform .form-allowed-tags, #commentform .form-allowed-tags code {
  615. font-size : 11px;
  616. font-size : 1.1rem;
  617. }
  618. p.nocomments {
  619. margin : 2.5em;
  620. }
  621. .widget {
  622. font-size : 12px;
  623. font-size : 1.2rem;
  624. line-height : 1.8;
  625. margin : 0 0 1.5em;
  626. }
  627. .widget-title {
  628. color : #000;
  629. font-size : 20px;
  630. font-size : 2rem;
  631. font-style : italic;
  632. }
  633. #searchsubmit {
  634. display : none;
  635. }
  636. .site-info {
  637. font-size : 13px;
  638. font-size : 1.3rem;
  639. padding : 1.5em 0;
  640. text-align : center;
  641. }
  642. @media only screen and (max-width:800px) {
  643. #main {
  644. overflow : visible;
  645. }
  646. #content, #primary, #secondary, #tertiary {
  647. background : #ffffff;
  648. float : none;
  649. margin : 0;
  650. padding : 0;
  651. }
  652. #primary, #secondary, #tertiary {
  653. width : 100%;
  654. }
  655. .site-header hgroup, #main {
  656. padding : 0.8em;
  657. }
  658. }
  659. #ie8 .site-header img, #ie8 .entry-content img, #ie8 img.size-full, #ie8 .entry-thumbnail img, #ie8 .widget img, #ie8 .wp-caption img {
  660. width : auto;
  661. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement