style.css 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .keyboard {
  2. position: fixed;
  3. left: 0;
  4. bottom: 0;
  5. width: 100%;
  6. padding: 5px 0;
  7. background: #1f1f1f;
  8. box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  9. user-select: none;
  10. transition: bottom 0.4s;
  11. }
  12. .keyboard--hidden {
  13. bottom: -100%;
  14. }
  15. .keyboard__keys {
  16. text-align: center;
  17. }
  18. .keyboard__key {
  19. height: 45px;
  20. width: 6%;
  21. max-width: 90px;
  22. margin: 3px;
  23. border-radius: 4px;
  24. border: none;
  25. background: rgba(255, 255, 255, 0.2);
  26. color: #ffffff;
  27. font-size: 1.05rem;
  28. outline: none;
  29. cursor: pointer;
  30. display: inline-flex;
  31. align-items: center;
  32. justify-content: center;
  33. vertical-align: top;
  34. padding: 0;
  35. -webkit-tap-highlight-color: transparent;
  36. position: relative;
  37. }
  38. .keyboard__key:active {
  39. background: rgba(255, 255, 255, 0.12);
  40. }
  41. .keyboard__key--wide {
  42. width: 12%;
  43. }
  44. .keyboard__key--extra-wide {
  45. width: 36%;
  46. max-width: 500px;
  47. }
  48. .keyboard__key--activatable::after {
  49. content: '';
  50. top: 10px;
  51. right: 10px;
  52. position: absolute;
  53. width: 8px;
  54. height: 8px;
  55. background: rgba(0, 0, 0, 0.4);
  56. border-radius: 50%;
  57. }
  58. .keyboard__key--active::after {
  59. background: #08ff00;
  60. }
  61. .keyboard__key--dark {
  62. background: rgba(0, 0, 0, 0.25);
  63. }