Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop shadow, and other styles, appears to be missing from card component in css output #91

Open
komali2 opened this issue Oct 18, 2022 · 1 comment

Comments

@komali2
Copy link

komali2 commented Oct 18, 2022

In dist/, the card class seems to be missing drop shadow.

Compare dist/ version:

.card {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  border: 1px solid #a7a7a7;
  border-radius: 2px;
}
.card .card-content {
  margin: 0;
  padding: 16px;
}
.card .card-image {
  display: block;
  height: auto;
  width: 100%;
}

With what's running on the docs site:

.card {
  flex-direction: column;
  overflow: hidden;
  flex: 0 1 calc(50% - 0.5rem);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.card-header {
  font-weight: 600;
  margin: 0;
  padding: 2rem 3rem 1rem;
}

.card-body {
  padding: 0 3rem 2rem 3rem;
  min-height: 100px;
}

.card-footer {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #dbdbdb;
  flex: 1;
}

.card-footer .card-footer-item {
  display: flex;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
}

.card-footer-item:not(:first-child) {
  border-left: 1px solid #dbdbdb;
}

@komali2
Copy link
Author

komali2 commented Oct 18, 2022

There's other differences, the docs site uses a flex based col thing, which had some bugs when I tried it (try putting two col-12 next to eachother, they split the space, rather than wrapping as I expect). The dist/ uses percentage width based cols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant