Skip to content
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
9 changes: 9 additions & 0 deletions css/base/input.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.add-input {
-moz-appearance: textfield-multiline;
-webkit-appearance: textarea;
font-family: "Helvetica-Neue", serif;
font-size: 24pt;
border: 0;
flex: 1;
outline: none;
}
16 changes: 16 additions & 0 deletions css/base/remove-button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.remove-button {
background:url(../../images/icons/close.png);
background-repeat: no-repeat;
float: right;
width: 18px;
height: 18px;
margin: 15px 10px;
border: 0;
align-self: flex-end;
visibility: hidden;
outline: none;
}

.todo-item:hover > .remove-button {
visibility: visible;
}
110 changes: 110 additions & 0 deletions css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
@font-face {
font-family: Helvetica-Neue;
src: url(../fonts/HelveticaNeue.ttf);
}

@font-face {
font-family: Helvetica-Neue-UltraLight;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это платные шрифты, их не надо подключать

src: url(../fonts/HelveticaNeue-UltraLight.otf);
}

body {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему все эти стили в fonts.css

background-color: #F5F5F5
}

.todo-header {
text-align: center;
}

.todo-title {
font-family: "Helvetica-Neue";
font-size: 60pt;
margin :0 auto;
}

.todo-main {
background: #FFFFFF;
border: 1px solid #E3E3FF;
width: 560px;
margin: 0 auto;
}

.todo-add {
display: flex;
border-bottom: 1px solid #E3E3FF;
}

.todo-add_select-all {
background:url(../images/icons/select-all.png);
background-repeat: no-repeat;
width:24px;
height:12px;
border: 0;
margin: 24px 18px;
}

.todo-item {
display: flex;
min-height: 60px;
border-bottom: 1px solid #E3E3FF;
}

.todo-item:hover {
background: #F5F5F5;
}

.todo-item:hover > .todo-item_remove {
visibility: visible;
}

.todo-item_text {
border: 0;
font-family: "Helvetica-Neue";
flex: 1 0;
font-size: 24pt;
resize: none;
padding-left: 10px;
padding-top: 12px;
outline: none;
word-break: break-all;
max-width: 600px;
}

.todo-action-bar {
display: flex;
height: 40px;
}

.todo-action-bar_counter {
font-family: "Helvetica-Neue", serif;
float: left;
margin: 10px 10px;
font-size: 14pt;
}

.todos_filters {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Идентично проблеме ok-technopolis/Shvedov_Oleg#4 (comment)

flex: 1 0;
overflow: hidden;
text-align: center;
}

.todos_filter {
text-align: center;
font-family: "Helvetica-Neue", serif;
font-size: 14pt;
border: 0;
background: #FFFFFF;
margin: 10px 6px;
}

.todos_filter.__active {
border: 1px solid #ebdfdf;
border-radius: 2px;
}

.todo-action-bar_clear-completed {
float: right;
font-family: "Helvetica-Neue", serif;
border: 0;
background: #FFFFFF;
}
18 changes: 18 additions & 0 deletions css/project/todo/todo-action-bar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.todo-action-bar {
display: flex;
height: 40px;
}

.todo-action-bar_counter {
font-family: "Helvetica-Neue", serif;
float: left;
margin: 10px 10px;
font-size: 14pt;
}

.todo-action-bar_clear-completed {
float: right;
font-family: "Helvetica-Neue", serif;
border: 0;
background: #FFFFFF;
}
14 changes: 14 additions & 0 deletions css/project/todo/todo-add.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.todo-add {
display: flex;
border-bottom: 1px solid #E3E3FF;
}

.todo-add_select-all {
background:url(../../../images/icons/select-all.png);
background-repeat: no-repeat;
width:24px;
height:12px;
border: 0;
margin: 24px 18px;
outline: none;
}
4 changes: 4 additions & 0 deletions css/project/todo/todo-header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.todo-header {
text-align: center;
}

22 changes: 22 additions & 0 deletions css/project/todo/todo-item.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.todo-item {
display: flex;
min-height: 60px;
border-bottom: 1px solid #E3E3FF;
}

.todo-item:hover {
background: #F5F5F5;
}

.todo-item_text {
border: 0;
font-family: "Helvetica-Neue";
flex: 1 0;
font-size: 24pt;
resize: none;
padding-left: 10px;
padding-top: 12px;
outline: none;
word-break: break-all;
max-width: 600px;
}
6 changes: 6 additions & 0 deletions css/project/todo/todo-main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.todo-main {
background: #FFFFFF;
border: 1px solid #E3E3FF;
width: 560px;
margin: 0 auto;
}
6 changes: 6 additions & 0 deletions css/project/todo/todo-title.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.todo-title {
font-family: "Helvetica-Neue";
font-size: 60pt;
margin :0 auto;
}

20 changes: 20 additions & 0 deletions css/project/todo/todos_filters.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.todos_filters {
flex: 1 0;
overflow: hidden;
text-align: center;
}

.todos_filter {
text-align: center;
font-family: "Helvetica-Neue", serif;
font-size: 14pt;
border: 0;
background: #FFFFFF;
margin: 10px 6px;
outline: none;
}

.todos_filter.__active {
border: 1px solid #ebdfdf;
border-radius: 2px;
}
14 changes: 14 additions & 0 deletions css/todo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@font-face {
font-family: Helvetica-Neue;
src: url(../fonts/HelveticaNeue.ttf);
}

@font-face {
font-family: Helvetica-Neue-UltraLight;
src: url(../fonts/HelveticaNeue-UltraLight.otf);
}

body {
background-color: #F5F5F5
}

Binary file added fonts/HelveticaNeue-Light.otf
Binary file not shown.
Binary file added fonts/HelveticaNeue-UltraLight.otf
Binary file not shown.
Binary file added fonts/HelveticaNeue.ttf
Binary file not shown.
26 changes: 17 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" type="text/css" href="css/fonts.css"/>
<link rel="stylesheet" type="text/css" href="css/base/remove-button.css"/>
<link rel="stylesheet" type="text/css" href="css/base/input.css"/>
<link rel="stylesheet" type="text/css" href="css/project/todo/todo-action-bar.css"/>
<link rel="stylesheet" type="text/css" href="css/project/todo/todo-item.css"/>
<link rel="stylesheet" type="text/css" href="css/project/todo/todo-add.css"/>
<link rel="stylesheet" type="text/css" href="css/project/todo/todos_filters.css"/>

</head>
<body>
<div class="todo-header">
Expand All @@ -12,29 +20,29 @@ <h1 class="todo-title">todos</h1>
<div class="todo-main">
<div class="todo-add">
<button class="todo-add_select-all" aria-label="Mark all as completed"></button>
<input class="todo-add_input" placeholder="What needs to be done?" aria-label="Todo add field"/>
<input class="add-input" placeholder="What needs to be done?" aria-label="Todo add field"/>
</div>

<div class="todo-list">
<div class="todo-item">
<input type="checkbox" class="todo-item_mark" aria-label="Mark as completed"/>
<textarea class="todo-item_text">HTML</textarea>
<button class="todo-item_remove" aria-label="Remove todo"></button>
<div contenteditable="true" class="todo-item_text">HTML</div>
<button class="remove-button" aria-label="Remove todo"></button>
</div>
<div class="todo-item __ready">
<input type="checkbox" class="todo-item_mark" aria-label="Mark as not completed"/>
<textarea class="todo-item_text">CSS</textarea>
<button class="todo-item_remove" aria-label="Remove todo"></button>
<div contenteditable="true" class="todo-item_text">CSS</div>
<button class="remove-button" aria-label="Remove todo"></button>
</div>
<div class="todo-item">
<input type="checkbox" class="todo-item_mark" aria-label="Mark as completed"/>
<textarea class="todo-item_text">JS</textarea>
<button class="todo-item_remove" aria-label="Remove todo"></button>
<div contenteditable="true" class="todo-item_text">JS</div>
<button class="remove-button" aria-label="Remove todo"></button>
</div>
<div class="todo-item">
<input type="checkbox" class="todo-item_mark" aria-label="Mark as completed"/>
<textarea class="todo-item_text">JS Tools</textarea>
<button class="todo-item_remove" aria-label="Remove todo"></button>
<div contenteditable="true" class="todo-item_text">JS Tools</div>
<button class="remove-button" aria-label="Remove todo"></button>
</div>
</div>
<div class="todo-action-bar">
Expand Down