/
style.css
122 lines (107 loc) · 1.78 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
* {
box-sizing: border-box;
}
body {
font-family: sans-serif;
font-size: 16px;
padding: 0;
margin: 0;
}
/* Make mobile responsive */
.container{
width: 80%;
margin: auto;
overflow: hidden;
}
/* Remove margin and padding from the note */
ul {
margin: 0;
padding: 0;
}
h1, h3, p {
color: #330033;
text-align: center;
}
textarea {
margin: 0;
border-radius: 0;
width: 100%;
height: 75px;
padding: 10px;
float: left;
font-size: 16px;
resize: none;
}
.notespace {
margin-top: 20vh;
}
/* Style the button*/
.delete-button, .save-button{
padding: 10px;
background: #660066;
color: #ffffff;
text-align: center;
font-size: 16px;
cursor: pointer;
transition: 0.3s;
border-radius: 10px;
border: none;
margin-bottom: 10px;
width: 70px;
}
/* Move the buttons to center*/
.buttons {
text-align: center;
}
/* Style the notes */
ul li {
cursor: pointer;
position: relative;
padding: 12px 8px 12px 40px;
background: #eee;
font-size: 18px;
transition: 0.2s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Set all odd notes to a different color */
ul li:nth-child(odd){
background-color: #f9f9f9;
}
/* Style the close button */
.close {
position: absolute;
right: 0;
top: 0;
padding: 12px 16px 12px 16px;
}
/* Style the edit button */
.edit {
position: absolute;
right: 0;
top: 0;
padding: 12px 46px 12px 16px;
}
/* Style the changes saved message*/
#update {
margin-bottom: 10px;
color: green;
text-align: center;
padding: 12px;
border-color: green;
}
/* Style the changes saved message*/
#emptytext {
margin-bottom: 10px;
color: red;
text-align: center;
padding: 12px;
border-color: red;
}
@media(max-width: 768px){
textarea {
width: 100%;
}
}