Implemented responsive tables, removed bootstrap

No need for all of bootstrap since we only need to style a few elements.

Implemented responsive table pattern from here:
https://css-tricks.com/responsive-data-tables/

Refs #16
This commit is contained in:
Simon Willison 2017-11-10 21:55:50 -08:00
commit 7d81083d40
8 changed files with 112 additions and 57 deletions

View file

@ -16,6 +16,7 @@ import time
from .utils import (
build_where_clauses,
CustomJSONEncoder,
escape_css_string,
InvalidSql,
path_from_row_pks,
path_with_added_args,
@ -443,6 +444,7 @@ class Datasette:
str(app_root / 'datasette' / 'templates')
])
)
self.jinja.add_env('escape_css_string', escape_css_string, 'filters')
app.add_route(IndexView.as_view(self), '/')
# TODO: /favicon.ico and /-/static/ deserve far-future cache expires
app.add_route(favicon, '/favicon.ico')