utility.less 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. .space() {
  2. max-height:1px;
  3. min-height:1px;
  4. overflow:hidden;
  5. }
  6. .space { .space(); margin:12px 0; }
  7. .spaceX (@index) when (@index > 0) {
  8. .space-@{index} { .space(); margin:unit(@index,px) 0 unit(@index - 1,px); }
  9. .spaceX(@index - 2);
  10. }
  11. .spaceX(64);//produce spaces
  12. .hr {
  13. display:block;
  14. height:0px; overflow:hidden; font-size:0;
  15. border-top:1px solid @default-border-color;
  16. margin:12px 0;
  17. }
  18. .hr-double {
  19. height:3px;
  20. border-top:1px solid @default-border-color;
  21. border-bottom:1px solid @default-border-color;
  22. }
  23. .hr.dotted , .hr-dotted{ border-top-style:dotted;}
  24. .hr-double.dotted { border-bottom-style:dotted;}
  25. .hrX (@index) when (@index > 0) {
  26. .hr-@{index}, .hr@{index} { margin:unit(@index,px) 0; }
  27. .hrX(@index - 2);
  28. }
  29. .hrX(32);
  30. hr {
  31. &.separator {
  32. clear: both;
  33. margin-top: 10px;
  34. margin-bottom: 13px;
  35. border: 0;
  36. height: 1px;
  37. background: linear-gradient(to right, rgba(0, 0, 0, 0),rgba(0, 0, 0, 0.25),rgba(0, 0, 0, 0));
  38. }
  39. }
  40. .biggerX (@index) when (@index < 310) {
  41. .bigger-@{index} { font-size: unit(@index,~"%"); }
  42. .biggerX(@index + 10);
  43. }
  44. .biggerX(110);
  45. .bigger-125 { font-size:125%;}
  46. .bigger-175 { font-size:175%; }
  47. .bigger-225 { font-size:225%; }
  48. .bigger-275 { font-size:275%; }
  49. .bigger-500 { font-size:50px; line-height: 50px; }
  50. .smallerX (@index) when (@index > 10) {
  51. .smaller-@{index} { font-size: unit(@index,~"%"); }
  52. .smallerX(@index - 10);
  53. }
  54. .smallerX(90);
  55. .smaller-75 { font-size:75%;}
  56. .action-buttons a {
  57. margin:0 3px;
  58. display:inline-block;
  59. opacity:0.85;
  60. .transition(~"all 0.1s");
  61. &:hover {
  62. text-decoration:none;
  63. .transform(~"scale(1.2)");
  64. opacity:1;
  65. }
  66. }
  67. .lighter { font-weight: 300!important; }
  68. .bolder { font-weight: bolder!important; }
  69. .text-underline { text-decoration: underline; }
  70. .heading { padding: 0; margin: 0; height: 25px; line-height: 25px; }
  71. // borders
  72. .no-padding { padding: 0 !important; }
  73. .no-padding-bottom { padding-bottom: 0 !important; }
  74. .no-padding-top { padding-top: 0 !important; }
  75. .no-padding-left { padding-left: 0 !important; }
  76. .no-padding-right { padding-right: 0 !important; }
  77. .no-margin { margin: 0 !important; }
  78. .no-margin-bottom { margin-bottom: 0 !important; }
  79. .no-margin-top { margin-top: 0 !important; }
  80. .no-margin-left { margin-left: 0 !important; }
  81. .no-margin-right { margin-right: 0 !important; }
  82. .no-border { border:none!important; }
  83. .no-border-bottom { border-bottom:none!important; }
  84. .no-border-top { border-top:none!important; }
  85. .no-border-left { border-left:none!important; }
  86. .no-border-right { border-right:none!important; }
  87. .no-shadow { box-shadow:none!important; }
  88. .bg-transparent { background: transparent!important; }
  89. .border-top-bottom { border-top: 1px solid @default-border-color; border-bottom: 1px solid @default-border-color;}
  90. .bordered {
  91. border-bottom: 3px solid @brand-secondary;
  92. display: inline-block;
  93. }
  94. .inline { display: inline-block !important; }
  95. .block { display: block !important; }
  96. .middle { vertical-align: middle; }
  97. .align-middle { vertical-align: middle !important; }
  98. .align-top { vertical-align: top !important; }
  99. .align-bottom { vertical-align: bottom !important; }
  100. .fw-900 { font-weight: 900!important; }
  101. .fw-700 { font-weight: 700!important; }
  102. .fw-500 { font-weight: 500!important; }
  103. .fw-400 { font-weight: 400!important; }
  104. .fw-300 { font-weight: 300!important; }
  105. .fw-100 { font-weight: 100!important; }
  106. .img-responsive { max-width: 100%; height: auto;}
  107. .pull-left { float: left !important;}
  108. .pull-right { float: right !important;}
  109. .d-none-280 {
  110. @media (max-width: 280px) {
  111. display: none !important;
  112. }
  113. }
  114. .h-rounded {
  115. border-radius: .25rem .25rem 0 0;
  116. }
  117. .space-2x {
  118. .tile-button, .portlet, .well, .panel, .note, .notice, .progress, .alert, .pricing-table-1, .pricing-table-2, .pricing-table-3, .pricing-table-4, .@{brand}-tabsbar, .@{brand}-tabs, dl {
  119. margin-bottom: 20px;
  120. }
  121. .well, .portlet .portlet-body {
  122. padding: 25px;
  123. .well {
  124. padding: 15px;
  125. }
  126. }
  127. }
  128. .padding-25 {
  129. padding: 25px;
  130. }
  131. .padding-4x {
  132. padding: 60px;
  133. }
  134. .padding-2x {
  135. padding: 30px;
  136. }
  137. .padding-all {
  138. padding: 15px;
  139. }
  140. .row {
  141. &.no-gutter {
  142. margin:0 auto;
  143. [class*='col-']:not(:first-child), [class*='col-']:not(:last-child) {
  144. padding-left: 0; padding-right: 0;
  145. }
  146. }
  147. &.full-width {
  148. margin-bottom: 0; margin-left: auto; margin-right: auto; margin-top: 0; max-width: 100%; width: 100%;
  149. }
  150. }
  151. .center-block { margin: 0 auto; }
  152. // for toggle
  153. .toggle {
  154. cursor : pointer;
  155. }
  156. // Flex
  157. .space-between {justify-content: space-between !important;}
  158. .mw-1288{ width: 100%; max-width: 1288px;}
  159. .mw-928{ width: 100%; max-width: 928px;}
  160. .mw-768{ width: 100%; max-width: 768px;}
  161. .mx-auto{margin: 0 auto;}
  162. .mw-928-strictly{ width: 100%; max-width: 928px!important;}
  163. .mw-768-strictly{ width: 100%; max-width: 768px!important;}
  164. .mw-500{ width: 100%; max-width: 500px;}
  165. .mx-auto-strictly{margin: 0 auto!important;}
  166. .bg-primary, .bg-success, .bg-danger, .bg-info, .bg-warning, .gray, .dark, .inverse, .bg-gray, .bg-secondary {
  167. color: @white!important;
  168. &.note, &.alert {
  169. .close {
  170. opacity:1;
  171. color: @white;
  172. }
  173. }
  174. p, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  175. color: @white;
  176. }
  177. }
  178. .bg-primary, &.primary {
  179. .white {
  180. background-color: var(--primary);
  181. }
  182. .border {
  183. border-color: darken(@themeColor, 20%)!important;
  184. }
  185. }
  186. .dark, &.inverse {
  187. .white {
  188. background-color: @gray-darker;
  189. }
  190. .border {
  191. border-color: lighten(@gray-darker, 20%)!important;
  192. }
  193. }
  194. .bg-gradient {
  195. background: linear-gradient(90deg,darken(@themeColor, 25%),@themeColor);
  196. }
  197. .bg-secondary {
  198. background-color: @brand-secondary!important;
  199. border-color: @brand-secondary!important;
  200. }
  201. .bg-light {
  202. background-color: @gray-lighter!important;
  203. }
  204. .text-light {
  205. color: @gray-lighter!important;
  206. }
  207. .text-dark {
  208. color: @gray-darker!important;
  209. }
  210. .bg-dark {
  211. background-color: @gray-darker!important;
  212. }
  213. .text-secondary {
  214. color: @brand-secondary!important;
  215. }
  216. .dark, .inverse {
  217. background-color: @gray-darker!important;
  218. border-color: @gray-darker!important;
  219. }
  220. .text-gray {
  221. color: @gray-light!important;
  222. }
  223. .bg-gray {
  224. background-color: @gray!important;
  225. }
  226. .white {
  227. background-color: @white;
  228. }
  229. .text-white {
  230. color: @white;
  231. }
  232. .text-base {
  233. color: @baseFontcolor;
  234. }
  235. .light {
  236. background-color: @gray-lighter;
  237. border-color: @default-border-color;
  238. color: @baseFontcolor;
  239. }
  240. .mr-auto {margin-right: auto!important;}
  241. .ml-auto {margin-left: auto!important;}
  242. .bg-checkered {
  243. background-repeat: no-repeat,repeat,repeat;
  244. background-image: -o-radial-gradient(transparent,transparent 50%,#fff),-o-linear-gradient(left,transparent,transparent 32px,#EDF0F5 32px,#EDF0F5),-o-linear-gradient(top,transparent,transparent 32px,#EDF0F5 32px,#EDF0F5);
  245. background-image: radial-gradient(transparent,transparent 50%,#fff),linear-gradient(to right,transparent,transparent 32px,#EDF0F5 32px,#EDF0F5),linear-gradient(to bottom,transparent,transparent 32px,#EDF0F5 32px,#EDF0F5);
  246. background-size: 100% 100%,calc(32px + 1px) calc(32px + 1px),calc(32px + 1px) calc(32px + 1px);
  247. background-color: @white;
  248. }
  249. // loader
  250. #overlay {
  251. position:fixed;
  252. z-index:99999;
  253. top:0;
  254. left:0;
  255. bottom:0;
  256. right:0;
  257. background:rgba(0,0,0,0.9);
  258. transition: 1s 0.4s;
  259. }
  260. .btn_loader {
  261. &.btn_loading {
  262. position: relative;
  263. .btn_text {
  264. visibility: hidden;
  265. }
  266. .btn_loading_icon {
  267. .spanner {
  268. height: 9px;
  269. div, span {
  270. width: 8px;
  271. height: 8px;
  272. background: rgba(255, 255, 255, 0.7);
  273. }
  274. }
  275. }
  276. &.btn-default {
  277. .btn_loading_icon {
  278. .spanner {
  279. div, span {
  280. background: rgba(0, 0, 0, 0.7);
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. .section-overlap {
  288. &.site-banner-domain,
  289. &.mass-head .hero-bg-wrap,
  290. &.cros-Slider .slides .hero-outer,
  291. &.site-banner .banner_body {
  292. padding-bottom: 200px!important;
  293. }
  294. }
  295. .sec {
  296. &.products, &.features, &.gallery {
  297. &.margin-up {
  298. .sec-description {
  299. display: none;
  300. }
  301. }
  302. }
  303. }
  304. .sec {
  305. &.features, &.gallery {
  306. &.margin-up {
  307. overflow: visible;
  308. .banner-content-container {
  309. .feature-item {
  310. &.has-slider {
  311. margin-top: 0;
  312. }
  313. }
  314. .banner_content {
  315. margin-top: -110px;
  316. @media (min-width: 992px) {
  317. margin-top: -170px;
  318. }
  319. }
  320. }
  321. }
  322. }
  323. }
  324. .has-link {
  325. cursor: pointer;
  326. }