Skip to content

Commit 539d8c9

Browse files
committed
Refactor CSS comments for clarity and consistency
1 parent 97d1213 commit 539d8c9

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

debugging/book-library/style.css

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/* Global styles */
1+
/* Global Styles */
22
body {
33
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
44
background: #f7f7fb;
55
margin: 0;
66
padding: 20px;
77
}
88

9-
/* Header */
9+
/* Header / Jumbotron */
1010
.jumbotron {
1111
background: linear-gradient(135deg, #3c8dbc, #5fa7d9);
1212
color: white;
@@ -15,22 +15,22 @@ body {
1515
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1616
}
1717

18-
/* Main Button */
19-
button.btn-info {
18+
/* "Add New Book" Button */
19+
.btn-info {
2020
background: #3c8dbc;
2121
border: none;
2222
padding: 10px 20px;
2323
border-radius: 8px;
2424
font-size: 16px;
25-
transition: 0.2s;
25+
transition: 0.2s ease;
2626
}
2727

28-
button.btn-info:hover {
28+
.btn-info:hover {
2929
background: #337aa5;
3030
transform: translateY(-2px);
3131
}
3232

33-
/* Form Collapse Panel */
33+
/* Form Collapse Box */
3434
#demo {
3535
background: white;
3636
margin-top: 20px;
@@ -57,7 +57,7 @@ button.btn-info:hover {
5757
padding: 10px 20px;
5858
border-radius: 10px;
5959
font-size: 16px;
60-
transition: 0.2s;
60+
transition: 0.2s ease;
6161
}
6262

6363
#submitBtn:hover {
@@ -74,13 +74,14 @@ button.btn-info:hover {
7474
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
7575
}
7676

77+
/* Table Header */
7778
.thead-dark th {
7879
background: #3c3f46;
7980
color: white;
8081
border: none;
8182
}
8283

83-
/* Table Row Hover Effect */
84+
/* Row Hover */
8485
.table tbody tr {
8586
transition: 0.2s;
8687
}
@@ -89,13 +90,13 @@ button.btn-info:hover {
8990
background: #f0f4ff;
9091
}
9192

92-
/* Buttons Inside Table */
93+
/* Buttons in Table */
9394
.btn-success,
9495
.btn-warning {
9596
font-size: 14px;
9697
padding: 6px 12px;
9798
border-radius: 8px;
98-
transition: 0.2s;
99+
transition: 0.2s ease;
99100
}
100101

101102
.btn-success:hover {
@@ -107,11 +108,3 @@ button.btn-info:hover {
107108
background: #d39e00;
108109
transform: scale(1.05);
109110
}
110-
.read-yes {
111-
background-color: #166629;
112-
color: white;
113-
}
114-
.read-no {
115-
background-color: #5c2329;
116-
color: white;
117-
}

0 commit comments

Comments
 (0)