Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | import styled, { css } from "styled-components"; import { StyledButton } from "ui/buttons/style"; export interface StyledToolbarProps { readonly $focus?: boolean; } export const StyledToolbar = styled.div<StyledToolbarProps>` display: flex; box-sizing: border-box; height: 38px; font-size: ${(props) => props.theme.typography.toolbarFontSize}; flex-shrink: 0; background: ${(props) => props.theme.colors.toolbar.background}; color: ${(props) => props.theme.colors.text}; border-bottom: 1px solid ${(props) => props.theme.colors.toolbar.border}; display: flex; align-items: center; padding-left: 10px; padding-right: 10px; user-select: none; z-index: 1; -webkit-app-region: drag; position: relative; z-index: 1000; .Platform__darwin & { padding-left: 80px; } .full-screen & { padding-left: 10px; } & > *:not(:last-child) { margin-right: 5px; } input { -webkit-app-region: no-drag; } ${StyledButton} { -webkit-app-region: no-drag; border: 1px solid ${(props) => props.theme.colors.toolbar.button.border}; height: 26px; padding: 0px 10px; flex-shrink: 0; font-size: 13px; svg { width: 17px; height: 17px; } } ${(props) => (props.$focus === false ? blurStyles : "")} `; const blurStyles = css` background: ${(props) => props.theme.colors.toolbar.inactiveBackground}; `; export const StyledToolbarTitle = styled.div` text-shadow: ${(props) => props.theme.colors.toolbar.textShadow}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; `; |