Guest User

CSS

a guest
Jul 8th, 2022
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. body, p, a {
  2. margin: 0;
  3. }
  4.  
  5. body {
  6. background-image: url(%%harta%%);
  7. background-repeat: no-repeat;
  8. width: 100%;
  9. height: 200px;
  10. overflow: hidden;
  11. }
  12. a:not(:last-of-type) {
  13. position: absolute;
  14. width: 15px;
  15. height: 15px;
  16. overflow: hidden;
  17. font-size: 0;
  18. transform: scale(0.31);
  19. border-radius: 100%;
  20. box-shadow: 1px 1px 3px 0 rgba(0,0,0,0.4);
  21. transition: transform 0.25s ease;
  22. }
  23.  
  24. a:not(:last-of-type)::before {
  25. content: "";
  26. display: block;
  27. background: blue;
  28. width: 15px;
  29. height: 15px;
  30. opacity: 1;
  31. transition: opacity 0.25s ease;
  32. }
  33.  
  34. body:hover a:not(:last-of-type)::before {
  35. opacity: 100;
  36. }
  37.  
  38. body:hover a:not(:last-of-type){
  39. transform: scale(0.5);
  40. }
  41.  
  42. body a:not(:last-of-type):hover{
  43. transform: scale(0.7);
  44. z-index: 1;
  45. }
  46.  
  47. a:last-of-type {
  48. font-family: Robonto, Arial, Helvetica, sans-serif;
  49. transition: opacity 0.25s ease;
  50. opacity: 0;
  51. position: absolute;
  52. top: 180px;
  53. left: 2px;
  54. font-size: 11px;
  55. color: white;
  56. padding: 3px 5px;
  57. background: rgba(0,0,0,0.7);
  58. z-index: 2;
  59. border-radius: 2px;
  60. color: white;
  61. margin: 0px !important;
  62. text-decoration: none;
  63. }
  64.  
  65. body:hover a:last-of-type {
  66. opacity: 1;
  67. }
  68. a[href="/r/bucuresti"] {
  69. top: 150px;
  70. left: 170px;
  71. }
  72.  
  73. a[href="/r/cluj"] {
  74. top: 55px;
  75. left: 100px;
  76. }
  77.  
  78. a[href="/r/timisoara"] {
  79. top: 100px;
  80. left: 25px;
  81. }
  82.  
  83. a[href="/r/iasi"] {
  84. top: 40px;
  85. left: 210px;
  86. }
  87.  
  88. a[href="/r/brasov"] {
  89. top: 105px;
  90. left: 150px;
  91. }
  92.  
  93. a[href="/r/constanta"] {
  94. top: 160px;
  95. left: 240px;
  96. }
  97.  
  98. a[href="/r/Oradea"] {
  99. top: 45px;
  100. left: 50px;
  101. }
  102. a[href="/r/albaiulia"] {
  103. top: 85px;
  104. left: 95px;
  105. }
  106. a[href="/r/Suceava"] {
  107. top: 20px;
  108. left: 170px;
  109. }
  110. a[href="/r/bacau"] {
  111. top: 70px;
  112. left: 195px;
  113. }
  114. a[href="/r/pitesti"] {
  115. top: 135px;
  116. left: 135px;
  117. }
  118. a[href="/r/arad"] {
  119. top: 75px;
  120. left: 35px;
  121. }
  122. a[href="/r/craiova"] {
  123. top: 160px;
  124. left: 95px;
  125. }
  126. a[href="/r/sibiu"] {
  127. top: 95px;
  128. left: 115px;
  129. }
  130. a[href="/r/Botosani"] {
  131. top: 15px;
  132. left: 185px;
  133. }
  134. a[href="/r/TarguMures"] {
  135. top: 65px;
  136. left: 125px;
  137. }
  138. a[href="/r/Caransebes"] {
  139. top: 115px;
  140. left: 55px;
  141. }
  142. a[href="/r/Ploiesti"] {
  143. top: 130px;
  144. left: 170px;
  145. }
  146. a[href="/r/Tulcea"] {
  147. top: 130px;
  148. left: 250px;
  149. }
  150. a[href="/r/Galati"] {
  151. top: 105px;
  152. left: 220px;
  153. }
  154. a[href="/r/Braila"] {
  155. top: 125px;
  156. left: 220px;
  157. }
  158. a[href="/r/baiamare"] {
  159. top: 20px;
  160. left: 100px;
  161. }
  162. a[href="/r/Buzau"] {
  163. top: 125px;
  164. left: 190px;
  165. }
  166. a[href="/r/satumare"] {
  167. top: 15px;
  168. left: 80px;
  169. }
  170. a[href="/r/piatraNeamt"]{
  171. top: 50px;
  172. left: 175px;
  173. }
  174.  
Advertisement
Add Comment
Please, Sign In to add comment