src/sass/_condensedCard.scss
$condensed-card-margin-bottom: 15px;
$condensed-card-padding: 9px 20px 7px;
$condensed-card-data-padding: 15px 27px 9px 20px;
.condensed-card {
background-color: $color-white;
border: 1px solid $color-gray-light;
font-family: Roboto;
font-size: 16px;
line-height: 19px;
margin-bottom: $condensed-card-margin-bottom;
width: 371px;
.bid-count-container {
display: flex;
.bid-count-number {
font-size: .9em;
}
}
.new-flag {
background-color: $color-white;
border-radius: 100px;
color: $color-black;
font-size: 13px;
padding: .2em 1em;
text-align: center;
width: auto;
}
.tm-button {
float: left;
margin-top: 0;
}
.favorite-container {
float: left;
margin-bottom: 5px;
margin-right: 15px;
padding-left: 1em;
.fa {
padding-right: 10px;
}
}
.link-button-wrapper {
a:visited {
color: $color-black;
}
}
.link-button-wrapper:hover,
.link-button-wrapper:active {
a:visited {
color: $color-white;
}
.fa {
color: $color-white;
}
}
.condensed-card-top {
background-color: $blue-primary;
border-bottom: 1px solid $color-gray-lightest;
color: $color-white;
padding: $condensed-card-padding;
position: relative;
width: 100%;
z-index: $condensed-card-top-z;
a,
.data {
font-weight: 300;
}
a {
color: $color-white;
}
}
.condensed-card-top--clickable {
text-decoration: none;
&:hover,
&:focus {
background-color: $blue-primary-darker;
h3 {
text-decoration: underline;
}
}
&:active {
background-color: $blue-primary-darkest;
}
}
.post-ribbon-container {
display: flex;
div:nth-of-type(1) { flex: 3; }
div:nth-of-type(2) { flex: 2; }
.ribbon-container-condensed {
position: absolute;
right: -2px;
top: -1px;
z-index: $ribbon-condensed-card-z + 1;
.ribbon-hds {
.fa {
margin-right: .2em;
}
}
}
}
.card-top-alternate {
background-color: $tm-navy;
}
.card-top-vacancy {
background-color: $bg-blue-dark-0;
}
.condensed-top-background-image {
filter: alpha(opacity = 10);
font-size: 150px;
left: 32%;
opacity: .1;
position: absolute;
top: -36%;
}
.condensed-card-top-header-container {
margin-bottom: 5px;
}
.vacancy-text-container {
font-size: 1.2rem;
}
.vacancy--projected {
color: $tertiary-gold-lighter;
}
.condensed-card-top-header-left {
float: left;
a {
display: inline-block;
}
h3 {
display: inline;
font-family: inherit;
font-size: 1.1em;
font-weight: 400;
line-height: inherit;
margin-bottom: inherit;
margin-top: 0;
}
}
.condensed-card-top-header-right {
float: right;
text-align: right;
width: auto;
dt,
dd {
display: inline;
float: left;
margin-left: 0;
}
dd {
font-weight: 300;
margin-left: 5px;
}
}
.condensed-card-last-updated {
font-size: 14px;
margin: 10px;
}
.condensed-card-bottom-container {
background-color: $color-white;
flex-grow: 1;
padding: $condensed-card-data-padding;
padding-bottom: 5px;
position: relative;
}
.condensed-card-bottom-container--tandem-two {
background-color: $color-purple-light;
}
.condensed-card-inner {
display: flex;
flex-direction: column;
height: 100%;
position: relative;
}
.condensed-card-bottom {
display: flex;
flex-direction: column;
font-size: 16px;
height: 100%;
}
.condensed-card-buttons-section {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
margin-left: 0;
margin-right: 0;
button {
height: 44px;
margin-top: 0;
}
.bid-list-button {
flex-grow: 1;
font-size: .9em;
padding-left: .75em;
padding-right: .75em;
}
.button-icon {
display: none;
}
.compare-check-box-container {
align-items: center;
border: 1px solid $blue-primary;
border-radius: 5px;
color: $blue-primary;
display: flex;
flex-grow: 1;
font-size: .8em;
justify-content: center;
margin-bottom: 8px;
background-color: $color-white;
&.compare-checked {
background-color: $blue-primary;
color: $color-white;
}
.fa {
margin-right: 5px;
}
}
}
.condensed-card-statistics-inner {
margin-left: 0;
margin-right: 0;
}
.condensed-card-statistics {
border-top: 0;
display: flex;
flex-direction: column;
flex-grow: 1;
justify-content: flex-end;
position: relative;
.bid-count-list-item {
background: $blue-primary;
color: $color-white;
margin-bottom: 0;
}
.bid-count-list-item:first-child {
border-radius: 5px 0 0 5px;
}
.bid-count-list-item:last-child {
border-radius: 0 5px 5px 0;
}
.bid-count-list {
float: right;
padding-left: 0;
}
.bid-count-list-tandem {
.bid-count-list-item {
background: $color-white;
color: $blue-primary;
}
}
.bid-count-label {
float: left;
font-weight: bold;
margin-right: .5em;
padding-top: .2em;
}
}
.condensed-card-data {
flex-grow: 1;
line-height: 1.4em;
margin-bottom: 20px;
margin-left: 0;
margin-right: 0;
a {
color: $blue-primary;
text-decoration: none;
}
}
.last-updated-date {
font-weight: 300;
}
.condensed-card-data-title {
float: left;
font-weight: bold;
margin-right: 5px;
}
.condensed-card-data-content {
float: left;
}
.title-fixed-width {
min-width: 80px;
}
}
@media screen and (max-width: $screen-md-min) {
.usa-width-one-third.condensed-card {
display: block;
&:last-child {
margin-right: 4.82916%;
}
}
}
@media screen and (min-width: $screen-lg-min) {
.usa-width-one-third.condensed-card {
margin-right: 2.35765%;
}
}
@media screen and (max-width: $screen-sm-min) {
.usa-width-one-third.condensed-card,
.usa-width-one-third.condensed-card:last-child {
display: block;
margin-left: auto;
margin-right: auto;
}
}
.condensed-card-first-big {
float: left;
.tm-button-alt {
bottom: unset;
position: unset;
}
.condensed-card-top {
min-height: 279px;
text-decoration: none;
}
.condensed-card-last-updated {
bottom: 0;
position: absolute;
}
.condensed-top-background-image {
top: 17%;
}
.condensed-card-bottom {
min-height: 258px;
}
}
.condensed-card:last-child {
margin-bottom: $condensed-card-margin-bottom;
}
.condensed-card-footer-wrapper {
position: relative;
}
.condensed-card-footer {
background-color: $color-white;
border-top: 1px solid $color-gray-lighter;
font-size: 13px;
.condensed-card-footer-container {
padding: $condensed-card-padding;
}
.condensed-card-footer-left {
float: left;
}
.condensed-card-footer-right {
float: right;
}
}
.condensed-card-footer-tandem {
background-color: $color-purple-light;
}
.condensed-card-data-point {
@media screen and (min-width: $screen-md-min) {
display: flex;
.condensed-card-data-content {
word-break: break-word;
word-wrap: break-word;
}
}
}
.condensed-card-grid {
display: flex;
flex-wrap: wrap;
}