You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

160 lines
2.8 KiB

  1. @import "../../../css/colors.less";
  2. @pad: 8px;
  3. .uiHud {
  4. position: absolute;
  5. left: 10px;
  6. top: 10px;
  7. .hudBox {
  8. position: absolute;
  9. left: 0px;
  10. top: 0px;
  11. width: calc(280px + (@pad * 2));
  12. padding: @pad;
  13. background-color: fade(#3a3b4a, 90%);
  14. box-shadow: 0 -2px 0 @black, 0 2px 0 @black, 2px 0 0 @black, -2px 0 0 @black;
  15. .portraitBox {
  16. float: left;
  17. margin-right: 12px;
  18. .portrait {
  19. visibility: hidden;
  20. width: 64px;
  21. height: 64px;
  22. }
  23. }
  24. .boxes {
  25. width: calc(100% - 76px);
  26. float: left;
  27. height: 100%;
  28. .statBox {
  29. width: 100%;
  30. height: 18px;
  31. margin-bottom: 5px;
  32. position: relative;
  33. &:last-child {
  34. margin-bottom: 0px;
  35. }
  36. [class^="stat"] {
  37. position: absolute;
  38. left: 0px;
  39. top: 0px;
  40. height: 100%;
  41. }
  42. .statManaReserve {
  43. position: absolute;
  44. right: 0%;
  45. top: 0px;
  46. left: auto;
  47. height: 100%;
  48. background-color: @grayB;
  49. }
  50. .text {
  51. position: absolute;
  52. left: 0px;
  53. top: 0px;
  54. width: 100%;
  55. height: 100%;
  56. text-align: center;
  57. color: @white;
  58. padding: 2px 0px;
  59. line-height: 16px;
  60. text-shadow: 2px 0px #2d2136, -2px 0px #2d2136, 0px -2px #2d2136, 0px 2px #2d2136, -2px -2px #2d2136, -2px 2px #2d2136, 2px -2px #2d2136, 2px 2px #2d2136;
  61. }
  62. &:nth-child(1) {
  63. background-color: #802343;
  64. }
  65. &:nth-child(2) {
  66. background-color: #42548d;
  67. }
  68. &:nth-child(3) {
  69. background-color: #386646;
  70. }
  71. .statHp {
  72. background-color: #d43346;
  73. }
  74. .statMana {
  75. background-color: #3fa7dd;
  76. }
  77. .statXp {
  78. background-color: #4ac441;
  79. }
  80. }
  81. }
  82. }
  83. .quickBar {
  84. position: absolute;
  85. left: calc(290px + (@pad * 2));
  86. top: 0px;
  87. box-shadow: 0 -2px 0 @black, 0 2px 0 @black, 2px 0 0 @black, -2px 0 0 @black;
  88. .quickItem {
  89. display: none;
  90. width: 80px;
  91. height: 80px;
  92. background-color: fade(#3a3b4a, 90%);
  93. cursor: pointer;
  94. padding: 8px;
  95. position: relative;
  96. .icon {
  97. height: 100%;
  98. filter: brightness(100%)
  99. drop-shadow(0px -4px 0px @blackC)
  100. drop-shadow(0px 4px 0px @blackC)
  101. drop-shadow(4px 0px 0px @blackC)
  102. drop-shadow(-4px 0px 0px @blackC);
  103. }
  104. .info {
  105. left: 6px;
  106. bottom: 3px;
  107. position: absolute;
  108. color: @white;
  109. filter: drop-shadow(0px -2px 0px @blackD)
  110. drop-shadow(0px 2px 0px @blackD)
  111. drop-shadow(2px 0px 0px @blackD)
  112. drop-shadow(-2px 0px 0px @blackD);
  113. -moz-filter: drop-shadow(0px -2px 0px @blackD)
  114. drop-shadow(0px 2px 0px @blackD)
  115. drop-shadow(2px 0px 0px @blackD)
  116. drop-shadow(-2px 0px 0px @blackD);
  117. }
  118. &:hover {
  119. .icon {
  120. filter: brightness(160%);
  121. -moz-filter: brightness(160%);
  122. }
  123. &.empty {
  124. background-color: fade(@blueA, 10%);
  125. }
  126. }
  127. }
  128. }
  129. }