feat: add sc minification + display class names

This commit is contained in:
Paul Makles
2022-01-14 18:50:58 +00:00
parent 8dd18c9fb4
commit 3fd56e4fdc
82 changed files with 523 additions and 110 deletions

View File

@@ -1,10 +1,10 @@
import styled from "styled-components";
import styled from "styled-components/macro";
import { Children } from "../../../../types/Preact";
const Grid = styled.div<{ width: number; height: number }>`
--width: ${props => props.width}px;
--height: ${props => props.height}px;
--width: ${(props) => props.width}px;
--height: ${(props) => props.height}px;
display: grid;
aspect-ratio: ${(props) => props.width} / ${(props) => props.height};
@@ -42,7 +42,7 @@ const Grid = styled.div<{ width: number; height: number }>`
overflow: hidden;
object-fit: contain;
// It's something
object-position: left;
}