$article-box-space: 20px; .article-box { cursor: pointer; background-color: #fff; margin-top: $article-box-space; margin-bottom: $article-box-space; border-radius: 3px; overflow: hidden; .contraste & { color: #fff; background-color: #262626; } &--category { font-size: 14px; font-weight: bold; text-transform: uppercase; line-height: 22px; display: block; height: 30px; margin: 0; padding: 5px $article-box-space; color: #ffffff; @each $category, $color in $categories { .#{$category} & { background-color: $color; } } .contraste & { background-color: #262626; } } &--title { padding: 0 $article-box-space; h1 { font-size: 18px; font-weight: bold; margin: 0 0 $article-box-space 0; display: table-cell; vertical-align: middle; // Altura das linhas do abstract $hLine: 20px; // default height: $hLine * 2; @media (max-width: $screen-xs) { // height: $hLine * 3; height: auto; } @media (min-width: $screen-xs + 1) { // height: $hLine * 2; height: auto; } @media (min-width: $screen-sm + 1) { height: $hLine * 2; } @media (min-width: $screen-md + 1) { height: $hLine * 2; } } } &--abstract { padding: 0 $article-box-space; display: table-cell; vertical-align: middle; // Altura das linhas do abstract $pLine: 20px; // 1 linha: 19px -> 20 // 2 linhas: 38px -> 40 // 3 linhas: 57px -> 60 // 4 linhas: 76px -> 80 height: $pLine * 2; // default @media (max-width: $screen-xs) { // height: $pLine * 4; height: auto; } @media (min-width: $screen-xs + 1) { // height: $pLine * 3; height: auto; } @media (min-width: $screen-sm + 1) { height: $pLine * 4; } @media (min-width: $screen-md + 1) { height: $pLine * 3; } p { margin: 0; } } &--image-wrapper { position: relative; overflow: hidden; margin-bottom: 10px; min-height: 170px; @media screen and (max-width: $screen-lg) { min-height: 135px; } @media screen and (max-width: $screen-md) { min-height: 90px; } @media screen and (max-width: $screen-sm) { min-height: 220px; } @media screen and (max-width: $screen-xs) { min-height: 180px; } } &--image { min-height: 170px; background-position: center; background-size: cover; background-repeat: no-repeat; -webkit-transition: all $time ease-in-out; -moz-transition: all $time ease-in-out; -o-transition: all $time ease-in-out; transition: all $time ease-in-out; @media screen and (max-width: $screen-lg) { min-height: 135px; } @media screen and (max-width: $screen-md) { min-height: 90px; } @media screen and (max-width: $screen-sm) { min-height: 220px; } @media screen and (max-width: $screen-xs) { min-height: 170px; } } .qtd-propostas { display: block; margin-top: 25px; margin-left: 10px; } .button--themed { padding: 20px; } &:hover { background-color: #d9d9d9; .article-box--image { -webkit-transform: scale($scale); /* prefixo para browsers webkit */ -moz-transform: scale($scale); /* prefixo para browsers gecko */ -o-transform: scale($scale); /* prefixo para opera */ transform: scale($scale); } .contraste & { background-color: #262626; } } }