/** IMPORT AMOS-LAYOUT VARIABLES */ @import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/v2/variables.less"; @import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/v2/utility.less"; /** IMPORT STYLE-CUSTOM */ @import (optional) "../../frontend/web/less/style_custom.less"; .community-container { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 16px; height: 100%; @media screen and (max-width:767px) { margin-bottom: 48px; } .image-container { position: relative; .community-image { overflow: hidden; img { width: 100%; height: auto; object-fit: cover; object-position: center; border-radius: 4px; } } a.position-absolute { bottom: -5px; right: -5px; position: absolute; text-decoration: none; display: block; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; &.category1 { background-color: @success-color; color: contrast(@success-color); } &.category2 { background-color: @warning-color; color: contrast(@warning-color); } &.category3 { background-color: @disabled-color; color: contrast(@disabled-color); } &:hover { opacity: 1; } } } .community-title-container { @media screen and (max-width:767px) { padding: 16px 0; } @media screen and (min-width:768px) { margin-bottom: auto; } h3 { text-align: center; font-weight: bold; overflow: hidden; a:hover { text-decoration: underline; } .title-two-line { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .link-list-title { color: @text-main-color; text-decoration: none; } } } .button-container { width: 100%; display: flex; justify-content: center; border-top: 1px solid @border-color-default; .btn { margin-top: @margin-default; /*position: relative; padding: 8px 8px; font-size: 14px; line-height: 1.45;*/ border-radius: 4px; &.category1 { background-color: @success-color; color: contrast(@success-color); border-color: @success-color; } &.category2 { background-color: @warning-color; color: contrast(@warning-color); border-color: @warning-color; } &.category3 { background-color: @disabled-color; color: contrast(@disabled-color); border-color: @disabled-color; } &.btn-primary { color: contrast(@brand-primary-color); background-color: @brand-primary-color; border-color: transparent; &:hover { color: contrast(@brand-primary-color); } } } } }