index.module.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @use "@pythnetwork/component-library/theme";
  2. .entityList {
  3. background: theme.color("background", "primary");
  4. border-radius: theme.border-radius("xl");
  5. list-style-type: none;
  6. padding: 0;
  7. margin: 0;
  8. .entityItem {
  9. padding: theme.spacing(3) theme.spacing(4);
  10. border-bottom: 1px solid theme.color("background", "secondary");
  11. outline: theme.spacing(0.5) solid transparent;
  12. outline-offset: -#{theme.spacing(0.5)};
  13. transition:
  14. outline-color 100ms linear,
  15. background-color 100ms linear;
  16. -webkit-tap-highlight-color: transparent;
  17. cursor: pointer;
  18. &[data-focus-visible] {
  19. outline: theme.spacing(0.5) solid theme.color("focus");
  20. }
  21. &[data-href] {
  22. cursor: pointer;
  23. }
  24. &[data-hovered] {
  25. background-color: theme.color("button", "outline", "background", "hover");
  26. }
  27. &[data-pressed] {
  28. background-color: theme.color(
  29. "button",
  30. "outline",
  31. "background",
  32. "active"
  33. );
  34. }
  35. &:first-child {
  36. border-top-left-radius: theme.border-radius("xl");
  37. border-top-right-radius: theme.border-radius("xl");
  38. }
  39. &:last-child {
  40. border-bottom-left-radius: theme.border-radius("xl");
  41. border-bottom-right-radius: theme.border-radius("xl");
  42. border-bottom: none;
  43. }
  44. .itemHeader,
  45. .itemDetailsItem {
  46. display: flex;
  47. flex-flow: row nowrap;
  48. align-items: center;
  49. justify-content: space-between;
  50. }
  51. .itemDetails {
  52. display: grid;
  53. grid-template-columns: 1fr;
  54. gap: theme.spacing(2) theme.spacing(18);
  55. @include theme.breakpoint("sm") {
  56. grid-template-columns: repeat(2, 1fr);
  57. }
  58. .itemDetailsItem {
  59. height: theme.spacing(5);
  60. dt {
  61. @include theme.text("sm", "normal");
  62. color: theme.color("muted");
  63. margin-right: theme.spacing(4);
  64. }
  65. dd {
  66. margin: 0;
  67. text-align: right;
  68. }
  69. }
  70. }
  71. }
  72. }