Подробное описание и демонстрация работы блока «Подпись для электронного письма» для сайта под номером №11 для библиотеки 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-img"> <img src="images/img-1.jpg" alt=""> </div> <div class="signature-details"> <h3 class="title">Steve <span>Thomas</span></h3> <span class="post">Web Designer</span> </div> <ul class="signature-content"> <li><span class="fas fa-map-marker-alt"></span> #2021, Lorem Ipsum</li> <li><span class="fas fa-envelope"></span> mail@example.com</li> <li><span class="fas fa-phone"></span> +0987654321</li> <li><span class="fas fa-globe"></span> www.yourwebsite.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-instagram"></i></a></li> </ul> </div> </div> </div> </div> </div>
:root{ --color_0: #000; --color_1: #fff; --name: #ABB7C5; --shadow: rgba(0,0,0,0.5); --main_bg: linear-gradient(to right,#181623 13%, #3c3b43 21%); --before_bg: linear-gradient(to bottom, #f9da41,#fa771c); --after_bg: linear-gradient(to bottom, #a2eee1,#1b819a); --main_bg_res: linear-gradient(to top,#181623 13%, #3c3b43 21%); --before_bg_res: linear-gradient(to right, #f9da41,#fa771c); --after_bg_res: linear-gradient(to right, #a2eee1,#1b819a); } .email-signature{ background: var(--main_bg); font-family: 'Roboto', sans-serif; padding: 20px 185px 20px 100px; box-shadow: 0 0 10px var(--shadow); position: relative; } .email-signature:before, .email-signature:after{ content: ''; background: var(--before_bg); height: 100%; width: 100px; position: absolute; right:0; top: 0; } .email-signature:after{ background: var(--after_bg); width: 20px; right: 110px; } .email-signature .signature-img{ height: 140px; width: 140px; border: 7px solid var(--color_1); border-radius:25px; overflow: hidden; transform: translateY(-50%); position: absolute; right: 35px; top: 50%; z-index: 1; } .email-signature .signature-img img{ width: 100%; height: auto; } .email-signature .signature-details{ color: var(--name); font-size: 15px; margin-bottom: 20px; text-align: center; } .email-signature .title{ font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0; display: block; } .email-signature .title span{ font-weight: 400; } .email-signature .signature-content{ color: var(--color_1); font-size: 14px; line-height: 28px; padding: 0 0 0 20px; margin: 0; list-style: none; } .email-signature .signature-content li span{ margin-right: 6px; } .email-signature .icon{ background-color: var(--color_1); height: 100%; padding: 65px 30px; margin: 0; list-style: none; position: absolute; left: 0; top: 0; } .email-signature .icon li a{ color: var(--color_1); background-color: var(--name); font-size: 16px; text-align: center; line-height: 25px; height: 25px; width: 25px; margin-bottom: 10px; display: block; transition: all 0.3s ease 0s; } .email-signature .icon li a:hover{ color: var(--name); background-color: var(--color_0); text-decoration: none; box-shadow: 0 0 10px var(--shadow); } @media screen and (max-width:767px){ .email-signature{ background: var(--main_bg_res); text-align: center; padding: 175px 20px 70px 20px; } .email-signature .signature-img{ transform: translateY(0) translateX(-50%); top: 20px; left: 50%; } .email-signature:before, .email-signature:after{ background: var(--before_bg_res); width: 100%; height: 70px; transform: translateY(0); top:0; left: 0; } .email-signature:after{ background: var(--after_bg_res); height:20px; top: 85px; } .email-signature .signature-details{ margin: 0 0 5px 0; } .email-signature .signature-content{ padding: 0; } .email-signature .icon{ width: 100%; height: auto; padding: 15px 0; top: auto; bottom: 0; } .email-signature .icon li{ display: inline-block; } .email-signature .icon li a{ margin: 0 5px; } }