File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ The "new" datatracker uses Twitter Bootstrap for the UI.
2+
3+ Get familiar with http://getbootstrap.com/getting-started/ and use those
4+ UI elements instead of cooking up your own.
5+
6+ We have some site-wide customization applied to the bootstrap version we keep
7+ in bootstrap/ (from which the minified dist version is built); it modifies
8+ some stuff under less/
9+
10+ We also apply some additional custiomizations in static/css/ietf.css; we
11+ should eventually move that under bootstrap/less/ if possible. (ietf.css was
12+ what Lars used initially for customization with an unmodified bootstrap.)
13+
14+ Some ground rules:
15+
16+ * Think hard before tweaking the bootstrap CSS, it will make it harder to
17+ upgrade to future releases.
18+
19+ * No <style> tags in the HTML! Put CSS into the "morecss" block of a
20+ template instead.
21+
22+ * CSS that is used by multiple templates goes into static/css/ietf.css.
23+
24+ * Javascript that is only used on one template goes into the "js" block of
25+ that template.
26+
27+ * Javascript that is used by multiple templates goes into static/js/ietf.js.
28+
29+ * Every template includes jquery, so write jquery code and not plain Javascript.
30+ It's shorter and often faster.
31+
32+ * No CSS, HTML styling or Javascript in the python code!
33+
34+ * Templates that use jquery or bootstrap plugins include the css file in the
35+ "pagehead" block, and the Javascript in the "js" block.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments