| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- @use "@pythnetwork/component-library/theme";
- .modalOverlay {
- position: fixed;
- inset: 0;
- background: rgba(from black r g b / 30%);
- z-index: 1;
- .searchMenu {
- position: relative;
- top: theme.spacing(32);
- margin: 0 auto;
- outline: none;
- background: theme.color("background", "secondary");
- border-radius: theme.border-radius("2xl");
- padding: theme.spacing(1);
- max-height: theme.spacing(120);
- display: flex;
- flex-flow: column nowrap;
- flex-grow: 1;
- gap: theme.spacing(1);
- width: fit-content;
- .searchBar {
- flex: none;
- display: flex;
- flex-flow: row nowrap;
- gap: theme.spacing(2);
- align-items: center;
- padding: theme.spacing(1);
- .closeButton {
- margin-left: theme.spacing(8);
- }
- }
- .body {
- background: theme.color("background", "primary");
- border-radius: theme.border-radius("xl");
- flex-grow: 1;
- overflow: hidden;
- display: flex;
- .listbox {
- outline: none;
- overflow: auto;
- flex-grow: 1;
- .item {
- padding: theme.spacing(3) theme.spacing(4);
- display: flex;
- flex-flow: row nowrap;
- align-items: center;
- width: 100%;
- cursor: pointer;
- transition: background-color 100ms linear;
- outline: none;
- text-decoration: none;
- border-top: 1px solid theme.color("background", "secondary");
- &[data-is-first] {
- border-top: none;
- }
- & > *:last-child {
- flex-shrink: 0;
- }
- &[data-focused] {
- background-color: theme.color(
- "button",
- "outline",
- "background",
- "hover"
- );
- }
- &[data-pressed] {
- background-color: theme.color(
- "button",
- "outline",
- "background",
- "active"
- );
- }
- .itemType {
- width: theme.spacing(21);
- flex-shrink: 0;
- margin-right: theme.spacing(6);
- }
- .itemTag {
- flex-grow: 1;
- }
- }
- }
- }
- }
- }
|