UNPKG

jquery-announce

Version:

A micro-plugin for displaying unobtrusive announcements.

86 lines (71 loc) 1.43 kB
/* jQuery.announce - A micro-plugin for displaying unobtrusive announcements. Developed by Cory LaViska for A Beautiful Site, LLC, 2017 Extended by Philp Mayer <philip.mayer@shadowisth.de>, 2019 Licensed under the MIT license: http://opensource.org/licenses/MIT */ .announce { position: fixed; z-index: 9999; width: 500px; left: calc(50% - 250px); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; text-align: center; padding: 20px; margin: 0; user-select: none; } .announce-bottom { top: calc(100% - 60px); bottom: 0; } .announce-center { top: calc(50% - 50px); left: calc(50% - 250px); } .announce-border { border-style: solid; border-width: 2px; } .announce-danger { color: white; background-color: #d9534f; } .announce-info { color: white; background-color: #5bc0de; } .announce-success { color: white; background-color: #5cb85c; } .announce-warning { color: white; background-color: #f0ad4e; } .announce-primary { color: white; background-color: #007bff; } .announce-secondary { color: white; background-color: #aaa; } .announce-light { color: black; background-color: #e6e6e6; } .announce-dark { color: white; background-color: #343a40; background-color: #292929; } @media screen and(max-width: 500px) { .announce { width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; left: 0; } }