kbrsh / wing

:gem: A beautiful CSS framework designed for minimalists.
https://kbrsh.github.io/wing
MIT License
2.01k stars 160 forks source link

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

Open komali2 opened 2 years ago

komali2 commented 2 years ago

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 commented 2 years ago

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.