Closed bspeare closed 1 year ago
need to scope out variations here
we pivoted from yesterday’s media component to handling media similar to borderless and background. media classes are now accounted for in the card component
it is my understanding this changes how the stories would work for this. also outstanding are the fixes from https://github.com/uiowa/uids/issues/696#issuecomment-1158135821
People list teaser (story) should be added (media left/right)
scss
code changes:
text-align: start
instead of text-align: left
rem
for font size, padding, and margin and have a few defined in [variables.scss](https://github.com/uiowa/uids/blob/main/src/assets/scss/_variables.scss)
%
when specifying grid columns, flex layouts, and anything else necessary to define a size as relative to an element's parent objectem
mostly when defining the browser breakpoint sizepx
for values like border
vw
on an item that needs to be styled relative to the viewport’s widthvh
on an item that needs to be styled relative to the viewport’s heightAdded a story to represent person teaser cards.
Did a pass at cleaning up the card and media styles. Ideally another set of eyes would be good.
When I clicked basic-card--borderless-card (mobile sized), I didn't notice a change in media padding. This was discussed in the huddle I was in earlier, but I am foggy about what was decided here. - https://github.com/uiowa/uids/pull/698
I was foggy then and now about what the ideal should be for the following:
Collision for media padded and borderless, used in combo media padding doesn’t do anything.
Media padded on L/R align is not working.
We've got the card_details
in the 4.x branch, do we want get card_subtitle
and card_meta
represented here as well?
Just a few notes after our Slack huddle and looking at this today:
media--medium media--widescreen
as the defaults and we just need the media
class applied as the default. media_cover
options and have the media--cover
class applied only if the media_padded is set to false. Thanks for the comment @bspeare. I think I have resolved the media--medium media--widescreen
defaults and the media--cover
issue.
I feel like basic-card--person-card
is almost there but the image seems to overflow without padded applied. My flex overflow knowledge is as dated as the IE11 fixes I copied pasted way back when.
@joewhitsitt are you talking about the image stretching or is there another overflow you could screenshot?
Sorry, this was what I was trying to describe:
UIDS
Sandbox People v3
Notes from our huddle this afternoon:
After the work in https://github.com/uiowa/uids/pull/698, a few items remain to be done.
Proposed Solution
media--small
,media--medium
, andmedia--large
into card component: https://github.com/uiowa/uids/blob/3.x/src/components/card/_card-mixins.scss#L135-L154.media--circle
,media--border
, andmedia--cover
into card component.