_base.less 14 KB

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