_base.scss 15 KB

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