forked from defconcepts/revue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
89 lines (88 loc) · 1.5 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<template>
<div id="app">
<header class="header">
<h1>Revue</h1>
</header>
<router-view></router-view>
</div>
</template>
<style>
body {
font: 14px/1.4 Helvetica, serif;
}
#app {
padding-top: 40px;
max-width: 900px;
margin: 0 auto;
}
.counter {
text-align: center;
border: none;
background-color: #fff;
font-size: 60px;
display: block;
width: 100%;
padding: 30px 0;
cursor: pointer;
}
.counter:hover {
background-color: #f9f9f9;
}
.add,.input-todo {
padding: 10px;
border: 1px solid #e2e2e2;
border-radius: 2px;
background-color: #fff;
font-size: 15px;
margin-right: 10px;
outline: none;
}
.input-todo:focus {
border-color: #ccc;
}
.add {
cursor: pointer;
}
.add:hover {
background-color: #f9f9f9;
border-color: #ccc;
}
.todos {
list-style: none;
padding-left: 0;
margin: 0;
border: 1px solid #e2e2e2;
margin-top: 20px;
border-radius: 2px;
}
.todo {
padding: 10px;
-webkit-user-select: none;
}
.todo:hover {
cursor: pointer;
}
.todo:nth-child(2n) {
background-color: #f9f9f9;
}
.todo.del {
text-decoration: line-through;
color: #C52727;
}
.read {
padding-top: 39px;
}
.read, .write {
float: left;
width: calc(50% - 20px);
padding-right: 20px;
}
.read .todos {
background-color: #f9f9f9;
color: #999;
border-color: #eee;
}
.read .todos .todo {
cursor: default;
}
</style>