| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903 |
- /******************************************************************
- Site Name:
- Author:
- Stylesheet: Base Mobile Stylesheet
- Be light and don't over style since everything here will be
- loaded by mobile devices. You want to keep it as minimal as
- possible. This is called at the top of the main stylsheet
- and will be used across all viewports.
- ******************************************************************/
- /*********************
- GENERAL STYLES
- *********************/
- body {
- font-family: $lato;
- font-size: $baseFontSize / 16 * 100%;
- line-height: 1.5;
- color: $text-color;
- background-color: $gray;
- -webkit-font-smoothing: antialiased;
- }
- /********************
- WORDPRESS BODY CLASSES
- style a page via class
- ********************/
- .rtl {} /* for sites that are read right to left (i.e. hebrew) */
- .home {} /* home page */
- .blog {} /* blog template page */
- .archive {} /* archive page */
- .date {} /* date archive page */
- .date-paged-1 {} /* replace the number to the corresponding page number */
- .search {} /* search page */
- .search-results {} /* search result page */
- .search-no-results {} /* no results search page */
- .search-paged-1 {} /* individual paged search (i.e. body.search-paged-3) */
- .error404 {} /* 404 page */
- .single {} /* single post page */
- .postid-1 {} /* individual post page by id (i.e. body.postid-73) */
- .single-paged-1 {} /* individual paged single (i.e. body.single-paged-3) */
- .attachment {} /* attatchment page */
- .attachmentid-1 {} /* individual attatchment page (i.e. body.attachmentid-763) */
- .attachment-mime-type {} /* style mime type pages */
- .author {} /* author page */
- .author-nicename {} /* user nicename (i.e. body.author-samueladams) */
- .author-paged-1 {} /* paged author archives (i.e. body.author-paged-4) for page 4 */
- .category {} /* category page */
- .category-1 {} /* individual category page (i.e. body.category-6) */
- .category-paged-1 {} /* replace the number to the corresponding page number */
- .tag {} /* tag page */
- .tag-slug {} /* individual tag page (i.e. body.tag-news) */
- .tag-paged-1 {} /* replace the number to the corresponding page number */
- .page-template {} /* custom page template page */
- .page-template-page-php {} /* individual page template (i.e. body.page-template-contact-php */
- .page-paged-1 {} /* replace the number to the corresponding page number */
- .page-parent {} /* parent page template */
- .page-child {} /* child page template */
- .parent-pageid-1 {} /* replace the number to the corresponding page number */
- .logged-in {} /* if user is logged in */
- .paged {} /* paged items like search results or archives */
- .paged-1 {} /* individual paged (i.e. body.paged-3) */
- /*********************
- LAYOUT & GRID STYLES
- *********************/
- .wrap {
- width: 96%;
- margin: 0 auto;
- }
- /*********************
- LINK STYLES
- *********************/
- a, a:visited {
- color: $link-color;
- /* on hover */
- &:hover, &:focus {
- color: $link-hover;
- }
- /* on click */
- &:active {
- }
- /* mobile tap color */
- &:link {
- /*
- this highlights links on iPhones/iPads.
- so it basically works like the :hover selector
- for mobile devices.
- */
- -webkit-tap-highlight-color : rgba( 0, 0, 0, 0.3 );
- }
- }
- /******************************************************************
- H1, H2, H3, H4, H5 STYLES
- ******************************************************************/
- h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
- margin: $leading 0 0;
- font-family: $lato;
- line-height: $leading;
- text-rendering: optimizelegibility;
- font-weight: 500;
- /*
- if you're going to use webfonts, be sure to check your weights
- http://css-tricks.com/watch-your-font-weight/
- */
- /* removing text decoration from all headline links */
- a {
- text-decoration: none;
- }
- }
- h1, .h1 {
- font-size: 3 * $scale * 1rem;
- line-height: 3 * $leading;
- margin-top: 2 * $leading;
- }
- h2, .h2 {
- font-size: 2 * $scale * 1rem;
- line-height: 2 * $leading;
- margin-top: 2 * $leading;
- }
- h3, .h3 {
- font-size: 1 * $scale * 1rem;
- }
- h4, .h4 {
- font-size: $scale / 2 * 1rem;
- }
- h5, .h5 {
- font-size: $scale / 3 * 1rem;
- }
- /*********************
- HEADER STYLES
- *********************/
- .header {
- background-color: $black;
- }
- #logo {
- margin: 0.75em 0;
- a {
- color: $white;
- }
- }
- /*********************
- NAVIGATION STYLES
- *********************/
- /*
- all navs have a .nav class applied via
- the wp_menu function; this is so we can
- easily write one group of styles for
- the navs on the site so our css is cleaner
- and more scalable.
- */
- .nav {
- border-bottom: 0;
- margin: 0;
- li {
- a {
- display: block;
- color: $white;
- text-decoration: none;
- padding: 0.75em;
- /*
- remember this is for mobile ONLY, so there's no need
- to even declare hover styles here, you can do it in
- the style.scss file where it's relevant. We want to
- keep this file as small as possible!
- */
- &:hover, &:focus {
- }
- }
- &:first-child {}
- &:last-child {}
- /*
- so you really have to rethink your dropdowns for mobile.
- you don't want to have it expand too much because the
- screen is so small. How you manage your menu should
- depend on the project. Here's some great info on it:
- http://www.alistapart.com/articles/organizing-mobile/
- */
- ul.sub-menu,
- ul.children {
- li {
- a {
- padding-left: 30px;
- &:hover,
- &:focus {}
- &:link {}
- }
- &:first-child {}
- &:last-child {}
- }
- }
- } /* end .menu li */
- /* highlight current page */
- li.current-menu-item,
- li.current_page_item,
- li.current-page-ancestor {
- a {}
- } /* end current highlighters */
- } /* end .nav */
- /*********************
- POSTS & CONTENT STYLES
- *********************/
- #content {
- margin-top: 1.5em;
- }
- .hentry {
- background-color: $white;
- border-radius: 3px;
- margin-bottom: 1.5em;
- border: 1px solid $border-color;
- header {
- border-bottom: 1px solid $light-gray;
- padding: 1.5em;
- }
- footer {
- padding: 1.5em;
- border-top: 1px solid $light-gray;
- p {
- margin: 0;
- }
- }
- } /* end .hentry */
- .single-title,
- .page-title,
- .entry-title {
- margin: 0;
- }
- .single-title {}
- .page-title {}
- .entry-title {}
- .archive-title {}
- /* want to style individual post classes? Booya! */
- .post-id {} /* post by id (i.e. post-3) */
- .post {} /* general post style */
- .page {} /* general article on a page style */
- .attachment {} /* general style on an attatchment */
- .sticky {} /* sticky post style */
- .hentry {} /* hentry class */
- .category-slug {} /* style by category (i.e. category-videos) */
- .tag-slug {} /* style by tag (i.e. tag-news) */
- /* post meta */
- .byline {
- color: $meta-gray;
- font-style: italic;
- margin: 0;
- time {}
- }
- /* entry content */
- .entry-content {
- padding: $leading 0;
- p {
- margin: 0 0 $leading;
- }
- ul, ol, table, dl {}
- ul, ol {
- margin: $leading 0;
- li {
- line-height: $leading;
- }
- ul, ol {
- margin-top: 0;
- margin-bottom: 0;
- }
- }
- ul {
- li {}
- }
- ol {
- li {}
- }
- table {
- width: 100%;
- border: 1px solid $gray;
- margin-top: $leading;
- caption {
- margin: 0 0 7px;
- font-size: 0.75em;
- color: $meta-gray;
- text-transform: uppercase;
- letter-spacing: 1px;
- }
- td, th {
- padding: 0;
- line-height: $baseLineHeight * $baseFontSize - 0px;
- }
- }
- tr {
- border-bottom: 1px solid $gray;
- &:nth-child(even) {
- background-color: $light-gray;
- }
- }
- td {
- border-right: 1px solid $gray;
- &:last-child {
- border-right: 0;
- }
- }
- th {
- background-color: $light-gray;
- border-bottom: 1px solid $gray;
- border-right: 1px solid $gray;
- &:last-child {
- border-right: 0;
- }
- }
- blockquote {
- line-height: $leading;
- margin-top: $leading 0;
- margin: 0 0 1.5em 0.75em;
- padding: 0 0 0 0.75em;
- border-left: 3px solid $blue;
- font-style: italic;
- color: $meta-gray;
- &:before {}
- }
- dl {}
- dt {}
- dd {
- margin-left: 0;
- font-size: 0.9em;
- color: #787878;
- margin-bottom: 1.5em;
- }
- img {
- margin: 0 0 1.5em 0;
- max-width: 100%;
- height: auto;
- }
- /*
- image alignment on a screen this size may be
- a bit difficult. It's set to start aligning
- and floating images at the next breakpoint,
- but it's up to you. Feel free to change it up.
- */
- .alignleft, img.alignleft {}
- .alignright, img.alignright {}
- .aligncenter, img.aligncenter {}
- .size-auto,
- .size-full,
- .size-large,
- .size-medium,
- .size-thumbnail {
- max-width: 100%;
- height: auto;
- }
- pre {
- background: $black;
- color: $light-gray;
- font-size: 0.9em;
- padding: 1.5em;
- margin: 0 0 1.5em;
- border-radius: 3px;
- vertical-align: bottom;
- }
- } /* end .entry-content */
- .wp-caption {
- max-width: 100%;
- background: #eee;
- padding: 5px;
- /* images inside wp-caption */
- img {
- max-width: 100%;
- margin-bottom: 0;
- width: 100%;
- }
- p.wp-caption-text {
- font-size: 0.85em;
- margin: 4px 0 7px;
- text-align: center;
- }
- } /* end .wp-caption */
- /* image gallery styles */
- .gallery {
- dl {
- a {}
- img {}
- }
- dt {}
- dd {}
- } /* end .gallery */
- /* gallery caption styles */
- .gallery-caption {}
- .size-full {}
- .size-large {}
- .size-medium {}
- .size-thumbnail {}
- // the tag output
- .tags {
- margin: 0;
- }
- /******************************************************************
- PAGE NAVI STYLES
- ******************************************************************/
- .pagination,
- .wp-prev-next {
- margin: 1.5em 0;
- }
- .pagination{
- text-align: center;
- ul {
- display: inline-block;
- background-color: $white;
- white-space: nowrap;
- padding: 0;
- clear: both;
- border-radius: 3px;
- }
- li {
- padding: 0;
- margin: 0;
- float: left;
- display: inline;
- overflow: hidden;
- border-right: 1px solid $gray;
- }
- a, span {
- margin: 0;
- text-decoration: none;
- padding: 0;
- line-height: 1em;
- font-size: 1em;
- font-weight: normal;
- padding: 0.75em;
- min-width: 1em;
- display: block;
- color: $blue;
- &:hover, &:focus {
- background-color: $blue;
- color: $white;
- }
- }
- .current{
- cursor: default;
- color: $text-color;
- &:hover, &:focus {
- background-color: $white;
- color: $text-color;
- }
- }
- } /* end .bones_page_navi */
- /* fallback previous & next links */
- .wp-prev-next {
- ul {}
- .prev-link {
- float: left;
- }
- .next-link {
- float: right;
- }
- } /* end .wp-prev-next */
- /******************************************************************
- COMMENT STYLES
- ******************************************************************/
- /* h3 comment title */
- #comments-title {
- padding: 0.75em;
- margin: 0;
- border-top: 1px solid $light-gray;
- /* number of comments span */
- span {}
- }
- .comment-nav {
- ul {
- li {}
- }
- }
- .commentlist {
- margin: 0;
- list-style-type: none;
- }
- .comment {
- position: relative;
- clear: both;
- overflow: hidden;
- padding: 1.5em;
- border-bottom: 1px solid $light-gray;
- .comment-author {
- padding: 7px;
- border: 0;
- }
- /* vcard */
- .vcard {
- margin-left: 50px;
- cite.fn {
- font-weight: 700;
- font-style: normal;
- a.url {}
- }
- time {
- display: block;
- font-size: 0.9em;
- font-style: italic;
- a {
- color: $meta-gray;
- text-decoration: none;
- &:hover {
- text-decoration: underline;
- }
- }
- }
- .photo {}
- .avatar {
- position: absolute;
- left: 16px;
- border-radius: 50%;
- }
- } /* end .commentlist .vcard */
- &:last-child {
- margin-bottom: 0;
- }
- .children {
- margin: 0;
- li {}
- /* variations */
- .comment {}
- .alt {}
- .odd {}
- .even {}
- .depth-1 {} /* change number for different depth */
- .byuser {}
- .bypostauthor {}
- .comment-author-admin {}
- } /* end children */
- &[class*=depth-] {
- margin-top: 1.1em;
- }
- &.depth-1 {
- margin-left: 0;
- margin-top: 0;
- }
- &:not(.depth-1) {
- margin-top: 0;
- margin-left: 7px;
- padding: 7px;
- }
- &.depth-2 {}
- &.depth-3 {}
- &.depth-4 {}
- &.depth-5 {}
- /* general comment classes */
- &.alt {}
- &.odd {
- background-color: $white;
- }
- &.even {
- background: $light-gray;
- }
- &.parent {}
- &.comment {}
- &.children {}
- &.pingback {}
- &.bypostauthor {}
- &.comment-author {}
- &.comment-author-admin {}
- &.thread-alt {}
- &.thread-odd {}
- &.thread-even {}
- }
- /* comment meta */
- .comment-meta {
- a {}
- }
- .commentmetadata {
- a {}
- }
- /* comment content */
- .comment_content {
- p {
- margin: 0.7335em 0 1.5em;
- font-size: 1em;
- line-height: 1.5em;
- }
- } /* end .commentlist .comment_content */
- /* comment reply link */
- .comment-reply-link {
- @extend .blue-btn;
- font-size: 0.9em;
- float: right;
- &:hover,
- &:focus {
- }
- } /* end .commentlist .comment-reply-link */
- /* edit comment link */
- .comment-edit-link {
- font-style: italic;
- margin: 0 7px;
- text-decoration: none;
- font-size: 0.9em;
- }
- /******************************************************************
- COMMENT FORM STYLES
- ******************************************************************/
- .comment-respond {
- @extend .cf;
- padding: 1.5em;
- border-top: 1px solid $light-gray;
- }
- #reply-title {
- margin: 0;
- }
- .logged-in-as {
- color: $meta-gray;
- font-style: italic;
- margin: 0;
- a {
- color: $text-color;
- }
- }
- .comment-form-comment {
- margin: 1.5em 0 0.75em;
- }
- .form-allowed-tags {
- padding: 1.5em;
- background-color: $light-gray;
- font-size: 0.9em;
- }
- /* comment submit button */
- #submit {
- @extend .blue-btn;
- float: right;
- font-size: 1em;
- }
- /* comment form title */
- #comment-form-title {
- margin: 0 0 1.1em;
- }
- /* cancel comment reply link */
- #cancel-comment-reply {
- a {}
- }
- /* logged in comments */
- .comments-logged-in-as {}
- /* allowed tags */
- #allowed_tags {
- margin: 1.5em 10px 0.7335em 0;
- }
- /* no comments */
- .nocomments {
- margin: 0 20px 1.1em;
- }
- /*********************
- SIDEBARS & ASIDES
- *********************/
- .sidebar {}
- .widgettitle {}
- .widget {
- ul {
- li {
- &:first-child {}
- &:last-child {}
- a {}
- /* deep nesting */
- ul {}
- }
- }
- }
- .no-widgets {
- background-color: $white;
- padding: 1.5em;
- text-align: center;
- border: 1px solid $border-color;
- border-radius: 2px;
- margin-bottom: 1.5em;
- }
- /*********************
- FOOTER STYLES
- *********************/
- .footer {
- clear: both;
- background-color: $black;
- color: $light-gray;
- }
- /*
- if you checked out the link above:
- http://www.alistapart.com/articles/organizing-mobile/
- you'll want to style the footer nav
- a bit more in-depth. Remember to keep
- it simple because you'll have to
- override these styles for the desktop
- view.
- */
- .footer-links {
- ul {
- li {}
- }
- } /* end .footer-links */
- .copyright {}
|