768up.sass 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. //
  2. // Site Name:
  3. // Author:
  4. //
  5. // Stylesheet: TABLET & SMALLER LAPTOPS
  6. //
  7. // Here's where you can start getting into the good stuff.
  8. // This size will work on iPads, other tablets, and desktops.
  9. // So you can start working with more styles, background images,
  10. // and other resources. You'll also notice the grid starts to
  11. // come into play. Have fun!
  12. //
  13. //
  14. //
  15. // GENERAL STYLES
  16. //
  17. body
  18. //
  19. // WORDPRESS BODY CLASSES
  20. // style a page via class
  21. //
  22. .rtl // right to left like hebrew
  23. .home // home page
  24. .blog // blog page
  25. .archive // archive page
  26. .date // date archive page
  27. .date-paged-1 // replace the number to the corresponding page number
  28. .search // search page
  29. .search-results // search result page
  30. .search-no-results // no results search page
  31. .search-paged-1 // individual paged search (i.e. body.search-paged-3)
  32. .error404 // 404 page
  33. .single // single post page
  34. .postid-1 // individual post page by id (i.e. body.postid-73)
  35. .single-paged-1 // individual paged single (i.e. body.single-paged-3)
  36. .attachment // attatchment page
  37. .attachmentid-1 // individual attatchment page (i.e. body.attachmentid-763)
  38. .attachment-mime-type // style mime type pages
  39. .author // author page
  40. .author-nicename // user nicename (i.e. body.author-samueladams)
  41. .author-paged-1 // paged author archives (i.e. body.author-paged-4) for page 4
  42. .category // category page
  43. .category-1 // individual category page (i.e. body.category-6)
  44. .category-paged-1 // replace the number to the corresponding page number
  45. .tag // tag page
  46. .tag-slug // individual tag page (i.e. body.tag-news)
  47. .tag-paged-1 // replace the number to the corresponding page number
  48. .page-template // custom page template page
  49. .page-template-page-php // individual page template (i.e. body.page-template-contact-php
  50. .page-paged-1 // replace the number to the corresponding page number
  51. .page-parent // parent page
  52. .page-child // child page
  53. .parent-pageid-1 // replace the number to the corresponding page number
  54. .logged-in // if user is logged in
  55. .paged // paged items like search results or archives
  56. .paged-1 // individual paged (i.e. body.paged-3)
  57. //
  58. // LAYOUT & GRID STYLES
  59. //
  60. .wrap
  61. max-width: 1000px
  62. //
  63. // This is a combination of the 1140 grid and Twitter Boostrap.
  64. // I liked 1140 but Boostrap's grid was way more detailed so
  65. // I merged them together, let's see how this works out.
  66. // If you want to use 1140, the original values are commented
  67. // out on each line.
  68. //
  69. .onecol
  70. width: 5.801104972% // grid_1
  71. .twocol
  72. width: 14.364640883% // grid_2
  73. .threecol
  74. width: 22.928176794% // grid_3
  75. .fourcol
  76. width: 31.491712705% // grid_4
  77. .fivecol
  78. width: 40.055248616% // grid_5
  79. .sixcol
  80. width: 48.618784527% // grid_6
  81. .sevencol
  82. width: 57.182320438000005% // grid_7
  83. .eightcol
  84. width: 65.74585634900001% // grid_8
  85. .ninecol
  86. width: 74.30939226% // grid_9
  87. .tencol
  88. width: 82.87292817100001% // grid_10
  89. .elevencol
  90. width: 91.436464082% // grid_11
  91. .twelvecol
  92. width: 99.999999993% // grid_12
  93. // layout & column defaults
  94. .onecol, .twocol, .threecol, .fourcol, .fivecol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol, .twelvecol
  95. position: relative
  96. float: left
  97. margin-left: 2.762430939%
  98. .first
  99. margin-left: 0
  100. .last
  101. float: right
  102. //
  103. // HEADER SYTLES
  104. //
  105. .header
  106. #logo
  107. //
  108. // NAVIGATION STYLES
  109. //
  110. //
  111. // POSTS & CONTENT STYLES
  112. //
  113. #content
  114. // want to style individual post classes? Booya!
  115. .hentry // standard post class
  116. .post-id // post by id (i.e. post-3)
  117. .post // general post style
  118. .page // general article on a page style
  119. .attachment // general style on an attatchment
  120. .sticky // sticky post style
  121. .hentry // hentry class
  122. .category-slug // style by category (i.e. category-videos)
  123. .tag-slug // style by tag (i.e. tag-news)
  124. .article-header // the header element inside each post
  125. .article-footer // the footer element inside each post
  126. .single-title, // the title (h1) on each single post or page
  127. .page-title
  128. .single-title // the title (h1) on single posts
  129. .page-title // the title (h1) on pages
  130. .archive-title // the archive title on archive / category pages
  131. // post meta
  132. .meta
  133. time
  134. // post content
  135. .post-content
  136. p
  137. ul, ol, table, dl
  138. ul, ol
  139. li
  140. ul
  141. li
  142. ol
  143. li
  144. blockquote
  145. &:before
  146. dl
  147. dt
  148. dd
  149. img
  150. .alignleft, img.alignleft
  151. .alignright, img.alignright
  152. .aligncenter, img.aligncenter
  153. video, object
  154. pre, code
  155. // end .post-content
  156. .wp-caption
  157. // images inside wp-caption
  158. img
  159. p.wp-caption-text
  160. // end .wp-caption
  161. // image gallery styles
  162. .gallery
  163. dl
  164. a
  165. img
  166. dt
  167. dd
  168. // end .gallery
  169. // gallery caption styles
  170. .gallery-caption
  171. .size-full
  172. .size-large
  173. .size-medium
  174. .size-thumbnail
  175. //
  176. // PAGE NAVI STYLES
  177. //
  178. .page-navigation,
  179. .wp-prev-next
  180. .bones_page_navi
  181. li
  182. a
  183. &:hover,
  184. &:focus
  185. // end .bones_page_navi
  186. // current page link
  187. li.bpn-current
  188. a
  189. // hovering on current page link
  190. &:hover,
  191. &:focus
  192. // common styles for page-navi links
  193. li.bpn-prev-link,
  194. li.bpn-next-link
  195. a
  196. // remove the bg on end links
  197. li.bpn-prev-link a:hover,
  198. li.bpn-next-link a:hover,
  199. li.bpn-first-page-link a:hover,
  200. li.bpn-last-page-link a:hover
  201. // previous link
  202. li.bpn-prev-link
  203. a
  204. &:hover,
  205. &:focus
  206. // next page link
  207. li.bpn-next-link
  208. a
  209. &:hover,
  210. &:focus
  211. // first page link
  212. li.bpn-first-page-link
  213. a
  214. &:hover,
  215. &:focus
  216. // last page link
  217. li.bpn-last-page-link
  218. a
  219. &:hover,
  220. &:focus
  221. // fallback previous & next links
  222. .wp-prev-next
  223. ul
  224. .prev-link
  225. .next-link
  226. // end .wp-prev-next
  227. //
  228. // COMMENT STYLES
  229. //
  230. // h3 comment title
  231. #comments
  232. // number of comments span
  233. span
  234. .comment-nav
  235. ul
  236. li
  237. // end .comment-nav
  238. // comment styles
  239. .commentlist
  240. li
  241. &:last-child
  242. ul.children
  243. li
  244. li[class*=depth-]
  245. li.depth-1
  246. li:not(.depth-1)
  247. li.depth-2
  248. li.depth-3
  249. li.depth-4
  250. li.depth-5
  251. .odd
  252. .even
  253. // wordpress comment classes
  254. .comment // regular comment class (present on all)
  255. .alt // an alt comment
  256. .parent // a parent comment
  257. .children // a child comment
  258. .pingback // a pingback
  259. .bypostauthor // a comment by the post author
  260. .comment-author // a comment by the author
  261. .comment-author-admin // a comment by the author who is admin
  262. .thread-alt // a comment inside a thread alt
  263. .thread-odd // an odd comment inside thread
  264. .thread-even // an even comment inside thread
  265. /// comment vcard
  266. .vcard
  267. // comment author name
  268. cite.fn
  269. // author link url
  270. a.url
  271. // comment date
  272. time
  273. a
  274. &:hover
  275. // the comment gravatar
  276. img.avatar
  277. // end .commentlist
  278. // comment meta
  279. .comment-meta
  280. a
  281. // comment meta data
  282. .commentmetadata
  283. a
  284. // comment content
  285. .comment_content
  286. p
  287. // end .comment_content
  288. // comment reply link
  289. .comment-reply-link
  290. &:hover,
  291. &:focus
  292. // end .comment-reply-link
  293. //
  294. // COMMENT FORM STYLES
  295. //
  296. .respond-form
  297. form
  298. li
  299. label,
  300. small
  301. input[type=text],
  302. input[type=email],
  303. input[type=url],
  304. textarea
  305. &:focus
  306. // form validation
  307. &:invalid
  308. input[type=text],
  309. input[type=email],
  310. input[type=url]
  311. textarea
  312. // end .respond-form
  313. // comment submit button
  314. #submit
  315. // comment form title
  316. #comment-form-title
  317. // cancel comment reply link
  318. #cancel-comment-reply
  319. a
  320. // logged in comments
  321. .comments-logged-in-as
  322. // allowed tags
  323. #allowed_tags
  324. // no comments
  325. .nocomments
  326. //
  327. // SIDEBARS & ASIDES
  328. //
  329. .sidebar
  330. .widgettitle
  331. border-bottom: 4px double #ccc
  332. margin-bottom: 0.75em
  333. font-weight: 300
  334. .widget
  335. padding: 0 10px
  336. margin: 2.2em 0
  337. ul
  338. li
  339. margin-bottom: 0.75em
  340. &:first-child
  341. &:last-child
  342. a
  343. // deep nesting
  344. ul
  345. margin-top: 0.75em
  346. padding-left: 1em
  347. // end .widget
  348. // links widget
  349. .widget_links
  350. ul
  351. li
  352. a
  353. // meta widget
  354. .widget_links
  355. ul
  356. li
  357. a
  358. // pages widget
  359. .widget_links
  360. ul
  361. li
  362. a
  363. // recent-posts widget
  364. .widget_recent_entries
  365. ul
  366. li
  367. a
  368. // archives widget
  369. .widget_archive
  370. ul
  371. li
  372. a
  373. select
  374. option
  375. // tag-cloud widget
  376. .widget_links
  377. ul
  378. li
  379. &:before
  380. &:after
  381. a
  382. &:before
  383. &:after
  384. // calendar widget
  385. .widget_calendar
  386. #calendar_wrap
  387. th
  388. td
  389. #wp-calendar
  390. tr
  391. td
  392. caption
  393. a
  394. #today
  395. #prev
  396. a
  397. #next
  398. a
  399. // category widget
  400. .widget_categories
  401. ul
  402. li
  403. ul.children
  404. a
  405. select
  406. #cat
  407. .postform
  408. option
  409. .level-0
  410. .level-1
  411. .level-2
  412. .level-3
  413. // recent-comments widget
  414. .recentcomments
  415. #recentcomments
  416. li
  417. a
  418. .widget_recent_comments
  419. // search widget
  420. #searchform
  421. .widget_search
  422. .screen-reader-text
  423. // text widget
  424. .textwidget
  425. p
  426. .widget_text
  427. //
  428. // FOOTER STYLES
  429. //
  430. //
  431. // you'll probably need to do quite a bit
  432. // of overriding here if you styled them for
  433. // mobile. Make sure to double check these!
  434. //
  435. .footer-links
  436. ul
  437. li
  438. // end .footer-links
  439. .attribution