-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
197 lines (172 loc) · 3.5 KB
/
style.css
File metadata and controls
197 lines (172 loc) · 3.5 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/* style.css */
/* Global Styles */
body{
flex-direction: column;
font-family: Arial, sans-serif;
background-color: #55d11f;
margin: 0;
padding: 0;
}
/* Heading Styles */
h1{
text-align: center;
color: #fff;
}
h2{
text-align: left;
color: #55d11f;
font-size: 18px;
}
/* Styles for the main container */
#container{
width: 80%;
margin: 10px auto;
display: flex;
justify-content: space-between;
padding: 20px;
}
/* Styles for the Add_New_Events and My_Events containers */
#add-new-events, #my-events{
background-color: #fff;
padding: 20px;
margin: 5px;
border-radius: 8px;
box-sizing: border-box;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#add-new-events{
width: 32%;
}
#my-events{
width: 64%;
}
/* Styles for the event form in Add_New_Events container */
#event-form{
display: flex;
flex-direction: column;
}
#event-form label{
display: block;
margin-top: 10px;
font-weight: bold;
}
#event-form input, #event-form select, #event-form textarea{
width: 100%;
padding: 8px;
margin: 5px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
align-items: center;
}
#buttons{
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-between;
list-style-type: none;
padding: 0;
}
/* Styles for the Add and Clear_event buttons */
#add-event, #clear-events, #sample-events{
background-color: #55d11f;
color: white;
border: none;
cursor: pointer;
}
#add-event{
padding: 10px;
margin-top: 15px;
border-radius: 4px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
display: inline-block;
}
#clear-events, #sample-events{
flex: 0 1 calc(50% - 10px);
padding: 15px;
margin: 5px 0;
border-radius: 4px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
display: inline-block;
}
#add-event:hover, #clear-events:hover, #sample-events:hover{
background-color: #45a11f;
transform: scale(1.05);
transition: all 0.3s ease-in-out;
}
/* Styles for the Event_list in My_Events container */
#event-list{
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-between;
list-style-type: none;
padding: 0;
}
.event-item{
flex: 0 1 calc(50% - 40px);
background-color: #e1ff96;
padding: 15px;
margin: 5px 0;
border-radius: 4px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
display: inline-block;
}
.event-title{
font-size: 16px;
color: #333;
margin: 0 0 5px 0;
}
.event-date{
font-size: 14px;
color: #777;
margin: 0 0 10px 0;
}
.event-category{
background-color: #55d11f;
color: white;
padding: 5px 10px;
box-sizing: border-box;
border-radius: 10px;
font-size: 10px;
margin: 0 0 10px 0;
}
.event-description{
font-size: 14px;
color: #555;
margin: 10px 0 10px 0;
}
.delete-button{
background-color: transparent;
border: none;
cursor: pointer;
float: right;
padding: 0;
margin: 0;
width: 30px;
}
.delete-icon:hover{
background-color: transparent;
transform: scale(1.2);
transition: all 0.3s ease-in-out;
}
.delete-icon{
border-radius: 10px;
position: relative;
align-items: center;
width: 20px;
height: 20px;
}
/* Responsive Design */
@media (max-width: 768px) {
#container {
flex-direction: column;
}
#add-new-events, #my-events {
width: 100%;
margin: 5px;
}
.event-item {
flex: 0 1 100%;
}
}