Skip to content

Commit b14ecd9

Browse files
committed
Customized Bootstrap CSS to collapse navbar at 1000px.
1 parent dd64260 commit b14ecd9

11 files changed

+260
-1075
lines changed

pom.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<properties>
4040
<apache.commons.lang3.version>3.1</apache.commons.lang3.version>
4141
<apache.dbcp.version>1.2.2</apache.dbcp.version>
42-
<bootstrap.version>3.1.0</bootstrap.version>
42+
<bootstrap.version>3.1.1</bootstrap.version>
4343
<!-- <bootstrap.version>3.0.2</bootstrap.version> -->
4444
<commons.collections.version>3.2</commons.collections.version>
4545
<copyright.year>2014</copyright.year>
@@ -92,11 +92,11 @@
9292

9393
<dependencyManagement>
9494
<dependencies>
95-
<!-- <dependency> -->
96-
<!-- <groupId>org.webjars</groupId> -->
97-
<!-- <artifactId>bootstrap</artifactId> -->
98-
<!-- <version>${bootstrap.version}</version> -->
99-
<!-- </dependency> -->
95+
<dependency>
96+
<groupId>org.webjars</groupId>
97+
<artifactId>bootstrap</artifactId>
98+
<version>${bootstrap.version}</version>
99+
</dependency>
100100
</dependencies>
101101
</dependencyManagement>
102102

@@ -264,10 +264,10 @@
264264
<!-- <version>1.0.10</version> -->
265265
<!-- </dependency> -->
266266
<!-- Add Bootstrap via WebJars -->
267-
<!-- <dependency> -->
268-
<!-- <groupId>org.webjars</groupId> -->
269-
<!-- <artifactId>bootstrap</artifactId> -->
270-
<!-- </dependency> -->
267+
<dependency>
268+
<groupId>org.webjars</groupId>
269+
<artifactId>bootstrap</artifactId>
270+
</dependency>
271271
<dependency>
272272
<groupId>org.webjars</groupId>
273273
<artifactId>bootstrap-datepicker</artifactId>
@@ -286,7 +286,7 @@
286286
<dependency>
287287
<groupId>org.webjars</groupId>
288288
<artifactId>bootswatch-flatly</artifactId>
289-
<version>3.1.0</version>
289+
<version>3.1.1</version>
290290
</dependency>
291291
<dependency>
292292
<groupId>org.webjars</groupId>
19.8 KB
Binary file not shown.

src/main/webapp/fonts/glyphicons-halflings-regular.svg

Lines changed: 229 additions & 0 deletions
Loading
40.3 KB
Binary file not shown.
22.7 KB
Binary file not shown.

src/main/webapp/layouts/assets.xhtml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
<ui:composition>
66

77
<c:set var="base" value="#{request.contextPath}" />
8-
<!--
9-
<h:outputStylesheet library="webjars/bootswatch-flatly/3.1.0/css"
10-
name="bootstrap.min.css" />
11-
<h:outputStylesheet library="webjars/bootstrap-datepicker/1.3.0/css"
12-
name="datepicker.css" />
13-
<h:outputStylesheet library="webjars/font-awesome/4.0.3/css"
14-
name="font-awesome.min.css" />
15-
-->
16-
<h:outputStylesheet
17-
name="webjars/bootswatch-flatly/3.1.0/css/bootstrap.min.css" />
8+
<!-- This is a customized version of bootswatch-flatly. The navbar break to collapsed
9+
state would happen at 1000px -->
10+
<link rel="stylesheet" type="text/css" href="${base}/styles/bootstrap-flatly-custom-et.min.css" />
11+
12+
13+
<!-- <h:outputStylesheet -->
14+
<!-- name="webjars/bootstrap/3.1.1/css/bootstrap.min.css" /> -->
15+
<!-- <h:outputStylesheet -->
16+
<!-- name="webjars/bootswatch-flatly/3.1.1/css/bootstrap.min.css" /> -->
1817
<h:outputStylesheet
1918
name="webjars/bootstrap-datepicker/1.3.0/css/datepicker3.css" />
2019
<h:outputStylesheet
@@ -28,9 +27,11 @@
2827
<h:outputScript library="webjars/bootstrap-datepicker/1.3.0/js"
2928
name="bootstrap-datepicker.js" />
3029

31-
<h:outputScript library="webjars/bootswatch-flatly/3.1.0/js"
30+
<!-- <h:outputScript library="webjars/bootstrap/3.1.1/js" -->
31+
<!-- name="bootstrap.min.js" /> -->
32+
<h:outputScript library="webjars/bootswatch-flatly/3.1.1/js"
3233
name="bootstrap.min.js" />
33-
34+
3435
<h:outputScript library="webjars/jquery-cookie/1.4.0"
3536
name="jquery.cookie.js" />
3637
</ui:composition>

0 commit comments

Comments
 (0)