Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.22 KB | None | 0 0
  1. /* solve the pixelate logo */
  2.  
  3. #logo {
  4. -webkit-transform:none;
  5. }
  6.  
  7. /* Display a different logo on mobile */
  8.  
  9. @media only screen and (max-width:980px) {
  10. #logo {
  11. content: url("urlyourlogo");
  12. }
  13. }
  14. /* Add a word before the mobile menu hamburger icon */
  15.  
  16. .mobile_menu_bar:after {
  17. content: 'MENU';
  18. position: relative;
  19. top: 17px;
  20. }
  21.  
  22. /* Make the mobile menu sticky/fixed */
  23.  
  24. @media (max-width:980px) {
  25. #mainheader
  26. {
  27. position: fixed !important;
  28. }
  29. }
  30. /*Adding Elegant Themes font icons*/
  31. .text-class {
  32. font-family: 'ETmodules';
  33. content: "\45"; /*example of arrow right*/
  34. }
  35. /* Flip columns on mobile:
  36. Give the row you want to flip the columns for a custom class*/
  37. @media only screen and ( max-width: 980px ) {
  38.     .myclass {
  39.     display: -webkit-flex;
  40.     -webkit-flex-direction: column-reverse;
  41.     display: flex;
  42.     flex-direction: column-reverse !important;
  43.     }
  44. }
  45. /* overhanging logo */
  46.  
  47. #top-header {z-index: 99999;}
  48.  
  49. #logo {
  50. max-height: 220%;
  51. margin-top: -32px;
  52. z-index: 100000;
  53. }
  54.  
  55. @media only screen and (max-width : 980px) {
  56. #logo { margin-top: 0px}}
  57.  
  58. /*Remove drop down arrow on menu items.*/
  59. #top-menu .menu-item-has-children > a:first-child::after, .fullwidth-menu .menu-item-has-children > a:first-child::after, #et-secondary-nav .menu-item-has-children > a:first-child::after {
  60. content: "";
  61. }
  62. /* remove box-shadow for menu*/
  63. #main-header {
  64. -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0);
  65. -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0);
  66. box-shadow: 0 1px 0 rgba(0, 0, 0, 0);
  67. }
  68. /* Remove Sidebar border */
  69. .et_pb_widget_area_left {
  70. border-right: none;
  71. }
  72.  
  73. .et_pb_widget_area_right {
  74. border-right: none;
  75. }
  76. /*adding border dividers between menu items*/
  77. #top-menu li {
  78. padding: 10px 0 !important;
  79. }
  80.  
  81. #top-menu li > a {
  82. border-left: 1px solid #dadada;
  83. padding: 10px 15px !important;
  84. }
  85.  
  86. #top-menu li:last-child > a {
  87. border-right: 1px solid #dadada;
  88. }
  89. .et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation {
  90. padding-bottom: 20px;
  91. padding-top: 20px !important;
  92. }
  93. /*Growing Lines by SJ James*/
  94. /* Stop the opacity change on hover */
  95. #top-menu a:hover {
  96. opacity: 1;
  97. }
  98.  
  99. /* By default Divi adds a shit load of padding to the bottom of the menu link to push the bottom of the header down. We are replacing some of that padding with a margin to bring the line closer to the link */
  100. #top-menu a {
  101. padding-bottom: 14px;
  102. margin-bottom: 16px;
  103. }
  104.  
  105. #top-menu a:before {
  106. background-color: rgba(0, 0, 0, 0.6); /* default for Divi menu items */
  107. bottom: 4px;
  108. content: "";
  109. height: 2px;
  110. left: 0;
  111. position: absolute;
  112. -ms-transform: scaleX(0);
  113. transform: scaleX(0);
  114. transition: all .3s ease-in-out 0s;
  115. -webkit-transform-origin: 2px;
  116. -ms-transform-origin: 2px;
  117. transform-origin: 2px;
  118. width: 100%; /* adjust to make the line shorter/longer */
  119. -webkit-transform: scaleX(0);
  120. -webkit-transition: all .3s ease-in-out 0s;
  121. }
  122.  
  123. #top-menu a:hover:before {
  124. -webkit-transform: scaleX(1);
  125. -ms-transform: scaleX(1);
  126. transform: scaleX(1);
  127. visibility: visible;
  128. }
  129. /* underline menu like on Extra theme */
  130.  
  131. #top-menu .current-menu-item a::before,
  132. #top-menu .current_page_item a::before {
  133. -webkit-transform: translateY(18px);
  134. transform: translateY(18px);
  135. opacity: 1;
  136. }
  137. #top-menu li a:hover:before {
  138. -webkit-transform: translateY(18px);
  139. transform: translateY(18px);
  140. opacity: 1.0;
  141. }
  142.  
  143. #top-menu li a:before {
  144. content: '';
  145. position: absolute;
  146. top: 10px;
  147. left: 0;
  148. background: #ffffff;
  149. width: 100%;
  150. height: 2px;
  151. -webkit-transform: translateY(24px);
  152. transform: translateY(24px);
  153. opacity: 0;
  154. transition: 0.3s ease;
  155. }
  156. /* Menu underline fill in on hover */
  157. #top-menu .current-menu-item a::before,
  158. #top-menu .current_page_item a::before {
  159. content: "";
  160. position: absolute;
  161. z-index: 2;
  162. left: 0;
  163. right: 0;
  164. }
  165. #top-menu li a:hover:before {
  166. right: 0;
  167. }
  168. #top-menu li a:before {
  169. content: "";
  170. position: absolute;
  171. z-index: -1;
  172. left: 0;
  173. right: 100%;
  174. bottom: 50%;
  175. background: #FF9C5E; /* Change the line color here */
  176. height: 2px; /* Change line size here if your font is big mayby you could use 4px */
  177. -webkit-transition-property: right;
  178. transition-property: right;
  179. -webkit-transition-duration: 0.3s;
  180. transition-duration: 0.3s;
  181. -webkit-transition-timing-function: ease-out;
  182. transition-timing-function: ease-out;
  183. }
  184. /*slide description align text left - image right*/
  185. @media screen and (min-width : 768px) {
  186. .md-slider-left.et_pb_slider .et_pb_container {
  187. width:100%
  188. }
  189.  
  190. .md-slider-left .et_pb_slide_with_image .et_pb_slide_description {
  191. float: left !important;
  192. text-align:right;
  193. padding:10% 5%;
  194. width:50%;
  195. }
  196. .md-slider-left .et_pb_slide_image {
  197. width:50%;
  198. margin-left:50%;
  199. }
  200. }
  201.  
  202. /* hide header shadow */
  203. #main-header{
  204. -webkit-box-shadow:none!important;
  205. -moz-box-shadow:none !important;
  206. box-shadow:none !important;}
  207. /*Swap columns order on mobile for two columns*/
  208.  
  209. @media only screen and (min-width: 981px) {
  210. .column-swap .et_pb_column .et_pb_row .et_pb_column {
  211. margin-left: 4.5%;
  212. }
  213. .column-swap .et_pb_column {
  214. float: right;
  215. }
  216. .column-swap .et_pb_row .et_pb_column:last-child, .column-swap .et_pb_row_inner .et_pb_column:last-child {
  217. margin-right: 4.5%;
  218. margin-left: 0;
  219. width: 47.25%;
  220. }
  221. .column-swap .et_pb_column, .column-swap .et_pb_row .et_pb_column:first-child {
  222. margin-right: 0;
  223. width: 47.25%;
  224. }
  225. }
  226.  
  227. /*fixing the padding on fullwidth menu*/
  228. body {
  229. overflow: -moz-scrollbars-vertical;
  230. overflow-x: hidden;
  231. overflow-y: auto;
  232. }
  233. /*------------------------------------------------*/
  234. /*--------------[ARCHIVE BLOG GRID]---------------*/
  235. /*------------------------------------------------*/
  236.  
  237. .search #left-area,
  238. .archive #left-area {
  239. -moz-column-count: 2;
  240. column-count: 2;
  241. -moz-column-gap: 60px;
  242. column-gap: 60px;}
  243.  
  244. .archive .et_pb_post > a,
  245. .search .et_pb_post > a {
  246. margin: -20px -20px 10px;
  247. display: block;}
  248.  
  249. .search #left-area .et_pb_post,
  250. .archive #left-area .et_pb_post {
  251. overflow: hidden; /* fix for Firefox */
  252. page-break-inside: avoid;
  253. break-inside: avoid-column;
  254. width: 100%;
  255. padding: 19px;
  256. border: 1px solid #d8d8d8;
  257. background-color: #fff;
  258. word-wrap: break-word;
  259. display: inline-block;}
  260.  
  261. .search #left-area .et_pb_post h2,
  262. .archive #left-area .et_pb_post h2 {
  263. font-size: 18px;}
  264.  
  265. .search #left-area .et_pb_post.format-link,
  266. .search #left-area .et_pb_post.format-quote,
  267. .search #left-area .et_pb_post.format-audio,
  268. .archive #left-area .et_pb_post.format-link,
  269. .archive #left-area .et_pb_post.format-quote,
  270. .archive #left-area .et_pb_post.format-audio{
  271. padding: 0;}
  272.  
  273. .archive .et_pb_post .et_pb_image_container,
  274. .archive .et_pb_post .et_main_video_container,
  275. .archive .et_pb_post .et_audio_content,
  276. .archive .et_pb_post .et_pb_slider,
  277. .search .et_pb_post .et_pb_image_container,
  278. .search .et_pb_post .et_main_video_container,
  279. .search .et_pb_post .et_audio_content,
  280. .search .et_pb_post .et_pb_slider {
  281. margin: -20px -20px 10px;}
  282.  
  283. .archive .et_pb_post.format-audio .et_audio_content{
  284. margin: 0px -38px 0px;}
  285.  
  286. .archive .et_pb_post .et_pb_slider .et_pb_slide,
  287. .search .et_pb_post .et_pb_slider .et_pb_slide {
  288. min-height: 180px;}
  289.  
  290. .archive .pagination,
  291. .search .pagination {
  292. padding: 20px 0;}
  293.  
  294.  
  295. @media screen and (max-width: 980px) {
  296. .search #left-area,
  297. .archive #left-area {
  298. -moz-column-count: 2;
  299. column-count: 2;
  300. -moz-column-gap: 60px;
  301. column-gap: 60px;}}
  302.  
  303. @media screen and (max-width: 767px) {
  304. .search #left-area,
  305. .archive #left-area {
  306. -moz-column-count: 1;
  307. column-count: 1;}
  308. .search .et_pb_post.format-audio .et_audio_content,
  309. .archive .et_pb_post.format-audio .et_audio_content{
  310. margin: 0;}
  311. .search #left-area .et_pb_post.format-audio .et_audio_container .mejs-controls div.mejs-time-rail,
  312. .archive #left-area .et_pb_post.format-audio .et_audio_container .mejs-controls div.mejs-time-rail,
  313. .search #left-area .et_pb_post.format-audio .et_audio_container .mejs-controls .mejs-time-rail .mejs-time-total,
  314. .archive #left-area .et_pb_post.format-audio .et_audio_container .mejs-controls .mejs-time-rail .mejs-time-total{
  315. min-width: 300px!important;
  316. width: 300px!important;}}
  317. /*make 5 gallery columns */
  318. margin: 0 !important;
  319. width: 20% !important;
  320. clear: none !important
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement