mdc_web icon indicating copy to clipboard operation
mdc_web copied to clipboard

Use mdc_web through index.html or pubspec.yaml+Dart file?

Open andesappal opened this issue 5 years ago • 1 comments

Jacob, in your repo, you instruct the use of mdc_web by a script placed in index.html. Then on mdc_web Pub Dev you instruct the use of mdc_web by a different set of instructions, through an edit on pubspec.yaml and, if I'm not mistaken, an import of the pkg to a component's Dart file. Which one is it? Or is it both?

Thanks, Andres

andesappal avatar Oct 17 '19 23:10 andesappal

Hi Jacob,

.card_media {
  background-image: url($mdc-card-image);
  position: relative; // Child element `__media-content` has `position: absolute`
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: left;
  background-size: cover;
}

Isn't working for me. In particular, background-position: left, which I imagine will position the media to the left of the card, instead of atop, or north of the card. Am I missing anything?

andesappal avatar Oct 17 '19 23:10 andesappal