_base.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. /******************************************************************
  2. Site Name:
  3. Author:
  4. Stylesheet: Base Mobile Stylesheet
  5. Be light and don't over style since everything here will be
  6. loaded by mobile devices. You want to keep it as minimal as
  7. possible. This is called at the top of the main stylsheet
  8. and will be used across all viewports.
  9. ******************************************************************/
  10. /*********************
  11. GENERAL STYLES
  12. *********************/
  13. body {
  14. font-family: Georgia, serif;
  15. font-size: 14px;
  16. line-height: 1.5;
  17. color: #565656;
  18. }
  19. /********************
  20. WORDPRESS BODY CLASSES
  21. style a page via class
  22. ********************/
  23. .rtl {} /* for sites that are read right to left (i.e. hebrew) */
  24. .home {} /* home page */
  25. .blog {} /* blog template page */
  26. .archive {} /* archive page */
  27. .date {} /* date archive page */
  28. .date-paged-1 {} /* replace the number to the corresponding page number */
  29. .search {} /* search page */
  30. .search-results {} /* search result page */
  31. .search-no-results {} /* no results search page */
  32. .search-paged-1 {} /* individual paged search (i.e. body.search-paged-3) */
  33. .error404 {} /* 404 page */
  34. .single {} /* single post page */
  35. .postid-1 {} /* individual post page by id (i.e. body.postid-73) */
  36. .single-paged-1 {} /* individual paged single (i.e. body.single-paged-3) */
  37. .attachment {} /* attatchment page */
  38. .attachmentid-1 {} /* individual attatchment page (i.e. body.attachmentid-763) */
  39. .attachment-mime-type {} /* style mime type pages */
  40. .author {} /* author page */
  41. .author-nicename {} /* user nicename (i.e. body.author-samueladams) */
  42. .author-paged-1 {} /* paged author archives (i.e. body.author-paged-4) for page 4 */
  43. .category {} /* category page */
  44. .category-1 {} /* individual category page (i.e. body.category-6) */
  45. .category-paged-1 {} /* replace the number to the corresponding page number */
  46. .tag {} /* tag page */
  47. .tag-slug {} /* individual tag page (i.e. body.tag-news) */
  48. .tag-paged-1 {} /* replace the number to the corresponding page number */
  49. .page-template {} /* custom page template page */
  50. .page-template-page-php {} /* individual page template (i.e. body.page-template-contact-php */
  51. .page-paged-1 {} /* replace the number to the corresponding page number */
  52. .page-parent {} /* parent page template */
  53. .page-child {} /* child page template */
  54. .parent-pageid-1 {} /* replace the number to the corresponding page number */
  55. .logged-in {} /* if user is logged in */
  56. .paged {} /* paged items like search results or archives */
  57. .paged-1 {} /* individual paged (i.e. body.paged-3) */
  58. /*********************
  59. LAYOUT & GRID STYLES
  60. *********************/
  61. .wrap {
  62. width: 96%;
  63. margin: 0 auto;
  64. }
  65. /*********************
  66. LINK STYLES
  67. *********************/
  68. a, a:visited {
  69. color: $link-color;
  70. /* on hover */
  71. &:hover, &:focus {
  72. color: $link-hover;
  73. }
  74. /* on click */
  75. &:active {
  76. }
  77. /* mobile tap color */
  78. &:link {
  79. /*
  80. this highlights links on iPhones/iPads.
  81. so it basically works like the :hover selector
  82. for mobile devices.
  83. */
  84. -webkit-tap-highlight-color : rgba( 0, 0, 0, 0.3 );
  85. }
  86. }
  87. /******************************************************************
  88. H1, H2, H3, H4, H5 STYLES
  89. ******************************************************************/
  90. h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
  91. font-family: sans-serif;
  92. text-rendering: optimizelegibility;
  93. font-weight: 500;
  94. /*
  95. if you're going to use webfonts, be sure to check your weights
  96. http://css-tricks.com/watch-your-font-weight/
  97. */
  98. /* removing text decoration from all headline links */
  99. a {
  100. text-decoration: none;
  101. }
  102. }
  103. h1, .h1 {
  104. font-size: 2.5em;
  105. line-height: 1.333em;
  106. }
  107. h2, .h2 {
  108. font-size: 1.75em;
  109. line-height: 1.4em;
  110. margin-bottom: 0.375em;
  111. }
  112. h3, .h3 {
  113. font-size: 1.125em;
  114. }
  115. h4, .h4 {
  116. font-size: 1.1em;
  117. font-weight: 700;
  118. }
  119. h5, .h5 {
  120. font-size: 0.846em;
  121. line-height: 2.09em;
  122. text-transform: uppercase;
  123. letter-spacing: 2px;
  124. }
  125. /*********************
  126. HEADER SYTLES
  127. *********************/
  128. .header {}
  129. #logo {}
  130. /*********************
  131. NAVIGATION STYLES
  132. *********************/
  133. /*
  134. all navs have a .nav class applied via
  135. the wp_menu function, this is so we can
  136. easily just write on group of styles for
  137. the navs on the site and our css is cleaner
  138. and moe scalable.
  139. */
  140. .nav {
  141. border: 1px solid #ccc;
  142. border-bottom: 0;
  143. li {
  144. a {
  145. display: block;
  146. text-decoration: none;
  147. padding: 10px 10px;
  148. background-color: #eee;
  149. border-bottom: 1px solid #ccc;
  150. /*
  151. remember this is for mobile ONLY, so there's no need
  152. to even declare hover styles here, you can do it in
  153. the style.scss file where it's relevant. We want to
  154. keep this file as small as possible!
  155. */
  156. &:hover, &:focus {
  157. }
  158. }
  159. &:first-child {}
  160. &:last-child {}
  161. /*
  162. so you really have to rethink your dropdowns for mobile.
  163. you don't want to have it expand too much because the
  164. screen is so small. How you manage your menu should
  165. depend on the project. Here's some great info on it:
  166. http://www.alistapart.com/articles/organizing-mobile/
  167. */
  168. ul.sub-menu,
  169. ul.children {
  170. li {
  171. a {
  172. padding-left: 30px;
  173. &:hover,
  174. &:focus {}
  175. &:link {}
  176. }
  177. &:first-child {}
  178. &:last-child {}
  179. }
  180. }
  181. } /* end .menu li */
  182. /* highlight current page */
  183. li.current-menu-item,
  184. li.current_page_item,
  185. li.current-page-ancestor {
  186. a {}
  187. } /* end current highlighters */
  188. } /* end .nav */
  189. /*********************
  190. POSTS & CONTENT STYLES
  191. *********************/
  192. #content {
  193. margin-top: 2.2em;
  194. }
  195. .hentry {
  196. header {}
  197. footer {}
  198. } /* end .hentry */
  199. .single-title,
  200. .page-title {}
  201. .single-title {}
  202. .page-title {}
  203. .archive-title { }
  204. /* want to style individual post classes? Booya! */
  205. .post-id {} /* post by id (i.e. post-3) */
  206. .post {} /* general post style */
  207. .page {} /* general article on a page style */
  208. .attachment {} /* general style on an attatchment */
  209. .sticky {} /* sticky post style */
  210. .hentry {} /* hentry class */
  211. .category-slug {} /* style by category (i.e. category-videos) */
  212. .tag-slug {} /* style by tag (i.e. tag-news) */
  213. /* post meta */
  214. .byline {
  215. color: #999;
  216. time {}
  217. }
  218. /* entry content */
  219. .entry-content {
  220. p {}
  221. ul, ol, table, dl {}
  222. ul, ol {
  223. li {}
  224. }
  225. ul {
  226. li {}
  227. }
  228. ol {
  229. li {}
  230. }
  231. blockquote {
  232. &:before {}
  233. }
  234. dl {}
  235. dt {}
  236. dd {
  237. margin-left: 0;
  238. font-size: 0.9em;
  239. color: #787878;
  240. margin-bottom: 1.5em;
  241. }
  242. img {
  243. margin: 0 0 1.5em 0;
  244. max-width: 100%;
  245. height: auto;
  246. }
  247. /*
  248. image alignment on a screen this size may be
  249. a bit difficult. It's set to start aligning
  250. and floating images at the next breakpoint,
  251. but it's up to you. Feel free to change it up.
  252. */
  253. .alignleft, img.alignleft {}
  254. .alignright, img.alignright {}
  255. .aligncenter, img.aligncenter {}
  256. video, object {
  257. max-width: 100%;
  258. height: auto;
  259. }
  260. pre {
  261. background: #eee;
  262. border: 1px solid #cecece;
  263. padding: 10px;
  264. }
  265. } /* end .entry-content */
  266. .wp-caption {
  267. background: #eee;
  268. padding: 5px;
  269. /* images inside wp-caption */
  270. img {
  271. margin-bottom: 0;
  272. width: 100%;
  273. }
  274. p.wp-caption-text {
  275. font-size: 0.85em;
  276. margin: 4px 0 7px;
  277. text-align: center;
  278. }
  279. } /* end .wp-caption */
  280. /* image gallery styles */
  281. .gallery {
  282. dl {
  283. a {}
  284. img {}
  285. }
  286. dt {}
  287. dd {}
  288. } /* end .gallery */
  289. /* gallery caption styles */
  290. .gallery-caption {}
  291. .size-full {}
  292. .size-large {}
  293. .size-medium {}
  294. .size-thumbnail {}
  295. /******************************************************************
  296. PAGE NAVI STYLES
  297. ******************************************************************/
  298. .page-navigation,
  299. .wp-prev-next {
  300. margin: 1.1em 0 2.2em;
  301. }
  302. .bones_page_navi {
  303. li {
  304. float: left;
  305. margin-left: 10px;
  306. a {
  307. padding: 3px 6px;
  308. display: block;
  309. text-decoration: none;
  310. position: relative;
  311. &:hover,
  312. &:focus {
  313. color: #f01d4f;
  314. text-decoration: underline;
  315. }
  316. }
  317. }
  318. /* current page link */
  319. li.bpn-current {
  320. padding: 3px 6px;
  321. border-bottom: 2px solid #f01d4f;
  322. position: relative;
  323. a {
  324. /* hovering on current page link */
  325. &:hover,
  326. &:focus {}
  327. }
  328. } /* end .bones_page_navi .bpn-current */
  329. /* common styles for page-navi links */
  330. li.bpn-prev-link,
  331. li.bpn-next-link {
  332. font-weight: 700;
  333. a {
  334. padding: 0;
  335. }
  336. }
  337. /* remove the bg on end links */
  338. li.bpn-prev-link a:hover,
  339. li.bpn-next-link a:hover,
  340. li.bpn-first-page-link a:hover,
  341. li.bpn-last-page-link a:hover {
  342. background: none;
  343. }
  344. /* previous link */
  345. li.bpn-prev-link {
  346. a {
  347. &:hover,
  348. &:focus {}
  349. }
  350. }
  351. /* next page link */
  352. li.bpn-next-link {
  353. a {
  354. &:hover,
  355. &:focus {}
  356. }
  357. }
  358. /* first page link */
  359. li.bpn-first-page-link {
  360. a {
  361. &:hover,
  362. &:focus {}
  363. }
  364. }
  365. /* last page link */
  366. li.bpn-last-page-link {
  367. a {
  368. &:hover,
  369. &:focus {}
  370. }
  371. }
  372. } /* end .bones_page_navi */
  373. /* fallback previous & next links */
  374. .wp-prev-next {
  375. ul {}
  376. .prev-link {
  377. float: left;
  378. }
  379. .next-link {
  380. float: right;
  381. }
  382. } /* end .wp-prev-next */
  383. /******************************************************************
  384. COMMENT STYLES
  385. ******************************************************************/
  386. /* h3 comment title */
  387. #comments {
  388. /* number of comments span */
  389. span {}
  390. }
  391. .comment-nav {
  392. ul {
  393. li {}
  394. }
  395. }
  396. .commentlist {
  397. li {
  398. position: relative;
  399. clear: both;
  400. overflow: hidden;
  401. list-style-type: none;
  402. margin-bottom: 1.5em;
  403. padding: 0.7335em 10px;
  404. &:last-child {
  405. margin-bottom: 0;
  406. }
  407. ul.children {
  408. margin: 0;
  409. li {}
  410. /* variations */
  411. .comment {}
  412. .alt {}
  413. .odd {}
  414. .even {}
  415. .depth-1 {} /* change number for different depth */
  416. .byuser {}
  417. .bypostauthor {}
  418. .comment-author-admin {}
  419. } /* end .commentlist li ul.children */
  420. }
  421. li[class*=depth-] {
  422. margin-top: 1.1em;
  423. }
  424. li.depth-1 {
  425. margin-left: 0;
  426. margin-top: 0;
  427. }
  428. li:not(.depth-1) {
  429. margin-right: -10px;
  430. margin-left: -10px;
  431. margin-top: 0;
  432. padding-bottom: 0;
  433. }
  434. li.depth-2 {}
  435. li.depth-3 {}
  436. li.depth-4 {}
  437. li.depth-5 {}
  438. /* general comment classes */
  439. .alt {}
  440. .odd {
  441. background: #eee;
  442. }
  443. .even {
  444. background: #fefefe;
  445. }
  446. .parent {}
  447. .comment {}
  448. .children {}
  449. .pingback {}
  450. .bypostauthor {}
  451. .comment-author {}
  452. .comment-author-admin {}
  453. .thread-alt {}
  454. .thread-odd {}
  455. .thread-even {}
  456. /* vcard */
  457. .vcard {
  458. margin-left: 50px;
  459. cite.fn {
  460. font-weight: 700;
  461. font-style: normal;
  462. a.url {}
  463. }
  464. time {
  465. float: right;
  466. a {
  467. color: #999;
  468. text-decoration: none;
  469. &:hover {
  470. text-decoration: underline;
  471. }
  472. }
  473. }
  474. img.photo {}
  475. img.avatar {
  476. position: absolute;
  477. left: 10px;
  478. padding: 2px;
  479. border: 1px solid #cecece;
  480. background: #fff;
  481. }
  482. } /* end .commentlist .vcard */
  483. /* comment meta */
  484. .comment-meta {
  485. a {}
  486. }
  487. .commentmetadata {
  488. a {}
  489. }
  490. /* comment content */
  491. .comment_content {
  492. margin-left: 50px;
  493. p {
  494. margin: 0.7335em 0 1.5em;
  495. font-size: 1em;
  496. line-height: 1.5em;
  497. }
  498. } /* end .commentlist .comment_content */
  499. /* comment reply link */
  500. .comment-reply-link {
  501. text-decoration: none;
  502. float: right;
  503. background: #4598bb;
  504. padding: 3px 5px;
  505. color: #fff;
  506. opacity: 0.65;
  507. margin-bottom: 10px;
  508. font-weight: 700;
  509. font-size: 0.9em;
  510. &:hover,
  511. &:focus {
  512. opacity: 1;
  513. }
  514. } /* end .commentlist .comment-reply-link */
  515. } /* end .commentlist */
  516. /******************************************************************
  517. COMMENT FORM STYLES
  518. ******************************************************************/
  519. .respond-form {
  520. margin: 1.5em 10px;
  521. padding-bottom: 2.2em;
  522. form {
  523. margin: 0.75em 0;
  524. li {
  525. list-style-type: none;
  526. clear: both;
  527. margin-bottom: 0.7335em;
  528. label,
  529. small {
  530. display: none;
  531. }
  532. }
  533. input[type=text],
  534. input[type=email],
  535. input[type=url],
  536. textarea {
  537. padding: 3px 6px;
  538. background: #efefef;
  539. border: 2px solid #cecece;
  540. line-height: 1.5em;
  541. &:focus {
  542. background: #fff;
  543. }
  544. /* form validation */
  545. &:invalid {
  546. outline: none;
  547. border-color: #fbc2c4;
  548. background-color: #f6e7eb;
  549. -webkit-box-shadow: none;
  550. -moz-box-shadow: none;
  551. -ms-box-shadow: none;
  552. box-shadow: none;
  553. }
  554. }
  555. input[type=text],
  556. input[type=email],
  557. input[type=url] {
  558. max-width: 400px;
  559. min-width: 250px;
  560. }
  561. textarea {
  562. resize: none;
  563. width: 97.3%;
  564. height: 150px;
  565. }
  566. }
  567. }
  568. /* comment submit button */
  569. #submit {}
  570. /* comment form title */
  571. #comment-form-title {
  572. margin: 0 0 1.1em;
  573. }
  574. /* cancel comment reply link */
  575. #cancel-comment-reply {
  576. a {}
  577. }
  578. /* logged in comments */
  579. .comments-logged-in-as {}
  580. /* allowed tags */
  581. #allowed_tags {
  582. margin: 1.5em 10px 0.7335em 0;
  583. }
  584. /* no comments */
  585. .nocomments {
  586. margin: 0 20px 1.1em;
  587. }
  588. /*********************
  589. SIDEBARS & ASIDES
  590. *********************/
  591. .sidebar {}
  592. .widgettitle {}
  593. .widget {
  594. ul {
  595. li {
  596. &:first-child {}
  597. &:last-child {}
  598. a {}
  599. /* deep nesting */
  600. ul {}
  601. }
  602. }
  603. }
  604. /*********************
  605. FOOTER STYLES
  606. *********************/
  607. .footer {
  608. clear: both;
  609. }
  610. /*
  611. if you checked out the link above:
  612. http://www.alistapart.com/articles/organizing-mobile/
  613. you'll want to style the footer nav
  614. a bit more in-depth. Remember to keep
  615. it simple because you'll have to
  616. override these styles for the desktop
  617. view.
  618. */
  619. .footer-links {
  620. ul {
  621. li {}
  622. }
  623. } /* end .footer-links */
  624. .copyright {}