Skip to content

Commit b276a04

Browse files
Merge 17ef2da into 664563b
2 parents 664563b + 17ef2da commit b276a04

File tree

8 files changed

+512
-496
lines changed

8 files changed

+512
-496
lines changed

css/src/style.scss

Lines changed: 41 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
@include icon-black-white('circle', 'tasks', 1);
2+
@include icon-black-white('reminder', 'tasks', 1);
3+
@include icon-black-white('repeat', 'tasks', 1);
4+
@include icon-black-white('note', 'tasks', 1);
5+
@include icon-black-white('pinned', 'tasks', 1);
6+
@include icon-black-white('pinned-off', 'tasks', 1);
27

38
@include icon-black-white('list', 'tasks', 1);
49
@include icon-black-white('list--up', 'tasks', 1);
@@ -782,17 +787,46 @@ $blue_due: #4271a6; // due dates and low importance
782787
}
783788

784789
/**
785-
* rules for app-sidebar
786-
*/
790+
* Rules for app-sidebar
791+
*/
787792

788-
#app-sidebar {
789-
.flex-container {
793+
.app-sidebar {
794+
.app-sidebar-header__desc .detail-checkbox {
790795
display: flex;
791-
flex-direction: column;
792-
height: 100%;
796+
height: 44px;
797+
width: 44px;
798+
justify-content: center;
799+
800+
input[type='checkbox'].checkbox + label {
801+
display: flex;
802+
align-items: center;
803+
804+
&::before {
805+
margin: 0;
806+
border-width: 2px;
807+
border-radius: var(--border-radius);
808+
border-color: var(--color-border-dark);
809+
}
810+
811+
&:hover {
812+
border-color: var(--color-border-dark);
813+
}
814+
815+
&.priority-high::before {
816+
border-color: $red_overdue;
817+
}
818+
819+
&.priority-medium::before {
820+
border-color: $yellow;
821+
}
822+
823+
&.priority-low::before {
824+
border-color: $blue_due;
825+
}
826+
}
793827
}
794828

795-
.content-wrapper {
829+
section {
796830
padding: 0;
797831
box-sizing: border-box;
798832
height: 100%;
@@ -827,146 +861,6 @@ $blue_due: #4271a6; // due dates and low importance
827861
}
828862
}
829863

830-
.title {
831-
flex: 0 0 auto;
832-
display: flex;
833-
align-items: center;
834-
background-color: var(--color-background-hover);
835-
border-bottom: 1px solid var(--color-border-dark);
836-
font-size: 16px;
837-
font-weight: bold;
838-
min-height: 50px;
839-
word-wrap: break-word;
840-
841-
&.editing {
842-
.title-text {
843-
display: none !important;
844-
}
845-
846-
.expandable-container {
847-
display: inline-block !important;
848-
}
849-
}
850-
851-
.detail-checkbox {
852-
padding: 11px 10px;
853-
padding-right: 7px;
854-
855-
input[type='checkbox'].checkbox + label {
856-
&::before {
857-
border-width: 2px;
858-
border-radius: var(--border-radius);
859-
border-color: var(--color-border-dark);
860-
}
861-
862-
&:hover {
863-
border-color: var(--color-border-dark);
864-
}
865-
866-
&.priority-high::before {
867-
border-color: $red_overdue;
868-
}
869-
870-
&.priority-medium::before {
871-
border-color: $yellow;
872-
}
873-
874-
&.priority-low::before {
875-
border-color: $blue_due;
876-
}
877-
}
878-
}
879-
880-
.title-wrapper {
881-
flex-grow: 1;
882-
883-
.title-text,
884-
.expandable-container {
885-
max-height: 110px;
886-
overflow-y: hidden;
887-
margin: 13px 0;
888-
min-height: 24px;
889-
width: 100%;
890-
padding: 0 6px;
891-
}
892-
893-
.title-text {
894-
cursor: text;
895-
display: inline-block;
896-
line-height: 22px;
897-
// this border is to adjust the size of the div to the size
898-
// of the input field for editing the title
899-
// (setting a padding always led to a small flickering)
900-
border: 1px solid transparent;
901-
902-
&.strike-through {
903-
text-decoration: line-through;
904-
}
905-
}
906-
907-
.expandable-container {
908-
border: 1px solid #a0a0a0;
909-
display: none;
910-
line-height: 24px;
911-
912-
.expandingArea {
913-
position: relative;
914-
}
915-
}
916-
917-
textarea,
918-
pre {
919-
box-shadow: none;
920-
font-size: 16px;
921-
font-weight: bold;
922-
line-height: 22px;
923-
min-height: 22px;
924-
background: none repeat scroll 0 0 transparent;
925-
border: medium none;
926-
padding: 0;
927-
white-space: pre-wrap;
928-
word-wrap: break-word;
929-
}
930-
931-
textarea {
932-
margin: 0;
933-
border-radius: 0;
934-
height: 100%;
935-
left: 0;
936-
overflow: hidden;
937-
position: absolute;
938-
resize: none;
939-
top: 0;
940-
width: 100%;
941-
}
942-
943-
pre {
944-
border: 0 none !important;
945-
display: block;
946-
margin: 0;
947-
outline: 0 none;
948-
padding: 0 !important;
949-
visibility: hidden;
950-
}
951-
}
952-
953-
.status-display {
954-
margin: 17px 6px;
955-
min-width: 16px;
956-
}
957-
958-
button {
959-
padding: 10px;
960-
display: flex;
961-
align-items: center;
962-
justify-content: center;
963-
964-
.icon {
965-
transform: scale(1.5);
966-
}
967-
}
968-
}
969-
970864
.body {
971865
flex: 1 1 auto;
972866
overflow-y: auto;

img/note.svg

Lines changed: 1 addition & 0 deletions
Loading

img/pinned-off.svg

Lines changed: 1 addition & 0 deletions
Loading

img/pinned.svg

Lines changed: 1 addition & 0 deletions
Loading

img/reminder.svg

Lines changed: 1 addition & 0 deletions
Loading

img/repeat.svg

Lines changed: 1 addition & 0 deletions
Loading

src/App.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
2727
<RouterView />
2828
</AppContent>
2929

30-
<div id="app-sidebar" :class="{disappear: $route.params.taskId === undefined}">
31-
<RouterView name="details" />
32-
</div>
30+
<RouterView name="details" />
3331
</Content>
3432
</template>
3533

@@ -106,7 +104,7 @@ export default {
106104
if (!($event.target.closest('.reactive') || $event.target.classList.contains('reactive')
107105
|| $event.target.classList.contains('mx-btn') // For some reason the click-outside handlers fire for the datepicker month and year buttons!?
108106
)
109-
&& !$event.target.closest('#app-sidebar') && this.$route.params.taskId) {
107+
&& !$event.target.closest('.app-sidebar') && this.$route.params.taskId) {
110108
if (this.$route.params.calendarId) {
111109
this.$router.push({ name: 'calendars', params: { calendarId: this.$route.params.calendarId } })
112110
} else {

0 commit comments

Comments
 (0)