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

html разметка и css стили для реализации блока «Подпись для электронного письма»
<div class="demo">
    <div class="container">
        <div class="row">
            <div class="col-md-offset-3 col-md-6 col-sm-offset-2 col-sm-8">
                <div class="email-signature">
                    <div class="signature-img">
                        <img src="images/img-1.jpg" alt="">
                    </div>
                    <div class="signature-details">
                        <h2 class="title">Kristina</h2>
                        <span class="post">Web Designer</span>
                    </div>
                    <ul class="signature-content">
                        <li><span>Phone:</span> 0987654321</li>
                        <li><span>Email:</span> #2021, Lorem Ipsum</li>
                        <li><span>Address:</span> mail@example.com</li>
                    </ul>
                    <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{ --main-color: #F83B71; }
.email-signature{
    background: linear-gradient(#f2f2f2,#dbdbdb,#eaeaea);
    font-family: 'Lato', sans-serif;
    padding: 20px 10px 20px 200px;
    overflow: hidden;
    position: relative;
}
.email-signature:before,
.email-signature:after{
    content: '';
    background: linear-gradient(to right, #555 49%, #666 50%);
    height: 100%;
    width: 30px;
    box-shadow: 0 0 10px #000;
    position: absolute;
    left: 80px;
    top: 0;
}
.email-signature:after{
    width: 34px;
    left: auto;
    right: 0;
}
.email-signature .signature-img{
    height: 130px;
    width: 130px;
    border: 4px solid var(--main-color);
    transform: translateY(-50%);
    position: absolute;
    left: 30px;
    top: 50%;
}
.email-signature .signature-img img{
    width: 100%;
    height: auto;
}
.email-signature .signature-details{ margin: 0 0 10px; }
.email-signature .title{
    color: var(--main-color);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 5px;
}
.email-signature .post{
    font-size: 17px;
    font-style: italic;
}
.email-signature .signature-content{
    color: #000;
    font-size: 15px;
    line-height: 25px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.email-signature .signature-content li span{ margin-right: 6px; }
.email-signature .icon{
    width: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
    transform: translateY(-50%);
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 1;
}
.email-signature .icon li a{
    color: #fff;
    background-color: transparent;
    font-size: 16px;
    text-align: center;
    line-height: 25px;
    height: 25px;
    width: 25px;
    margin: 15px 0;
    display: block;
    transition: all 0.3s ease 0s;
}
.email-signature .icon li a:hover{
    color:var(--main-color);
    background-color: #fff;
    text-decoration: none;
}
@media screen and (max-width:576px){
    .email-signature{ padding: 150px 20px 40px 20px; }
    .email-signature:before,
    .email-signature:after{
        background: linear-gradient(to bottom,#555 49%, #666 50%);
        width: 100%;
        height: 35px;
        top: 60px;
        left:0;
        transform: translateY(0);
    }
    .email-signature:after{
        top: auto;
        bottom: 0;
    }
    .email-signature .signature-img{
        top: 10px;
        left: 50%;
        transform: translateY(0) translateX(-50%);
    }
    .email-signature .signature-details,
    .email-signature .signature-content{
        text-align: center;
    }
    .email-signature .icon{
        text-align: center;
        width: 100%;
        height: 30px;
        transform: translateY(0);
        top: auto;
        bottom: 0;
    }
    .email-signature .icon li{ display: inline-block; }
    .email-signature .icon li a{ margin: 0 15px 0; }
}


Теги:
0

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

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