import styled from "styled-components/macro"; export const Title = styled.h4` font-family: ${p => p.theme.fonts.f1Italic}; `; type ButtonProps = { disabled: boolean, }; export const Button = styled.button` font-family: ${p => p.theme.fonts.f1Regular}; color: ${({ disabled }) => disabled ? p => p.theme.colors.grey : "black"}; background-color: ${p => p.theme.colors.lightGrey}; border-radius: ${p => p.theme.design.button.borderRadius}; border: 1px black solid; cursor: pointer; &:hover { box-shadow: inset 0px 0px 10px 0px rgba(0, 0, 0, 0.3); } &:active { box-shadow: inset 0px 0px 10px 4px rgba(255, 255, 255, 0.8); } `; export const OpenButton = styled(Button)` background-color: ${({ disabled }) => disabled ? p => p.theme.colors.disabledGreen : p => p.theme.colors.activeGreen}; `; export const CloseButton = styled(Button)` background-color: ${({ disabled }) => disabled ? p => p.theme.colors.disabledRed : p => p.theme.colors.activeRed}; `; export const PanelButton = styled(Button)` background-color: white; font-size: 0.9em; `; export const ShortcutBar = styled.div` display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3em 1.4em; margin-top: 0.5em; font-family: ${p => p.theme.fonts.f1Regular}; font-size: 0.74em; color: ${p => p.theme.colors.darkGrey}; `; export const ShortcutItem = styled.span` white-space: nowrap; `; export const ShortcutKey = styled.span` font-family: ${p => p.theme.fonts.f1Bold}; color: ${p => p.theme.colors.darkGrey}; background-color: ${p => p.theme.colors.faintGrey}; border: 1px solid ${p => p.theme.colors.lightGrey}; border-radius: 0.2em; padding: 0 0.35em; margin-right: 0.35em; `;