Guest User

Untitled

a guest
Jan 29th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.31 KB | None | 0 0
  1. /************************************
  2.  
  3. Widget left, Logo right, Menu below
  4.  
  5. *************************************
  6.  
  7.  
  8. CSS Settings:
  9.  
  10. » Initiate Flexbox
  11. » Topbar
  12. » Header
  13. » Logo
  14. » Menu
  15. » Widget
  16. » Social icons
  17. » Search
  18. » Cart icon
  19.  
  20. ***********************************/
  21.  
  22.  
  23. /*--------------------------------
  24.  
  25. » Initiate Flexbox
  26.  
  27. --------------------------------*/
  28.  
  29.  
  30. /* Header */
  31. .responsive #top #header,
  32. /* Top bar */
  33. .responsive #top #header #header_meta,
  34. /* Search icon */
  35. .responsive #top #header #menu-item-search a,
  36. /* Cart icon */
  37. .responsive #top #header a.cart_dropdown_link,
  38. /* Social icon */
  39. .responsive #top #header #header_main nav .social_bookmarks,
  40. /* Logo */
  41. .responsive #top #header #header_main .inner-container .logo,
  42. /* Main menu, cart and social icons */
  43. .responsive #top #header #header_main .inner-container .main_menu,
  44. /* Widgets */
  45. .responsive #top #header #header_main .inner-container .widget,
  46. /* Header inner container */
  47. #top #header #header_main .container.av-logo-container .inner-container {
  48. display: flex;
  49. position: relative;
  50. }
  51.  
  52.  
  53.  
  54.  
  55.  
  56. /*--------------------------------
  57.  
  58. » Topbar
  59.  
  60. --------------------------------*/
  61.  
  62.  
  63. /* Top bar */
  64.  
  65. .responsive #top #header #header_meta {
  66. flex-basis: 100%;
  67. }
  68.  
  69.  
  70.  
  71.  
  72. /*--------------------------------
  73.  
  74. » Header
  75.  
  76. --------------------------------*/
  77.  
  78.  
  79. /* Height outer container */
  80.  
  81. #top #header #header_main .container.av-logo-container {
  82. /* Do not change height here */
  83. /* Auto height: Header takes the height of the contents */
  84. height: inherit;
  85. line-height: inherit;
  86. }
  87.  
  88.  
  89.  
  90. /* Header inner container */
  91.  
  92. #top #header #header_main .container.av-logo-container .inner-container {
  93. /* Define header height here */
  94. height: inherit;
  95. position: relative !important;
  96. flex-wrap: wrap;
  97. /* Define header padding */
  98. padding: 10px;
  99. justify-content: space-between;
  100. }
  101.  
  102.  
  103.  
  104. /* Wrappers
  105. --------------------------------*/
  106.  
  107.  
  108. /* Main header ( logo, menu, widgets ) and topbar */
  109.  
  110. .responsive #top #header {
  111. flex-wrap: wrap;
  112. }
  113.  
  114.  
  115. /* Logo, Menu, Social Icons and Widgets. */
  116.  
  117. .responsive #top #header #header_main {
  118. flex-basis: 100%;
  119. }
  120.  
  121.  
  122. /* Transparent header
  123. --------------------------------*/
  124.  
  125. .responsive.html_header_transparency #top #wrap_all #header {
  126. position: absolute;
  127. }
  128.  
  129. @media only screen and (max-width: 767px) {
  130. .responsive.html_header_transparency #top #wrap_all #main {
  131. /* Define padding value for transparent header in mobile */
  132. /*padding-top: 315px !important; */
  133. }
  134. }
  135.  
  136.  
  137.  
  138.  
  139.  
  140. /* Fixed header
  141. --------------------------------*/
  142.  
  143. .html_header_sticky.html_mobile_menu_tablet #top #wrap_all #header,
  144. .html_header_sticky.html_header_transparency #top #wrap_all #header,
  145. .html_header_sticky #top #wrap_all #header {
  146. position: fixed;
  147. }
  148.  
  149. .html_header_sticky #top #header_main .container,
  150. .html_header_sticky #top .main_menu ul:first-child>li a {
  151. height: inherit !important;
  152. line-height: inherit !important;
  153. }
  154.  
  155.  
  156. /* Main content padding value should be same as the fixed header height. */
  157.  
  158. .html_header_sticky:not(.html_header_transparency) #top #wrap_all #main,
  159. .html_header_sticky #top #wrap_all #main {
  160. /* Define padding only if sticky header is active */
  161. /*padding-top: 262px ; */
  162. }
  163.  
  164. @media only screen and (max-width: 767px) {
  165. .html_header_sticky #top #wrap_all #main {
  166. /* Define padding value for sticky header on mobile */
  167. /*padding-top: 315px !important; */
  168. }
  169. }
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176. /*--------------------------------
  177.  
  178. » Logo
  179.  
  180. --------------------------------*/
  181.  
  182.  
  183. /* Logo */
  184.  
  185. .responsive #top #header #header_main .inner-container .logo {
  186. order: 2;
  187. flex-basis: auto;
  188. /*width: auto;*/
  189.  
  190. /* Define scalable min width of the logo on small screens */
  191. min-width: 100px;
  192. /* Define scalable max width of the logo on big screens */
  193. /* Logo width: (auto | 100% | px ); Set auto to display the uploaded image size */
  194. max-width: 180px;
  195.  
  196. z-index: 9;
  197. }
  198.  
  199.  
  200. /* Logo image size */
  201.  
  202. .responsive #top #header .logo,
  203. .responsive #top #header .logo a,
  204. .responsive #top #header .logo img {
  205. width: auto;
  206.  
  207. /* Height specification is not required. It is proportional to the max width of the logo */
  208. height: auto;
  209. align-items: center;
  210. align-self: center;
  211. justify-content: center;
  212. }
  213.  
  214.  
  215. /* Vertically center transparency logo */
  216.  
  217. .responsive #top #header .logo span img {
  218. position: absolute;
  219. top: 50%;
  220. transform: translateY(-50%);
  221. }
  222.  
  223.  
  224.  
  225. /*--------------------------------
  226.  
  227. » Menu
  228.  
  229. --------------------------------*/
  230.  
  231.  
  232. /* Menu outer container: Menu with siblings cart and social icons */
  233.  
  234. .responsive #top #header #header_main .inner-container .main_menu {
  235. order: 3;
  236.  
  237. /* Define menu width */
  238. flex-basis: 100%;
  239.  
  240. align-items: center;
  241. align-self: center;
  242. height: inherit !important;
  243. background: gold;
  244. justify-content: center;
  245. }
  246.  
  247.  
  248. /* Navigation */
  249.  
  250. #header .av-main-nav {
  251. display: flex;
  252. flex-wrap: nowrap;
  253. }
  254.  
  255.  
  256. /* Activate burger menu */
  257.  
  258. @media only screen and (max-width: 1000px) {
  259. #top #header .av-main-nav>li.menu-item {
  260. display: none!important;
  261. }
  262. #top #header .av-burger-menu-main {
  263. cursor: pointer;
  264. display: block!important;
  265. }
  266. }
  267.  
  268. @media only screen and (max-width: 767px) {
  269. /* Mobile menu position fix */
  270. .responsive #top .av-logo-container .avia-menu {
  271. display: flex!important;
  272. align-items: center;
  273. }
  274. }
  275.  
  276.  
  277.  
  278. /* Mega menu submenu position fix */
  279.  
  280. .responsive #top #header .avia_mega_div {
  281. /* Define megamenu submenu top value */
  282. /* top: 300px;
  283. position: fixed;
  284. left: 50%;
  285. transform: translateX(-50%);*/
  286. }
  287.  
  288.  
  289.  
  290. /*--------------------------------
  291.  
  292. » Widget
  293.  
  294. --------------------------------*/
  295.  
  296.  
  297. /* Widgets */
  298.  
  299. .responsive #top #header #header_main .inner-container .widget {
  300. order: 1;
  301. flex-basis: auto;
  302. padding: 0;
  303. clear: none!important;
  304.  
  305. justify-content: center;
  306. align-self: center;
  307. align-items: center;
  308. z-index: 1;
  309. }
  310.  
  311.  
  312. .responsive #top #header #header_main .inner-container .widget>div {
  313. width: 100%;
  314. line-height: 14px;
  315. padding: 0 10px;
  316. background: gold;
  317. }
  318.  
  319.  
  320.  
  321.  
  322. /*--------------------------------
  323.  
  324. » Social icons
  325.  
  326. --------------------------------*/
  327.  
  328.  
  329. /* Flex support and position fix */
  330.  
  331. .responsive #top #header #header_main nav .social_bookmarks {
  332. top: auto;
  333. margin-top: 0;
  334. align-items: center;
  335. }
  336.  
  337.  
  338. /* Inherit height for flex alignment */
  339.  
  340. .responsive #top .av-logo-container .social_bookmarks li {
  341. height: inherit;
  342. }
  343.  
  344.  
  345.  
  346.  
  347.  
  348. /*--------------------------------
  349.  
  350. » Search
  351.  
  352. --------------------------------*/
  353.  
  354.  
  355. /* Your styles here */
  356.  
  357.  
  358. /*--------------------------------
  359.  
  360. » Cart
  361.  
  362. --------------------------------*/
  363.  
  364.  
  365. /* Cart position fix */
  366.  
  367. #top #header #header_main #menu-item-shop a.cart_dropdown_link {
  368. height: auto;
  369. }
  370.  
  371. @media only screen and (max-width: 767px) {
  372. .responsive #top #menu-item-shop.cart_dropdown {
  373. display: flex;
  374. align-items: center;
  375. }
  376. .cart_dropdown .dropdown_widget .avia-arrow {
  377. display: none;
  378. }
  379. }
  380.  
  381.  
  382.  
Advertisement
Add Comment
Please, Sign In to add comment