Skip to content

Instantly share code, notes, and snippets.

@erip2
Created January 28, 2020 21:08
Show Gist options
  • Save erip2/727d9769c5e2f0e9c4bff09adc048146 to your computer and use it in GitHub Desktop.
Save erip2/727d9769c5e2f0e9c4bff09adc048146 to your computer and use it in GitHub Desktop.
.modul-title {
color: #000000;
font-size: 32px;
font-weight: bold;
letter-spacing: -0.4px;
line-height: 38px;
}
/* Filter buttons */
.simple-button {
color: #4F4F4F;
font-size: 14px;
font-weight: 500;
line-height: 20px;
background-color: transparent;
border: 0;
padding: 10px 25px;
margin: 0;
text-transform: capitalize;
}
.simple-button:focus,
.simple-button:active {
outline: none !important;
}
.simple-button.is-checked {
color: #169AD6;
border-bottom: 2px solid #169AD6;
font-weight: bold;
outline: none;
}
.filter-cont span,
.simple-button .help-text {
display: none;
}
.promotions-btn {
float: right;
}
.button-group-container {
background: #fff;
margin-bottom: 20px;
}
.filters-button-group select {
display: none;
}
@media (max-width: 979px) {
.simple-button {
margin: 10px 0 0 0;
padding: 10px 20px;
}
}
@media (max-width: 767px) {
.filters-button-group {
width: 100%;
overflow-x: auto;
white-space: nowrap;
}
.promotions-btn {
float: unset;
}
}
@media (max-width: 480px) {
.filter-cont {
background-color: #D3E7FF;
border-bottom: 0;
margin-right: -15px;
margin-left: -15px;
padding: 15px;
margin-bottom: 15px;
}
.filter-cont span {
display: inline-block;
color: #717171;
font-size: 18px;
font-weight: 500;
margin-right: 15px;
}
.simple-button {
display: none;
width: 100%;
}
#filters-select {
display: inline-block;
background-color: #D3E7FF;
border: 0;
outline: none;
color: #0065F2;
font-size: 18px;
font-weight: 500;
}
#filters-select option {
color: #0065F2;
font-size: 18px;
font-weight: 500;
}
.simple-button .help-text {
display: inline-block;
margin-right: 10px;
}
.simple-button .is-checked {
display: block;
}
}
/* Promotions */
.promotions {
margin-bottom: 50px;
}
.promotion-item {
margin-bottom: 50px;
box-shadow: 0 0 2px 0 rgba(0,0,0,0.1), 0 1px 4px 0 rgba(0,0,0,0.1);
}
.promotion-item .img-container {
height: 100px;
background-size: cover;
background-position: center;
}
.promotion-item .img-container img {
width: 100%;
height: auto;
max-height: 100%;
object-fit: cover;
}
.promotion-item .card-body a {
color: #000;
}
.promotion-item .card-body h2 {
font-size: 24px;
font-weight: bold;
}
.promotion-item .card-body p {
color: #8E8E93;
font-size: 14px;
}
.card-info {
text-align: center;
background-color:#8E8E93;
color:#fff;
padding: 5px 15px;
font-size: 14px;
font-weight: 500;
position: absolute;
display: inline-block;
top:0;
left:15px;
}
.promotion-item .card-body .btn-default {
width: 100%;
font-size: 14px;
font-weight: bold;
color: #0065F2;
}
/* Active Promotion */
.promotion-item.active .card-info {
position: unset;
display: block;
width: 100%;
top:unset;
left:unset;
}
.promotion-item.active .btn-default {
border: 0;
border-top: 1px solid #E7E7E7;
padding-bottom: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment