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.

84 lines
1.6 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. nav > a > div.sticker.icon > img {
  34. width: 70%;
  35. height: 70%;
  36. padding: 15%; }
  37. div.pack-list, nav {
  38. scrollbar-width: none; }
  39. div.pack-list::-webkit-scrollbar, nav::-webkit-scrollbar {
  40. display: none; }
  41. div.pack-list {
  42. overflow-y: auto; }
  43. div.pack-list.ios-safari-hack {
  44. position: fixed;
  45. top: calc(12vw + 2px);
  46. bottom: 0;
  47. left: 0;
  48. right: 0;
  49. -webkit-overflow-scrolling: touch; }
  50. section.stickerpack {
  51. margin-top: .75rem; }
  52. section.stickerpack > div.sticker-list {
  53. display: flex;
  54. flex-wrap: wrap; }
  55. section.stickerpack > h1 {
  56. margin: 0 0 0 .75rem; }
  57. div.sticker {
  58. display: flex;
  59. padding: 4px;
  60. cursor: pointer;
  61. position: relative;
  62. width: 25vw;
  63. height: 25vw;
  64. box-sizing: border-box; }
  65. div.sticker:hover {
  66. background-color: #eee; }
  67. div.sticker > img {
  68. display: none;
  69. width: 100%;
  70. object-fit: contain; }
  71. div.sticker > img.visible {
  72. display: initial; }