768up.scss 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. /******************************************************************
  2. Site Name:
  3. Author:
  4. Stylesheet: Tablet & Small Desktop Stylesheet
  5. Here's where you can start getting into the good stuff.
  6. This size will work on iPads, other tablets, and desktops.
  7. So you can start working with more styles, background images,
  8. and other resources. You'll also notice the grid starts to
  9. come into play. Have fun!
  10. ******************************************************************/
  11. /*********************
  12. GENERAL STYLES
  13. *********************/
  14. body {}
  15. /********************
  16. WORDPRESS BODY CLASSES
  17. style a page via class
  18. ********************/
  19. .rtl {}
  20. .home {} /* home page */
  21. .blog {} /* blog page */
  22. .archive {} /* archive page */
  23. .date {} /* date archive page */
  24. .date-paged-1 {} /* replace the number to the corresponding page number */
  25. .search {} /* search page */
  26. .search-results {} /* search result page */
  27. .search-no-results {} /* no results search page */
  28. .search-paged-1 {} /* individual paged search (i.e. body.search-paged-3) */
  29. .error404 {} /* 404 page */
  30. .single {} /* single post page */
  31. .postid-1 {} /* individual post page by id (i.e. body.postid-73) */
  32. .single-paged-1 {} /* individual paged single (i.e. body.single-paged-3) */
  33. .attachment {} /* attatchment page */
  34. .attachmentid-1 {} /* individual attatchment page (i.e. body.attachmentid-763) */
  35. .attachment-mime-type {} /* style mime type pages */
  36. .author {} /* author page */
  37. .author-nicename {} /* user nicename (i.e. body.author-samueladams) */
  38. .author-paged-1 {} /* paged author archives (i.e. body.author-paged-4) for page 4 */
  39. .category {} /* category page */
  40. .category-1 {} /* individual category page (i.e. body.category-6) */
  41. .category-paged-1 {} /* replace the number to the corresponding page number */
  42. .tag {} /* tag page */
  43. .tag-slug {} /* individual tag page (i.e. body.tag-news) */
  44. .tag-paged-1 {} /* replace the number to the corresponding page number */
  45. .page-template {} /* custom page template page */
  46. .page-template-page-php {} /* individual page template (i.e. body.page-template-contact-php */
  47. .page-paged-1 {} /* replace the number to the corresponding page number */
  48. .page-parent {}
  49. .page-child {}
  50. .parent-pageid-1 {} /* replace the number to the corresponding page number */
  51. .logged-in {} /* if user is logged in */
  52. .paged {} /* paged items like search results or archives */
  53. .paged-1 {} /* individual paged (i.e. body.paged-3) */
  54. /*********************
  55. LAYOUT & GRID STYLES
  56. *********************/
  57. .wrap {
  58. max-width: 1140px;
  59. }
  60. /*
  61. This is a combination of the 1140 grid and Twitter Boostrap.
  62. I liked 1140 but Boostrap's grid was way more detailed so
  63. I merged them together, let's see how this works out.
  64. If you want to use 1140, the original values are commented
  65. out on each line.
  66. */
  67. .onecol { width: 5.801104972%; } /* 4.85%; } /* grid_1 */
  68. .twocol { width: 14.364640883%; } /* 13.45%; } /* grid_2 */
  69. .threecol { width: 22.928176794%; } /* 22.05%; } /* grid_3 */
  70. .fourcol { width: 31.491712705%; } /* 30.75%; } /* grid_4 */
  71. .fivecol { width: 40.055248616%; } /* 39.45%; } /* grid_5 */
  72. .sixcol { width: 48.618784527%; } /* 48%; } /* grid_6 */
  73. .sevencol { width: 57.182320438000005%; } /* 56.75%; } /* grid_7 */
  74. .eightcol { width: 65.74585634900001%; } /* 65.4%; } /* grid_8 */
  75. .ninecol { width: 74.30939226%; } /* 74.05%; } /* grid_9 */
  76. .tencol { width: 82.87292817100001%; } /* 82.7%; } /* grid_10 */
  77. .elevencol { width: 91.436464082%; } /* 91.35%; } /* grid_11 */
  78. .twelvecol { width: 99.999999993%; } /* 100%; } /* grid_12 */
  79. /* layout & column defaults */
  80. .onecol, .twocol, .threecol, .fourcol, .fivecol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol, .twelvecol {
  81. position: relative;
  82. float: left;
  83. margin-left: 2.762430939%;
  84. }
  85. .first {
  86. margin-left: 0;
  87. }
  88. .last {
  89. float: right;
  90. }
  91. /*********************
  92. HEADER SYTLES
  93. *********************/
  94. .header {}
  95. #logo {}
  96. /*********************
  97. NAVIGATION STYLES
  98. *********************/
  99. .nav {
  100. background: #eee;
  101. border: 0;
  102. li {
  103. float: left;
  104. position: relative;
  105. a {
  106. border-bottom: 0;
  107. /*
  108. you can use hover styles here even though this size
  109. has the possibility of being a mobile device.
  110. */
  111. &:hover, &:focus {
  112. background-color: #dedede;
  113. }
  114. }
  115. &:first-child {}
  116. &:last-child {}
  117. /*
  118. plan your menus and drop-downs wisely.
  119. */
  120. ul.sub-menu,
  121. ul.children {
  122. width: 200px;
  123. border: 1px solid #ccc;
  124. border-top: 0;
  125. position: absolute;
  126. display: none;
  127. z-index: 8999;
  128. li {
  129. a {
  130. padding-left: 10px;
  131. border-right: 0;
  132. display: block;
  133. width: 180px;
  134. border-bottom: 1px solid #ccc;
  135. &:hover,
  136. &:focus {}
  137. &:link {}
  138. }
  139. &:first-child {}
  140. &:last-child {
  141. a {
  142. border-bottom: 0;
  143. }
  144. }
  145. /*
  146. if you need to go deeper, go nuts
  147. just remember deeper menus suck
  148. for usability. k, bai.
  149. */
  150. ul {}
  151. }
  152. /* highlight sub-menu current page */
  153. li.current-menu-item,
  154. li.current_page_item,
  155. li.current-page-ancestor {
  156. a {}
  157. }
  158. }
  159. /* showing sub-menus */
  160. &:hover ul {
  161. top: auto;
  162. display: block;
  163. }
  164. } /* end .menu ul li */
  165. /* highlight current page */
  166. li.current-menu-item,
  167. li.current_page_item,
  168. li.current-page-ancestor {
  169. a {}
  170. } /* end current highlighters */
  171. } /* end .nav */
  172. /*********************
  173. SIDEBARS & ASIDES
  174. *********************/
  175. .sidebar {
  176. margin-top: 2.2em;
  177. }
  178. .widgettitle {
  179. border-bottom: 2px solid #444;
  180. margin-bottom: 0.75em;
  181. }
  182. .widget {
  183. padding: 0 10px;
  184. margin: 2.2em 0;
  185. ul {
  186. li {
  187. margin-bottom: 0.75em;
  188. &:first-child {}
  189. &:last-child {}
  190. a {}
  191. /* deep nesting */
  192. ul {
  193. margin-top: 0.75em;
  194. padding-left: 1em;
  195. }
  196. }
  197. }
  198. }
  199. /* links widget */
  200. .widget_links {}
  201. .widget_links ul {}
  202. .widget_links ul li {}
  203. .widget_links ul li a {}
  204. /* meta widget */
  205. .widget_meta {}
  206. .widget_meta ul {}
  207. .widget_meta ul li {}
  208. .widget_meta ul li a {}
  209. /* pages widget */
  210. .widget_pages {}
  211. .widget_pages ul {}
  212. .widget_pages ul li {}
  213. .widget_pages ul li a {}
  214. /* recent-posts widget */
  215. .widget_recent_entries {}
  216. .widget_recent_entries ul {}
  217. .widget_recent_entries ul li {}
  218. .widget_recent_entries ul li a {}
  219. /* archives widget */
  220. .widget_archive {}
  221. .widget_archive ul {}
  222. .widget_archive ul li {}
  223. .widget_archive ul li a {}
  224. .widget_archive select {}
  225. .widget_archive option {}
  226. /* tag-cloud widget */
  227. .widget_links {}
  228. .widget_links li:after {}
  229. .widget_links li:before {}
  230. .widget_tag_cloud {}
  231. .widget_tag_cloud a {}
  232. .widget_tag_cloud a:after {}
  233. .widget_tag_cloud a:before {}
  234. /* calendar widget */
  235. .widget_calendar {}
  236. #calendar_wrap {}
  237. #calendar_wrap th {}
  238. #calendar_wrap td {}
  239. #wp-calendar tr td {}
  240. #wp-calendar caption {}
  241. #wp-calendar a {}
  242. #wp-calendar #today {}
  243. #wp-calendar #prev {}
  244. #wp-calendar #next {}
  245. #wp-calendar #next a {}
  246. #wp-calendar #prev a {}
  247. /* category widget */
  248. .widget_categories {}
  249. .widget_categories ul {}
  250. .widget_categories ul li {}
  251. .widget_categories ul ul.children {}
  252. .widget_categories a {}
  253. .widget_categories select{}
  254. .widget_categories select#cat {}
  255. .widget_categories select.postform {}
  256. .widget_categories option {}
  257. .widget_categories .level-0 {}
  258. .widget_categories .level-1 {}
  259. .widget_categories .level-2 {}
  260. .widget_categories .level-3 {}
  261. /* recent-comments widget */
  262. .recentcomments {}
  263. #recentcomments {}
  264. #recentcomments li {}
  265. #recentcomments li a {}
  266. .widget_recent_comments {}
  267. /* search widget */
  268. #searchform {}
  269. .widget_search {}
  270. .screen-reader-text {}
  271. /* text widget */
  272. .textwidget {}
  273. .widget_text {}
  274. .textwidget p {}
  275. /*********************
  276. FOOTER STYLES
  277. *********************/
  278. /*
  279. you'll probably need to do quite a bit
  280. of overriding here if you styled them for
  281. mobile. Make sure to double check these!
  282. */
  283. .footer-links {
  284. ul {
  285. li {
  286. a {
  287. &:hover {}
  288. }
  289. /*
  290. be careful with the depth of your menus.
  291. it's very rare to have multi-depth menus in
  292. the footer.
  293. */
  294. ul {}
  295. }
  296. }
  297. } /* end .footer-links */