_base.less 14 KB

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