_map.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. .mapRow {
  2. padding: 0;
  3. margin: 0;
  4. list-style: none;
  5. display: flex;
  6. flex-flow: row;
  7. justify-content: center;
  8. margin-top: 1ex;
  9. z-index: 1;
  10. }
  11. .mapRoom {
  12. z-index: 2;
  13. opacity: 0.5;
  14. max-width: 4.5ex;
  15. color: white;
  16. flex: 1 0 auto;
  17. margin-left: 1ex;
  18. height:auto;
  19. &:last-child {
  20. margin-right: 1ex;
  21. }
  22. position: relative;
  23. &.linked:hover {
  24. opacity: 1;
  25. cursor: pointer;
  26. }
  27. &.current {
  28. opacity: 1;
  29. &:hover {
  30. //opacity: 1;
  31. cursor: auto;
  32. }
  33. &::after {
  34. display: block;
  35. position: absolute;
  36. content: '';
  37. //top: 15%;
  38. //left: 15%;
  39. //height: 70%;
  40. //width: 70%;
  41. //background-image: inline-image("PlayerIcon.png");
  42. //background-size: contain;
  43. border: solid 2px #000;
  44. box-sizing: border-box;
  45. height: 100%;
  46. width: 100%;
  47. }
  48. }
  49. &.unknown {
  50. opacity: 0;
  51. pointer-events: none;
  52. }
  53. &::before {
  54. content:'';
  55. float:left;
  56. padding-top:100%;
  57. }
  58. }
  59. .mapRoomConnection {
  60. pointer-events: none;
  61. display: block;
  62. background-color: black;
  63. position: absolute;
  64. z-index: 3;
  65. }
  66. .mapRoomConnectionEast {
  67. @extend .mapRoomConnection;
  68. width: 1ex;
  69. height: 0.6ex;
  70. right: -1ex;
  71. top: 50%;
  72. margin-top: -0.3ex;
  73. }
  74. .mapRoomConnectionWest {
  75. @extend .mapRoomConnection;
  76. width: 1ex;
  77. height: 0.6ex;
  78. left: -1ex;
  79. top: 50%;
  80. margin-top: -0.3ex;
  81. }
  82. .mapRoomConnectionNorth {
  83. @extend .mapRoomConnection;
  84. width: 0.6ex;
  85. height: 1ex;
  86. left: 50%;
  87. top: -1ex;
  88. margin-left: -0.3ex;
  89. }
  90. .mapRoomConnectionSouth {
  91. @extend .mapRoomConnection;
  92. width: 0.6ex;
  93. height: 1ex;
  94. left: 50%;
  95. bottom: -1ex;
  96. margin-left: -0.3ex;
  97. }
  98. .mapRoomName {
  99. display: none;
  100. position: absolute;
  101. text-align: center;
  102. bottom: 105%;
  103. right: 5%;
  104. padding:5%;
  105. white-space: nowrap;
  106. margin: auto;
  107. background-color: white;
  108. color: #000;
  109. font-weight: bold;
  110. border: solid 2px #000;
  111. z-index: 4;
  112. pointer-events: none;
  113. }
  114. .mapRoom.linked:hover > .mapRoomName {
  115. display: block;
  116. }
  117. .tomato {
  118. background: tomato;
  119. }
  120. .bloo {
  121. background: blue;
  122. }
  123. .roomOrcVillage {
  124. background: #410004;
  125. }
  126. .roomWitch {
  127. background: #d6cab4;
  128. }
  129. .roomCrypt {
  130. background: #938500;
  131. }
  132. .roomObelisk {
  133. background: #000;
  134. }
  135. .roomForestBed {
  136. background: #07cb00;
  137. }
  138. .roomCentaurVillage {
  139. background: #00319d;
  140. }
  141. .roomPond {
  142. background: #8157ff
  143. }
  144. .roomOminousCave {
  145. background: #47002e;
  146. }
  147. .roomForestFodder {
  148. background: #ff7a5c;
  149. }
  150. .blocked {
  151. background-color: black;
  152. &.unknown {
  153. opacity: 1;
  154. }
  155. }