123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- $lines-to-show-sm: 1;
- $lines-to-show: 2;
- $line-height-sm: 1.25;
- $line-height: 1.39;
- $item-card-content-size-xs:0.875rem;
- $item-card-content-size-sm:1rem;
- $item-card-content-size:18px;
- //沒有資料版本
- .item-card-none{
- .item-card-none-text{
- color: #43484C;
- font-weight: bold;
- }
- }
- .onlyCase {
- margin-top: -4rem;
- @media screen and(max-width: 576px) {
- margin-top: -5rem;
- }
- }
- h4.onlyCase-title {
- font-family: $main-font-family;
- }
- //有資料版本
- .item-card{
- display: flex;
- flex-direction: column;
- min-width: 0;
- word-wrap: break-word;
- position: relative;
- font-family: $main-font-family;
- box-shadow: 0px 0px 3px rgba(66, 66, 66, 0.376);
- -moz-box-shadow: 0px 0px 3px rgba(66, 66, 66, 0.376);
- -ms-box-shadow: 0px 0px 3px rgba(66, 66, 66, 0.376);
- //精選案例
- &.item-card-onlyCase {
- a {
- color: #727679;
- font-family: $main-font-family;
- &:hover {
- color: #727679;
- text-decoration: none;
- }
- }
- }
- .item-card-img{
- position: relative;
- width: 100%;
- height: 300px; // 因應建案圖片,調整為H300
- background-size: cover;
- background-position: center center;
- // 建案有撥放鍵
- .play {
- position: absolute;
- top: 45%;
- left: 45%;
- width: 46px;
- height: 46px;
- transition: all 300ms ease-in-out;
- }
- }
- .item-card-product {
- background-repeat: no-repeat;
- background-position: center center;
- }
- .item-card-person{
- width: 80px;
- height: 80px;
- border-radius: 50%;
- background-size: cover;
- box-shadow: 2px 2px 10px -2px rgba(0,0,0,0.15);
- }
- .item-card-position{
- margin-top: -.5rem;
- }
- //search_2 使用
- .item-card-video{
- position: relative;
- .item-card-videoBtn{
- position: absolute;
- top: 40%;
- left: 43%;
- }
- }
- .item-card-body{
- position: relative;
- a{
- color: #000;
- margin-right: 0.25rem;
- &:hover, &:active{
- color: #000;
- text-decoration: none;
- }
- }
- // .item-card-circle{
- // width: 82px;
- // height: 82px;
- // border-radius: 50%;
- // .item-card-img-person{
- // border-radius: 50%;
- // }
- // }
- //search_1&4 使用
- .item-card-company{
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- font-size: 0.875rem;
- overflow: hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- line-height: 1.25;
- height: $item-card-content-size-xs * $line-height-sm * $lines-to-show-sm;
- &+h6{
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- font-size: 0.875rem;
- overflow: hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- line-height: 1.25;
- height: $item-card-content-size-xs * $line-height-sm * $lines-to-show-sm;
- }
- }
- .item-card-job{
- font-size: 14px;
- }
- .item-card-media{
- display: none;
- position: absolute;
- bottom: calc(1rem + 48px); //padding + item-card-media高度
- left: 32%;
- }
- .item-card-text-video {
- margin-top: -5px;
- }
- .item-card-text-tag{
- font-size: 14px;
- //品專欄
- &.item-card-text-tag-column{
- margin-top: -5px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- height: calc(14px * 1.5 * 1.39); //font-size + 1.5行 + line-height
- }
- }
- .tag-item{
- word-break: break-all;
- }
- .tag-item:hover{
- color: #EE7800;
- }
- .item-card-text-date{
- color:#c3c3c3;
- font-size: 12px;
- }
- //品專欄
- .item-card-title{
- font-size: 18px;
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- -webkit-line-clamp: $lines-to-show-sm;
- height: $item-card-content-size * $line-height-sm * $lines-to-show-sm;
- overflow:hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- }
- //選好貨
- .item-card-subtitle{
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- -webkit-line-clamp: $lines-to-show-sm;
- height: $item-card-content-size-sm * $line-height-sm * $lines-to-show-sm;
- overflow:hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- }
- //選好貨
- .item-card-title-product{
- font-size: 18px;
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- -webkit-line-clamp: $lines-to-show-sm;
- height: $item-card-content-size * $line-height * $lines-to-show-sm;
- overflow:hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- }
- .item-card-options{
- align-items: flex-end;
- justify-content: end;
- }
- .item-card-options-list{
- color: #AAAAAA;
- }
-
- }
- .icon-share1, .icon-share2{
- display: block;
- transition: display 5000s;
- &.active{
- display: none;
- }
- }
- .item-card-icon{
- display: block;
- &.after{
- display: none;
- }
- }
- .item-card-icon-close{
- display: none;
- transition: display 5000s;
- &.active{
- display: block;
- }
- }
-
- .item-card-options-list:hover{
- cursor: pointer;
- .item-card-icon.before{
- display: none;
- }
- .item-card-icon.after{
- display: block;
- &.active{
- display: none;
- }
- }
- .item-card-options-text{
- color:#EE7800;
- }
- }
- .item-card-options-list{
- .item-card-icon.before{
- display: block;
- &.active{
- display: none;
- }
- }
- .item-card-icon.after{
- display: none;
- &.active{
- display: none;
- }
- }
- }
- .item-card-content{
- font-size: 1rem;
- font-weight: bold;
- color: #43484C;
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- line-height: 1.25;
- -webkit-line-clamp: $lines-to-show-sm;
- height: $item-card-content-size-sm * $line-height-sm * $lines-to-show-sm;
- overflow:hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- }
- .item-card-content-video{
- font-size: 16px;
- font-weight: bold;
- color: #43484C;
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- -webkit-line-clamp: $lines-to-show;
- height: $item-card-content-size-sm * $line-height * $lines-to-show;
- overflow:hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- }
- .item-card-brand{
- font-size: 16px;
- font-weight: bold;
- color: #43484C;
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- -webkit-line-clamp: $lines-to-show-sm;
- height: $item-card-content-size-sm * $line-height-sm * $lines-to-show-sm;
- overflow:hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- }
- //選好貨、專欄內文
- .item-card-content-product, .item-card-content-cloumn{
- font-size: 16px;
- color: #43484C;
- -webkit-box-orient: vertical;
- -moz-box-orient:vertical;
- box-orient:vertical;
- -webkit-line-clamp: $lines-to-show;
- height: $item-card-content-size-sm * $line-height * $lines-to-show;
- overflow:hidden;
- text-overflow:ellipsis;
- display: -webkit-box;
- }
- }
- //轉寄 modal
- .modal{
- font-family: $main-font-family;
- .modal-header{
- border-bottom: 1px solid transparent;
- }
- .input-group{
- .fm-input-border{
- border-right-width: 0;
- }
- .fm-btn-border{
- border-left-width: 0;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-color: red;
- }
- .btn-outline-secondary:hover{
- color: #AAAAAA;
- background-color: transparent;
- }
- }
- .form-control{
- border-width: 1px;
- }
- .fm-email-btnWrapper{
- border:1px solid;
- border-radius: 28px;
- &.active{
- display: none;
- }
- .fm-email-btn{
- padding:2px 5px 2px 5px;
- }
- }
- .fm-close{
- cursor: pointer;
- }
- .border-revise{
- border: 1px solid red;
- }
- .modal-title{
- font-size: 18px;
- margin-left: auto;
- margin-right: auto;
- }
- .modal-button-wrapper{
- .modal-button{
- // width: 50%;
- width: 30%;
- border: none;
- padding: 0.875rem 1rem;
- background-color: #D1D2D3;
- border-radius: 2px;
- color: #fff;
- &:hover, &.active{
- background-color: #EE7800;
- }
- }
- }
- }
|