-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from kjmatsuda/topic/add-controls-plain-lists
- Loading branch information
Showing
11 changed files
with
1,032 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...ponents/OrgFile/components/AttributedString/components/ListPart/ListActionDrawer/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
|
||
import './stylesheet.css'; | ||
|
||
export default ({ | ||
subPartDataAndHandlers: { | ||
onEnterListTitleEditMode, | ||
onEnterListContentsEditMode, | ||
onAddNewListItem, | ||
onRemoveListItem, | ||
}, | ||
}) => { | ||
return ( | ||
<div className="list-action-drawer-container"> | ||
<div className="list-action-drawer__row"> | ||
<div className="list-action-drawer__edit-icon-container" onClick={onEnterListTitleEditMode}> | ||
<i className="fas fa-pencil-alt fa-lg" /> | ||
</div> | ||
|
||
<span className="list-action-drawer__separator" /> | ||
|
||
<div | ||
className="list-action-drawer__edit-icon-container" | ||
onClick={onEnterListContentsEditMode} | ||
> | ||
<i className="fas fa-edit fa-lg" /> | ||
</div> | ||
|
||
<span className="list-action-drawer__separator" /> | ||
|
||
<div className="list-action-drawer__edit-icon-container" onClick={onAddNewListItem}> | ||
<i className="fas fa-plus fa-lg" /> | ||
</div> | ||
|
||
<span className="list-action-drawer__separator" /> | ||
|
||
<div className="list-action-drawer__edit-icon-container" onClick={onRemoveListItem}> | ||
<i className="fas fa-times fa-lg" /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
29 changes: 29 additions & 0 deletions
29
...s/OrgFile/components/AttributedString/components/ListPart/ListActionDrawer/stylesheet.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.list-action-drawer-container { | ||
color: lightgray; | ||
|
||
padding-bottom: 10px; | ||
|
||
padding-right: 20px; | ||
} | ||
|
||
.list-action-drawer__row { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-around; | ||
|
||
padding-top: 10px; | ||
} | ||
|
||
.list-action-drawer__edit-icon-container { | ||
position: relative; | ||
} | ||
|
||
.list-action-drawer__separator { | ||
background-color: lightgray; | ||
|
||
height: 15px; | ||
width: 1px; | ||
|
||
margin-left: 10px; | ||
margin-right: 10px; | ||
} |
Oops, something went wrong.