header.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981
  1. header {
  2. background: @header-bg;
  3. * {
  4. .transition(all, 0.3s, ease);
  5. }
  6. .header-top {
  7. width: 100%;
  8. display: inline-block;
  9. vertical-align: top;
  10. color: lighten(@dark-color, 10%);
  11. font-weight: 300;
  12. z-index: 1000;
  13. position: relative;
  14. font-size: @font-size-base -2;
  15. span {
  16. margin-right: 3px;
  17. }
  18. .top-row {
  19. border-bottom: 1px solid darken(@header-bg, 15%);
  20. }
  21. a {
  22. display: block;
  23. font-weight: 300;
  24. }
  25. }
  26. .top-left {
  27. margin: 0;
  28. text-align: left;
  29. display: inline-block;
  30. line-height: 40px;
  31. @media (max-width:640px) {
  32. text-align: left;
  33. width: 100%;
  34. text-align: center;
  35. }
  36. a {
  37. text-decoration: none;
  38. float: left;
  39. @media (max-width:640px) {
  40. float: none;
  41. display: inline-block;
  42. vertical-align: middle;
  43. }
  44. &:hover {
  45. text-decoration: none;
  46. }
  47. &:focus {
  48. text-decoration: none;
  49. }
  50. p {
  51. color: lighten(@dark-color, 10%);
  52. font-weight: 400;
  53. font-size: @font-size-base - 2;
  54. margin: 0;
  55. padding: 0px 11px 0 0;
  56. }
  57. }
  58. .call-us {
  59. float: left;
  60. margin: 0;
  61. i {
  62. color: @theme;
  63. vertical-align: middle;
  64. font-size: @font-size-base * 2 - 4;
  65. }
  66. span {
  67. color: @dark-color;
  68. .transition(all, 0.1s, ease);
  69. }
  70. @media (max-width:991px) {
  71. float: none;
  72. display: inline-block;
  73. vertical-align: top;
  74. }
  75. &:hover {
  76. span {
  77. color: lighten(@dark-color, 30%);
  78. }
  79. }
  80. ;
  81. }
  82. }
  83. .mail {
  84. i {
  85. color: @theme;
  86. vertical-align: middle;
  87. font-size: @font-size-base + 2;
  88. }
  89. span {
  90. color: @dark-color;
  91. .transition(all, 0.1s, ease);
  92. }
  93. &:hover {
  94. span {
  95. color: lighten(@dark-color, 30%);
  96. }
  97. }
  98. ;
  99. }
  100. .top-right {
  101. @media (max-width:640px) {
  102. width: 100%;
  103. text-align: center;
  104. }
  105. }
  106. .links {
  107. margin: 0;
  108. padding: 0;
  109. float: right;
  110. @media (max-width:991px) {
  111. float: none;
  112. display: inline-block;
  113. vertical-align: top;
  114. }
  115. @media (max-width:640px) {
  116. position: relative;
  117. width: 100%;
  118. }
  119. > li {
  120. display: inline-block;
  121. vertical-align: top;
  122. list-style-type: none;
  123. &.configuration {
  124. &:hover {
  125. }
  126. a {
  127. height: 100%;
  128. width: 100%;
  129. }
  130. }
  131. .top-link-checkout {
  132. padding-right: 0;
  133. font-size: @font-size-base - 2;
  134. >a {
  135. font-size: @font-size-base - 2;
  136. }
  137. > .fa {
  138. margin-right: 8px;
  139. font-size: @font-size-base + 5;
  140. vertical-align: middle;
  141. }
  142. }
  143. > a {
  144. display: block;
  145. height: 40px;
  146. line-height: 40px;
  147. padding: 0 10px;
  148. font-size: @font-size-base + 2;
  149. font-weight: 600;
  150. color: @theme;
  151. vertical-align: middle;
  152. border-bottom: 1px solid transparent;
  153. &:hover {
  154. text-decoration: none;
  155. color: @dark-color;
  156. }
  157. > .fa {
  158. display: inline-block;
  159. vertical-align: middle;
  160. }
  161. }
  162. }
  163. }
  164. .configuration {
  165. position: relative;
  166. .toggle-config {
  167. z-index: 1;
  168. border: 1px solid @theme;
  169. width: 165px;
  170. text-align: left;
  171. padding: 0;
  172. position: absolute;
  173. right: 0;
  174. background-color: #fff;
  175. display: none;
  176. opacity: 0;
  177. top: 100%;
  178. .transition(all, 0.5s, ease);
  179. .options {
  180. border-bottom: 1px solid lighten(@dark-color, 70%);
  181. padding: 5px 8px;
  182. .js_language_selector {
  183. min-width: 85px;
  184. li {
  185. .js_change_lang {
  186. text-transform: capitalize;
  187. }
  188. &.active {
  189. a {
  190. background-color: @theme;
  191. }
  192. }
  193. }
  194. }
  195. ul {
  196. padding: 0;
  197. label {
  198. font-size: @font-size-base - 2;
  199. color: @dark-color;
  200. font-weight: bold;
  201. text-transform: uppercase;
  202. margin: 0;
  203. padding: 5px 0px;
  204. margin-right: 20px
  205. }
  206. .dropdown-toggle {
  207. text-transform: capitalize;
  208. float: right;
  209. border: 1px solid lighten(@dark-color, 70%);
  210. outline: none;
  211. background-color: transparent;
  212. }
  213. }
  214. }
  215. .personal-info {
  216. ul {
  217. list-style-type: none;
  218. text-align: left;
  219. margin: 0;
  220. padding: 0;
  221. li {
  222. color: @dark-color;
  223. font-size: @font-size-base - 2;
  224. font-weight: 400;
  225. line-height: 21px;
  226. padding: 5px 10px;
  227. span {
  228. text-transform: capitalize;
  229. }
  230. a {
  231. color: @dark-color;
  232. font-weight: 400;
  233. text-transform: capitalize;
  234. font-size: @font-size-base - 2;
  235. &:hover {
  236. text-decoration: none;
  237. color: @theme;
  238. }
  239. }
  240. &:hover {
  241. a {
  242. text-decoration: none;
  243. color: @theme;
  244. }
  245. }
  246. }
  247. }
  248. }
  249. }
  250. &:hover, &:focus, &:active {
  251. >a {
  252. border-bottom: 1px solid @theme;
  253. }
  254. .toggle-config {
  255. opacity: 1;
  256. top: 100%;
  257. display: block;
  258. }
  259. }
  260. }
  261. .item-no {
  262. position: relative;
  263. @media (max-width:640px) {
  264. position: static;
  265. }
  266. .mini-cart-content {
  267. opacity: 0;
  268. top: 100%;
  269. display: none;
  270. .transition(all, 0.5s, ease);
  271. position: absolute;
  272. width: 300px;
  273. padding: 25px;
  274. right: 0;
  275. text-align: left;
  276. border: 1px solid @theme;
  277. background-color: #fff;
  278. .block-subtitle {
  279. padding: 0;
  280. margin: 0 0 20px;
  281. font-size: 14px;
  282. font-weight: bold;
  283. }
  284. .cart-content {
  285. span {
  286. margin: 0px;
  287. }
  288. .product-desc {
  289. display: inline-block;
  290. width: 100%;
  291. .pd-row {
  292. width: 100%;
  293. display: inline-block;
  294. vertical-align: top;
  295. position: relative;
  296. padding-bottom: 15px;
  297. }
  298. .product-img {
  299. float: left;
  300. width: 30%;
  301. margin: 0;
  302. max-height: 65px;
  303. img {
  304. max-height: 65px;
  305. }
  306. span {
  307. margin: 0px;
  308. }
  309. }
  310. .product-detail {
  311. text-align: left;
  312. padding-left: 20px;
  313. float: left;
  314. width: 70%;
  315. p {
  316. margin: 0;
  317. }
  318. .product-name {
  319. a {
  320. text-transform: uppercase;
  321. color: @dark-color;
  322. font-weight: bold;
  323. }
  324. &:hover {
  325. a {
  326. text-decoration: none;
  327. }
  328. }
  329. }
  330. .price {
  331. display: inline-block;
  332. }
  333. }
  334. .total {
  335. width: 100%;
  336. display: inline-block;
  337. vertical-align: top;
  338. td, th {
  339. padding: 5px;
  340. }
  341. h3 {
  342. margin: 0;
  343. padding: 0;
  344. font-size: @font-size-base;
  345. }
  346. p {
  347. font-size: @font-size-base + 3;
  348. font-weight: bold;
  349. }
  350. }
  351. .button-box {
  352. .view-all {
  353. background-color: lighten(@dark-color, 70%);
  354. border: none;
  355. padding: 7px 10px;
  356. color: @dark-color;
  357. outline: none;
  358. display: inline-block;
  359. border-radius: 0px;
  360. &:hover {
  361. background-color: @theme;
  362. text-decoration: none;
  363. color: @light-color;
  364. }
  365. }
  366. .proceed {
  367. background-color: @dark-color;
  368. float: right;
  369. outline: none;
  370. display: inline-block;
  371. border-radius: 0px;
  372. }
  373. a {
  374. font-size: @font-size-base;
  375. font-weight: 400;
  376. text-transform: capitalize;
  377. color: @light-color;
  378. }
  379. }
  380. }
  381. }
  382. }
  383. &:hover, &:focus, &:active {
  384. .mini-cart-content {
  385. opacity: 1;
  386. top: 100%;
  387. display: block;
  388. }
  389. }
  390. &:hover {
  391. >a {
  392. border-bottom: 1px solid @theme;
  393. }
  394. .toggle-config {
  395. visibility: visible;
  396. opacity: 1;
  397. top: 100%;
  398. }
  399. }
  400. }
  401. .header-middle {
  402. padding: 0 15px;
  403. position: relative;
  404. z-index: 999;
  405. .navbar-header {
  406. float: left;
  407. padding: 8px 0 10px 0px;
  408. margin: 0;
  409. position: relative;
  410. z-index: 1;
  411. .navbar-brand {
  412. }
  413. @media (max-width:767px) {
  414. width: 100%;
  415. }
  416. }
  417. .header-cart {
  418. float: right;
  419. @media (max-width:767px) {
  420. float: none;
  421. display: inline-block;
  422. vertical-align: top;
  423. width: 100%;
  424. text-align: center;
  425. padding: 10px 0 0 0;
  426. }
  427. ul {
  428. margin: 0;
  429. padding: 0;
  430. display: inline-block;
  431. vertical-align: top;
  432. }
  433. > ul {
  434. > li {
  435. position: relative;
  436. list-style-type: none;
  437. margin: 0;
  438. padding: 0;
  439. > a {
  440. background: @theme;
  441. padding: 10px 25px;
  442. border-radius: 25px;
  443. display: block;
  444. color: @light-color;
  445. .transition(all, 0.5s, ease);
  446. &:hover {
  447. text-decoration: none;
  448. }
  449. }
  450. > ul {
  451. visibility: hidden;
  452. position: absolute;
  453. opacity: 0;
  454. top: 120%;
  455. width: 250px;
  456. background: @light-color;
  457. right: 0;
  458. padding: 15px;
  459. .transition(all, 0.5s, ease);
  460. @media (max-width:767px) {
  461. right: -50%;
  462. }
  463. > li {
  464. list-style-type: none;
  465. }
  466. .hc-pro {
  467. width: 100%;
  468. display: inline-block;
  469. vertical-align: top;
  470. border-bottom: 1px solid darken(@light-color, 10%);
  471. margin-bottom: 10px;
  472. padding-bottom: 10px;
  473. position: relative;
  474. padding-left: 60px;
  475. min-height: 50px;
  476. .cart-images {
  477. position: absolute;
  478. left: 0;
  479. top: 0;
  480. width: 50px;
  481. max-height: 50px;
  482. overflow: hidden;
  483. }
  484. .hc-cart-info {
  485. a {
  486. color: @dark-color;
  487. line-height: normal;
  488. }
  489. label {
  490. font-weight: normal;
  491. }
  492. }
  493. }
  494. .hc-action {
  495. width: 100%;
  496. display: inline-block;
  497. vertical-align: top;
  498. .hc-total {
  499. width: 48%;
  500. display: inline-block;
  501. vertical-align: middle;
  502. }
  503. .hc-btns {
  504. width: 50%;
  505. display: inline-block;
  506. vertical-align: middle;
  507. text-align: right;
  508. a {
  509. padding: 5px 10px;
  510. background: @theme;
  511. display: inline-block;
  512. vertical-align: top;
  513. color: @light-color;
  514. }
  515. }
  516. }
  517. }
  518. &:hover {
  519. > a {
  520. border-radius: 0;
  521. }
  522. > ul {
  523. opacity: 1;
  524. visibility: visible;
  525. top: 100%;
  526. }
  527. }
  528. }
  529. }
  530. }
  531. }
  532. .header-nav {
  533. vertical-align: top;
  534. background: transparent;
  535. position: relative;
  536. z-index: 99;
  537. .container {
  538. position: relative;
  539. }
  540. .mobile-toggle {
  541. display: none;
  542. float: left;
  543. .icon-bar {
  544. background: @light-color;
  545. }
  546. span:first-child {
  547. display: none;
  548. }
  549. span {
  550. tranform: rotate(45deg);
  551. }
  552. span:last-child {
  553. transform: rotate(135deg);
  554. }
  555. }
  556. .search-toggle {
  557. position: absolute;
  558. right: 15px;
  559. top: 0;
  560. z-index: 1;
  561. .st-toggle {
  562. height: 60px;
  563. width: 60px;
  564. float: left;
  565. text-align: center;
  566. line-height: 60px;
  567. background: darken(@theme, 15%);
  568. cursor: pointer;
  569. color: @light-color;
  570. .fa {
  571. font-size: @font-size-base + 6;
  572. }
  573. }
  574. .hsearch-block {
  575. visibility: hidden;
  576. opacity: 0;
  577. position: absolute;
  578. .transition(all, 0.5s, ease);
  579. top: 120%;
  580. width: 250px;
  581. right: 0;
  582. padding: 20px;
  583. background: @light-color;
  584. box-shadow: 0px 3px 5px 0px darken(@light-color, 30%);
  585. .form-control {
  586. border-radius: 0;
  587. height: 45px;
  588. line-height: 45px;
  589. font-size: @font-size-base + 2;
  590. }
  591. .btn {
  592. position: absolute;
  593. top: 20px;
  594. right: 20px;
  595. background: @theme;
  596. border-radius: 0;
  597. border: none;
  598. height: 45px;
  599. line-height: 45px;
  600. padding: 0;
  601. width: 45px;
  602. color: @light-color;
  603. .fa {
  604. font-size: @font-size-base + 2;
  605. }
  606. }
  607. }
  608. &.search-toggle-open {
  609. .hsearch-block {
  610. visibility: visible;
  611. opacity: 1;
  612. top: 100%;
  613. }
  614. }
  615. }
  616. .navbar-collapse {
  617. padding: 0;
  618. position: relative;
  619. @media (max-width:767px) {
  620. display: none !important;
  621. &.in {
  622. display: block !important;
  623. position: absolute;
  624. top: 99%;
  625. width: 100%;
  626. left: 0;
  627. padding: 0 15px;
  628. margin: 0;
  629. overflow: inherit;
  630. .navbar-nav {
  631. float: none;
  632. margin: 0;
  633. background: @theme;
  634. > li {
  635. width: 100%;
  636. + li {
  637. border-top: 1px solid darken(@theme, 7%);
  638. }
  639. }
  640. }
  641. }
  642. }
  643. .navbar-nav {
  644. margin: 0;
  645. .divider {
  646. display: none;
  647. }
  648. > li {
  649. > a {
  650. font-size: @font-size-base;
  651. padding: 10px 15px;
  652. line-height: 55px;
  653. text-transform: capitalize;
  654. font-weight: bold;
  655. .transition(all, 0.3s, ease);
  656. text-decoration: none;
  657. color: @dark-color;
  658. @media (max-width:767px) {
  659. line-height: normal;
  660. color: @light-color;
  661. }
  662. &:hover, &:focus, &:active {
  663. background: transparent;
  664. color: @theme;
  665. &:before {
  666. visibility: visible;
  667. -moz-transform: scaleX(1);
  668. -webkit-transform: scaleX(1);
  669. -o-transform: scaleX(1);
  670. transform: scaleX(1);
  671. }
  672. }
  673. &:before {
  674. content: "";
  675. position: absolute;
  676. width: 100%;
  677. height: 2px;
  678. bottom: 0;
  679. left: 0;
  680. background-color: @theme;
  681. visibility: hidden;
  682. -moz-transform: scaleX(0);
  683. -webkit-transform: scaleX(0);
  684. -o-transform: scaleX(0);
  685. transform: scaleX(0);
  686. .transition(all, 0.3s, ease-in-out);
  687. }
  688. }
  689. &.active {
  690. > a {
  691. background: transparent;
  692. color: @theme;
  693. @media (max-width:767px) {
  694. color: @light-color;
  695. background: darken(@theme, 5%);
  696. }
  697. }
  698. }
  699. &:hover {
  700. > a {
  701. background: transparent;
  702. &:hover, &:focus, &:active {
  703. background: transparent;
  704. color: @theme;
  705. @media (max-width:767px) {
  706. color: @light-color;
  707. background: darken(@theme, 5%);
  708. }
  709. }
  710. }
  711. }
  712. }
  713. }
  714. .navbar-nav {
  715. .offers {
  716. margin-top: 8px;
  717. a {
  718. color: @theme;
  719. padding: 5px 9px;
  720. text-transform: uppercase;
  721. }
  722. }
  723. }
  724. }
  725. .mega-menu {
  726. position: static;
  727. .mm-menu {
  728. visibility: hidden;
  729. opacity: 0;
  730. position: absolute;
  731. width: 100%;
  732. left: 0;
  733. top: 120%;
  734. background: @light-color;
  735. margin: 0;
  736. padding: 0;
  737. letter-spacing: -0.31em;
  738. .transition(all, 0.5s, ease);
  739. box-shadow: 0px 3px 5px 0px darken(@light-color, 30%);
  740. @media (max-width:991px) {
  741. visibility: visible;
  742. position: relative;
  743. opacity: 1;
  744. }
  745. .mm-col {
  746. display: inline-block;
  747. vertical-align: top;
  748. letter-spacing: normal;
  749. width: 25%;
  750. padding: 15px;
  751. h4 {
  752. margin: 0 0 10px;
  753. padding: 0 0 10px;
  754. font-size: @font-size-base + 2;
  755. border-bottom: 1px dotted darken(@light-color, 20%);
  756. }
  757. ul {
  758. margin: 0;
  759. padding: 0;
  760. li {
  761. list-style-type: none;
  762. padding: 3px 0 3px 15px;
  763. position: relative;
  764. .transition(all, 0.5s, ease);
  765. &:before {
  766. content: "\f105";
  767. display: inline;
  768. font-family: "FontAwesome";
  769. position: absolute;
  770. left: 0;
  771. top: 0;
  772. .transition(all, 0.5s, ease);
  773. }
  774. a {
  775. color: @theme;
  776. }
  777. &:hover {
  778. padding-left: 20px;
  779. &:before {
  780. left: 5px;
  781. color: @theme;
  782. }
  783. a {
  784. text-decoration: none;
  785. color: @theme;
  786. }
  787. }
  788. &.mm-img {
  789. padding: 0;
  790. margin: 0 0 15px;
  791. &:before {
  792. display: none;
  793. }
  794. }
  795. }
  796. }
  797. }
  798. }
  799. &:hover {
  800. .mm-menu {
  801. visibility: visible;
  802. opacity: 1;
  803. top: 100%;
  804. @media (max-width:991px) {
  805. visibility: visible;
  806. position: relative;
  807. opacity: 1;
  808. top: auto;
  809. }
  810. }
  811. }
  812. }
  813. }
  814. }
  815. .header-fixed {
  816. &.editor_enable{
  817. header{
  818. position: relative;
  819. top: 0;
  820. }
  821. }
  822. #wrapwrap {
  823. padding-top: 80px;
  824. }
  825. .cke_editable {
  826. header {
  827. position: relative;
  828. z-index: 99;
  829. }
  830. }
  831. header {
  832. background: @header-bg;
  833. position: fixed;
  834. top: -42px;
  835. left: 0;
  836. z-index: 9999;
  837. width: 100%;
  838. @media (max-width:767px) {
  839. position: relative;
  840. top: auto;
  841. }
  842. .header-middle {
  843. .navbar-header {
  844. a.navbar-brand {
  845. height: 45px;
  846. img {
  847. max-height: 40px;
  848. }
  849. }
  850. }
  851. }
  852. .header-top {
  853. }
  854. .header-nav {
  855. .navbar-collapse {
  856. .navbar-nav {
  857. > li {
  858. > a {
  859. line-height: 45px;
  860. @media (max-width:767px) {
  861. line-height: normal;
  862. }
  863. }
  864. &:hover {
  865. >a {
  866. }
  867. }
  868. }
  869. }
  870. }
  871. }
  872. }
  873. }
  874. .label-primary {
  875. background-color: @theme;
  876. }
  877. footer {
  878. .fa-angle-right {
  879. color: @light-color;
  880. }
  881. }
  882. @media (max-width:767px) {
  883. .navbar-default {
  884. .navbar-header {
  885. position: relative;
  886. }
  887. .navbar-toggle {
  888. display: block;
  889. position: absolute;
  890. right: 0;
  891. top: 0;
  892. padding: 10px;
  893. border-radius: 0;
  894. bottom: 0;
  895. height: 40px;
  896. margin: auto;
  897. border: none;
  898. background-color: @theme;
  899. .icon-bar {
  900. background: @light-color;
  901. }
  902. &:hover, &:focus, &:active {
  903. background-color: @theme;
  904. }
  905. &.collapsed {
  906. }
  907. }
  908. }
  909. }
  910. /*checkout page */
  911. .list-view-box {
  912. .list-items {
  913. .pink-box {
  914. display: none;
  915. }
  916. }
  917. }