Cleaned up code & fixed readme

This commit is contained in:
ErikBoesen
2016-08-13 22:27:12 -04:00
parent e0c8c881d0
commit e2147ead43
3 changed files with 7 additions and 11 deletions

View File

@@ -6,8 +6,8 @@ This framework allows for three different types of banners:
### Row ### Row
To define a group of banners: To define a group of banners:
1. Create a `<ul>` with the class of `banners`. Each `<li>` in the list will be turned into a banner. 1. Create a `<ul>` with the class of `banners`. Each `<li>` in the list will be turned into a banner.
2. OPTIONAL: Insert an `<img>` at the starting of each `<li>` with the `src` pointing to the `first.svg` file included in this repository. This will put a FIRST logo on the banner. This can be done for all three methods of declaring a banner. 2. OPTIONAL: Insert an `<img>` at the starting of each `<li>` with the `src` pointing to the `first.svg` file included in this repository. This will put a FIRST logo on the banner. This can be done for all three methods of declaring a banner.
3. Fill the rest of each `<li>` with the name of the award. Well, technically, you can put any content you want in it. But the name of the award is probably best. 3. Fill the rest of each `<li>` with the name of the award. Well, technically, you can put any content you want in it. But the name of the award is probably best.
### Individual banner ### Individual banner

View File

@@ -11,19 +11,12 @@
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
} }
.banners {
display: block;
height: 200px;
padding: 0;
}
.banner-parent { .banner-parent {
width: 100vw; width: 100%;
overflow: scroll; overflow: scroll;
} }
.banner-parent .banners { .banner-parent .banners {
width: auto; width: auto;
text-align: center;
margin: 0 auto;
white-space: nowrap; white-space: nowrap;
} }
.banners li, .banners li,
@@ -39,7 +32,7 @@
background: #0f4bcb; background: #0f4bcb;
color: white; color: white;
padding: 10px; padding: 10px;
white-space: normal; white-space: normal
} }
.banners img, .banners img,
.banner img { .banner img {
@@ -62,4 +55,7 @@
.banner, .banner,
.banner:after { .banner:after {
-webkit-filter: drop-shadow(0 10px 5px rgba(0, 0, 0, .1)); -webkit-filter: drop-shadow(0 10px 5px rgba(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, .1));
filter: drop-shadow(0 10px 5px rgba(0, 0, 0, .1));
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 44 KiB