-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplantStyle.css
168 lines (144 loc) · 2.6 KB
/
plantStyle.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* plantStyle.css */
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body Styling */
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
}
/* Navbar Styling */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: rgba(209, 202, 202, 0.642); /* Specified navbar background color */
padding: 10px 20px;
flex-wrap: wrap;
}
.navbar img {
height: 65px; /* Logo height */
}
.navbar .nav-buttons {
display: flex;
gap: 10px;
}
.navbar a {
color: white;
padding: 10px 20px;
text-decoration: none;
text-align: center;
border-radius: 5px;
font-weight: bold;
}
.navbar a.add-plant {
background-color: blue;
}
.navbar a.logout {
background-color: red;
}
.navbar a:hover {
opacity: 0.8;
}
/* Container Styling */
.container {
max-width: 1200px;
margin: 40px auto;
padding: 20px;
text-align: center;
}
/* Welcome Message */
.container h1 {
margin-bottom: 30px;
font-size: 2em;
}
/* Success and Error Messages */
.success-message {
color: green;
font-size: 1.1em;
margin-bottom: 20px;
}
.error-message {
color: red;
font-size: 1.1em;
margin-bottom: 20px;
}
/* Plant Table Styling */
table {
width: 100%;
margin: 20px 0;
border-collapse: collapse;
table-layout: auto;
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 12px 15px;
text-align: left;
}
th {
background-color: rgb(153, 237, 111); /* Specified th background color */
}
td a {
color: #333;
text-decoration: none;
}
td a:hover {
text-decoration: underline;
}
/* Delete Button Styling */
.delete-button {
background-color: red;
color: white;
border: none;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
.delete-button:hover {
opacity: 0.8;
}
/* No Plants Message */
.no-plants {
margin-top: 20px;
font-size: 1.2em;
color: gray;
}
/* Responsive Design */
@media (max-width: 768px) {
.navbar {
flex-direction: column;
align-items: flex-start;
}
.navbar img {
margin-bottom: 10px;
}
.navbar .nav-buttons {
width: 100%;
justify-content: flex-start;
}
table, th, td {
font-size: 14px;
}
.delete-button {
padding: 6px 10px;
font-size: 12px;
}
.container h1 {
font-size: 1.5em;
}
}
@media (max-width: 480px) {
th, td {
padding: 8px 10px;
}
.navbar a {
padding: 8px 12px;
font-size: 14px;
}
}