UNPKG

@freshworks/crayons

Version:
74 lines (73 loc) 1.95 kB
/* Need to check with designer */ /* Need to check with designer */ :host { font-family: var(--fw-font-family, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; } /** @prop --fw-menu-item-background: Border of the fw-menu-item popover content. @prop --fw-menu-item-border: Border of the fw-menu-item popover content. @prop --fw-menu-item-box-shadow: Box Shadow of the fw-menu-item popover content. @prop --fw-menu-item-border-radius: Border Radius of the fw-menu-item popover content. */ .menu-item { cursor: pointer; display: flex; padding: 6px 8px; margin-bottom: 4px; line-height: 1.45; align-items: center; background: var(--fw-menu-item-background, #ffffff); border: var(--fw-menu-item-border); box-shadow: var(--fw-menu-item-box-shadow); border-radius: var(--fw-menu-item-border-radius); font-size: 14px; word-break: break-word; word-wrap: break-word; } .menu-item:hover { background-color: #ebeff3; } .menu-item:focus { background-color: #ebeff3; outline: #2c5cc5 auto 1px; } .menu-item .menu-item__label { flex: 1 1 auto; } .menu-item .menu-item__prefix { flex: 0 0 auto; display: flex; align-items: center; } .menu-item .menu-item__prefix ::slotted(*) { margin-right: 8px; } .menu-item .menu-item__suffix { flex: 0 0 auto; display: flex; align-items: center; } .menu-item .menu-item__suffix ::slotted(*) { margin-left: 8px; } .menu-item .menu-item__check { width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; visibility: hidden; } .menu-item.selected { font-weight: 600; background-color: #e5f2fd; } .menu-item.selected:hover, .menu-item.selected:focus { background-color: #e5f2fd; } .menu-item.selected .menu-item__check { visibility: visible; }