mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
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:
parent
21c9c04310
commit
7d81083d40
8 changed files with 112 additions and 57 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue