Files
FRCBanner/banners.css

61 lines
1.6 KiB
CSS
Raw Normal View History

2016-08-13 19:23:18 -04:00
@font-face {
font-family: 'Adam';
src: url('adam.otf') format('opentype');
unicode-range: U+0000-00FF;
}
/* To be standard-compliant, this rule should be applied to *, but for compat it's restricted here. */
.banners,
.banners *,
.banner {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.banner-parent {
2016-08-13 22:27:12 -04:00
width: 100%;
2016-08-13 19:23:18 -04:00
overflow: scroll;
}
.banner-parent .banners {
width: auto;
white-space: nowrap;
}
.banners li,
.banner {
line-height: 1.2;
font-family: 'Adam', sans-serif;
text-align: center;
vertical-align: top;
display: inline-block;
margin: 0 3px 30px;
width: 120px;
position: relative;
background: #0f4bcb;
color: white;
padding: 10px;
2016-08-13 22:27:12 -04:00
white-space: normal
2016-08-13 19:23:18 -04:00
}
.banners img,
.banner img {
width: 75px;
margin-bottom: 5px;
}
.banners li:after,
.banner:after {
content: '';
position: absolute;
display: block;
border: 60px solid #0f4bcb;
border-top-width: 5px;
border-bottom: 20px transparent solid;
top: 100%;
left: 0;
}
.banners li,
.banners li:after,
.banner,
.banner:after {
-webkit-filter: drop-shadow(0 10px 5px rgba(0, 0, 0, .1));
2016-08-13 22:27:12 -04:00
filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feGaussianBlur in="SourceAlpha" stdDeviation="5" /><feOffset dx="1" dy="11" result="offsetblur" /><feFlood flood-color="rgba(0,0,0,0.1)" /><feComposite in2="offsetblur" operator="in" /><feMerge><feMergeNode /><feMergeNode in="SourceGraphic" /></feMerge></filter></svg>#filter');
-webkit-filter: drop-shadow(0 10px 5px rgba(0, 0, 0, .1));
filter: drop-shadow(0 10px 5px rgba(0, 0, 0, .1));
2016-08-13 19:23:18 -04:00
}