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.

72 lines
1.3 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. * {
  2. font-family: sans-serif; }
  3. body {
  4. margin: 0; }
  5. h1 {
  6. font-size: 1rem; }
  7. main.spinner {
  8. margin-top: 5rem; }
  9. main.error, main.empty {
  10. margin: 2rem; }
  11. main.empty {
  12. text-align: center; }
  13. main.has-content {
  14. position: fixed;
  15. top: 0;
  16. left: 0;
  17. right: 0;
  18. bottom: 0;
  19. display: grid;
  20. grid-template-rows: calc(12vw + 2px) auto; }
  21. nav {
  22. display: flex;
  23. overflow-x: auto;
  24. height: calc(12vw + 2px);
  25. background-color: white; }
  26. nav > a {
  27. border-bottom: 2px solid transparent; }
  28. nav > a.visible {
  29. border-bottom-color: green; }
  30. nav > a > div.sticker {
  31. width: 12vw;
  32. height: 12vw; }
  33. div.pack-list, nav {
  34. scrollbar-width: none; }
  35. div.pack-list::-webkit-scrollbar, nav::-webkit-scrollbar {
  36. display: none; }
  37. div.pack-list {
  38. overflow-y: auto; }
  39. section.stickerpack {
  40. margin-top: .75rem; }
  41. section.stickerpack > div.sticker-list {
  42. display: flex;
  43. flex-wrap: wrap; }
  44. section.stickerpack > h1 {
  45. margin: 0 0 0 .75rem; }
  46. div.sticker {
  47. display: flex;
  48. padding: 4px;
  49. cursor: pointer;
  50. position: relative;
  51. width: 25vw;
  52. height: 25vw;
  53. box-sizing: border-box; }
  54. div.sticker:hover {
  55. background-color: #eee; }
  56. div.sticker > img {
  57. display: none;
  58. width: 100%;
  59. object-fit: contain; }
  60. div.sticker > img.visible {
  61. display: initial; }