Подробное описание и демонстрация работы блока «Подпись для электронного письма» для сайта под номером №17 для библиотеки Bootstrap. Html и CSS код для реализации блока forms на сайте как на изображении.

html разметка и css стили для реализации блока «Подпись для электронного письма»
<div class="demo">
    <div class="container">
        <div class="row">
            <div class="col-lg-offset-3 col-lg-6 col-md-offset-2 col-md-8 col-sm-offset-1 col-sm-10">
                <div class="email-signature">
                    <div class="signature-details">
                        <h2 class="title">Williamson</h2>
                        <span class="post">web developer</span>
                    </div>
                    <ul class="signature-content">
                        <li><span class="fa fa-map-marker-alt"></span> #2021, Lorem Ipsum</li>
                        <li><span class="fa fa-envelope"></span> mail@example.com</li>
                        <li><span class="fa fa-mobile-alt"></span> 0987654321</li>
                        <li><span class="fa fa-globe"></span> yourwebsite.com</li>
                    </ul>
                    <div class="signature-img">
                        <img src="images/img-1.jpg" alt="">
                    </div>
                    <ul class="icon">
                        <li><a href=""><i class="fab fa-facebook-f"></i></a></li>
                        <li><a href=""><i class="fab fa-twitter"></i></a></li>
                        <li><a href=""><i class="fab fa-google-plus-g"></i></a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
:root{
    --white: #fff;
    --color_1: #FEAA01;
    --color_2: #E32E75;
}
.email-signature{
    background: linear-gradient(to right,#F16C59,var(--color_2),var(--color_2));
    font-family: 'Sarabun', sans-serif;
    padding: 13px 172px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.email-signature:before{
    content: "";
    background: var(--color_1);
    width: 100%;
    height: 35px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -2;
}
.email-signature .signature-details{
    color: var(--white);
    text-align: center;
    margin: 0 0 10px 80px;
    display: block;
    position: relative;
}
.email-signature .title{
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform:uppercase;
    margin: 0;
}
.email-signature .post{
    font-size: 14px;
    letter-spacing: 2px;
}
.email-signature .signature-content{
    text-align: right;
    line-height: 37px;
    padding: 8px 80px 7px 20px;
    margin: 0;
    list-style: none;
    border-top: 9px solid var(--white);
    border-bottom: 9px solid var(--white);
    position: relative;
}
.email-signature .signature-content li{
    color: var(--white);
    font-size: 15px;
    position: relative;
}
.email-signature .signature-content li span{
    color: var(--white);
    background: #FCAA02;
    line-height: 25px;
    text-align: center;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    transform: translateY(-50%);
    position: absolute;
    right: -35px;
    top: 50%;
}
.email-signature .signature-img{
    background-color: var(--color_2);
    width: 250px;
    height: 250px;
    padding: 10px;
    border: 10px solid var(--white);
    border-left: 10px solid transparent;
    overflow: hidden;
    border-radius: 50%;
    position: absolute;
    bottom: -1px;
    right: -35px;
    z-index: -1;
}
.email-signature .signature-img img{
    width: 100%;
    height: auto;
    border-radius: 50%;
}
.email-signature .icon{
    text-align: center;
    padding: 5px 0 5px;
    margin: 0;
    list-style: none;
}
.email-signature .icon li{
    display: inline-block;
    margin: 0 7px;
}
.email-signature .icon li a{
    color: var(--color_1);
    background: var(--white);
    font-size: 14px;
    text-align: center;
    line-height: 25px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease 0s;
}
.email-signature .icon li a:hover{
    color: var(--color_2);
    box-shadow: 0 0 10px var(--color_2);
}
@media screen and (max-width:576px){
    .email-signature{ padding: 210px 0 0; }
    .email-signature:before{ height: 45px; }
    .email-signature .signature-details{ margin: 0 0 10px; }
    .email-signature .signature-content{
        text-align: center;
        line-height: 60px;
        padding: 25px 0 0;
    }
    .email-signature .signature-content li span{
        transform: translateY(0) translateX(50%);
        right: 50%;
        top: -8px;
    }
    .email-signature .signature-img{
        width: 180px;
        height: 180px;
        padding: 10px;
        border-left: 10px solid var(--white);
        transform: translateX(50%);
        bottom: auto;
        top: 15px;
        right: 50%;
    }
    .email-signature .icon{
        text-align: center;
        padding: 10px 0;
    }
    .email-signature .icon li a{ margin: 0 5px; }
}


Теги:
0

Оставить своё мнение

Ваш e-mail не будет опубликован. Обязательные поля помечены *