ISSUE-068 - Now Styled-Components can self-label.
Updated babel-plugin-styled-components to a new version that works. Added extra option to macros settings to not bother showing the file names.
This commit is contained in:
1 parent
9ccaa5b3d6
commit
3b165c42e9
38 files changed
+66
-133
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import styled from "styled-components";
|
||||
import styled from "styled-components/macro";
|
||||
|
||||
/**
|
||||
* scale is a percentage (0-100%)
|
||||
@@ -20,7 +20,6 @@ export const OverlayImage = styled.img.attrs<OverlayImageProps>(({
|
||||
outline-offset: -2px;
|
||||
}
|
||||
`;
|
||||
OverlayImage.displayName = "OverlayImage";
|
||||
|
||||
type OverlayImageContainerProps = {
|
||||
opacity: number,
|
||||
@@ -41,12 +40,10 @@ export const OverlayImageContainer = styled.div.attrs<OverlayImageContainerProps
|
||||
}
|
||||
|
||||
`;
|
||||
OverlayImageContainer.displayName = "OverlayImageContainer";
|
||||
|
||||
export const OverlayImageSubContainer = styled.div`
|
||||
flex-shrink: 0;
|
||||
`;
|
||||
OverlayImageSubContainer.displayName = "OverlayImageSubContainer";
|
||||
|
||||
export const OverlayImageSize = styled.span`
|
||||
position: absolute;
|
||||
@@ -61,4 +58,3 @@ export const OverlayImageSize = styled.span`
|
||||
font-size: 1em;
|
||||
text-shadow: -1px -1px 1px rgba(255,255,255,.1), 1px 1px 1px rgba(0,0,0,.5);
|
||||
`;
|
||||
OverlayImageSize.displayName = "OverlayImageSize";
|
||||
Reference in new issue
Block a user