All files / src/components/ui/splash style.ts

0% Statements 0/13
0% Branches 0/4
0% Functions 0/9
0% Lines 0/13

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                                                                                                                                   
import styled, { css } from "styled-components";
 
// #region SplashWindow
 
export interface StyledSplashWindowProps {
  $focus: boolean;
}
 
export const StyledSplashWindow = styled.div<StyledSplashWindowProps>`
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  ${(props) =>
    props.$focus === false
      ? css`
          opacity: 0.75;
          -webkit-filter: grayscale(100%);
        `
      : ""}
`;
 
// #endregion SplashWindow
 
// #region SplashTab
 
interface StyledSplashTabProps {
  $selected?: boolean;
}
 
export const StyledSplashTab = styled.button<StyledSplashTabProps>`
  font-size: 13px;
  padding: 8px 20px;
  text-align: left;
  color: ${(props) => props.theme.colors.text};
  background: transparent;
  border: 0;
  -webkit-app-region: no-drag;
 
  &:hover {
    background: rgba(128, 128, 128, 0.3);
  }
 
  &:active {
    background: rgba(128, 128, 128, 0.4);
  }
 
  ${(props) => (props.$selected ? styledSplashTabSelectedStyles : "")}
`;
 
const styledSplashTabSelectedStyles = css`
  background: ${(props) => props.theme.colors.highlight};
  color: ${(props) => props.theme.colors.highlightText};
 
  &:hover {
    background: ${(props) => props.theme.colors.highlight};
    color: ${(props) => props.theme.colors.highlightText};
  }
  &:active {
    background: ${(props) => props.theme.colors.highlight};
    color: ${(props) => props.theme.colors.highlightText};
  }
`;
 
// #endregion SplashTab