-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbanners.sass
63 lines (54 loc) · 2.17 KB
/
banners.sass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* Created by Erik Boesen with FIRST Robotics Competition Team 1418.
Offered under the MIT License. */
@charset 'utf-8'
$blue: #0f4bcb
@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
width: 100%
overflow: scroll
.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: $blue
color: white
padding: 10px
white-space: normal
.banners img, .banner img
width: 75px
margin-bottom: 5px
.banners li:after, .banner:after
content: ''
position: absolute
display: block
border: 60px solid $blue
border-top-width: 5px
border-bottom: 20px transparent solid
top: 100%
left: 0
.banners li, .banner
-webkit-filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.1))
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, 0.1))
filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.1))
&:after
-webkit-filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.1))
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, 0.1))
filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.1))