UNPKG

@mysten/dapp-kit

Version:

A collection of React hooks and components for interacting with the Sui blockchain and wallets.

53 lines (44 loc) 1.08 kB
// Copyright (c) Mysten Labs, Inc. // SPDX-License-Identifier: Apache-2.0 import { style } from '@vanilla-extract/css'; import { themeVars } from '../themes/themeContract.js'; export const connectedAccount = style({ gap: 8, }); export const menuContainer = style({ zIndex: 999999999, }); export const menuContent = style({ display: 'flex', flexDirection: 'column', width: 180, maxHeight: 200, marginTop: 4, padding: 8, gap: 8, borderRadius: themeVars.radii.large, backgroundColor: themeVars.backgroundColors.dropdownMenu, }); export const menuItem = style({ padding: 8, userSelect: 'none', outline: 'none', display: 'flex', alignItems: 'center', borderRadius: themeVars.radii.large, selectors: { '&[data-highlighted]': { backgroundColor: themeVars.backgroundColors.primaryButton, }, }, }); export const switchAccountMenuItem = style({ display: 'flex', justifyContent: 'space-between', alignItems: 'center', }); export const separator = style({ height: 1, flexShrink: 0, backgroundColor: themeVars.backgroundColors.dropdownMenuSeparator, });