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.

64 lines
900 B

4 years ago
  1. /*
  2. Copyright (c) 2020 Tulir Asokan
  3. This Source Code Form is subject to the terms of the Mozilla Public
  4. License, v. 2.0. If a copy of the MPL was not distributed with this
  5. file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. * {
  8. font-family: sans-serif;
  9. }
  10. html {
  11. scrollbar-width: none;
  12. }
  13. body {
  14. margin: 0;
  15. }
  16. .main:not(.pack-list) {
  17. margin: 2rem;
  18. }
  19. .main.empty {
  20. text-align: center;
  21. }
  22. .stickerpack > .sticker-list {
  23. display: flex;
  24. flex-wrap: wrap;
  25. }
  26. .stickerpack > h1 {
  27. margin: .75rem;
  28. }
  29. .sticker {
  30. display: flex;
  31. padding: 4px;
  32. cursor: pointer;
  33. position: relative;
  34. width: 25vw;
  35. height: 25vw;
  36. box-sizing: border-box;
  37. }
  38. .sticker:hover {
  39. background-color: #eee;
  40. }
  41. .sticker > img {
  42. display: none;
  43. width: 100%;
  44. object-fit: contain;
  45. }
  46. .sticker > img.visible {
  47. display: initial;
  48. }
  49. h1 {
  50. font-size: 1rem;
  51. }