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.
 
 
 

106 rivejä
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. box-shadow: 0 -2px 0 @black, 0 2px 0 @black, 2px 0 0 @black, -2px 0 0 @black;
  22. &:first-child {
  23. margin-left: 0px;
  24. }
  25. &:hover {
  26. filter: brightness(160%);
  27. -moz-filter: brightness(160%);
  28. }
  29. &.active .hotkey {
  30. color: @greenA;
  31. }
  32. .icon {
  33. position: absolute;
  34. left: 0px;
  35. top: 0px;
  36. width: 100%;
  37. height: 100%;
  38. }
  39. .cooldown {
  40. position: absolute;
  41. left: 0px;
  42. top: 0px;
  43. width: 0px;
  44. height: 100%;
  45. background-color: fade(@redB, 75%);
  46. }
  47. .hotkey {
  48. position: absolute;
  49. left: -2px;
  50. bottom: -6px;
  51. color: @white;
  52. font-size: 18px;
  53. z-index: 2;
  54. text-shadow: 2px 2px 0 #2d2136, -2px -2px 0 #2d2136, 2px -2px 0 #2d2136, -2px 2px 0 #2d2136, 2px 2px 0 #2d2136;
  55. &.no-mana {
  56. color: @redB;
  57. }
  58. }
  59. }
  60. }
  61. .mobile .uiSpells {
  62. top: auto;
  63. bottom: 10px;
  64. padding: 0px;
  65. height: auto;
  66. background-color: transparent;
  67. display: flex;
  68. flex-direction: column-reverse;
  69. .spell {
  70. position: relative;
  71. margin: 10px 0px 0px 0px;
  72. background-color: fade(#3a3b4a, 90%);
  73. border: none;
  74. .hotkey {
  75. display: none;
  76. }
  77. &.active:before {
  78. content: '';
  79. width: 5px;
  80. height: 100%;
  81. left: -5px;
  82. top: 0%;
  83. background-color: @greenB;
  84. position: absolute;
  85. }
  86. }
  87. }