-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
111 lines (96 loc) · 2.55 KB
/
style.css
File metadata and controls
111 lines (96 loc) · 2.55 KB
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
body {
font-family: Arial, sans-serif;
background-image: url('purple-aesthetic-rain.gif');
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: #2a0a51;
color: rgb(255, 255, 255);
padding: 80px; /* Reduced padding for better fit */
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
.input-group {
display: flex; /* Use flexbox for inline layout */
justify-content: center; /* Center items vertically */
margin-bottom: 10px; /* Add space below the input group */
}
input {
flex: 1; /* Allow input to grow and take available space */
padding: 10px;
border: 1px solid #2fff00;
border-radius: 5px;
margin-right: 5px; /* Space between input and button */
}
/* Kotak input utama */
input[type="text"] {
width: 200px; /* Tentukan lebar tetap untuk input */
height: 30px; /* Tentukan tinggi awal */
max-width: 200px; /* Membatasi lebar maksimum */
resize: vertical; /* Izinkan perubahan ukuran hanya ke atas/bawah */
overflow-y: auto; /* Scroll jika teks terlalu panjang */
padding: 10px;
border: 1px solid #2fff00;
border-radius: 5px;
box-sizing: border-box; /* Agar padding tidak menambah ukuran total */
}
/* Kotak input saat mengedit */
li input[type="text"] {
width: 200px; /* Lebar tetap saat mengedit */
height: 30px; /* Tinggi default */
max-width: 200px; /* Batasi lebar */
resize: vertical; /* Izinkan perubahan ukuran hanya ke bawah */
overflow-y: auto; /* Scroll jika teks terlalu panjang */
padding: 5px;
}
button {
padding: 10px 15px;
background-color: #28a745;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #218838;
}
ul {
list-style-type: none;
padding: 0;
}
li {
background-color: #2a0a80;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
display: flex;
justify-content: space-between;
align-items: center;
}
li span {
flex: 1;
}
li button {
margin-left: 10px;
background-color: #007bff;
border: none;
color: white;
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
}
li button:hover {
background-color: #0056b3;
}
li button.delete {
background-color: #dc3545;
}
li button.delete:hover {
background-color: #c82333;
}