import styled from 'styled-components'; import { breakpoints, colours, fonts } from '@times-components/ts-styleguide'; import { WidgetContainerBase } from './shared-styles'; export const WidgetContainer = styled(WidgetContainerBase)<{ showDetails: boolean; }>` .Opta { .Opta_W > .Opta-Cf { margin-bottom: 20px; } .Opta-Cf { padding: 0; background-color: transparent; table { tbody { tr { line-height: 30px; height: 30px; td { color: ${colours.functional.brandColour}; font-family: ${fonts.headline}; font-size: 18px; line-height: 18px; padding: 0; &.Opta-Crest { position: relative; text-align: left; &.Opta-Home { text-align: right; .Opta-Image-Holder { right: 0; } } &.Opta-Away { .Opta-Image-Holder { left: 0; } } .Opta-Image-Holder { position: absolute; top: 0; } img { width: 40px; } } &.Opta-Team { padding-left: 10px; font-size: 18px; line-height: 18px; &.Opta-Home { padding-right: 10px; padding-left: 0; text-align: right; } } &.Opta-Score { width: 20px; font-size: 24px; line-height: 24px; text-align: left; &.Opta-Home { text-align: right; } span { min-width: 0; padding: 0; color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; text-align: inherit; background-color: transparent !important; } @media (min-width: ${breakpoints.medium}px) { width: 30px; font-size: 32px; line-height: 32px; } } &.Opta-Divider { width: 20px; text-align: center; abbr { font-size: inherit; line-height: inherit; text-decoration: none; } } } &.Opta-Score-Extras { line-height: 18px; height: 18px; td { color: ${colours.functional.brandColour}; font-family: ${fonts.supporting}; font-size: 14px; line-height: 10px; height: 10px; span { color: inherit; font-size: inherit; display: inline-block; margin-top: -4px; } } } &.Opta-MatchHeader-Details { line-height: 18px; height: 18px; td { block-size: 18px; } div { padding: 0; color: ${colours.section.sport}; font-family: ${fonts.supporting}; font-size: 12px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; background-color: transparent; min-height: 18px; span { margin: 0 6px; color: inherit; line-height: 18px; font-size: inherit; } } } } } } .Opta-Events { display: ${props => (props.showDetails ? 'block' : 'none')}; padding: 10px 0 2px 0; li { padding: 0 0 8px 0; .Opta-Event-Text { color: ${colours.functional.brandColour}; font-family: ${fonts.supporting}; font-size: 13px; line-height: 16px; .Opta-Event-Player, .Opta-Event-Time, .Opta-Event-Text-Type { font-size: inherit; line-height: inherit; } .Opta-Event-Time { color: ${colours.section.sport}; } } } } } } `;