gaad-widget
Version:
Display a banner-link to promote Global Accessibility Awareness Day (GAAD). Display the banner for a period before and after the day. Via unpkg CDN.
82 lines (80 loc) • 1.65 kB
CSS
/*!
gaad-widget.js | © 2019 Nick Freear | License: MIT.
https://github.com/nfreear/gaad-widget
*/
.gaad-widget-js {
background: url('./gaad-logo.svg') #00385e no-repeat 0.35rem center;
background-size: 3.8rem;
border: 3px solid #f8c958;
border-radius: 0.3rem;
color: #fff;
display: block;
font: normal 1rem 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.6;
margin: 0 0 1.5em;
padding: 0.8em;
padding-left: 4.1rem;
text-align: center;
}
.gaad-widget-js.black {
background-color: #333;
}
.gaad-widget-js.fontsize-1-em {
font-size: 1em;
}
.gaad-widget-js.fontsize-1-2em {
font-size: 1.2em;
}
.gaad-widget-js a {
border-bottom: 2px dotted transparent;
color: #fff;
text-decoration: underline;
}
.gaad-widget-js a:hover,
.gaad-widget-js a:focus {
border-color: #fff;
color: #eee;
}
.gaad-widget-js .w {
bottom: -8px;
display: block;
float: right;
position: relative;
right: -10px;
}
.gaad-widget-js .w a {
border: 1px solid transparent;
border-radius: 4px;
color: #ccc;
display: inline-block;
font-size: 1.1em;
padding: 0 1px;
text-decoration: none;
}
.gaad-widget-js .w a:hover,
.gaad-widget-js .w a:focus {
background: #123;
border-color: #fff;
color: #fff;
}
.gaad-widget-js .w .p {
border-bottom: 2px dotted #ccc;
padding: 1px 9px 0;
}
.gaad-widget-js .w .c {
padding-left: 5px;
}
.gaad-widget-js.put-hide .p {
display: none;
}
.gaad-widget-js.ical-hide .c {
display: none;
}
@media screen and (max-width: 736px) {
.gaad-widget-js.no-embed {
background-image: none;
border-width: 2px;
font-size: 1.05em;
padding: 0.5em;
}
}