Skip to content

Commit

Permalink
refactor: adjust styles
Browse files Browse the repository at this point in the history
  • Loading branch information
calebpitan committed Nov 23, 2024
1 parent 9adb75a commit ce20a6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/components/task/TaskList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,28 +221,25 @@ onMounted(() => {
}
.s-taskitem {
--s-taskitem-margin-inline: calc(-0.75 * var(--s-base-padding));
--s-taskitem-margin: calc(-0.75 * var(--s-base-padding));
--s-taskitem-ground: var(--s-surface-ground);
&:focus {
--s-taskitem-ground: var(--s-surface-elevated);
}
/* @media (prefers-color-scheme: dark) {
--s-taskitem-ground: #0f0f11;
&:focus {
--s-taskitem-ground: var(--s-surface-elevated);
}
} */
z-index: 1;
display: flex;
position: relative;
padding: 0 0 0 1.625rem;
margin-inline: calc(-0.75 * var(--s-base-padding));
margin-inline: var(--s-taskitem-margin);
background-color: var(--s-surface-middle);
background-color: var(--s-taskitem-ground);
border-radius: 10px;
margin-top: calc(var(--s-base-padding) + var(--s-taskitem-margin-inline));
margin-top: calc(var(--s-base-padding) + var(--s-taskitem-margin));
&:last-child {
margin-bottom: calc(var(--s-base-padding) + var(--s-taskitem-margin));
}
&[draggable='true'] {
background-color: var(--s-surface-middle);
Expand Down Expand Up @@ -283,6 +280,6 @@ onMounted(() => {
.list-leave-active {
position: absolute;
width: calc(100% - 2 * var(--s-taskitem-margin-inline));
width: calc(100% - 2 * var(--s-taskitem-margin));
}
</style>
1 change: 1 addition & 0 deletions src/components/task/TaskPresentation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ onMounted(() => void (!props.task.title && focusTitleEditableText()))
placeholder="Title"
:key="task.title"
:text="task.title"
:lines="1"
:multiline="false"
@blur="blurInitiator = $event.relatedTarget"
@focus.once="focusInitiator = $event.relatedTarget"
Expand Down

0 comments on commit ce20a6c

Please sign in to comment.