Skip to content

Commit

Permalink
Try importing CSS (not working)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Dec 21, 2024
1 parent a82ee1e commit cd4d1e7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"typesVersions": {},
"scripts": {
"dev": "vite serve dev",
"start": "tsup --watch",
"build": "tsup",
"test": "concurrently 'pnpm:test:*(!watch)'",
"test:client": "vitest",
Expand Down
13 changes: 13 additions & 0 deletions packages/solid/src/responsive-image.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.ri-responsive {
width: 100%;
height: auto;
}

.ri-fixed,
.ri-responsive {
content-visibility: auto;
}

.ri-lqip-inline {
background-size: cover;
}
2 changes: 2 additions & 0 deletions packages/solid/src/responsive-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
} from 'solid-js';
import { isServer } from 'solid-js/web';

import './responsive-image.css';

export interface ResponsiveImageArgs {
src: ImageData;
size?: number;
Expand Down

0 comments on commit cd4d1e7

Please sign in to comment.