_base.scss 15 KB

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