File "portfolio-grid.scss"

Full Path: /home/adniftyx/public_html/wp-content/plugins/credio-addons/widgets/portfolio-grid/portfolio-grid.scss
File size: 23.55 KB
MIME-type: text/plain
Charset: utf-8

@import '../../common';

.rs-portfolios-grid {
    &.image-zoom-effect-enable {
        .portfolio-item {
            .portfolio-img {
                overflow: hidden;
                img {
                    transition: $transition;
                    transform: scale(1);
                }
            }
            &:hover {
                .portfolio-img {
                    img {
                        transform: scale(1.05);
                    }
                }
            }
        }
    }
    &.glass-effect-yes {
        .portfolio-item {
            > svg {
                position: absolute;
                opacity: 0;
                pointer-events: none;
            }
            .portfolio-img {
                overflow: hidden;
                img {
                    transition: $transition;
                }
            }
            &:hover {
                .portfolio-img {
                    img {
                        transform: scale(1.04) !important;
                    }
                }
            }
        }
    }
}

// Style One For Fix Hero
.rs-portfolio-style1 {
	.portfolio-details {
		padding: 0;
		.p-category {
			margin: 0 0 10px;
		}
		.p-title {
			margin: 0;
			font-size: 35px;
			line-height: 45px;
			font-weight: 600;
		}
	}
	.portfolio-item {
        position: relative;
        border-radius: 2px;
        transition: 0.4s;
		.portfolio-img {
			img{
                border-radius: 2px;
                width: 100%;
            }
		}
        .portfolio-details{
            position: absolute;
            bottom: 0;
            transform: translateY(-20px);
            left: 20px;
            opacity: 0;
            transition: 0.4s;
            .p-category{
                margin: 0;
                a{
                    display: inline-block;
                    color: $whiteColor;
                    font-size: 14px;
                    line-height: 14px;
                    font-weight: 400;
                    text-transform: capitalize;
                    transition: 0.3s ease all;
                    background: $primaryColor;
                    padding: 7px 17px;
                    border-radius: 2px;
                    -webkit-border-radius: 2px;
                    -moz-border-radius: 2px;
                    -ms-border-radius: 2px;
                    -o-border-radius: 2px;
                    &:hover{
                        background: $primaryColor;
                        opacity: 0.9;
                    }
                }
            }
            .p-title{
                margin: 0;
                a{
                    color: $titleColor;
                    font-size: 24px;
                    font-weight: 600;
                    text-transform: capitalize;
                    transition: 0.3s ease all;
                    margin-top: 6px;
                    background: $whiteColor;
                    padding: 10px 10px 10px 18px;
                    border-radius: 2px;
                    display: inline-block;
                    -webkit-border-radius: 2px;
                    -moz-border-radius: 2px;
                    -ms-border-radius: 2px;
                    -o-border-radius: 2px;
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    .title-icons {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 40px;
                        height: 40px;
                        background: #f2f2f2;
                        border-radius: 50%;
                        margin-left: 40px;
                        transition: all 0.3s ease 0s;
                        svg path{
                            fill: $primaryColor;
                        }
                        i {
                            top: unset;
                            font-size: 18px;
                            color:$primaryColor;
                          }

                          &:hover{
                            background: $primaryColor;
                            svg path{
                                fill: $whiteColor;
                            }
                          }
                      }
                    &:hover{
                        color: $primaryColor;
                    }
                }
            }
            
        }
        &:hover{
            .portfolio-details{
                opacity: 1;
                visibility: visible;
            }
            
        }

        .p-icon {
            position: absolute;
            right: 30px;
            bottom: 10px;
            opacity: 1;
            visibility: visible;
            transition: all 0.5s ease;
            z-index: 4;
            cursor: pointer;
            
            a.prs_btn {
                background-color: #fff;
                color: $primaryColor;
                font-size: 16px;
                font-weight: 700;
                padding: 14px 34px 14px 36px;
                border-radius: 2px;
                overflow: hidden;
                position: relative;
                display: inline-block;
                line-height: 28px;
                transition: all 0.5s ease;
                span {
                    display: inline-block;
                    position: relative;
                    z-index: 1;
                }

                .btn_icon_2 {
                    svg {
                        transform: translateX(-30px);
                        transition: all 0.5s ease;
                    }
                    overflow: hidden;
                    display: inline-block;
                    height: 20px;
                    line-height: 20px;
                    width: 26px;
                    position: absolute;
                    right: 0;
                    top: 4px;
                    
                }
                .btn_icon_1 {
                    width: 26px;
                    display: inline-block;
                    height: 20px;
                    overflow: hidden;
                    line-height: 20px;
                    top: 4px;
                    position: relative;
                    svg {
                        transition: all 0.5s ease;
                    }
                }
                &:hover {
                    .btn_icon_1 {
                        svg {
                            transform: translateX(30px);
                            opacity: 0;
                        }
                    }
                    .btn_icon_2 {
                        svg {
                            transform: translateX(0px);
                        }
                    }
                    
                }
            }
            svg {
                width: 19px;
                height: 12px;
                fill: #fff;
                margin-left: 5px;
            }
        }
	}
    
}

.rs-portfolio-style2 {
	.portfolio-details {
		padding: 0;
		.p-category {
			margin: 0 0 10px;
		}
		.p-title {
			margin: 0;
			font-size: 35px;
			line-height: 45px;
			font-weight: 600;
		}
	}
	.portfolio-item.rsportfolio-grid-style2 {
        padding: 0px!important;
        position: relative;
        border-radius: 4px!important;
        transition: 0.4s;
        height: unset!important;
        overflow: hidden;
        .p-icon {
            position: absolute;
            right: -240px;
            bottom: 10px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
            z-index: 4;
            cursor: pointer;
            
            a.prs_btn {
                background-color: #fff;
                color: $primaryColor;
                font-size: 16px;
                font-weight: 700;
                padding: 14px 34px 14px 36px;
                border-radius: 2px;
                overflow: hidden;
                position: relative;
                display: inline-block;
                line-height: 28px;
                transition: all 0.5s ease;
                span {
                    display: inline-block;
                    position: relative;
                    z-index: 1;
                }

                .btn_icon_2 {
                    svg {
                        transform: translateX(-30px);
                        transition: all 0.5s ease;
                    }
                    overflow: hidden;
                    display: inline-block;
                    height: 20px;
                    line-height: 20px;
                    width: 26px;
                    position: absolute;
                    right: 0;
                    top: 4px;
                    
                }
                .btn_icon_1 {
                    width: 26px;
                    display: inline-block;
                    height: 20px;
                    overflow: hidden;
                    line-height: 20px;
                    top: 4px;
                    position: relative;
                    svg {
                        transition: all 0.5s ease;
                    }
                }
                &:hover {
                    .btn_icon_1 {
                        svg {
                            transform: translateX(30px);
                            opacity: 0;
                        }
                    }
                    .btn_icon_2 {
                        svg {
                            transform: translateX(0px);
                        }
                    }
                    
                }
            }
            svg {
                width: 19px;
                height: 12px;
                fill: #fff;
                margin-left: 5px;
            }
        }
        &:before {
            content: "";
            position: absolute;
            background: #09496A;
            left: 0;
            right: 0;
            height: 100%;
            transition: all 0.5s ease;
            bottom: 0;
            top: 0;
            width: 100%;
            pointer-events: none;

        }
        &:hover {
            &:before {
                height: 100%;
            }
            .p-icon { 
                opacity: 1;
                visibility: visible;
                right: 0;
            }
        }

		.portfolio-img {
			img{
                border-radius: 2px;
                width: 100%;
                transition: all 0.3s ease-in-out;
            }
		}
        .portfolio-details{
            position: absolute;
            top: 30px;
            left: 40px;
            opacity: 1;
            transition: 0.4s;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-right: 40px;
            .p-category{
                margin-top: 5px;
                a{
                    display: inline-block;
                    color: $whiteColor;
                    font-size: 14px;
                    line-height: 14px;
                    font-weight: 400;
                    text-transform: capitalize;
                    transition: 0.3s ease all;
                }
            }
            .p-title{
                margin: 0;
                a{
                    color: $whiteColor;
                    font-size: 36px;
                    font-weight: 700;
                    line-height: 46px;
                    text-transform: capitalize;
                    transition: 0.3s ease all;
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;

                    display: inline;
                    background-image: linear-gradient(to bottom, #fff 0%, #fff 100%);
                    background-size: 0 2px;
                    background-repeat: no-repeat;
                    background-position: left 100%;
                    &:hover {
                        background-image: linear-gradient(to bottom, $whiteColor 0%, $whiteColor 100%);
                        background-size: 100% 2px!important;
                    }
                }
            }
            
        }
	}
    
}

.rs-portfolio-style3 {
	.portfolio-details {
		padding: 0;
        z-index: 3;
		.p-category {
			margin: 0 0 10px;
		}
		.p-title {
			margin: 0;
			font-size: 32px;
			line-height: 42px;
			font-weight: 700;
		}
	}
	.portfolio-item {
        padding: 0px!important;
        position: relative;
        border-radius: 4px!important;
        transition: 0.4s;
        height: unset!important;
        overflow: hidden;
        .p-icon {
            position: absolute;
            right: -240px;
            bottom: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
            z-index: 4;
            cursor: pointer;
            
            a.prs_btn {
                background-color: $primaryColor;
                color: $whiteColor;
                font-size: 16px;
                font-weight: 700;
                padding: 14px 34px 14px 36px;
                border-radius: 2px;
                overflow: hidden;
                position: relative;
                display: inline-block;
                line-height: 28px;
                transition: all 0.5s ease;
                span {
                    display: inline-block;
                    position: relative;
                    z-index: 1;
                }
            }
            svg {
                width: 19px;
                height: 12px;
                fill: #fff;
            }
        }
        &:before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            height: 100%;
            opacity: 1;
            transition: all 0.3s ease;
            bottom: 0;
            width: 100%;
            z-index: 2;

        }

        &:hover {
            &:before {
                height: 100%;
                opacity: 0;
                width: 100%;
                pointer-events: none;
            }
            .p-icon { 
                opacity: 1;
                visibility: visible;
                right: 20px;
            }
            .portfolio-details { 
                opacity: 0;
                visibility: hidden
            }
        }

		.portfolio-img {
			img{
                border-radius: 4px;
                width: 100%;
            }
		}
        .portfolio-details{
            position: absolute;
            top: 40px;
            transform-origin: center left;
            left: 40px;
            transition: translate 0.40s ease, color 0.40s ease;
            opacity: 1;
            visibility: visible;
            transition: all 0.40s ease;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-right: 40px;
            .p-category{
                margin-top: 5px;
            }
            .p-title{
                margin: 0;
                a{
                    color: $whiteColor;
                    font-size: 32px;
                    font-weight: 700;
                    line-height: 42px;
                    text-transform: capitalize;
                    transition: 0.3s ease all;
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    display: inline;
                    background-image: linear-gradient(to bottom, #fff 0%, #fff 100%);
                    background-size: 0 2px;
                    background-repeat: no-repeat;
                    background-position: left 100%;
                    &:hover {
                        background-image: linear-gradient(to bottom, $whiteColor 0%, $whiteColor 100%);
                        background-size: 100% 2px!important;
                    }
                }
            }
            
        }
	}
}

.rs-portfolio-style4 {
    .rsportfolio-grid-style4 {
        &.portfolio-item {
            position: relative;
            border-radius: 2px;
            overflow: hidden;
            .portfolio-details {
                position: absolute;
                content: '';
                left: 0;
                bottom: -73px;
                width: auto;
                max-width: calc(100% - 20px);
                min-width: 300px;
                padding: 30px 30px 22px;
                background: $titleColor;
                border-radius: 0 2px 0 0;
                transition: $transition;
            }
            .p-category {
                font-size: 16px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
                padding-bottom: 20px;
                margin-bottom: 20px;
            }
            .p-title {
                font-size: 24px;
                margin: 0 0 4px;
                line-height: 1.34;
            }
            .p-category,
            .p-icon,
            .p-title {
                a {
                    color: #fff;
                    &:hover {
                        color: $primaryColor;
                    }
                }
            }
            .p-icon {
                a.prs_btn {
                    font-size: 16px;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 10px;
                    line-height: 28px;
                    transition: $transition;
                    em {
                        background: $primaryColor;
                        border-radius: 2px;
                        width: 30px;
                        height: 30px;
                        transition: inherit;
                        position: relative;
                        overflow: hidden;
                        svg {
                            width: 12px;
                            height: 12px;
                            path {
                                fill: #fff;
                                transition: inherit;
                            }
                        }
                        i {
                            font-size: 14px;
                            line-height: 1;
                            color: #fff;
                            transition: inherit;
                            &:before {
                                line-height: 1;
                            }
                        }
                        > * {
                            transition: inherit;
                            position: absolute;
                            left: 50%;
                            top: 50%;
                            transform: translate(-50%, -50%);
                            &:nth-child(1) {
                                left: -100%;
                            }
                        }
                    }
                    &:hover {
                        em {
                            > * {
                                &:nth-child(1) {
                                    left: 50%;
                                }
                                &:nth-child(2) {
                                    left: 150%;
                                }
                            }
                        }
                    }
                }
            }
            &:hover {
                .portfolio-details {
                    bottom: 0;
                }
            }
        }
    }
}

.rs-portfolio-style5 {
    .project-both-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        .portfolio-accordion {
            width: 626px;
            padding: 50px;
            border-radius: 20px;
            box-shadow: 2px 4px 20px rgba(0,0,0,0.05);
            background: #fff;
            margin-left: -190px;
            position: relative;
            z-index: 1;
            .accordion-item {
                border: none;
                margin-bottom: 24px;
                border-radius: 0;
                background: transparent;
                .accordion-header {
                    .portfolio-acc-btn {
                        cursor: pointer;
                        .tab-title {
                            margin-bottom: 0px;
                            position: relative;
                            background-image: linear-gradient(to bottom, $titleColor 0%, $titleColor 100%);
                            background-repeat: no-repeat !important;
                            background-position: left 100% !important;
                            display: inline-block;
                            transition: $transition;
                            background-size: 0 2px !important;
                        }
                        &.collapsed {
                            .tab-title {
                                background-size: 100% 2px !important;
                            }
                        }
                    }
                }
                .accordion-body {
                    padding: 15px 0 0 0;
                    .desc {
                        margin-bottom: 30px;
                    }
                    .p-icon {
                        a.prs_btn {
                            background-color: $primaryColor;
                            color: $titleColor;
                            font-size: 16px;
                            padding: 8px 22px;
                            border-radius: 7px;
                            overflow: hidden;
                            position: relative;
                            display: inline-block;
                            line-height: 26px;
                            transition: $transition;
                            &:hover {
                                background: $titleColor;
                                color: $primaryColor;
                            }
                        }
                    }
                }
                &:last-child {
                    margin-bottom: 0 !important;
                }
            }
        }
        .portfolio_acc_feature_image {
            width: 100%;
            position: relative;
            list-style: none;
            padding: 0;
            margin: 0;
            overflow: hidden;
            height: 840px;
            border-radius: 0 20px 20px 0;
            img {
                transition: $transition;
                width: 100%;
                height: 100%;
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                right: 0;
                object-fit: cover;
                object-position: center;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                &.active {
                    pointer-events: unset;
                    opacity: 1;
                    visibility: visible;
                }
            }
        }
    }
}