Skip to content

Commit

Permalink
Stylished (issue #133).
Browse files Browse the repository at this point in the history
  • Loading branch information
gigafiga21 committed Feb 22, 2018
1 parent d65ad0d commit 967adac
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion public/build/bundle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/build/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/javascripts/aside.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default class Aside {
createNoteDOM(noteData.title, {id: noteData._id});
return;
} else {
codex.notes.searcher.pushData(noteData);
codex.notes.searcher.pushData({title: noteData.title, _id: noteData._id});
}

let notesMenu;
Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/searcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class Searcher {

/**
* Remove note data from array where search will be done
* @param {Object} data - data to remove from the dataset
* @param {Object} dataId - the id of data to remove from the dataset
*/
removeData( dataId ) {
let existingDataIndex = this.dataset.length;
Expand Down
10 changes: 10 additions & 0 deletions public/stylesheets/components/searcher.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@
display: none;
}

&__container {
margin-bottom: 15px;
}

&__input {
padding: 5px 0px;
border: none;
border-bottom: 2px solid rgba(130,156,176,.42);
color: #63758c;
background: none;
}

&__input:focus {
color: white;
border-bottom-color: white;
outline: none;
}

Expand Down
11 changes: 6 additions & 5 deletions src/views/aside.pug
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@

.aside-swiper__left

//-
//- Search
//-
.searcher__container
input.searcher__input(value="Search")

//-
//- Header
//-
span.add-note-button(name="js-new-note-button")
include ../../public/svg/pencil.svg
| New note

//-
//- Search
//-
input.searcher__input.add-note-button(value="Search")

//-
//- Scrollable zone
Expand Down

0 comments on commit 967adac

Please sign in to comment.