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.
 
 
 

105 lines
1.6 KiB

  1. @import "../../../css/colors.less";
  2. @pad: 8px;
  3. @btnSize: 64px;
  4. .uiSpells {
  5. position: absolute;
  6. right: 10px;
  7. top: 10px;
  8. height: (@btnSize + @pad);
  9. .spell {
  10. width: @btnSize;
  11. height: @btnSize;
  12. float: left;
  13. margin-left: 10px;
  14. background-color: #2d2136;
  15. cursor: pointer;
  16. position: relative;
  17. box-sizing: content-box;
  18. border: 5px solid fade(#3a3b4a, 90%);
  19. transition-property: filter;
  20. transition-duration: 0.1s;
  21. &:first-child {
  22. margin-left: 0px;
  23. }
  24. &:hover {
  25. filter: brightness(160%);
  26. -moz-filter: brightness(160%);
  27. }
  28. &.active .hotkey {
  29. color: @greenA;
  30. }
  31. .icon {
  32. position: absolute;
  33. left: 0px;
  34. top: 0px;
  35. width: 100%;
  36. height: 100%;
  37. }
  38. .cooldown {
  39. position: absolute;
  40. left: 0px;
  41. top: 0px;
  42. width: 0px;
  43. height: 100%;
  44. background-color: fade(@redB, 75%);
  45. }
  46. .hotkey {
  47. position: absolute;
  48. left: -2px;
  49. bottom: -6px;
  50. color: @white;
  51. font-size: 18px;
  52. z-index: 2;
  53. text-shadow: 2px 2px 0 #2d2136, -2px -2px 0 #2d2136, 2px -2px 0 #2d2136, -2px 2px 0 #2d2136, 2px 2px 0 #2d2136;
  54. &.no-mana {
  55. color: @redB;
  56. }
  57. }
  58. }
  59. }
  60. .mobile .uiSpells {
  61. top: auto;
  62. bottom: 10px;
  63. padding: 0px;
  64. height: auto;
  65. background-color: transparent;
  66. display: flex;
  67. flex-direction: column-reverse;
  68. .spell {
  69. position: relative;
  70. margin: 10px 0px 0px 0px;
  71. background-color: fade(#3a3b4a, 90%);
  72. border: none;
  73. .hotkey {
  74. display: none;
  75. }
  76. &.active:before {
  77. content: '';
  78. width: 5px;
  79. height: 100%;
  80. left: -5px;
  81. top: 0%;
  82. background-color: @greenB;
  83. position: absolute;
  84. }
  85. }
  86. }