Advertisement
Guest User

CSS for Wordpress On a Whim Theme

a guest
Sep 16th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 8.67 KB | None | 0 0
  1. /*
  2. css for Wordpress.com On a Whim Theme
  3. by tess!
  4.  
  5. i think all of this should be pretty clear if you can deal with basic css, but shout at me if any of my commenting is so bad it’s incomprehensible.  but bear in mind, i can explain what i mean here, but i probably can’t fix any actual problems.
  6.  
  7. but go here, http://premium-themes.forums.wordpress.com/forum/on-a-whim for more help.
  8.  
  9. and don’t you hate ee cummings all-lower case typists in code. hah!
  10. */
  11.  
  12. /*
  13. SITE-WIDE HOUSEKEEPING – LINKS, HOVER, VISITED LINKS, SPACING
  14. */
  15.  
  16. /* force visited links to stay the same color */
  17. a:visited {
  18. /* color: inherit; */
  19. color: #AF5D62;
  20. /* no, actually change to orange purplish */
  21. }
  22.  
  23. /* force links to the pink-purple color of the theme */
  24. a:link {
  25. color: #996B8D;
  26. text-decoration: none;
  27. }
  28.  
  29. /* force hover to an orangey-purple highlight */
  30. a:hover {
  31. color: #b85b5a;
  32. text-decoration: none;
  33. }
  34.  
  35. /*
  36. reduce paragraph spacing on body text
  37. */
  38. #content p,
  39. #content ul,
  40. #content ol,
  41. #content dd,
  42. #content pre,
  43. #content textwidget,
  44. #content hr {
  45. margin-bottom: 12px;
  46. /* 12px makes half size, basically */
  47. }
  48.  
  49. /*
  50. SIDE WIDGETS
  51. */
  52.  
  53. /* set non-heart-box menu sidebar links to white – using both statements as some seems to be generated text rather than links? */
  54. .widget-area .widget a {
  55. color: #ffffff;
  56. }
  57. .widget-area .widget a:link {
  58. color: #ffffff;
  59. text-decoration: none;
  60. }
  61.  
  62. /* then change text in the heart-box links to a slightly lighter shade because of the darker background */
  63. .widget-area .widget:nth-child(2n+1) a:link, .widget-area .widget:nth-child(2n+1) a:visited {
  64. color: #C48F92 !important;
  65. text-decoration: none;
  66. }
  67. .widget-area .widget:nth-child(2n+1) a:hover {
  68. color: #FFFFFF !important;
  69. text-decoration: none;
  70. }
  71.  
  72. /* side widget text box to a larger title font */
  73. .wf-active .widget-title {
  74. font-size: 1.9rem;
  75. font-style: italic;
  76. font-variant: small-caps;
  77. letter-spacing: .03em;
  78. margin-bottom: .938em;
  79. text-transform: uppercase;
  80. }
  81.  
  82. /*
  83. HEADINGS – colors, fonts, text
  84. */
  85.  
  86. /*
  87. tessmackenzie.com – use H1 for posts, in swirly font
  88. don’t use H2 – seems to be locked somehow in htis theme
  89. use H3 for book/story titles, in swirly font
  90. */
  91.  
  92. /* first change headings as needed – if hacking this, cut and paste this block, change h1 to h2 or h3, and make changes*/
  93.  
  94. /* change post and page – but not tessmackenzie header – to oranger purple */
  95. #content h1 a, #content h1 a:visited {
  96. text-decoration: none;
  97. color: #B28487 !important;
  98. font-size: .82em;
  99. font-style: normal;
  100. font-variant: normal;
  101. text-transform: none;
  102. }
  103.  
  104. #content h3 {
  105. font-family: ff-market-web-1, ff-market-web-2, “Open Sans”, “Helvetica Neue”, Helvetica, sans-serif;
  106. font-size: 1.8em;
  107. font-style: normal;
  108. color: #AF5D62;
  109. font-variant: normal;
  110. text-transform: none;
  111. }
  112.  
  113. /*
  114. OTHER BITS AND PIECES
  115. */
  116.  
  117. /* color of date on posts – change to same grey  as “posted on” text */
  118. .entry-header .post-date a {
  119. color: #625756;
  120. }
  121.  
  122. /*
  123. SITE HEADER, IMAGE, AND SITE LOGO
  124. */
  125.  
  126. /* not used any more – makes header box a bit smaller */
  127. .site-header, .site-main {
  128. padding: 0;
  129. /* do not use in On a Whim, moves top header box down, which changes background image alignment at very top of page */
  130. }
  131.  
  132. /* not used any more – for ‘tess mackenzie’ header text – but left in case need to revert and in case messes up formatting */
  133. .site-branding {
  134. position: relative;
  135. left: 14px;
  136. top: -22px;
  137. height: 110px;
  138. }
  139.  
  140. /* this block to add white tess mackenzie logo from books, and
  141. to hide the existing side title */
  142. /* USE 130×602 pixel IMAGE */
  143. .site-title {
  144. background: url(‘http://tessmackenzie.files.wordpress.com/2013/09/website-name3.jpg’) no-repeat !important;
  145. background-color: #F0B49E;
  146. background-attachment: fixed;
  147. width: 602px;
  148. height: 130px;
  149. left: 0;
  150. top: 0;
  151. }
  152.  
  153. /* hide main site header “tess mackenzie” text.  First color to same as bckgnd peach, then move sideways – this keeps clicky link in place */
  154. .site-title, .site-title a, .site-title a:visited, .site-title a:hover {
  155. font-size: 100%;
  156. display: block;
  157. /* next four lines to make clickable link from http://ran.ge */
  158. overflow: hidden;
  159. text-indent: 100%;
  160. white-space: nowrap;
  161. color: #F0B49E;
  162. text-decoration: none;
  163. /* old shade was richer version of bckgrnd color: #724567; */
  164. }
  165.  
  166. /* was using to force main site header “tess mackenzie” not to change color on hover – LEFT IN CASE USEFUL FOR ANYONE ELSE */
  167. /*
  168. .site-title, .site-title a:hover {
  169. color: #724567;
  170. text-decoration: none;
  171. }*/
  172.  
  173. /* WAS USING TO MOVE GRAVATAR IMAGE LOGO AROUND.  LEFT IN CASE USEFUL FOR ANYONE ELSE */
  174. /*
  175. .site-description {
  176. position: relative;
  177. left: -40px;
  178. top: -40px;
  179. }
  180. .site-logo {
  181. position: relative;
  182. left: -40px;
  183. top: -40px;
  184. } */
  185.  
  186. /*
  187. This section draws the white circle around the image, and inserts the logo image.  There’s a big version and a small version, so comment out which isn’t being used.  I haven’t decided which looks better.
  188. USE A 190X190 pixel IMAGE FOR THE LARGE VERSION, AND A 145X145 pixel IMAGE FOR THE SMALL ONE
  189. */
  190.  
  191. /* bigger version */
  192. /*
  193. .site-logo {
  194. background: url(“http://tessmackenzie.files.wordpress.com/2013/09/silhouette200_for_wp1.jpg”) no-repeat !important;
  195. background-color: #F0B49E;
  196. position: relative;
  197. width: 200px;
  198. height: 200px;
  199. left: -56px;
  200. top: -51px;
  201. color: #F0B49E;
  202. }*/
  203.  
  204. /* smaller version */
  205. .site-logo {
  206. background: url(‘http://tessmackenzie.files.wordpress.com/2013/09/silhouette150_for_wp.jpg’) no-repeat !important;
  207. background-color: #F0B49E;
  208. position: relative;
  209. width: 150px;
  210. height: 150px;
  211. left: -40px;
  212. top: -35px;
  213. color: #F0B49E;
  214. }
  215.  
  216. /* not COMPLETELY sure about this, but seems to be needed to hide the gravatar and stop it overlaying the higher-res image */
  217. .site-header img, .entry-content img, img.size-full, .widget img, .entry-media img {
  218. display: none;
  219. }
  220.  
  221. /* hide site description “i’m tess, i write smut” or it bumps
  222. the content down too far */
  223. /* not ideal – prob affects SEO and other such shit but works */
  224. .site-description {
  225. display: none;
  226. }
  227.  
  228. /*
  229. NOT USED AT MOMENT, IN CASE ANYONE WANTS TO SEE HOW, HIDES TEXT AND LOGO WITH GRAPHIC.
  230. */
  231. /*
  232. .site-title {
  233. display: none;
  234. }
  235. .site-logo {
  236. display: none;
  237. }
  238. .site-description {
  239. display: none;
  240. }
  241. */
  242.  
  243. /* end of block to do title area and logos */
  244.  
  245. /*
  246. TOP MENU BAR
  247. */
  248.  
  249. /* from here down to next marker like this is all top menu bar colors and layout */
  250. .navigation-main li.current-menu-item a {
  251. color: #AF5D63;
  252. }
  253.  
  254. /* spacing and color of bullets in top menu */
  255. /* inherit needed to force submenu to white */
  256. .navigation-main ul > li a:after {
  257. color: inherit;
  258. content: “•”;
  259. display: inline-block;
  260. font-size: 1.8rem;
  261. padding-left: .78em;
  262. vertical-align: -7%;
  263. }
  264.  
  265. /* PRETTY SURE INHERIT IN THIS PART IS BREAKING THE DOTS AND CAUSING THEM TO CHANGE COLOR – NEEDS THE INHERIT TO KEEP DIFFERENT COLOR ON SUBMENU, SO LEAVE FOR NOW */
  266. .navigation-main a {
  267. display: block;
  268. font-family: “Open Sans”, “Helvetica Neue”, Helvetica, Arial, sans-serif;
  269. font-size: 1.2rem;
  270. font-weight: 800;
  271. padding: .5em 0 0 1.25em;
  272. text-decoration: none;
  273. text-transform: uppercase;
  274. }
  275.  
  276. /* force visited links in header menu to different color */
  277. .navigation-main a:visited {
  278. /* color: inherit; */
  279. /* was color.inherit, but actually change to this color instead */
  280. color: #89537D;
  281. }
  282.  
  283. /* force nav bar links to pink-purple color of theme */
  284. .navigation-main a:link {
  285. color: #89537D;
  286. text-decoration: none;
  287. }
  288.  
  289. /*
  290. POP-UP SUBMENU
  291. */
  292.  
  293. /* pop-up orange nav submenu colors */
  294. .sub-menu a {
  295. color: #FFFFFF;
  296. }
  297. .sub-menu a:link {
  298. color: #FFFFFF;
  299. text-decoration: none;
  300. }
  301. .sub-menu a:visited {
  302. color: #FFFFFF;
  303. text-decoration: none;
  304. }
  305.  
  306. /* top menu ends here */
  307.  
  308. /*
  309. BOTTOM MENU AND OLDER/NEXT/PREV POSTS BUTTONS
  310. */
  311.  
  312. /* bottom menu and older posts button */
  313.  
  314. /* first change all wordpress links to everyone favorite roman-numberish grey – other link colors will change otherwise */
  315. .navigation-footer a, .navigation-footer a:link, .navigation-footer a:visited {
  316. color: #CCCCCC;
  317. text-decoration: none;
  318. }
  319. .site-footer a, .site-footer a:link, .site-footer a:visited {
  320. color: #CCCCCC;
  321. text-decoration: none;
  322. }
  323.  
  324. /* change color of older posts button */
  325. #infinite-handle span {
  326. background: none repeat scroll 0 0 #D56D54 !important;
  327. }
  328.  
  329. /* change color of previous and next buttons on post pages to white text on orange background like “older posts” above – if you’re hacking this, #FFFFFF is white, #D56D54 is orange, change to suit your colors */
  330. .nav-previous a, .nav-next a, #infinite-handle span {
  331. background: none repeat scroll 0 0 #D56D54;
  332. color: #FFFFFF;
  333. text-decoration: none;
  334. }
  335.  
  336. /* DONE.  THANKS FOR PLAYING! */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement