base.sass 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. //
  2. // Site Name:
  3. // Author:
  4. //
  5. // Stylesheet: Base Mobile Stylesheet
  6. //
  7. // Be light and don't over style since everything here will be
  8. // loaded by mobile devices. You want to keep it as minimal as
  9. // possible. This is called by itself and is the only one called
  10. // for devices that are smaller than 480px so that the mobile
  11. // version pulls ONLY the css it needs. This means it's screamingly
  12. // fast on mobile connections.
  13. //
  14. // For more info, check out this great link on the topic:
  15. // http://nicolasgallagher.com/mobile-first-css-sass-and-ie/
  16. //
  17. //
  18. //
  19. // IMPORTING STYLES
  20. //
  21. // import reset
  22. @import "normalize"
  23. // import mixins
  24. @import "mixins"
  25. //
  26. // GENERAL STYLES
  27. //
  28. body
  29. font-family: Georgia, serif
  30. font-size: 14px
  31. line-height: 1.5
  32. color: #565656
  33. background: #fefefe
  34. //
  35. // WORDPRESS BODY CLASSES
  36. // style a page via class
  37. //
  38. .rtl // for sites that are read right to left (i.e. hebrew)
  39. .home // home page
  40. .blog // blog template page
  41. .archive // archive page
  42. .date // date archive page
  43. .date-paged-1 // replace the number to the corresponding page number
  44. .search // search page
  45. .search-results // search result page
  46. .search-no-results // no results search page
  47. .search-paged-1 // individual paged search (i.e. body.search-paged-3)
  48. .error404 // 404 page
  49. .single // single post page
  50. .postid-1 // individual post page by id (i.e. body.postid-73)
  51. .single-paged-1 // individual paged single (i.e. body.single-paged-3)
  52. .attachment // attatchment page
  53. .attachmentid-1 // individual attatchment page (i.e. body.attachmentid-763)
  54. .attachment-mime-type // style mime type pages
  55. .author // author page */
  56. .author-nicename // user nicename (i.e. body.author-samueladams)
  57. .author-paged-1 // paged author archives (i.e. body.author-paged-4) for page 4
  58. .category // category page
  59. .category-1 // individual category page (i.e. body.category-6)
  60. .category-paged-1 // replace the number to the corresponding page number
  61. .tag // tag page
  62. .tag-slug // individual tag page (i.e. body.tag-news)
  63. .tag-paged-1 // replace the number to the corresponding page number
  64. .page-template // custom page template page
  65. .page-template-page-php // individual page template (i.e. body.page-template-contact-php
  66. .page-paged-1 // replace the number to the corresponding page number
  67. .page-parent // parent page template
  68. .page-child // child page template
  69. .parent-pageid-1 // replace the number to the corresponding page number
  70. .logged-in // if user is logged in
  71. .paged // paged items like search results or archives
  72. .paged-1 // individual paged (i.e. body.paged-3)
  73. //
  74. // LAYOUT & GRID STYLES
  75. //
  76. .wrap
  77. width: 90%
  78. margin: 0 auto
  79. //
  80. // No Grid? Say Whaaaat?
  81. // There's really no need for all that
  82. // extraneous grid css since floating
  83. // columns wouldn't really fit on such a
  84. // small screen, so let's only bring it in
  85. // when we're ready for it.
  86. //
  87. //
  88. // LINK STYLES
  89. //
  90. a, a:visited
  91. color: #f01d4f
  92. // on hover
  93. &:hover, &:focus
  94. color: #f05e81
  95. // on click
  96. &:active
  97. // mobile tap color
  98. &:link
  99. //
  100. // this highlights links on iPhones/iPads.
  101. // so it basically works like the :hover selector
  102. // for mobile devices.
  103. //
  104. -webkit-tap-highlight-color : rgba(0,0,0,0)
  105. //
  106. // H1, H2, H3, H4, H5 STYLES
  107. //
  108. h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5
  109. font-family: sans-serif
  110. font-weight: 500
  111. //
  112. // if you're going to use webfonts, be sure to check your weights
  113. // http://css-tricks.com/watch-your-font-weight/
  114. //
  115. // removing text decoration from all headline links
  116. a
  117. text-decoration: none
  118. h1, .h1
  119. font-size: 2.5em
  120. line-height: 1.333em
  121. h2, .h2
  122. font-size: 1.75em
  123. line-height: 1.4em
  124. margin-bottom: 0.375em
  125. h3, .h3
  126. font-size: 1.125em
  127. h4, .h4
  128. font-size: 1.1em
  129. font-weight: 700
  130. h5, .h5
  131. font-size: 0.846em
  132. line-height: 2.09em
  133. text-transform: uppercase
  134. letter-spacing: 2px
  135. //
  136. // HEADER SYTLES
  137. //
  138. .header
  139. #logo
  140. //
  141. // NAVIGATION STYLES
  142. //
  143. //
  144. // POSTS & CONTENT STYLES
  145. //
  146. #content
  147. margin-top: 2.2em
  148. // want to style individual post classes? Booya!
  149. .hentry // standard post class
  150. border-bottom: 4px double #ccc
  151. .post-id // post by id (i.e. post-3)
  152. .post // general post style
  153. .page // general article on a page style
  154. .attachment // general style on an attatchment
  155. .sticky // sticky post style
  156. .hentry // hentry class
  157. .category-slug // style by category (i.e. category-videos)
  158. .tag-slug // style by tag (i.e. tag-news)
  159. .article-header // the header element inside each post
  160. .article-footer // the footer element inside each post
  161. .single-title, // the title (h1) on each single post or page
  162. .page-title
  163. .single-title // the title (h1) on single posts
  164. .page-title // the title (h1) on pages
  165. .archive-title // the archive title on archive / category pages
  166. // post meta
  167. .meta
  168. color: #999
  169. time
  170. // post content
  171. .post-content
  172. p
  173. ul, ol, table, dl
  174. ul, ol
  175. li
  176. ul
  177. li
  178. ol
  179. li
  180. blockquote
  181. &:before
  182. dl
  183. dt
  184. dd
  185. margin-left: 0
  186. font-size: 0.9em
  187. color: #787878
  188. margin-bottom: 1.5em
  189. img
  190. margin: 0 0 1.5em 0
  191. max-width: 100%
  192. height: auto
  193. //
  194. // image alignment on a screen this size may be
  195. // a bit difficult. It's set to start aligning
  196. // and floating images at the next breakpoint,
  197. // but it's up to you. Feel free to change it up.
  198. //
  199. .alignleft, img.alignleft
  200. .alignright, img.alignright
  201. .aligncenter, img.aligncenter
  202. video, object
  203. max-width: 100%
  204. pre, code
  205. background: #eee
  206. border: 1px solid #cecece
  207. padding: 10px
  208. // end .post-content
  209. .wp-caption
  210. background: #eee
  211. padding: 5px
  212. // images inside wp-caption
  213. img
  214. margin-bottom: 0
  215. width: 100%
  216. p.wp-caption-text
  217. font-size: 0.85em
  218. margin: 4px 0 7px
  219. text-align: center
  220. // end .wp-caption
  221. // image gallery styles
  222. .gallery
  223. dl
  224. a
  225. img
  226. dt
  227. dd
  228. // end .gallery
  229. // gallery caption styles
  230. .gallery-caption
  231. .size-full
  232. .size-large
  233. .size-medium
  234. .size-thumbnail
  235. //
  236. // PAGE NAVI STYLES
  237. //
  238. .page-navigation,
  239. .wp-prev-next
  240. margin: 1.1em 0 2.2em
  241. .bones_page_navi
  242. li
  243. float: left
  244. margin-left: 10px
  245. a
  246. padding: 3px 6px
  247. display: block
  248. text-decoration: none
  249. position: relative
  250. &:hover,
  251. &:focus
  252. color: #f01d4f
  253. text-decoration: underline
  254. // end .bones_page_navi
  255. // current page link
  256. li.bpn-current
  257. padding: 3px 6px
  258. border-bottom: 2px solid #f01d4f
  259. position: relative
  260. a
  261. // hovering on current page link
  262. &:hover,
  263. &:focus
  264. // common styles for page-navi links
  265. li.bpn-prev-link,
  266. li.bpn-next-link
  267. font-weight: 700
  268. a
  269. padding: 0
  270. // remove the bg on end links
  271. li.bpn-prev-link a:hover,
  272. li.bpn-next-link a:hover,
  273. li.bpn-first-page-link a:hover,
  274. li.bpn-last-page-link a:hover
  275. background: none
  276. // previous link
  277. li.bpn-prev-link
  278. a
  279. &:hover,
  280. &:focus
  281. // next page link
  282. li.bpn-next-link
  283. a
  284. &:hover,
  285. &:focus
  286. // first page link
  287. li.bpn-first-page-link
  288. a
  289. &:hover,
  290. &:focus
  291. // last page link
  292. li.bpn-last-page-link
  293. a
  294. &:hover,
  295. &:focus
  296. // fallback previous & next links
  297. .wp-prev-next
  298. ul
  299. .prev-link
  300. float: left
  301. .next-link
  302. float: right
  303. // end .wp-prev-next
  304. //
  305. // COMMENT STYLES
  306. //
  307. // h3 comment title
  308. #comments
  309. // number of comments span
  310. span
  311. .comment-nav
  312. ul
  313. li
  314. // end .comment-nav
  315. // comment styles
  316. .commentlist
  317. li
  318. position: relative
  319. clear: both
  320. overflow: hidden
  321. list-style-type: none
  322. margin-bottom: 1.5em
  323. padding: 0.7335em 10px
  324. &:last-child
  325. margin-bottom: 0
  326. ul.children
  327. margin: 0
  328. li
  329. li[class*=depth-]
  330. margin-top: 1.1em
  331. li.depth-1
  332. margin-left: 0
  333. margin-top: 0
  334. li:not(.depth-1)
  335. margin-right: -10px
  336. margin-left: -10px
  337. margin-top: 0
  338. padding-bottom: 0
  339. li.depth-2
  340. li.depth-3
  341. li.depth-4
  342. li.depth-5
  343. .odd
  344. background: #eee
  345. .even
  346. background: #fefefe
  347. // wordpress comment classes
  348. .comment // regular comment class (present on all)
  349. .alt // an alt comment
  350. .parent // a parent comment
  351. .children // a child comment
  352. .pingback // a pingback
  353. .bypostauthor // a comment by the post author
  354. .comment-author // a comment by the author
  355. .comment-author-admin // a comment by the author who is admin
  356. .thread-alt // a comment inside a thread alt
  357. .thread-odd // an odd comment inside thread
  358. .thread-even // an even comment inside thread
  359. /// comment vcard
  360. .vcard
  361. margin-left: 50px
  362. // comment author name
  363. cite.fn
  364. font-weight: 700
  365. font-style: normal
  366. // author link url
  367. a.url
  368. // comment date
  369. time
  370. float: right
  371. a
  372. color: #999
  373. text-decoration: none
  374. &:hover
  375. text-decoration: underline
  376. // the comment gravatar
  377. img.avatar
  378. position: absolute
  379. left: 10px
  380. padding: 2px
  381. border: 1px solid #cecece
  382. background: #fff
  383. // end .commentlist
  384. // comment meta
  385. .comment-meta
  386. a
  387. // comment meta data
  388. .commentmetadata
  389. a
  390. // comment content
  391. .comment_content
  392. margin-left: 50px
  393. p
  394. margin: 0.7335em 0 1.5em
  395. font-size: 1em
  396. line-height: 1.5em
  397. // end .comment_content
  398. // comment reply link
  399. .comment-reply-link
  400. text-decoration: none
  401. float: right
  402. background: #4598bb
  403. padding: 3px 5px
  404. color: $white
  405. opacity: 0.65
  406. margin-bottom: 10px
  407. font-weight: 700
  408. font-size: 0.9em
  409. &:hover,
  410. &:focus
  411. opacity: 1
  412. // end .comment-reply-link
  413. //
  414. // COMMENT FORM STYLES
  415. //
  416. .respond-form
  417. margin: 1.5em 10px
  418. padding-bottom: 2.2em
  419. form
  420. margin: 0.75em 0
  421. li
  422. list-style-type: none
  423. clear: both
  424. margin-bottom: 0.7335em
  425. label,
  426. small
  427. display: none
  428. input[type=text],
  429. input[type=email],
  430. input[type=url],
  431. textarea
  432. padding: 3px 6px
  433. background: #efefef
  434. border: 2px solid #cecece
  435. line-height: 1.5em
  436. &:focus
  437. background: $white
  438. // form validation
  439. &:invalid
  440. outline: none
  441. border-color: #fbc2c4
  442. background-color: #f6e7eb
  443. -webkit-box-shadow: none
  444. -moz-box-shadow: none
  445. -ms-box-shadow: none
  446. box-shadow: none
  447. input[type=text],
  448. input[type=email],
  449. input[type=url]
  450. max-width: 400px
  451. min-width: 250px
  452. textarea
  453. resize: none
  454. width: 97.3%
  455. height: 150px
  456. // end .respond-form
  457. // comment submit button
  458. #submit
  459. // comment form title
  460. #comment-form-title
  461. margin: 0 0 1.1em
  462. // cancel comment reply link
  463. #cancel-comment-reply
  464. a
  465. // logged in comments
  466. .comments-logged-in-as
  467. // allowed tags
  468. #allowed_tags
  469. margin: 1.5em 10px 0.7335em 0
  470. // no comments
  471. .nocomments
  472. margin: 0 20px 1.1em
  473. //
  474. // SIDEBARS & ASIDES
  475. //
  476. .sidebar
  477. .widgettitle
  478. .widget
  479. ul
  480. li
  481. &:first-child
  482. &:last-child
  483. a
  484. // deep nesting
  485. ul
  486. // end .widget
  487. //
  488. // FOOTER STYLES
  489. //
  490. .footer
  491. clear: both
  492. //
  493. // if you checked out the link above:
  494. // http://www.alistapart.com/articles/organizing-mobile/
  495. // you'll want to style the footer nav
  496. // a bit more in-depth. Remember to keep
  497. // it simple because you'll have to
  498. // override these styles for the desktop
  499. // view.
  500. //
  501. .footer-links
  502. ul
  503. li
  504. // end .footer-links
  505. .attribution