| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- /******************************************************************
- Site Name:
- Author:
- Stylesheet: IE Stylesheet
- So instead of using the respond.js file to add media query support
- to IE, we're going to use SASS to create an easily readable css file.
- Here, we import all the styles the standard stylesheet gets, only
- without the media queries. No need to worry about editing anything!
- ******************************************************************/
- /******************************************************************
- IMPORTS & DEPENDENCIES
- Remember, all the BASE styles are called already since IE can
- read those. Below, we need to import only the stuff IE can't
- understand (what's inside the media queries). We also need to
- import the mixins file so SASS can understand the variables.
- ******************************************************************/
- /******************************************************************
- Site Name:
- Author:
- Stylesheet: Variables
- Here is where we declare all our variables like colors, fonts,
- base values, and defaults. We want to make sure this file ONLY
- contains variables that way our files don't get all messy.
- No one likes a mess.
- ******************************************************************/
- /*********************
- COLORS
- Need help w/ choosing your colors? Try this site out:
- http://0to255.com/
- *********************/
- /*
- Here's a great tutorial on how to
- use color variables properly:
- http://sachagreif.com/sass-color-variables/
- */
- /******************************************************************
- Site Name:
- Author:
- Stylesheet: Mixins Stylesheet
- This is where you can take advantage of Sass' great features: Mixins.
- I won't go in-depth on how they work exactly,
- there are a few articles below that will help do that. What I will
- tell you is that this will help speed up simple changes like
- changing a color or adding CSS3 techniques gradients.
- A WORD OF WARNING: It's very easy to overdo it here. Be careful and
- remember less is more.
- Helpful:
- http://sachagreif.com/useful-sass-mixins/
- http://thesassway.com/intermediate/leveraging-sass-mixins-for-cleaner-code
- http://web-design-weekly.com/blog/2013/05/12/handy-sass-mixins/
- ******************************************************************/
- /*********************
- TRANSITION
- *********************/
- /*
- I totally rewrote this to be cleaner and easier to use.
- You'll need to be using Sass 3.2+ for these to work.
- Thanks to @anthonyshort for the inspiration on these.
- USAGE: @include transition(all 0.2s ease-in-out);
- */
- /*********************
- CSS3 GRADIENTS
- Be careful with these since they can
- really slow down your CSS. Don't overdo it.
- *********************/
- /* @include css-gradient(#dfdfdf,#f8f8f8); */
- /*********************
- BOX SIZING
- *********************/
- /* @include box-sizing(border-box); */
- /* NOTE: value of "padding-box" is only supported in Gecko. So
- probably best not to use it. I mean, were you going to anyway? */
- /******************************************************************
- Site Name:
- Author:
- Stylesheet: IE Grid Styles
- Since the example grid is based on media queries, so rather than
- setup some js library that would make IE8 and below understand
- media queries, let's just add some styles that serves a fixed grid.
- Again, if you want to roll your own, just remove this junk and put
- whatever you use in here.
- ******************************************************************/
- /******************************************************************
- Site Name:
- Author:
- Stylesheet: 481px and Up Stylesheet
- This stylesheet is loaded for larger devices. It's set to
- 481px because at 480px it would load on a landscaped iPhone.
- This isn't ideal because then you would be loading all those
- extra styles on that same mobile connection.
- A word of warning. This size COULD be a larger mobile device,
- so you still want to keep it pretty light and simply expand
- upon your base.scss styles.
- ******************************************************************/
- /*
- IMPORTANT NOTE ABOUT SASS 3.3 & UP
- You can't use @extend within media queries
- anymore, so just be aware that if you drop
- them in here, they won't work.
- */
- /*********************
- NAVIGATION STYLES
- *********************/
- /* .menu is clearfixed inside mixins.scss */
- .menu {
- /* end .menu ul */ }
- .menu ul {
- /* end .menu ul li */
- /* highlight current page */
- /* end current highlighters */ }
- .menu ul li {
- /*
- plan your menus and drop-downs wisely.
- */ }
- .menu ul li a {
- /*
- you can use hover styles here even though this size
- has the possibility of being a mobile device.
- */ }
- /* end .menu */
- /*********************
- POSTS & CONTENT STYLES
- *********************/
- /* entry content */
- .entry-content {
- /* at this larger size, we can start to align images */ }
- .entry-content .alignleft, .entry-content img.alignleft {
- margin-right: 1.5em;
- display: inline;
- float: left; }
- .entry-content .alignright, .entry-content img.alignright {
- margin-left: 1.5em;
- display: inline;
- float: right; }
- .entry-content .aligncenter, .entry-content img.aligncenter {
- margin-right: auto;
- margin-left: auto;
- display: block;
- clear: both; }
- /* end .entry-content */
- /*********************
- FOOTER STYLES
- *********************/
- /*
- check your menus here. do they look good?
- do they need tweaking?
- */
- /* end .footer-links */
- /******************************************************************
- Site Name:
- Author:
- Stylesheet: Tablet & Small Desktop Stylesheet
- Here's where you can start getting into the good stuff.
- This size will work on iPads, other tablets, and desktops.
- So you can start working with more styles, background images,
- and other resources. You'll also notice the grid starts to
- come into play. Have fun!
- ******************************************************************/
- /*********************
- GENERAL STYLES
- *********************/
- /*********************
- LAYOUT & GRID STYLES
- *********************/
- .wrap {
- width: 760px; }
- /*********************
- HEADER STYLES
- *********************/
- /*********************
- NAVIGATION STYLES
- *********************/
- .nav {
- border: 0;
- /* end .menu ul li */
- /* highlight current page */
- /* end current highlighters */ }
- .nav ul {
- background:#323944;
- margin-top: 0; }
- .nav li {
- float: left;
- position: relative;
- /*
- plan your menus and drop-downs wisely.
- */
- /* showing sub-menus */ }
- .nav li a {
- border-bottom: 0;
- /*
- you can use hover styles here even though this size
- has the possibility of being a mobile device.
- */ }
- .nav li a:hover, .nav li a:focus {
- color: white;
- text-decoration: underline; }
- .nav li ul.sub-menu,
- .nav li ul.children {
- margin-top: 0;
- border: 1px solid #ccc;
- border-top: 0;
- position: absolute;
- visibility: hidden;
- z-index: 8999;
- /* highlight sub-menu current page */ }
- .nav li ul.sub-menu li,
- .nav li ul.children li {
- /*
- if you need to go deeper, go nuts
- just remember deeper menus suck
- for usability. k, bai.
- */ }
- .nav li ul.sub-menu li a,
- .nav li ul.children li a {
- padding-left: 10px;
- border-right: 0;
- display: block;
- width: 180px;
- border-bottom: 1px solid #ccc; }
- .nav li ul.sub-menu li:last-child a,
- .nav li ul.children li:last-child a {
- border-bottom: 0; }
- .nav li ul.sub-menu li ul,
- .nav li ul.children li ul {
- top: 0;
- left: 100%;
- }
- .nav li:hover > ul {
- top: auto;
- visibility: visible; }
- /* end .nav */
- /*********************
- SIDEBARS & ASIDES
- *********************/
- .sidebar {
- margin-top: 2.2em; }
- .widgettitle {
- border-bottom: 2px solid #444;
- margin-bottom: 0.75em; }
- .widget {
- padding: 0 10px;
- margin: 2.2em 0; }
- .widget ul li {
- margin-bottom: 0.75em;
- /* deep nesting */ }
- .widget ul li ul {
- margin-top: 0.75em;
- padding-left: 1em; }
- /* links widget */
- /* meta widget */
- /* pages widget */
- /* recent-posts widget */
- /* archives widget */
- /* tag-cloud widget */
- /* calendar widget */
- /* category widget */
- /* recent-comments widget */
- /* search widget */
- /* text widget */
- /*********************
- FOOTER STYLES
- *********************/
- /*
- you'll probably need to do quite a bit
- of overriding here if you styled them for
- mobile. Make sure to double check these!
- */
- .footer-links ul li {
- /*
- be careful with the depth of your menus.
- it's very rare to have multi-depth menus in
- the footer.
- */ }
- /* end .footer-links */
- /******************************************************************
- Site Name:
- Author:
- Stylesheet: Desktop Stylsheet
- This is the desktop size. It's larger than an iPad so it will only
- be seen on the Desktop.
- ******************************************************************/
- .wrap {
- width: 1040px; }
- /*
- you can call the larger styles if you want, but there's really no need
- */
- /******************************************************************
- ADDITIONAL IE FIXES
- These fixes are now ONLY seen by IE, so you don't have to worry
- about using prefixes, although it's best practice. For more info
- on using Modernizr classes, check out this link:
- http://www.modernizr.com/docs/
- ******************************************************************/
- /*
- For example, you can use something like:
- .no-textshadow .class { ... }
- You can also target specific versions by using the classes applied to
- the html element. These can sometimes change, so take a look inside the
- header.php file to see what they are:
- .lt-ie8 .class { ... }
- */
|