Skip to content

Commit 40699f5

Browse files
andreasjacobsen93Henni
authored andcommitted
Changed 'new note' to button (#108)
* Changed 'create note' to button Signed-off-by: Andreas Jacobsen <[email protected]> * Removed unneeded css * Removed whitespace
1 parent d744b8e commit 40699f5

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

css/notes.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,27 @@
55
*/
66

77
#app-navigation {
8-
padding-bottom: 0; /* no settings bar, so no padding needed */
8+
padding-bottom: 0; /* no settings bar, so no padding needed */
99
}
1010

11-
#app-navigation #note-add span {
12-
font-weight: bold;
13-
padding-left: 2px;
11+
#app-navigation #note-add #new-note-button {
12+
margin: 14px auto;
13+
width: calc(100% - 20px) !important;
14+
text-align: left;
15+
padding-left: 34px;
16+
background-position: 10px center;
1417
}
1518

1619
#app-navigation .active a {
1720
padding-right: 70px;
1821
}
1922

23+
.app-content-list-button {
24+
display: block;
25+
margin: 10px auto;
26+
padding: 10px;
27+
}
28+
2029
#app-navigation li .nav-entry {
2130
display: block;
2231
width: 100%;

templates/main.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@
4040
</span>
4141
</li>
4242
<!-- new note button -->
43-
<li id="note-add" ng-click="create()"
43+
<div id="note-add">
44+
<button class="icon-add app-content-list-button ng-binding" id="new-note-button" type="button" name="button" ng-click="create()"
4445
oc-click-focus="{ selector: '#app-content textarea' }">
45-
<a href='#'>+ <span><?php p($l->t('New note')); ?></span></a>
46-
</li>
46+
<?php p($l->t('New note')); ?>
47+
</button>
48+
</div>
4749
<!-- notes list -->
4850
<li ng-repeat="note in filteredNotes = (notes| and:search | orderBy:['-favorite','-modified'])"
4951
ng-class="{ active: note.id == route.noteId }">

0 commit comments

Comments
 (0)