Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 6.58 KB | None | 0 0
  1. /*  Clickable Map
  2. _________________________________________________*/
  3.  
  4. #interactive-map-section {
  5.   background-color: #f5f5f5;
  6.   padding-top: 6em;
  7. }
  8.  
  9. #interactive-map-section h3 {
  10.   font-weight: 700;
  11.   margin-bottom: 20px;
  12.   text-align: left;
  13. }
  14.  
  15.  
  16. #interactive-map-section .map-title-text a {
  17.   font-weight:700;
  18. }
  19.  
  20. #interactive-map-section .map-title-text {
  21.   padding-top: 40px;
  22. }
  23.  
  24. #interactive-map-section h2 {
  25.   color: #214091;
  26.   line-height: 1.3;
  27.   font-size: 28px;
  28. }
  29.  
  30. #interactive-map-section .box {
  31.   width: 670px;
  32.   height: 430px;
  33.   margin: auto; /* Remove the absolute path from url */
  34.   background: url(/users/u119/119777/aptTransBkgd2.png) no-repeat;
  35.   background-size: contain;
  36.   background-position: center;
  37.   position: relative;
  38. }
  39.  
  40. /* Change color of markers */
  41. #interactive-map-section .marker,
  42. #interactive-map-section .marker::before {
  43.   background:#0123b4;
  44. }
  45.  
  46. #interactive-map-section .marker-info,
  47. #interactive-map-section .marker-info::after {
  48.   background: #333;
  49.   color: #fff;
  50. }
  51.  
  52. #interactive-map-section .marker {
  53.   position: absolute;
  54.   transform: translateY(-50%) translateX(-50%);
  55.   font-weight: 700;
  56.   width: 30px;
  57.   height: 30px;
  58.   text-align: center;
  59.   border-radius: 50%;
  60.   cursor: pointer;
  61.   transition: all ease 0.3s;
  62.   z-index: 999;
  63.   box-shadow: 0 5px 10px -1px rgba(0, 0, 0, 0.4);
  64. }
  65.  
  66. #interactive-map-section .marker::before {
  67.   content: "";
  68.   position: absolute;
  69.   width: 100%;
  70.   height: 100%;
  71.   left: 0;
  72.   top: 0;
  73.   right: 0;
  74.   bottom: 0;
  75.   z-index: -1;
  76.   border-radius: 50%;
  77.   transform: scale(0);
  78.   animation: markerPulse 3s ease infinite;
  79. }
  80.  
  81. @keyframes markerPulse {
  82.   0%,
  83.     20% {
  84.     transform: scale(0);
  85.     opacity: 1;
  86.   }
  87.  
  88.   100% {
  89.     transform: scale(2);
  90.     opacity: 0;
  91.   }
  92. }
  93.  
  94. #interactive-map-section .marker::after {
  95.   content: "+";
  96.   line-height: 30px;
  97.   font-weight: 900;
  98.   position: absolute;
  99.   width: 30px;
  100.   left: 0px;
  101.   top: 0px;
  102.   font-size: 24px;
  103.   transition: all ease 0.35s;
  104.   color:#fff;
  105. }
  106.  
  107. #interactive-map-section .marker.active::after {
  108.   transform: rotate(135deg);
  109. }
  110.  
  111. #interactive-map-section #marker01 {
  112.     left: 40%;
  113.     top: 25%;
  114. }
  115.  
  116. /*#interactive-map-section #marker02 {
  117.     left: 85%;
  118.     bottom: 58%;
  119. }*/
  120.  
  121. #interactive-map-section #marker02 {
  122.     left: 80%;
  123.     bottom: 45%;
  124. }
  125.  
  126. #interactive-map-section #marker03 {
  127.     left: 17%;
  128.     top: 53%;
  129. }
  130.  
  131. #interactive-map-section #marker04 {
  132.     right: 37%;
  133.     bottom: 9%;
  134. }
  135.  
  136. #interactive-map-section #marker05 {
  137.   left: 20%;
  138.   top: 81%;
  139. }
  140.  
  141. #interactive-map-section #marker06 {
  142.   left: 76%;
  143.   top: 32%;
  144. }
  145.  
  146. #interactive-map-section #marker07 {
  147.   left: 59%;
  148.   top: 66%;
  149. }
  150.  
  151. p.markerLabel-fire,
  152. p.markerLabel-access,
  153. p.markerLabel-burglar,
  154. p.markerLabel-monitor,
  155. p.markerLabel-camera,
  156. p.markerLabel-data {
  157.   color: #00257c;
  158.   font-size: 23px;
  159.   font-weight: 800;
  160.   width: 70px;
  161.   position: relative;
  162.   text-shadow: 0px 2px 3px #fff;
  163.   left: 128%;
  164.   top: -20%;
  165.   line-height: 1.1;
  166.   display:none;
  167. }
  168.  
  169. #interactive-map-section .marker-info {
  170.   display: none;
  171.   position: absolute;
  172.   bottom: 50px;
  173.   width: 200px;
  174.   left: -85px;
  175.   text-align: center;
  176.   padding: 15px 12px;
  177.   box-sizing: border-box;
  178.   border-radius: 3px;
  179.   animation: fadeDown 0.5s ease forwards 1;
  180.   opacity: 0;
  181.   transform: translateY(-15px);
  182.   font-size: 12px;
  183.   font-weight: 500;
  184.   cursor: default;
  185. }
  186.  
  187. #interactive-map-section .marker-info p {
  188.   font-size: 12px;
  189.   line-height: 1.8em;
  190.   color: #fff;
  191. }
  192.  
  193. #interactive-map-section .marker-info h4 {
  194.   font-size: 15px;
  195.   font-weight: 700;
  196.   margin: 0;
  197.   text-align: left;
  198.   color: #fff;
  199.   margin-bottom: 3px;
  200. }
  201.  
  202. #interactive-map-section .marker-info h4 img {
  203.   margin-right: 5px;
  204. }
  205.  
  206. @keyframes fadeDown {
  207.   0% {
  208.     opacity: 0;
  209.     transform: translateY(-15px);
  210.   }
  211.  
  212.   100% {
  213.     opacity: 1;
  214.     transform: translateY(0px);
  215.   }
  216. }
  217.  
  218. #interactive-map-section .marker.active .marker-info {
  219.   display: block;
  220. }
  221.  
  222. #interactive-map-section .marker-info::after {
  223.   content: "";
  224.   position: absolute;
  225.   width: 10px;
  226.   height: 10px;
  227.   bottom: -5px;
  228.   left: calc(50% - 5px);
  229.   transform: rotate(45deg);
  230.   z-index: 999;
  231. }
  232.  
  233. #interactive-map-section .marker .mobile-map {
  234.   display: none;
  235. }
  236.  
  237.  
  238. /*  Media Queries for Clickable Map
  239. ______________________________________________________________ */
  240.  
  241. @media screen and (max-width: 720px) {
  242.  
  243.   #interactive-map-section .box {
  244.       width: 100%;
  245.       height: auto;
  246.       background: none;
  247.   }
  248.  
  249.   #interactive-map-section .marker {
  250.       position: relative;
  251.       left: auto !important;
  252.       top: auto !important;
  253.       bottom: auto !important;
  254.       right: auto !important;
  255.       display: block;
  256.       width: auto;
  257.       height: auto;
  258.       border-radius: 3px;
  259.       transform: none;
  260.   }
  261.  
  262.   #interactive-map-section .marker-info {
  263.       display: block;
  264.       animation: none;
  265.       opacity: 1;
  266.       position: relative;
  267.       left: auto;
  268.       top: auto;
  269.       bottom: auto;
  270.       right: auto;
  271.       transform: none;
  272.       margin-bottom: 10px;
  273.       width: 100%;
  274.   }
  275.  
  276.   #interactive-map-section .marker-info::after {
  277.       display: none;
  278.   }
  279.  
  280.   #interactive-map-section .marker .marker-info h4 {
  281.       margin-bottom: 0px;
  282.   }
  283.  
  284.   #interactive-map-section .marker .marker-info h4::before,
  285.   #interactive-map-section .marker .marker-info h4::after {
  286.       content: "";
  287.       width: 20px;
  288.       height: 3px;
  289.       background: #fff;
  290.       position: absolute;
  291.       right: 18px;
  292.       top: 26px;
  293.       transition: all ease 0.4s;
  294.   }
  295.  
  296.   #interactive-map-section .marker .marker-info h4::after {
  297.       transform: rotate(90deg);
  298.   }
  299.  
  300.   #interactive-map-section .marker.active .marker-info h4::before,
  301.   #interactive-map-section .marker.active .marker-info h4::after {
  302.       transform: rotate(180deg);
  303.   }
  304.  
  305.   #interactive-map-section .marker.active .marker-info h4 {
  306.       margin-bottom: 10px;
  307.   }
  308.  
  309.   #interactive-map-section .marker-info p {
  310.       display: none;
  311.       margin-bottom: 0;
  312.   }
  313.  
  314.   #interactive-map-section .marker.active .marker-info p {
  315.       display: block;
  316.   }
  317.  
  318.   #interactive-map-section .marker,
  319.   #interactive-map-section .marker-info,
  320.   #interactive-map-section .marker-info::after {
  321.       background: #04285e;
  322.       color: #fff;
  323.   }
  324.  
  325.   #interactive-map-section .map-title-text {
  326.       padding-top: 0px;
  327.       margin-bottom: 20px;
  328.   }
  329.  
  330.   #interactive-map-section .marker.active .mobile-map {
  331.       display: block;
  332.   }
  333.  
  334.   #interactive-map-section .marker::after,
  335.   #interactive-map-section .marker::before {
  336.       display: none;
  337.   }
  338. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement