Skip to content

Commit dc679f7

Browse files
author
Florian Kissling
committed
Add a "feature overview" section to the homepage.
While I'm not too happy with things as they currently are, it's a start. This also removes the icon from the "Download" button.
1 parent a2ff7a6 commit dc679f7

6 files changed

Lines changed: 89 additions & 23 deletions

File tree

docs/_sass/_jumbotron.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
padding-right: 0;
77

88
h1 {
9-
font-size: 36px;
109
color: #777;
10+
font-size: 36px;
11+
margin-top: 10px;
12+
}
13+
14+
.version {
15+
color: #999;
16+
font-size: 14px;
17+
font-weight: normal;
18+
margin-bottom: 30px;
1119
}
1220
}

docs/_sass/_s2-docs-home.scss

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
11
.notice-previous {
2-
padding: 15px 20px;
3-
color: #777;
4-
background-color: #FAFAFA;
2+
background: #f6f6f6;
3+
color: #666;
54
border-bottom: 1px solid #eee;
6-
a {
7-
font-weight: bold;
8-
}
5+
padding: 15px 20px;
96
}
107

118
.s2-docs-home .jumbotron {
129
margin-bottom: 0;
10+
color: #000;
11+
h1 {
12+
color: #000;
13+
margin-top: 20px;
14+
}
1315
}
1416

1517
#lead {
1618
text-align: center;
1719
max-width: 800px;
18-
margin: 0 auto 80px;
20+
margin: 0 auto 40px;
21+
}
22+
23+
.s2-docs-featurette {
24+
color: #777;
25+
text-align: center;
26+
padding: 15px 0;
27+
28+
.fa {
29+
font-size: 28px;
30+
color: #777;
31+
}
32+
33+
h4 {
34+
margin: 30px 0 15px;
35+
}
1936
}

docs/_sass/_s2-docs-layout.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
.s2-docs-container {
22
line-height: 1.6;
3-
//font-size: 16px;
43
}
54

65
section {
76
margin-bottom: 40px;
87
}
8+
9+
.page-header {
10+
padding-bottom: 19px;
11+
margin-bottom: 29px;
12+
}

docs/_sass/_s2-docs-nav.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
.navbar-nav > .active > a:hover,
1515
.navbar-nav > .active > a:focus {
1616
background-color: #f0f0f0;
17-
//background-color: #FFF;
1817
color: #000;
1918
}
2019

docs/css/s2-docs.scss

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
margin-bottom: 20px;
2020
}
2121

22-
23-
.version {
24-
color: #999;
25-
}
26-
27-
.page-header {
28-
padding-bottom: 19px;
29-
margin-bottom: 29px;
30-
}
31-
3222
/* Inline code within headings retain the heading's background-color */
3323
h2 code,
3424
h3 code,
@@ -48,3 +38,8 @@ pre {
4838
background-color: #f7f7f9;
4939
border: 1px solid #e1e1e8;
5040
}
41+
42+
.half-rule {
43+
width: 100px;
44+
margin: 40px auto;
45+
}

docs/index.html

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ <h1>Select2</h1>
1212
</p>
1313
<p>
1414
<a href="https://github.com/select2/select2/releases" class="btn btn-outline-inverse btn-lg">
15-
<i class="fa fa-arrow-down fa-lg"></i>
16-
Download
15+
Download Select2
1716
</a>
1817
</p>
1918
<p class="version">
20-
Version 4.0.0
19+
Currently v4.0.0</a>
2120
</p>
2221
</div>
2322
</main>
@@ -31,6 +30,50 @@ <h1>Select2</h1>
3130
options.
3231
</section>
3332

33+
<hr class="half-rule">
34+
35+
<div class="row s2-docs-featurette">
36+
<div class="col-sm-4">
37+
<i class="fa fa-language"></i>
38+
<h4>In your language</h4>
39+
<p>Select2 comes with support for <a href="#">RTL environments</a>, <a href="#">searching with diacritics</a> and <a href="#">over 40 languages</a> built-in.</p>
40+
</div>
41+
42+
<div class="col-sm-4">
43+
<i class="fa fa-paint-brush"></i>
44+
<h4>Fits in with your theme</h4>
45+
<p>Fully skinnable, CSS built with Sass and seamlessly fitting Bootstrap 3.</p>
46+
</div>
47+
48+
<div class="col-sm-4">
49+
<i class="fa fa-database"></i>
50+
<h4>Remote data support</h4>
51+
<p><a href="#">Using AJAX</a> you can efficiently search large lists of items.</p>
52+
</div>
53+
</div>
54+
55+
<div class="row s2-docs-featurette">
56+
<div class="col-sm-4">
57+
<i class="fa fa-plug"></i>
58+
<h4>Fully extensible</h4>
59+
<p>The <a href="#">plugin system</a> allows you to easily customize Select2 to work exactly how you want it to.</p>
60+
</div>
61+
62+
<div class="col-sm-4">
63+
<i class="fa fa-tag"></i>
64+
<h4>Dynamic item creation</h4>
65+
<p>Allow users to type in a new option and <a href="#">add it on the fly</a>.</p>
66+
</div>
67+
68+
<div class="col-sm-4">
69+
<i class="fa fa-plug"></i>
70+
<h4>Remote data support</h4>
71+
<p><a href="#">Using AJAX</a> you can efficiently search large lists of items.</p>
72+
</div>
73+
</div>
74+
75+
<hr class="half-rule">
76+
3477
<section id="getting-started">
3578
<h2>
3679
Getting started with Select2

0 commit comments

Comments
 (0)