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.

82 lines
1.3 KiB

  1. // Copyright (c) 2020 Tulir Asokan
  2. //
  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. font-family: sans-serif
  8. html
  9. scrollbar-width: none
  10. &::-webkit-scrollbar
  11. display: none
  12. body
  13. margin: 0
  14. h1
  15. font-size: 1rem
  16. main
  17. &.spinner, &.error, &.empty
  18. margin: 2rem
  19. &.empty
  20. text-align: center
  21. nav
  22. display: flex
  23. overflow-x: auto
  24. scrollbar-width: none
  25. &::-webkit-scrollbar
  26. display: none
  27. position: fixed
  28. top: 0
  29. left: 0
  30. right: 0
  31. height: 12vw
  32. background-color: white
  33. z-index: 10
  34. div.sticker
  35. width: 12vw
  36. height: 12vw
  37. section.stickerpack
  38. // This is a slightly hacky hack so that we can simultaneously have:
  39. // * Anchor URLs scroll so the header is visible
  40. // * The scroll area is the whole document
  41. padding-top: 12vw
  42. margin-top: -12vw
  43. > div.sticker-list
  44. display: flex
  45. flex-wrap: wrap
  46. > h1
  47. margin: .75rem
  48. div.sticker
  49. display: flex
  50. padding: 4px
  51. cursor: pointer
  52. position: relative
  53. width: 25vw
  54. height: 25vw
  55. box-sizing: border-box
  56. &:hover
  57. background-color: #eee
  58. > img
  59. display: none
  60. width: 100%
  61. object-fit: contain
  62. &.visible
  63. display: initial