768up.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. /******************************************************************
  2. Site Name:
  3. Author:
  4. Stylesheet: Tablet & Small Desktop Stylesheet
  5. Here's where you can start getting into the good stuff.
  6. This size will work on iPads, other tablets, and desktops.
  7. So you can start working with more styles, background images,
  8. and other resources. You'll also notice the grid starts to
  9. come into play. Have fun!
  10. ******************************************************************/
  11. /*********************
  12. GENERAL STYLES
  13. *********************/
  14. body {}
  15. /********************
  16. WORDPRESS BODY CLASSES
  17. style a page via class
  18. ********************/
  19. .rtl {}
  20. .home {} /* home page */
  21. .blog {} /* blog page */
  22. .archive {} /* archive page */
  23. .date {} /* date archive page */
  24. .date-paged-1 {} /* replace the number to the corresponding page number */
  25. .search {} /* search page */
  26. .search-results {} /* search result page */
  27. .search-no-results {} /* no results search page */
  28. .search-paged-1 {} /* individual paged search (i.e. body.search-paged-3) */
  29. .error404 {} /* 404 page */
  30. .single {} /* single post page */
  31. .postid-1 {} /* individual post page by id (i.e. body.postid-73) */
  32. .single-paged-1 {} /* individual paged single (i.e. body.single-paged-3) */
  33. .attachment {} /* attatchment page */
  34. .attachmentid-1 {} /* individual attatchment page (i.e. body.attachmentid-763) */
  35. .attachment-mime-type {} /* style mime type pages */
  36. .author {} /* author page */
  37. .author-nicename {} /* user nicename (i.e. body.author-samueladams) */
  38. .author-paged-1 {} /* paged author archives (i.e. body.author-paged-4) for page 4 */
  39. .category {} /* category page */
  40. .category-1 {} /* individual category page (i.e. body.category-6) */
  41. .category-paged-1 {} /* replace the number to the corresponding page number */
  42. .tag {} /* tag page */
  43. .tag-slug {} /* individual tag page (i.e. body.tag-news) */
  44. .tag-paged-1 {} /* replace the number to the corresponding page number */
  45. .page-template {} /* custom page template page */
  46. .page-template-page-php {} /* individual page template (i.e. body.page-template-contact-php */
  47. .page-paged-1 {} /* replace the number to the corresponding page number */
  48. .page-parent {}
  49. .page-child {}
  50. .parent-pageid-1 {} /* replace the number to the corresponding page number */
  51. .logged-in {} /* if user is logged in */
  52. .paged {} /* paged items like search results or archives */
  53. .paged-1 {} /* individual paged (i.e. body.paged-3) */
  54. /*********************
  55. LAYOUT & GRID STYLES
  56. *********************/
  57. .wrap {
  58. max-width: 1140px;
  59. }
  60. /*
  61. This is a combination of the 1140 grid and Twitter Boostrap.
  62. I liked 1140 but Boostrap's grid was way more detailed so
  63. I merged them together, let's see how this works out.
  64. If you want to use 1140, the original values are commented
  65. out on each line.
  66. */
  67. .onecol { width: 5.801104972%; } /* 4.85%; } /* grid_1 */
  68. .twocol { width: 14.364640883%; } /* 13.45%; } /* grid_2 */
  69. .threecol { width: 22.928176794%; } /* 22.05%; } /* grid_3 */
  70. .fourcol { width: 31.491712705%; } /* 30.75%; } /* grid_4 */
  71. .fivecol { width: 40.055248616%; } /* 39.45%; } /* grid_5 */
  72. .sixcol { width: 48.618784527%; } /* 48%; } /* grid_6 */
  73. .sevencol { width: 57.182320438000005%; } /* 56.75%; } /* grid_7 */
  74. .eightcol { width: 65.74585634900001%; } /* 65.4%; } /* grid_8 */
  75. .ninecol { width: 74.30939226%; } /* 74.05%; } /* grid_9 */
  76. .tencol { width: 82.87292817100001%; } /* 82.7%; } /* grid_10 */
  77. .elevencol { width: 91.436464082%; } /* 91.35%; } /* grid_11 */
  78. .twelvecol { width: 99.999999993%; } /* 100%; } /* grid_12 */
  79. /* layout & column defaults */
  80. .onecol, .twocol, .threecol, .fourcol, .fivecol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol, .twelvecol {
  81. position: relative;
  82. float: left;
  83. margin-left: 2.762430939%;
  84. }
  85. .first {
  86. margin-left: 0;
  87. }
  88. .last {
  89. float: right;
  90. }
  91. /*********************
  92. HEADER SYTLES
  93. *********************/
  94. .header {}
  95. #logo {}
  96. /*********************
  97. NAVIGATION STYLES
  98. *********************/
  99. .nav {}
  100. /* .menu is clearfixed inside mixins.less */
  101. .menu {
  102. ul {
  103. background: #eee;
  104. li {
  105. float: left;
  106. position: relative;
  107. a {
  108. border-bottom: 0;
  109. /*
  110. you can use hover styles here even though this size
  111. has the possibility of bieng a mobile device.
  112. */
  113. &:hover, &:focus {
  114. background-color: #dedede;
  115. }
  116. }
  117. &:first-child {}
  118. &:last-child {}
  119. /*
  120. plan your menus and drop-downs wisely.
  121. */
  122. ul.sub-menu,
  123. ul.children {
  124. width: 200px;
  125. border: 1px solid #ccc;
  126. border-top: 0;
  127. position: absolute;
  128. display: none;
  129. z-index: 8999;
  130. li {
  131. a {
  132. padding-left: 10px;
  133. border-right: 0;
  134. display: block;
  135. width: 180px;
  136. border-bottom: 1px solid #ccc;
  137. &:hover,
  138. &:focus {}
  139. &:link {}
  140. }
  141. &:first-child {}
  142. &:last-child {
  143. a {
  144. border-bottom: 0;
  145. }
  146. }
  147. /*
  148. if you need to go deeper, go nuts
  149. just remember deeper menus suck
  150. for usability. k, bai.
  151. */
  152. ul {}
  153. }
  154. /* highlight sub-menu current page */
  155. li.current-menu-item,
  156. li.current_page_item,
  157. li.current-page-ancestor {
  158. a {}
  159. }
  160. }
  161. /* showing sub-menus */
  162. &:hover ul {
  163. top: auto;
  164. display: block;
  165. }
  166. } /* end .menu ul li */
  167. /* highlight current page */
  168. li.current-menu-item,
  169. li.current_page_item,
  170. li.current-page-ancestor {
  171. a {}
  172. } /* end current highlighters */
  173. } /* end .menu ul */
  174. } /* end .menu */
  175. /*********************
  176. POSTS & CONTENT STYLES
  177. *********************/
  178. #content {}
  179. .hentry {
  180. header {}
  181. footer {}
  182. } /* end .hentry */
  183. .single-title,
  184. .page-title {}
  185. .single-title {}
  186. .page-title {}
  187. .archive_title { }
  188. /* want to style individual post classes? Booya! */
  189. .post-id {} /* post by id (i.e. post-3) */
  190. .post {} /* general post style */
  191. .page {} /* general article on a page style */
  192. .attachment {} /* general style on an attatchment */
  193. .sticky {} /* sticky post style */
  194. .hentry {} /* hentry class */
  195. .category-slug {} /* style by category (i.e. category-videos) */
  196. .tag-slug {} /* style by tag (i.e. tag-news) */
  197. /* post meta */
  198. .meta {
  199. time {}
  200. }
  201. /* post content */
  202. .post-content {
  203. p {}
  204. ul, ol, table, dl {}
  205. ul, ol {
  206. li {}
  207. }
  208. ul {
  209. li {}
  210. }
  211. ol {
  212. li {}
  213. }
  214. blockquote {
  215. &:before {}
  216. }
  217. dl {}
  218. dt {}
  219. dd {}
  220. img {}
  221. /* at this larger size, we can start to align images */
  222. .alignleft, img.alignleft {}
  223. .alignright, img.alignright {}
  224. .aligncenter, img.aligncenter {}
  225. video, object {}
  226. pre, code {}
  227. } /* end .post-content */
  228. .wp-caption {
  229. /* images inside wp-caption */
  230. img {}
  231. p.wp-caption-text {}
  232. } /* end .wp-caption */
  233. /* image gallery styles */
  234. .gallery {
  235. dl {
  236. a {}
  237. img {}
  238. }
  239. dt {}
  240. dd {}
  241. } /* end .gallery */
  242. /* gallery caption styles */
  243. .gallery-caption {}
  244. .size-full {}
  245. .size-large {}
  246. .size-medium {}
  247. .size-thumbnail {}
  248. /******************************************************************
  249. PAGE NAVI STYLES
  250. ******************************************************************/
  251. .page-navigation,
  252. .wp-prev-next {}
  253. .bones_page_navi {
  254. li {
  255. a {
  256. &:hover,
  257. &:focus {}
  258. }
  259. }
  260. /* current page link */
  261. li.bpn-current {
  262. a {
  263. /* hovering on current page link */
  264. &:hover,
  265. &:focus {}
  266. }
  267. } /* end .bones_page_navi .bpn-current */
  268. /* common styles for page-navi links */
  269. li.bpn-prev-link,
  270. li.bpn-next-link {
  271. a {}
  272. }
  273. /* remove the bg on end links */
  274. li.bpn-prev-link a:hover,
  275. li.bpn-next-link a:hover,
  276. li.bpn-first-page-link a:hover,
  277. li.bpn-last-page-link a:hover {}
  278. /* previous link */
  279. li.bpn-prev-link {
  280. a {
  281. &:hover,
  282. &:focus {}
  283. }
  284. }
  285. /* next page link */
  286. li.bpn-next-link {
  287. a {
  288. &:hover,
  289. &:focus {}
  290. }
  291. }
  292. /* first page link */
  293. li.bpn-first-page-link {
  294. a {
  295. &:hover,
  296. &:focus {}
  297. }
  298. }
  299. /* last page link */
  300. li.bpn-last-page-link {
  301. a {}
  302. }
  303. } /* end .bones_page_navi */
  304. /* fallback previous & next links */
  305. .wp-prev-next {
  306. ul {}
  307. .prev-link {}
  308. .next-link {}
  309. } /* end .wp-prev-next */
  310. /******************************************************************
  311. COMMENT STYLES
  312. ******************************************************************/
  313. /* h3 comment title */
  314. #comments {
  315. /* number of comments span */
  316. span {}
  317. }
  318. .comment-nav {
  319. ul {
  320. li {}
  321. }
  322. }
  323. .commentlist {
  324. li {
  325. &:last-child {}
  326. ul.children {
  327. li {}
  328. /* variations */
  329. .comment {}
  330. .alt {}
  331. .odd {}
  332. .even {}
  333. .depth-1 {} /* change number for different depth */
  334. .byuser {}
  335. .bypostauthor {}
  336. .comment-author-admin {}
  337. } /* end .commentlist li ul.children */
  338. }
  339. li[class*=depth-] {}
  340. li.depth-1 {}
  341. li:not(.depth-1) {}
  342. li.depth-2 {}
  343. li.depth-3 {}
  344. li.depth-4 {}
  345. li.depth-5 {}
  346. /* general comment classes */
  347. .alt {}
  348. .odd {}
  349. .even {}
  350. .parent {}
  351. .comment {}
  352. .children {}
  353. .pingback {}
  354. .bypostauthor {}
  355. .comment-author {}
  356. .comment-author-admin {}
  357. .thread-alt {}
  358. .thread-odd {}
  359. .thread-even {}
  360. /* vcard */
  361. .vcard {
  362. cite.fn {
  363. a.url {}
  364. }
  365. time {
  366. a {
  367. &:hover {}
  368. }
  369. }
  370. img.photo {}
  371. img.avatar {}
  372. } /* end .commentlist .vcard */
  373. /* comment meta */
  374. .comment-meta {
  375. a {}
  376. }
  377. .commentmetadata {
  378. a {}
  379. }
  380. /* comment content */
  381. .comment_content {
  382. p {}
  383. } /* end .commentlist .comment_content */
  384. /* comment reply link */
  385. .comment-reply-link {
  386. &:hover,
  387. &:focus {}
  388. } /* end .commentlist .comment-reply-link */
  389. } /* end .commentlist */
  390. /******************************************************************
  391. COMMENT FORM STYLES
  392. ******************************************************************/
  393. .respond-form {
  394. form {
  395. li {
  396. label,
  397. small {}
  398. }
  399. input[type=text],
  400. input[type=email],
  401. input[type=url],
  402. textarea {
  403. &:focus {}
  404. /* form validation */
  405. &:invalid {}
  406. }
  407. input[type=text],
  408. input[type=email],
  409. input[type=url] {}
  410. textarea {}
  411. }
  412. }
  413. /* comment submit button */
  414. #submit {}
  415. /* comment form title */
  416. #comment-form-title {}
  417. /* cancel comment reply link */
  418. #cancel-comment-reply {
  419. a {}
  420. }
  421. /* logged in comments */
  422. .comments-logged-in-as {}
  423. /* allowed tags */
  424. #allowed_tags {}
  425. /* no comments */
  426. .nocomments {}
  427. /*********************
  428. SIDEBARS & ASIDES
  429. *********************/
  430. .sidebar {
  431. margin-top: 2.2em;
  432. }
  433. .widgettitle {
  434. border-bottom: 2px solid #444;
  435. margin-bottom: 0.75em;
  436. }
  437. .widget {
  438. padding: 0 10px;
  439. margin: 2.2em 0;
  440. ul {
  441. li {
  442. margin-bottom: 0.75em;
  443. &:first-child {}
  444. &:last-child {}
  445. a {}
  446. /* deep nesting */
  447. ul {
  448. margin-top: 0.75em;
  449. padding-left: 1em;
  450. }
  451. }
  452. }
  453. }
  454. /* links widget */
  455. .widget_links {}
  456. .widget_links ul {}
  457. .widget_links ul li {}
  458. .widget_links ul li a {}
  459. /* meta widget */
  460. .widget_meta {}
  461. .widget_meta ul {}
  462. .widget_meta ul li {}
  463. .widget_meta ul li a {}
  464. /* pages widget */
  465. .widget_pages {}
  466. .widget_pages ul {}
  467. .widget_pages ul li {}
  468. .widget_pages ul li a {}
  469. /* recent-posts widget */
  470. .widget_recent_entries {}
  471. .widget_recent_entries ul {}
  472. .widget_recent_entries ul li {}
  473. .widget_recent_entries ul li a {}
  474. /* archives widget */
  475. .widget_archive {}
  476. .widget_archive ul {}
  477. .widget_archive ul li {}
  478. .widget_archive ul li a {}
  479. .widget_archive select {}
  480. .widget_archive option {}
  481. /* tag-cloud widget */
  482. .widget_links {}
  483. .widget_links li:after {}
  484. .widget_links li:before {}
  485. .widget_tag_cloud {}
  486. .widget_tag_cloud a {}
  487. .widget_tag_cloud a:after {}
  488. .widget_tag_cloud a:before {}
  489. /* calendar widget */
  490. .widget_calendar {}
  491. #calendar_wrap {}
  492. #calendar_wrap th {}
  493. #calendar_wrap td {}
  494. #wp-calendar tr td {}
  495. #wp-calendar caption {}
  496. #wp-calendar a {}
  497. #wp-calendar #today {}
  498. #wp-calendar #prev {}
  499. #wp-calendar #next {}
  500. #wp-calendar #next a {}
  501. #wp-calendar #prev a {}
  502. /* category widget */
  503. .widget_categories {}
  504. .widget_categories ul {}
  505. .widget_categories ul li {}
  506. .widget_categories ul ul.children {}
  507. .widget_categories a {}
  508. .widget_categories select{}
  509. .widget_categories select#cat {}
  510. .widget_categories select.postform {}
  511. .widget_categories option {}
  512. .widget_categories .level-0 {}
  513. .widget_categories .level-1 {}
  514. .widget_categories .level-2 {}
  515. .widget_categories .level-3 {}
  516. /* recent-comments widget */
  517. .recentcomments {}
  518. #recentcomments {}
  519. #recentcomments li {}
  520. #recentcomments li a {}
  521. .widget_recent_comments {}
  522. /* search widget */
  523. #searchform {}
  524. .widget_search {}
  525. .screen-reader-text {}
  526. /* text widget */
  527. .textwidget {}
  528. .widget_text {}
  529. .textwidget p {}
  530. /*********************
  531. FOOTER STYLES
  532. *********************/
  533. .footer {}
  534. /*
  535. you'll probably need to do quite a bit
  536. of overriding here if you styled them for
  537. mobile. Make sure to double check these!
  538. */
  539. .footer-links {
  540. ul {
  541. li {
  542. a {
  543. &:hover {}
  544. }
  545. /*
  546. be careful with the depth of your menus.
  547. it's very rare to have multi-depth menus in
  548. the footer.
  549. */
  550. ul {}
  551. }
  552. }
  553. } /* end .footer-links */
  554. .attribution {}