Skip to content

Commit 0265b06

Browse files
committed
docs improvings
1 parent 01edb06 commit 0265b06

3 files changed

Lines changed: 40 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@ This plugin makes possible showing different numbers of items in your Bootstrap
1515

1616
##Usage
1717

18-
Firs of all, you'll want to include js and css files into your html code:
18+
First of all, you'll want to link the flexible-bootstrap-carousel.js and flexible-bootstrap-carousel.css files to your web-page:
1919

2020
```html
2121
<link rel="stylesheet" type="text/css" href="css/flexible-bootstrap-carousel.css" />
2222
<script type="text/javascript" src="js/flexible-bootstrap-carousel.js"></script>
2323
```
2424

25+
Instead of linking the flexible-bootstrap-carousel.css file to your web-page you can include in your main style sheet the next css rule:
26+
27+
```css
28+
29+
.carousel.flexible .items {
30+
display: none;
31+
}
32+
33+
```
34+
2535
To initiate the plugin you just need to add a *.flexible* class name to some Bootstrap carousel in your html code
2636

2737
```html

bower.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "flexible-bootstrap-carousel",
3+
"main": "flexible-bootstrap-carousel.js",
4+
"homepage": "https://github.com/DanDevG/flexible-bootstrap-carousel",
5+
"authors": [
6+
"Dan Dev <dan.dev.mail@gmail.com>"
7+
],
8+
"description": "Flexible Bootstrap Carousel plugin",
9+
"license": "MIT",
10+
"dependencies": {
11+
"jquery": ">=1.11.1",
12+
"bootstrap": ">=3.0.0"
13+
},
14+
"ignore": [
15+
"**/.*",
16+
"node_modules",
17+
"bower_components",
18+
"**/.*",
19+
"examples",
20+
"README.md",
21+
"*.log",
22+
".*",
23+
"LICENSE.md"
24+
]
25+
}

examples/css/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
padding: 20px 0 50px 0;
4545
}
4646

47+
.carousel.flexible .items {
48+
display: none;
49+
}
50+
4751
#complicated-content-carousel .carousel-control {
4852
position: absolute;
4953
top: -20px;

0 commit comments

Comments
 (0)