-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(island-ui): image/logo option for CategoryCard (#6125)
* Add image option for CategoryCard * Change hasImage check Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
66cf7bc
commit eb719d2
Showing
3 changed files
with
258 additions
and
57 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
libs/island-ui/core/src/lib/CategoryCard/CategoryCard.css.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { style } from '@vanilla-extract/css' | ||
import { themeUtils } from '@island.is/island-ui/theme' | ||
|
||
export const imageContainer = style({ | ||
position: 'relative', | ||
maxWidth: '20%', | ||
width: '100%', | ||
}) | ||
|
||
export const imageContainerStacked = style({ | ||
maxWidth: '50%', | ||
}) | ||
|
||
export const imageContainerHidden = style({ | ||
display: 'none', | ||
...themeUtils.responsiveStyle({ | ||
sm: { | ||
display: 'flex', | ||
}, | ||
}), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters