Skip to content

style_principal.css

text/css style_principal.css — 2.5 KB

File contents

*, *::before, *::after {
  box-sizing: border-box;
}

.cards {
 /* display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;*/
		  margin-top:1.2em;
}

.card {
  font-family: Helvetica;
  position: relative;
  margin: 1em;
  box-shadow: 0 0.25em 15px -2px #999;
  overflow: hidden;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 calc(300px - 2em);
          flex: 1 0 calc(300px - 2em);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.card__image {
  background-color: #000;
  background-position: center center;
  background-size: cover;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 33%;
          flex: 1 0 33%;
  min-height: 150px;
  min-width: 150px;
}
.card__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__content {
  padding: 1em 1em 3em;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 67%;
          flex: 1 1 67%;
  position: relative;
  overflow: hidden;
}
.card__label {
  border-top: 3px solid currentColor;
  padding: 0.2em 1em;
  position: absolute;
  font-variant: small-caps;
  text-transform: lowercase;
  left: 0;
  right: 0;
  top: 0;
}
.card__label--food {
  color: #f00;
}
.card__label--tech {
  color: #007BC0;
}
.card__text {
  height: 85px;
  overflow: hidden;
  position: relative;
}
.card__text::after {
  content: '';
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, white 100%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
  height: 15px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}
.card__button {
  position: absolute;
  bottom: 1em;
  right: 1em;
}

.button {
  display: inline-block;
  color: #007BC0;
  padding: 0.5em 2em 0.5em 1em;
  border-radius: 0.25em;
  text-decoration: none;
}
.button::after {
  content: '';
  display: inline-block;
  border: solid currentColor;
  border-width: 0.2em 0.2em 0 0;
  margin-left: 0.5em;
  width: 0.5em;
  height: 0.5em;
  -webkit-transform: translateY(-50%) translateX(-2em) rotate(45deg);
          transform: translateY(-50%) translateX(-2em) rotate(45deg);
  position: absolute;
  top: 50%;
  left: 100%;
  -webkit-transition: all ease 200ms;
  transition: all ease 200ms;
}
.button:hover::after {
  margin-left: 1em;
}