Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.84 KB | None | 0 0
  1. /*----------------------------------- */
  2. /* Compare Properties Widget
  3. ------------------------------------- */
  4. .compare-slide-menu {
  5. position: fixed;
  6. top: 0;
  7. transition: 0.4s ease-in-out;
  8. z-index: 99999;
  9. height: 100vh;
  10. background-color: #fff;
  11. right: -320px;
  12. width: 320px;
  13. padding: 0;
  14. z-index: 1010;
  15. box-shadow: 0 0 25px rgba(0,0,0,0.1);
  16. }
  17.  
  18. .csm-content {
  19. overflow-y: scroll;
  20. height: 100%;
  21. width: 340px;
  22. }
  23.  
  24. .compare-slide-menu.active { right: 0; }
  25.  
  26. /* Compare Icon */
  27. .compare-button {
  28. color: #fff;
  29. font-size: 20px;
  30. position: absolute;
  31. z-index: 101;
  32. outline: none;
  33. border: none;
  34. right: 64px;
  35. bottom: 27px;
  36. background-color: transparent;
  37. width: 28px;
  38. height: 28px;
  39. display: block;
  40. background-image: url(../images/compare-icon.svg);
  41. background-repeat: no-repeat;
  42. background-size: 28px;
  43. }
  44.  
  45. span.like-icon {
  46. width: 23px;
  47. height: 26px;
  48. bottom: 28px !important;
  49. }
  50.  
  51. .like-icon .tip-content,
  52. .compare-button .tip-content {
  53. padding: 7px 12px;
  54. min-width: auto;
  55. max-width: auto;
  56. white-space: nowrap;
  57. left: -10px;
  58. top: -5px;
  59. z-index: 110;
  60. transform: translate(-105%, 0);
  61. transition: 0.2s ease-in-out 0.05s;
  62. }
  63.  
  64. .like-icon:hover .tip-content,
  65. .compare-button:hover .tip-content {
  66. opacity: 1;
  67. visibility: visible;
  68. transform: translate(-100%, 0);
  69. background-color: #fff;
  70. color: #333;
  71. }
  72.  
  73.  
  74. /* Widget Button */
  75. .widget-button.with-tip i.icon-compare {
  76. outline: none;
  77. border: none;
  78. background-color: transparent;
  79. width: 21px;
  80. height: 21px;
  81. display: inline-block;
  82. background-image: url(../images/compare-icon-black.svg);
  83. background-repeat: no-repeat;
  84. background-size: 21px;
  85. position: relative;
  86. top: 4px;
  87. left: 2px;
  88. }
  89.  
  90. .widget-button.with-tip i {
  91. top: 0;
  92. line-height: 41px;
  93. color: #333;
  94. left: 2px;
  95. opacity: 0.9;
  96. font-size: 18px;
  97. }
  98.  
  99. .widget-button.with-tip i.fa.fa-star-o {
  100. font-size: 20px;
  101. left: 2px;
  102. top: 1px;
  103. }
  104.  
  105. .widget-button.with-tip.liked i.fa.fa-star-o:before {
  106. content: "\f005";
  107. color: #ffb400;
  108. }
  109.  
  110. .widget-button.with-tip {
  111. height: 41px;
  112. text-align: center;
  113. width: 41px;
  114. float: left;
  115. background-color: #f0f0f0;
  116. background: linear-gradient(to bottom, #f4f4f4 0%, #f0f0f0);
  117. border-radius: 3px;
  118. margin-right: 5px;
  119. display: inline-block;
  120. }
  121.  
  122. .widget-button .tip-content {
  123. padding: 7px 12px;
  124. min-width: auto;
  125. max-width: auto;
  126. white-space: nowrap;
  127. }
  128.  
  129. .widget-button:hover .tip-content {
  130. opacity: 1;
  131. visibility: visible;
  132. transform: translate(-50%, calc(-100% - 10px));
  133. -ms-transform: translate(-50%, -115%);
  134. }
  135. /* Widget Button - End */
  136.  
  137.  
  138. .like-icon:hover,
  139. .compare-button:hover {
  140. z-index: 110;
  141. }
  142.  
  143. .like-icon .tip-content:after,
  144. .compare-button .tip-content:after {
  145. font-family: "FontAwesome";
  146. content: "\f0da";
  147. position: absolute;
  148. top: 50%;
  149. bottom: auto;
  150. left: auto;
  151. right: -4px;
  152. font-size: 17px;
  153. color: #fff;
  154. opacity: 0;
  155. transition: opacity 0.2s ease-in-out;
  156. transform: translate(0%,-50%);
  157. }
  158.  
  159. .like-icon:hover .tip-content:after,
  160. .compare-button:hover .tip-content:after {
  161. opacity: 1;
  162. }
  163.  
  164.  
  165. /* Trigger */
  166. .csm-trigger {
  167. position: absolute;
  168. top: 50%;
  169. transform: translateY(-50%);
  170. left: -50px;
  171. width: 50px;
  172. background-color: #66676b;
  173. color: #fff;
  174. border-radius: 3px 0 0 3px;
  175. text-align: center;
  176. line-height: 50px;
  177. height: 50px;
  178. font-size: 24px;
  179. cursor: pointer;
  180. }
  181.  
  182. .csm-trigger:before {
  183. content: "\f104";
  184. font-family: "FontAwesome";
  185. display: inline-block;
  186. transition: 0.3s ease-in-out;
  187. }
  188.  
  189. .compare-slide-menu.active .csm-trigger:before { transform: rotate(180deg); }
  190.  
  191.  
  192. /* Mobile Trigger */
  193. .csm-mobile-trigger {
  194. position: absolute;
  195. cursor: pointer;
  196. font-size: 18px;
  197. right: 30px;
  198. top: 26px;
  199. color: #fff;
  200. z-index: 100;
  201. padding: 5px 0 5px 5px;
  202. display: none;
  203. }
  204.  
  205. .csm-mobile-trigger:before {
  206. content: "\f00d";
  207. font-family: "FontAwesome";
  208. }
  209.  
  210. /* Content */
  211. .csm-properties {
  212. padding: 30px;
  213. padding-bottom: 0;
  214. }
  215.  
  216. .csm-content h4 {
  217. font-size: 18px;
  218. display: block;
  219. margin: 0 0 0 0;
  220. padding: 30px;
  221. position: relative;
  222. background-color: #66676b;
  223. color: #fff;
  224. width: 100%;
  225. }
  226.  
  227. .csm-content h4:before {
  228. background: linear-gradient(to top, transparent 20%, rgba(255,255,255,0.08));
  229. height: 100%;
  230. width: 100%;
  231. position: absolute;
  232. top: 0;
  233. left: 0;
  234. content: "";
  235. z-index: 10;
  236. display: block;
  237. }
  238.  
  239. .csm-content .listing-item.compact {
  240. padding: 0;
  241. height: 180px;
  242. }
  243.  
  244. .csm-content .compact .listing-img-content .listing-compact-title {
  245. padding: 12px 20px;
  246. font-size: 16px;
  247. line-height: 22px;
  248. background: rgba(74,74,76,0.5);
  249. transition: 0.3s;
  250. }
  251.  
  252. .csm-content .compact .listing-img-content span {
  253. color: #fff;
  254. }
  255.  
  256. .csm-content .compact .listing-img-content .listing-compact-title i {
  257. font-size: 13px;
  258. padding: 0;
  259. margin: 0;
  260. opacity: 0.8;
  261. }
  262.  
  263. .csm-content .listing-badges span {
  264. color: #fff;
  265. padding: 0 7px;
  266. top: 15px;
  267. line-height: 24px;
  268. right: 15px;
  269. font-size: 12px;
  270. background: rgba(74,74,76,0.62);
  271. }
  272.  
  273. .csm-content .compact .listing-img-container:after { display: none; }
  274. .csm-content .compact .listing-img-container:before { opacity: 0.7 !important; }
  275.  
  276. /* Buttons */
  277. .csm-buttons {
  278. padding: 0 30px;
  279. padding-bottom: 30px;
  280. }
  281.  
  282. .csm-buttons a.button {
  283. padding: 6px 14px;
  284. font-size: 14px;
  285. }
  286.  
  287. .csm-buttons a.button.reset:before { display: none; }
  288.  
  289. .csm-buttons a.button.reset,
  290. .csm-buttons a.button.reset:hover {
  291. background-color: #ffeaea;
  292. color: #d53232;
  293. }
  294.  
  295.  
  296. /* Remove Button */
  297. .remove-from-compare {
  298. position: absolute;
  299. top: 15px;
  300. left: 15px;
  301. height: 25px;
  302. font-size: 16px;
  303. width: 25px;
  304. line-height: 26px;
  305. border-radius: 3px;
  306. text-align: center;
  307. color: #fff;
  308. background-color: #d43e3e;
  309. -webkit-text-stroke: 1px #d43e3e;
  310. opacity: 0;
  311. z-index: 1001;
  312. transition: 0.25s ease-in-out;
  313. transform: scale(0.8);
  314. }
  315.  
  316. .compact:hover .remove-from-compare { opacity: 1; transform: scale(1); }
  317.  
  318.  
  319. /* Mobile Styles */
  320. @media (max-width: 992px) {
  321. .csm-content .compact:hover .listing-img-container:before,
  322. .csm-content .compact .listing-img-container:before {
  323. opacity: 0 !important;
  324. }
  325. .remove-from-compare { opacity: 1; transform: scale(1); }
  326. .csm-mobile-trigger { display: block; }
  327.  
  328. .compare-slide-menu {
  329. width: 100%;
  330. right: -100%;
  331. }
  332.  
  333. .csm-content { width: 100%; }
  334. }
  335.  
  336.  
  337. /*----------------------------------- */
  338. /* Compare Properties Page
  339. ------------------------------------- */
  340.  
  341. #compare-list {
  342. list-style: none;
  343. margin-bottom: 20px;
  344. }
  345.  
  346. #compare-list li {
  347. display: flex;
  348. line-height: 21px;
  349. background-color: #f8f8f8;
  350. border-radius: 4px;
  351. transition: 0.3s;
  352. }
  353.  
  354. #compare-list li:nth-child(odd) { background-color: #fff; }
  355.  
  356. #compare-list li.compare-list-properties div {
  357. border: none;
  358. padding: 0 10px;
  359. border-radius: 4px;
  360. overflow: hidden;
  361. }
  362.  
  363. #compare-list li.compare-list-properties div img {
  364. border-radius: 4px;
  365. }
  366.  
  367. body #compare-list li .clp-title {
  368. padding: 20px 15px;
  369. padding-bottom: 15px;
  370. display: inline-block;
  371. width: 100%;
  372. border-left: 1px solid transparent;
  373. }
  374.  
  375. #compare-list li.compare-list-properties div.clp-img { padding: 0; position: relative; z-index: 10; }
  376.  
  377. #compare-list li.compare-list-properties div a:hover .remove-from-compare { opacity: 1; transform: scale(1); }
  378.  
  379. body #compare-list li div:last-child .clp-title { border-right: 1px solid transparent; }
  380.  
  381. #compare-list li .clp-title h4 { margin: 3px 0 6px 0; }
  382.  
  383. #compare-list li div:first-child {
  384. border-left: 1px solid transparent;
  385. color: #333;
  386. text-align: right;
  387. text-transform: uppercase;
  388. font-size: 13px;
  389. }
  390.  
  391. #compare-list li:last-child { border-radius: 0 0 4px 4px; }
  392. #compare-list li div.blank-div { background-color: #fff; border: none; }
  393.  
  394. #compare-list li div {
  395. flex: 1;
  396. border-right: 1px solid transparent;
  397. padding: 15px 25px;
  398. color: #777;
  399. text-align: center;
  400. }
  401.  
  402. #compare-list li { border-bottom: 1px solid transparent; }
  403.  
  404.  
  405. body #compare-list li .clp-title,
  406. body #compare-list li div:last-child .clp-title,
  407. #compare-list li div:first-child,
  408. #compare-list li div,
  409. #compare-list li {
  410. border-color: transparent;
  411. }
  412.  
  413. #compare-list .available,
  414. #compare-list .not-available {
  415. width: 100%;
  416. text-align: center;
  417. display: inline-block;
  418. }
  419.  
  420. #compare-list .available:before,
  421. #compare-list .not-available:before {
  422. content: "\f00c";
  423. color: #2ab160;
  424. font-size: 18px;
  425. font-family: "FontAwesome";
  426. display: inline-block;
  427. }
  428.  
  429. #compare-list .not-available:before {
  430. content: "\f00d";
  431. color: #d43e3e;
  432. }
  433.  
  434.  
  435. /* Mobile Styles */
  436. @media (max-width: 992px) {
  437.  
  438. .compare-list-container { overflow-x: scroll; }
  439.  
  440. #compare-list {
  441. min-width: 900px;
  442. zoom: 0.8;
  443. }
  444.  
  445. .remove-from-compare { display: none; }
  446. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement