ISSUE-031 - Added new overlay images with some variations.
Added a great new feature: an active outline styling rule. When dragging the overlay image around there's now a red outline to help match edges that are otherwise black-on-black; making them very difficult to align.
This commit is contained in:
1 parent
a7ca0aecb0
commit
dd7f49108a
14 files changed
+22
-11
No files matched your search
@@ -13,7 +13,7 @@ import {
|
||||
TextContainer,
|
||||
} from "./styles";
|
||||
|
||||
export function ChyronDriverBasic() {
|
||||
export function ChyronDriver() {
|
||||
// TODO - Get driver details from Redux.
|
||||
|
||||
const baseWidth = 582;
|
||||
|
||||
@@ -14,6 +14,10 @@ export const OverlayImage = styled.img.attrs<OverlayImageProps>(({
|
||||
src,
|
||||
}))<OverlayImageProps>`
|
||||
width: ${({ scale = 100 }) => `${scale}%`};
|
||||
&:active {
|
||||
outline: 2px solid red;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
`;
|
||||
OverlayImage.displayName = "OverlayImage";
|
||||
|
||||
|
||||
Reference in new issue
Block a user