From 58e284cbdf03c6ce125319cce2b97dbfd504b73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Wed, 27 May 2015 09:56:26 +0200 Subject: [PATCH] refactor edition-button --- css/main.css | 13 ++++++------- .../ascribe_table/table_item_selectable.js | 5 +++-- js/components/ascribe_table/table_item_subtable.js | 8 +++++--- .../ascribe_table/table_item_subtable_button.js | 2 +- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/css/main.css b/css/main.css index de85b7fc..9188fe42 100644 --- a/css/main.css +++ b/css/main.css @@ -16,7 +16,7 @@ .ascribe-table-header-column { display: table; - height:4em; + height:3em; } .ascribe-table-header-column > span { @@ -44,7 +44,7 @@ display: table; font-family: 'Source Sans Pro'; font-size: 1.2em; - height:4em; + height:3em; } .ascribe-table-item-column > * { @@ -52,11 +52,10 @@ vertical-align: middle; } -.btn-ascribe, .btn-ascribe:hover, .btn-ascribe:active, .btn-ascribe:focus { - background-color: rgba(2, 182, 163, 0.5); - border-color: rgba(2, 182, 163, 0.5); -} - .ascribe-table-item-selected { background-color: rgba(2, 182, 163, 0.5); +} + +.ascribe-table-item-selectable { + cursor: default; } \ No newline at end of file diff --git a/js/components/ascribe_table/table_item_selectable.js b/js/components/ascribe_table/table_item_selectable.js index bc508a7c..d62f8d04 100644 --- a/js/components/ascribe_table/table_item_selectable.js +++ b/js/components/ascribe_table/table_item_selectable.js @@ -11,7 +11,8 @@ let TableItemSelectable = React.createClass({ propTypes: { columnList: React.PropTypes.arrayOf(React.PropTypes.instanceOf(TableColumnContentModel)), columnContent: React.PropTypes.object, - parentId: React.PropTypes.number + parentId: React.PropTypes.number, + className: React.PropTypes.string }, selectItem() { @@ -25,7 +26,7 @@ let TableItemSelectable = React.createClass({ return ( diff --git a/js/components/ascribe_table/table_item_subtable.js b/js/components/ascribe_table/table_item_subtable.js index 00c456ce..9db1930c 100644 --- a/js/components/ascribe_table/table_item_subtable.js +++ b/js/components/ascribe_table/table_item_subtable.js @@ -74,6 +74,7 @@ let TableItemSubtable = React.createClass({ {this.state.editionList[this.props.columnContent.id].map((edition, i) => { return ( @@ -93,9 +94,10 @@ let TableItemSubtable = React.createClass({ -
- + columnWidth={12}> + +
+
diff --git a/js/components/ascribe_table/table_item_subtable_button.js b/js/components/ascribe_table/table_item_subtable_button.js index 7638dc13..8c5431d8 100644 --- a/js/components/ascribe_table/table_item_subtable_button.js +++ b/js/components/ascribe_table/table_item_subtable_button.js @@ -10,7 +10,7 @@ let TableItemSubtableButton = React.createClass({ render() { return ( -