... | ... | @@ -36,38 +36,33 @@ Specific in the 'search' extension, with aim for re-usability: |
|
|
|
|
|
# Potential methods for implementation
|
|
|
|
|
|
1. Write our own CSS
|
|
|
## 1. Write our own CSS
|
|
|
|
|
|
Pro: full control over what is done
|
|
|
* Pro: full control over what is done
|
|
|
* Con: need to maintain a bunch of custom code to do fairly standard things
|
|
|
|
|
|
Con: need to maintain a bunch of custom code to do fairly standard things
|
|
|
## 2. Use a classless CSS framework
|
|
|
|
|
|
2. Use a classless CSS framework
|
|
|
A number of [classless CSS frameworks](https://github.com/dbohdan/classless-css) exist to allow you to use standard rules with your own selectors.
|
|
|
|
|
|
A number of [classless CSS frameworks](https://github.com/dbohdan/classless-css) exist to allow you to use standard rules with your own selectors.
|
|
|
* Pro: nearly complete control over what is done, ability to leave much of the existing markup in place
|
|
|
* Con: not a drop-in solution, so it will need to be maintained by occasionally updating rules, and developer documentation will need to be more extensive
|
|
|
|
|
|
Pro: nearly complete control over what is done, ability to leave much of the existing markup in place
|
|
|
## 3. Use a lighter-weight, modular framework to provide these things
|
|
|
|
|
|
Con: not a drop-in solution, so it will need to be maintained by occasionally updating rules, and developer documentation will need to be more extensive
|
|
|
[Bulma](https://bulma.io/documentation/overview/modular/) is an example of a framework that's much less heavy-handed and could do a lot of the above things.
|
|
|
|
|
|
3. Use a lighter-weight, modular framework to provide these things
|
|
|
* Pro: no need to maintain a custom framework
|
|
|
* Con: introduces yet another library
|
|
|
|
|
|
[Bulma](https://bulma.io/documentation/overview/modular/) is an example of a framework that's much less heavy-handed and could do a lot of the above things.
|
|
|
## 4. Generate a mini-Bootstrap to provide this things
|
|
|
|
|
|
Pro: no need to maintain a custom framework
|
|
|
https://getbootstrap.com/docs/3.4/customize/
|
|
|
|
|
|
Con: introduces yet another library
|
|
|
* Pro: no need to maintain a custom framework
|
|
|
* Con: need to maintain a customized subset of Bootstrap and manage how that interacts with the full Bootstrap that may appear in the Bootstrap extension and/or various site themes
|
|
|
|
|
|
4. Generate a mini-Bootstrap to provide this things
|
|
|
## 5. Require Bootstrap in more circumstances
|
|
|
|
|
|
https://getbootstrap.com/docs/3.4/customize/
|
|
|
|
|
|
Pro: no need to maintain a custom framework
|
|
|
|
|
|
Con: need to maintain a customized subset of Bootstrap and manage how that interacts with the full Bootstrap that may appear in the Bootstrap extension and/or various site themes
|
|
|
|
|
|
5. Require Bootstrap in more circumstances
|
|
|
|
|
|
Pro: no need to maintain a custom framework
|
|
|
|
|
|
Con: everyone has to deal with Bootstrap, including and especially those who so far have not wanted it, possibly for compatibility reasons |
|
|
\ No newline at end of file |
|
|
* Pro: no need to maintain a custom framework
|
|
|
* Con: everyone has to deal with Bootstrap, including and especially those who so far have not wanted it, possibly for compatibility reasons |
|
|
\ No newline at end of file |