carousels.less 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. // Bootstrap carousel style
  2. .carousel {
  3. margin-bottom: 15px;
  4. .carousel-caption {
  5. text-shadow: none;
  6. background: fade(#000, 50%);
  7. left: 0;
  8. right: 0;
  9. bottom: 0;
  10. h4 { color: @white; text-shadow: none; font-weight: 500; }
  11. }
  12. .carousel-control {
  13. text-shadow: none;
  14. color: transparent;
  15. &.left, &.right {
  16. background-image: none!important;
  17. }
  18. &.right { justify-content: center; }
  19. }
  20. .carousel-indicators {
  21. bottom: 0;
  22. li {.border-radius(0);}
  23. }
  24. &.@{brand}-carousel {
  25. .item { overflow: hidden;}
  26. .carousel-indicators {
  27. top: auto;
  28. bottom: -23px;
  29. margin: 0;
  30. width: auto;
  31. right: 0; left: 0;
  32. li {
  33. background-color: @brand-secondary;
  34. &.active { background-color: lighten(@brand-secondary, 20%);}
  35. }
  36. &.right {
  37. justify-content: flex-end;
  38. }
  39. &.left {
  40. justify-content: flex-start;
  41. }
  42. }
  43. }
  44. &:hover, &.focus {
  45. .carousel-control {
  46. color: @brand-secondary;
  47. opacity:0.55;
  48. }
  49. }
  50. }
  51. section, .sec {
  52. &.testimonials {
  53. .testimonials-carousel {
  54. .owl-stage-outer {
  55. padding: 60px 0;
  56. .owl-stage {
  57. .owl-item {
  58. .testimonial-item {
  59. background-color: @white;
  60. box-shadow: @box-shadow;
  61. border: 1px solid @default-border-color;
  62. transition: all 300ms ease;
  63. padding: 30px 30px;
  64. border-radius: @border-radius;
  65. .quote {
  66. display: block;
  67. margin-bottom: 20px;
  68. [class*='fa-'] {
  69. font-size: 26px;
  70. text-align: left;
  71. }
  72. }
  73. .readmore {
  74. font-size: 80%;
  75. }
  76. .author-info {
  77. display: flex;
  78. align-items: center;
  79. margin-top: 15px;
  80. .author-img {
  81. margin-right: 10px;
  82. img {
  83. width: 50px;
  84. height: 50px;
  85. max-width: 50px; max-height: 50px;
  86. border: 2px solid @white;
  87. border-radius: 100%;
  88. overflow: hidden;
  89. }
  90. }
  91. .author-name-link {
  92. span {
  93. display: block;
  94. &.link {
  95. margin-top: -5px;
  96. a {
  97. font-size: @baseFontSize - 2;
  98. }
  99. }
  100. &.rating {
  101. font-size: 60%;
  102. color: #fedc45;
  103. &[class*="fa-"] {
  104. opacity: 0.70;
  105. }
  106. .active {
  107. &[class*="fa-"] {
  108. font-weight: 900;
  109. opacity: 1;
  110. }
  111. }
  112. }
  113. }
  114. }
  115. }
  116. }
  117. &.active {
  118. z-index:1;
  119. }
  120. @media (min-width: 992px) {
  121. &.active {
  122. .testimonial-item {
  123. opacity: 0.3;
  124. }
  125. &.center {
  126. z-index:2;
  127. .testimonial-item {
  128. opacity: 1;
  129. background: @themeColor;
  130. border-color: @themeColor;
  131. color: @white;
  132. padding: 25px;
  133. transform: scale(1.20);
  134. .readmore {
  135. color: @white;
  136. }
  137. .author-info {
  138. .author-name-link {
  139. span {
  140. &.link {
  141. a {
  142. color: @white;
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. // OWL styles
  159. .owl-carousel {
  160. .slide-item {
  161. padding: 0px 5px;
  162. }
  163. &.no-padding-items {
  164. .slide-item {
  165. padding: 0px;
  166. }
  167. }
  168. &.feature-apps {
  169. img {
  170. border: 2px solid @default-border-color;
  171. background: @white;;
  172. width: 75px!important;
  173. margin: auto;
  174. }
  175. }
  176. .owl-item img {
  177. width: auto;
  178. }
  179. .owl-nav {
  180. margin-top: 10px;
  181. text-align: center;
  182. -webkit-tap-highlight-color: transparent;
  183. [class*='owl-'] {
  184. margin: 5px;
  185. display: inline-block;
  186. cursor: pointer;
  187. color: @white;
  188. text-decoration: none;
  189. font-size: @baseFontSize + 5;
  190. line-height: 25px;
  191. text-align: center;
  192. width: 56px;
  193. height: 56px;
  194. border-radius: 50%;
  195. box-shadow: 0px 2px 20px 2px rgba(12, 0, 46, 0.06);
  196. transition: all 0.2s linear;
  197. span {
  198. display: none;
  199. }
  200. &:before {
  201. font-family: "Font Awesome 5 Pro";
  202. font-style: normal;
  203. font-weight: 400;
  204. text-indent: 0px;
  205. }
  206. &:hover {
  207. background: @brand-secondary;
  208. color:@white;
  209. text-decoration: none;
  210. }
  211. }
  212. .owl-next {
  213. &:before {
  214. content: "\f061";
  215. }
  216. &:hover {
  217. &:before {
  218. content: "\f060";
  219. }
  220. }
  221. }
  222. .owl-prev {
  223. &:before {
  224. content: "\f060";
  225. }
  226. &:hover {
  227. &:before {
  228. content: "\f061";
  229. }
  230. }
  231. }
  232. .disabled {
  233. opacity:0.50;
  234. cursor: default;
  235. }
  236. }
  237. .owl-nav.disabled + .owl-dots {
  238. margin-top: 10px;
  239. }
  240. .owl-dots {
  241. text-align: center;
  242. -webkit-tap-highlight-color: transparent;
  243. .owl-dot {
  244. display: inline-block;
  245. span {
  246. width: 10px;
  247. height: 10px;
  248. margin: 0 3px;
  249. border: 1px solid @brand-secondary;
  250. background-color: @white;
  251. color: @brand-secondary;
  252. display: block;
  253. -webkit-backface-visibility: visible;
  254. .transition(opacity 200ms ease);
  255. }
  256. &.active,
  257. &:hover {
  258. span {
  259. background: lighten(@brand-secondary, 20%); width: 12px; height: 12px; color: @white;
  260. }
  261. }
  262. }
  263. }
  264. .owl-nav button.owl-next, .owl-nav button.owl-prev, button.owl-dot {
  265. outline: none!important;
  266. }
  267. }
  268. section, .sec {
  269. &.gallery {
  270. .swiper-pagination-fraction, .swiper-pagination-custom, .swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal {
  271. bottom: -20px;
  272. }
  273. .thumbnail {
  274. position:relative;
  275. overflow:hidden;
  276. .tools {
  277. position:absolute;
  278. top: -100%;
  279. right: 0;
  280. width: 100%;
  281. height: 100%;
  282. text-align: center;
  283. color:@white !important;
  284. z-index:2;
  285. .transition(~"all 0.5s ease-in-out");
  286. [class*="fa-"] {
  287. background: rgba(0, 0, 0, 0.55);
  288. font-size: @baseFontSize + 3;
  289. padding: 15px;
  290. border-radius: 100%;
  291. color: @gray-lighter;
  292. }
  293. .btn {
  294. background: rgba(0, 0, 0, 0.55);
  295. border: 1px solid rgba(0, 0, 0, 0.10);
  296. font-size: @baseFontSize;
  297. color: @gray-lighter;
  298. .transition(~"all 0.5s linear");
  299. &:hover {
  300. background: rgba(0, 0, 0, 0.55);
  301. }
  302. }
  303. }
  304. &:hover {
  305. .tools {
  306. top: 35%;
  307. }
  308. }
  309. }
  310. .contents, a.contents {
  311. display: flex;
  312. align-items: center;
  313. justify-content: center;
  314. margin-top: 0.50rem;
  315. font-size: @h5-font-size;
  316. text-decoration: none;
  317. text-align: center;
  318. }
  319. .gallery-items {
  320. margin-bottom: 2rem;
  321. .item-graphics {
  322. position:relative;
  323. overflow:hidden;
  324. .tools {
  325. position:absolute;
  326. top: -100%;
  327. right: 0;
  328. width: 100%;
  329. height: 100%;
  330. text-align: center;
  331. color:@white !important;
  332. z-index:2;
  333. .transition(~"all 0.5s ease-in-out");
  334. [class*="fa-"] {
  335. background: rgba(0, 0, 0, 0.55);
  336. font-size: @baseFontSize + 3;
  337. padding: 15px;
  338. border-radius: 100%;
  339. color: @gray-lighter;
  340. }
  341. .btn {
  342. background: rgba(0, 0, 0, 0.55);
  343. border: 1px solid rgba(0, 0, 0, 0.10);
  344. font-size: @baseFontSize;
  345. color: @gray-lighter;
  346. .transition(~"all 0.5s linear");
  347. &:hover {
  348. background: rgba(0, 0, 0, 0.55);
  349. }
  350. }
  351. }
  352. }
  353. &.has-link {
  354. cursor: pointer;
  355. }
  356. &:hover {
  357. .item-graphics {
  358. img, video {
  359. opacity: 0.70;
  360. }
  361. .tools {
  362. top: 45%;
  363. }
  364. }
  365. }
  366. }
  367. }
  368. }