forked from jchuajy/todo-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
124 lines (116 loc) · 2.88 KB
/
style.css
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@import url("https://fonts.googleapis.com/css?family=Lexend+Deca&display=swap");
body, html {
font-size: 16px;
width: 100%;
height: 100%;
background-color: #121214;
font-family: 'Lexend Deca', sans-serif; }
h1 {
color: #999;
margin-bottom: 20px;
font-size: 50px; }
.container {
margin: 0 auto;
background-color: #121214;
height: 100%;
width: 100%;
max-width: 700px;
padding: 20px; }
.add-item {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center; }
.add-item input {
flex-basis: 80%;
box-sizing: border-box;
font-size: 16px;
height: 45px;
padding-left: 10px;
font-family: 'Lexend Deca', sans-serif;
background: #444;
border: 3px solid transparent;
border-radius: 5px;
color: white;
outline: none; }
.add-item input:focus {
outline: none !important;
border: 3px solid #555; }
.add-item button {
flex-basis: 18%;
box-sizing: border-box;
font-size: 16px;
border-radius: 3px;
background: #555;
color: #888;
margin-left: 5px;
height: 45px;
text-align: center;
border: none;
font-family: 'Lexend Deca', sans-serif;
text-transform: uppercase;
letter-spacing: .5px;
outline: none;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2); }
.add-item button:hover {
background: #666; }
.list {
margin-top: 30px; }
.deleted-list {
margin-top: 50px; }
.deleted-list h2 {
color: #eee; }
.list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
background-color: white;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
border-bottom: 1px solid #eee;
padding: 15px; }
.list-item .bx {
font-size: 24px; }
.list-item .bx-checkbox, .list-item .bx-checkbox-checked {
flex-basis: 30px; }
.list-item .trash {
visibility: hidden;
flex-basis: 20px;
display: flex;
justify-content: center;
align-items: center; }
.list-item .trash .bx-trash-alt {
color: #ff4d4d;
font-size: 20px; }
.list-item .item-task {
flex-basis: 75%; }
.list-item .item-date {
flex-basis: 25%;
font-size: .7em;
opacity: .6;
vertical-align: baseline; }
.list-item.completed {
color: #999; }
.list-item:hover {
background-color: #eee; }
.list-item:hover .trash {
visibility: visible; }
.list-item:hover .trash:hover {
color: #ff4d4d; }
.list-item:first-child {
border-top-left-radius: 5px;
border-top-right-radius: 5px; }
.list-item:last-child {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px; }
.deleted-list .list-item {
background-color: #555;
border-bottom: 1px solid #444; }
.deleted-list .list-item .bx {
color: #333; }
.deleted-list .list-item .item-task {
color: #333; }
.deleted-list .list-item .item-date {
color: #333; }
.warning {
color: #ff4d4d; }