diff --git a/src/com/zestedesavoir/zestwriter/view/TableController.java b/src/com/zestedesavoir/zestwriter/view/TableController.java index 126cc6da7..082b3f187 100644 --- a/src/com/zestedesavoir/zestwriter/view/TableController.java +++ b/src/com/zestedesavoir/zestwriter/view/TableController.java @@ -98,9 +98,9 @@ public void handle(CellEditEvent t) { row.set(t.getTablePosition().getColumn(), t.getNewValue()); } }); - tc.setPrefWidth(100); + tc.setPrefWidth(150); TextField txf = new TextField(); - txf.setPrefWidth(100); + txf.setPrefWidth(150); txf.setPromptText("Colonne "+(tableView.getColumns().size()+1)); tc.setGraphic(txf); tableView.getColumns().addAll(tc); diff --git a/src/com/zestedesavoir/zestwriter/view/TableEditor.fxml b/src/com/zestedesavoir/zestwriter/view/TableEditor.fxml index f7bab3a20..a9058c870 100644 --- a/src/com/zestedesavoir/zestwriter/view/TableEditor.fxml +++ b/src/com/zestedesavoir/zestwriter/view/TableEditor.fxml @@ -1,11 +1,16 @@ + + + + - + +
diff --git a/src/com/zestedesavoir/zestwriter/view/content.css b/src/com/zestedesavoir/zestwriter/view/content.css index 5cc02c6d3..983b4e7e4 100644 --- a/src/com/zestedesavoir/zestwriter/view/content.css +++ b/src/com/zestedesavoir/zestwriter/view/content.css @@ -6,10 +6,11 @@ b, optgroup, strong { body { font-family: Merriweather,"Liberation Serif","Times New Roman",Times,Georgia,FreeSerif,serif; - font-size: 1rem; - line-height: 1.3em; + font-size: 0.9em; + line-height: 1.9em; background-color: #F7F7F7; } + h3{ font-size: 18px; margin-bottom: 12px; @@ -329,4 +330,40 @@ kbd { border-bottom-width: 3px; text-shadow: 0 1px 0 #fff; color: #5e551f; +} + +/* Tables */ + +.table-wrapper { + max-width: 100%; + overflow: auto; +} + +table { + margin: 15px 0; + border-top: 1px solid #ddd; +} +table { + border-collapse: collapse; + border-spacing: 0; +} + +table thead { + background: #ddd; + color: #084561; +} +table td:first-child, table th:first-child { + border-left: 1px solid #ddd; +} +table td, table th { + text-align: left; + padding: 5px 15px 5px 7px; + border-right: 1px solid #ddd; +} +table tbody tr:nth-child(2n+1) { + background: #f7f7f7; +} +table tbody tr { + background: #fdfdfd; + border-bottom: 1px solid #ddd; } \ No newline at end of file diff --git a/src/com/zestedesavoir/zestwriter/view/dark.css b/src/com/zestedesavoir/zestwriter/view/dark.css index b5dc6db9f..5db4e3873 100644 --- a/src/com/zestedesavoir/zestwriter/view/dark.css +++ b/src/com/zestedesavoir/zestwriter/view/dark.css @@ -9,4 +9,9 @@ .menu-bar { -fx-border-color: #DDD #DDD #F8AD32 #DDD; -fx-border-width: 0 0 3px 0; +} + +.table-row-cell { + -fx-cell-size: 80px; + -fx-padding: 20 5 20 5; } \ No newline at end of file