Upgrade to bootstrap 3.0
Let’s upgrade to bootstrap 3.0.2 with improved support for responsive design (responsive by default) and using a mobile-first approach.
See bootstrap 3 grids explainedMigration notes:
- Note that classes
grid-fluidandrow-fluidare dropped.- Furthermore the classes
spanXXare replaced by a range of newcol-SS-XXclasses whereSSdenotes the target-device, andXXthe number of columns.btnclasses now require a button-style class, e.g.,class="btn btn-default"for the default button
- I’ve constructed a regex for replacing existing
btn-classes that miss the button-style class. Eclipse replace on*.appfiles:
Containing text (case sensitive, regular expressions):"btn((\s+[^"]*(?<!.{0,30}btn-(default|primary|success|info|warning|danger|link).{0,30}))?")
click Replace… and use this as replacement:"btn btn-default$1
Be sure to check the changes in the Preview window.alert-error->alert-dangerbtn-error->btn-danger- To get bootstrap-style input fields on webdsl built-in input templates without adding
form-controlclass to each input, add this to the input style:input { padding: 2px 12px; font-size: 14px; line-height: 1.428571429; color: #555555; vertical-align: middle; background-color: #ffffff; background-image: none; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; }Elib changes
E-Lib TODOs:
E-Lib DONES:
Submitted by Elmer van Chastelet on 17 November 2013 at 15:24
- isolate into own repo
elib-bootrap3- upgrade icons to glyphicons
- Fix btn classes
- navbar style-classes
- add
gridColtemplates and letgridSpanuse these new templates
Issue Log
I think we should factor out the bootstrap library from elib. Also we should make keep the current version of elib-bootstrap. So we would get:
- elib-legacy: the current version of elib with boostrap 2 included
- elib-utils: the WebDSL utility functions
- elib-bootstrap2: the current version of the bootstrap library
- elib-bootstrap3: the new bootstrap library
That will make it easier to migrate individual projects and maintain them until the migration is done. This will also make it easier to combine the utilities with another UI library.
Bootstrap 3 looks good. Would be nice if we can keep the elib abstractions unchanged where possible, just changing the template definitions.
I’ll start with creating a new repo
elib-bootstrap3when I’m finished. We can then break up the current elib intoelib-utilsandelib-bootstrap2and renameelibtoelib-legacy
New repositories are created.
https://github.com/webdsl/elib-utils
https://github.com/webdsl/elib-bootstrap (master = Bootstrap 3.0.2)
https://github.com/webdsl/elib-bootstrap/tree/bootstrap-v2
https://github.com/webdsl/elib-legacy (renamed elib repo)
At some point we should integrate general utilities back into the standard library to avoid fragmentation, that way they will also be precompiled.
Changed it to keep bootstrap versions in a single repo. V2 can be found in branch.
Log in to post comments