UNPKG

withfront

Version:

Tools for frontend development especially with Bootstrap 3.x and jQuery 3.x also FontAwesome, jsCookie and more

185 lines (168 loc) 3.79 kB
/** * Bottom Positioned Buttons * <div class="bottom-buttons vertical"> ... </div> * */ .bottom-buttons { position: fixed; bottom: 20px; } .bottom-buttons.vertical { right: 30px; text-align: right; } .bottom-buttons.vertical .b-btn { margin-bottom: 10px; float: none; } .bottom-buttons.vertical .b-btn:nth-last-child(1) { margin-bottom: 0px; } .bottom-buttons.vertical .b-btn:after { clear: both; float: none; } .bottom-buttons.horizontal { right: 30px; } .bottom-buttons.horizontal .b-btn { margin-right: 10px; float: left; } @media (max-width: 767px) { .bottom-buttons.vertical { right: 10px; } .bottom-buttons.horizontal { right: 10px; } } .b-btn_circle { width: 60px; height: 60px; border-radius: 50%; display: block; padding: 14px 0; box-shadow: 0px 2px 25px -15px #000000; position: relative; text-align: center; /*vertical-align: middle;*/ z-index: 9999; } .b-btn_circle::before { border-radius: 50%; /* Position the pseudo-element. */ content: ' '; position: absolute; top: 0; right: 0; bottom: 0; left: 0; /* Create the box shadow at expanded size. */ box-shadow: 0px 2px 45px -15px #000000; /* Hidden by default. */ opacity: 0; transition: opacity 500ms; } .b-btn_circle:hover::before { /* Show the pseudo-element on hover. */ opacity: 1; } /** * Custom WhatsApp Btn .b-btn_whatsapp */ .b-btn_whatsapp { background-color: #4dc247; color: #FFFFFF; padding: 5px 0 0 1px; } .b-btn_whatsapp i { font-size: 47px; } .b-btn_whatsapp:hover { color: #FFFFFF; } /** * Override Facebook Messenger btn */ .fb_dialog { display: inline-block !important; position: static !important; } /** go2top {js: LayoutGo2Top.init()} * <div class="bottom-buttons vertical"> ... <div class="go2top hidden-xs text-center"> <i class="fa fa-chevron-circle-up"></i> <p class="hidden-sm">Torna su</p> </div> </div> * */ .bottom-buttons .go2top { bottom: 0px; /* for old retro-compatibility =< v1.4.9 */ cursor: pointer; display: inline-block; position: relative !important; /* for old retro-compatibility =< v1.4.9 */ right: 2px; /* for old retro-compatibility =< v1.4.9 */ margin-top: 20px; } .bottom-buttons .go2top > i { color: #CED1D3; font-size: 43px; opacity: 0.5; } @media (max-width: 769px) { /* go2top */ .bottom-buttons .go2top > i { color: rgba(110, 179, 187, 0.8); font-size: 34px; } .b-btn_circle { width: 44px !important; height: 44px !important; padding: 10px 0 !important; } .b-btn_circle i { font-size: 1em !important; } .bottom-buttons .go2top { margin-top: 10px; right: 4px; } .bottom-buttons .go2top > i { font-size: 33px !important; } .bottom-buttons .go2top > p { font-size: 11px !important; } } @media (max-width: 480px) { /* go2top */ .bottom-buttons .go2top > i { color: rgba(110, 179, 187, 0.8); font-size: 34px; } .b-btn_circle { width: 40px !important; height: 40px !important; padding: 8px 0 !important; } .b-btn_circle i { font-size: .8em !important; } .bottom-buttons .go2top { margin-top: 0px; right: 2px; } .bottom-buttons .go2top > i { font-size: 33px !important; } .bottom-buttons .go2top > p { font-size: 11px !important; } }