NihalGazi commited on
Commit
c983fb1
·
verified ·
1 Parent(s): 2d37f90

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +66 -8
static/styles.css CHANGED
@@ -1,43 +1,101 @@
 
1
  body {
2
  font-family: sans-serif;
3
  background: #f0f0f0;
4
- padding: 20px;
 
5
  }
6
 
7
  #chatContainer {
8
- max-width: 400px;
9
- margin: auto;
10
- background: white;
11
- padding: 15px;
12
- border-radius: 8px;
13
- box-shadow: 0 0 10px #ccc;
 
 
14
  }
15
 
 
16
  #chatroom-title {
17
  font-weight: bold;
18
  text-align: center;
19
  margin-bottom: 10px;
 
20
  }
21
 
 
22
  #chat {
23
- height: 300px;
24
  overflow-y: auto;
25
  border: 1px solid #333;
26
  background: #f9f9f9;
27
  padding: 10px;
 
 
28
  }
29
 
 
30
  #chat .me {
31
  color: blue;
32
  font-weight: bold;
 
33
  }
34
 
35
  #chat .other {
36
  color: green;
37
  font-weight: bold;
 
38
  }
39
 
40
  #chat .status {
41
  color: gray;
42
  font-style: italic;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  }
 
1
+ /* Base styles */
2
  body {
3
  font-family: sans-serif;
4
  background: #f0f0f0;
5
+ padding: 10px;
6
+ margin: 0;
7
  }
8
 
9
  #chatContainer {
10
+ max-width: 100%;
11
+ width: 100%;
12
+ max-width: 420px;
13
+ margin: 10px auto;
14
+ background: #fff;
15
+ padding: 12px;
16
+ border-radius: 10px;
17
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
18
  }
19
 
20
+ /* Title */
21
  #chatroom-title {
22
  font-weight: bold;
23
  text-align: center;
24
  margin-bottom: 10px;
25
+ font-size: 1.2rem;
26
  }
27
 
28
+ /* Chat box */
29
  #chat {
30
+ height: 60vh;
31
  overflow-y: auto;
32
  border: 1px solid #333;
33
  background: #f9f9f9;
34
  padding: 10px;
35
+ border-radius: 6px;
36
+ box-sizing: border-box;
37
  }
38
 
39
+ /* Messages */
40
  #chat .me {
41
  color: blue;
42
  font-weight: bold;
43
+ word-wrap: break-word;
44
  }
45
 
46
  #chat .other {
47
  color: green;
48
  font-weight: bold;
49
+ word-wrap: break-word;
50
  }
51
 
52
  #chat .status {
53
  color: gray;
54
  font-style: italic;
55
+ word-wrap: break-word;
56
+ }
57
+
58
+ /* Input & Buttons */
59
+ input[type="text"], input[type="number"], select {
60
+ width: 100%;
61
+ padding: 8px;
62
+ margin: 6px 0;
63
+ box-sizing: border-box;
64
+ border: 1px solid #ccc;
65
+ border-radius: 6px;
66
+ font-size: 1rem;
67
+ }
68
+
69
+ button {
70
+ width: 100%;
71
+ padding: 10px;
72
+ margin-top: 6px;
73
+ font-size: 1rem;
74
+ background-color: #4285f4;
75
+ color: white;
76
+ border: none;
77
+ border-radius: 6px;
78
+ cursor: pointer;
79
+ }
80
+
81
+ button:hover {
82
+ background-color: #3367d6;
83
+ }
84
+
85
+ /* Responsive tweaks */
86
+ @media screen and (max-width: 480px) {
87
+ #chatContainer {
88
+ margin: 5px;
89
+ padding: 10px;
90
+ box-shadow: none;
91
+ }
92
+
93
+ #chatroom-title {
94
+ font-size: 1rem;
95
+ }
96
+
97
+ button {
98
+ font-size: 0.95rem;
99
+ padding: 9px;
100
+ }
101
  }