-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* RTL for vanilla bootstrap is added * RTL support for bootswatch was added
- Loading branch information
Showing
159 changed files
with
307,396 additions
and
2,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...ava/de/agilecoders/wicket/core/markup/html/themes/bootstrap/BootstrapCssRtlReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package de.agilecoders.wicket.core.markup.html.themes.bootstrap; | ||
|
||
import de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference; | ||
|
||
/** | ||
* #### Description | ||
* | ||
* The RTL (right-to-left) bootstrap css. To update the bootstrap version add the following dependency to | ||
* your maven `dependencyManagement` section: | ||
* | ||
* ```xml | ||
* <dependency> | ||
* <groupId>org.webjars</groupId> | ||
* <artifactId>bootstrap</artifactId> | ||
* <version>your-bootstrap-version</version> | ||
* </dependency> | ||
* ``` | ||
* | ||
* The css resource will be loaded by wicket-webjars. | ||
* | ||
* @author Michael Haitz <michael.haitz@agilecoders.de> | ||
*/ | ||
public class BootstrapCssRtlReference extends WebjarsCssResourceReference { | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Singleton instance of this reference | ||
*/ | ||
private static final class Holder { | ||
private static final BootstrapCssRtlReference INSTANCE = new BootstrapCssRtlReference(); | ||
} | ||
|
||
/** | ||
* Normally you should not use this method, but use | ||
* {@link de.agilecoders.wicket.core.settings.IBootstrapSettings#getCssResourceReference()} ()} to prevent version conflicts. | ||
* | ||
* @return the single instance of the resource reference | ||
*/ | ||
public static BootstrapCssRtlReference instance() { | ||
return Holder.INSTANCE; | ||
} | ||
|
||
/** | ||
* Private constructor. | ||
*/ | ||
private BootstrapCssRtlReference() { | ||
super("/bootstrap/current/css/bootstrap.rtl.css"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.