Skip to content

[fix] styles #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/app/todo/todo.component.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
@import "../../../node_modules/@dhx/trial-todolist/dist/todo.css";
/* import To Do List styles */
@import "@dhx/trial-todolist/dist/todo.css";

/* specify styles for initial page */
html,
body{
height: 100%;
padding: 0;
margin: 0;
background-color: #f7f7f7;
}

/* specify styles for To Do List and Toolbar container */
.component_container {
height: 100%;
max-width: 800px;
margin: 0 auto;
}

/* specify styles for To Do List container */
.widget {
height: calc(100% - 56px);
}
2 changes: 1 addition & 1 deletion src/app/todo/todo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
styleUrls: ["./todo.component.css"],
template: `<main class="component_container">
<div #toolbar_container></div>
<div #todo_container style="height: calc(100% - 56px);"></div>
<div #todo_container class="widget"></div>
</main>`
})
export class ToDoComponent implements OnInit, OnDestroy {
Expand Down