Advertisement
robinbutton

lylegomes-styles-mobile-problem

Dec 30th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. /*
  2. Theme Name: Lyle Gomes
  3. Description: Custom theme for Lyle Gomes Photography
  4. Author: Robin Button
  5. Version: 0.1
  6. Template: twentytwelve
  7.  
  8. */
  9.  
  10. @import url('../twentytwelve/style.css');
  11.  
  12. /*main content area to match the body bkgnd */
  13.  
  14.  
  15.  
  16. body {
  17.  
  18. font-family: Helvetica, Arial, sans-serif;
  19. text-rendering: optimizeLegibility;
  20. color: #444;
  21. background-color: #f0efed;
  22.  
  23. }
  24.  
  25.  
  26.  
  27.  
  28. body.custom-font-enabled {
  29. font-family: "Open Sans", Helvetica, Arial, sans-serif;
  30. }
  31.  
  32. site {
  33.  
  34. background: transparent;
  35.  
  36.  
  37. }
  38.  
  39.  
  40.  
  41.  
  42. /* decreases the space around the header logo */
  43.  
  44. .site-header {
  45. padding: 0;
  46.  
  47. }
  48.  
  49. body .site {
  50.  
  51. margin-top: 0;
  52. box-shadow: none;
  53.  
  54. }
  55.  
  56.  
  57.  
  58. a {
  59. outline: none;
  60. color: #21759b;
  61. }
  62. a:hover {
  63. color: #0f3647;
  64. }
  65.  
  66.  
  67. /*remove the default box-shadow styles around the content divs */
  68.  
  69. img.header-image, .author-avatar img, img.wp-post-image {
  70. border-radius: 3px;
  71. box-shadow: none;
  72. }
  73.  
  74. /*page h1 */
  75.  
  76. .entry-content h1 {
  77.  
  78. color: #939274;
  79. text-align: center;
  80. letter-spacing: 8px;
  81. letter-spacing: 0.57142857rem;
  82. }
  83.  
  84. .entry-header .entry-title {
  85. text-align: center;
  86. color: #939274;
  87. font-weight: bold;
  88.  
  89. }
  90.  
  91. .entry-header {
  92.  
  93. display: none;
  94. /* eliminates page title appearing as page h1. Manually insert title in page content area */
  95.  
  96. }
  97.  
  98. /*shifts the Lyle Gomes text over to the left out of view, but still visible to search engines */
  99.  
  100. .site-header h1 {
  101. font-size: 14px;
  102. font-size: 1.857142857rem;
  103. line-height: 0;
  104. margin-left: -2000px;
  105. }
  106.  
  107. div#primary .site-content {
  108.  
  109. padding-bottom: 0;
  110. margin-bottom: 0;
  111.  
  112. }
  113.  
  114.  
  115. /* content styles */
  116.  
  117. /*image captions */
  118.  
  119. p.caption {
  120. font-weight: bold;
  121. color: #939274;
  122. text-align: right;
  123.  
  124. }
  125.  
  126.  
  127.  
  128.  
  129. #page {
  130.  
  131. padding-bottom:0;
  132. margin-bottom: 0;
  133. background: transparent;
  134.  
  135. }
  136.  
  137.  
  138. /* moved the column from right to left */
  139.  
  140.  
  141. @media screen and (min-width: 600px) {
  142.  
  143. .site-content {
  144. float: right;
  145. }
  146. .widget-area {
  147. float: left;
  148. }
  149.  
  150. /* for IE8 and IE7 ----------------*/
  151. .ie .site-content {
  152. float: right;
  153. }
  154. .ie .widget-area {
  155. float: left;
  156. }
  157.  
  158. html {
  159. font-size: 87.5%;
  160. }
  161.  
  162. body {
  163. font-size: 14px;
  164. font-size: 1rem;
  165.  
  166. }
  167.  
  168.  
  169. /****** navigation styles for all but mobile ******/
  170.  
  171. nav#site-navigation .main-navigation {
  172.  
  173. background-color: #939274;
  174. padding-top: 0;
  175. padding-bottom: 0px;
  176. margin: 0;
  177. width: 100%;
  178.  
  179. }
  180.  
  181.  
  182.  
  183. div.nav-menu > ul {
  184.  
  185. border-bottom: 0!important;
  186. border-top: 0!important;
  187. text-align: center!important;
  188.  
  189.  
  190. }
  191.  
  192. .current_page_item > a, .main-navigation .current_page_ancestor > a {
  193. color: #fff!important;
  194. font-weight: normal!important;
  195.  
  196. }
  197.  
  198. div.nav-menu > ul {
  199.  
  200. border-bottom: 0!important;
  201. border-top: 0!important;
  202. text-align: center!important;
  203.  
  204.  
  205. }
  206.  
  207. .current_page_item > a, .main-navigation .current_page_ancestor > a {
  208. color: #fff!important;
  209. font-weight: normal!important;
  210.  
  211. }
  212.  
  213. .main-navigation {
  214.  
  215. text-align: center;
  216. margin: 0;
  217. padding: 0;
  218. }
  219.  
  220.  
  221. .main-navigation li {
  222. margin: 0 10px 0 7px;
  223. margin: 0 0.71428571rem 0 0.5rem;
  224.  
  225. }
  226.  
  227. .main-navigation li {
  228. /*margin-top: 24px;
  229. margin-top: 1.714285714rem;*/
  230. font-size: 12px;
  231. font-size: 0.85714286;
  232. line-height: 2;
  233.  
  234. }
  235.  
  236.  
  237.  
  238. .main-navigation li a:hover {
  239. color: #fff;
  240. }
  241.  
  242.  
  243. /* link style for tablets only */
  244.  
  245. .main-navigation li a {
  246.  
  247. color: #000;
  248. padding: 10px 0 10px 15px;
  249. text-transform: none;
  250. font-size: 130%;
  251. line-height: 2;
  252.  
  253. }
  254.  
  255. /* footer styles for all but mobile */
  256.  
  257. footer[role="contentinfo"] {
  258. /*max-width: none; creates 100% footer width */
  259. width: 100%;
  260. background-color: #939274;
  261. margin-top: 0;
  262. margin-left: auto;
  263. margin-right: auto;
  264. padding: 0;
  265. border-top: 0;
  266.  
  267.  
  268. }
  269.  
  270. footer[role="contentinfo"] a {
  271. color: #000;
  272. }
  273. footer[role="contentinfo"] a:hover {
  274. color: #fff;
  275. }
  276.  
  277.  
  278. /* sticky footer code */
  279.  
  280. html { margin:0; padding:0; height:100%; }
  281.  
  282. #footer-wrap {
  283.  
  284. position:fixed;
  285. bottom:0;
  286. width: 100%;
  287. background-color: #939274;
  288. padding: 0;
  289. margin: 0;
  290.  
  291. }/* additional div added to header and footer templates */
  292.  
  293. body { height:100%;
  294.  
  295. }
  296.  
  297. body .site {
  298.  
  299. padding: 0;
  300. margin-top: 0;
  301. margin-bottom: 0;
  302. position:relative;
  303. min-height: 100%;
  304. }
  305.  
  306.  
  307.  
  308.  
  309. /* header adjustments */
  310.  
  311.  
  312.  
  313. }
  314.  
  315.  
  316. /* Minimum width of 960 pixels. */
  317. @media screen and (min-width: 960px) {
  318.  
  319.  
  320.  
  321. .main-navigation li a {
  322.  
  323. color: #000;
  324. padding: 0 0 0 30px;
  325. background: url(images/diamond-white.jpg) no-repeat 0 15px;
  326. text-transform: none;
  327. font-size: 130%;
  328. line-height: 3;
  329.  
  330. }
  331.  
  332.  
  333.  
  334. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement