-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
187 lines (160 loc) · 3.65 KB
/
styles.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/* General Styles */
@font-face {
font-family: 'Lexend';
src: url('Lexend-Regular.ttf') format('truetype');
}
body {
font-family: 'Lexend', sans-serif;
background-color: #0d1b2a; /* Darker blue background */
color: #ffffff; /* White text */
margin: 0;
padding: 0;
font-size: 24px;
}
header {
background-color: #1b263b;
padding: 10px;
display: flex;
align-items: center;
justify-content: space-between; /* Ensures space between title and controls */
}
h1 {
flex: 1;
margin: 0;
}
#categories-container {
padding: 20px;
}
#header-controls {
display: flex;
align-items: center;
}
#header-controls > * {
margin-left: 10px;
}
#login-btn, #new-thread-btn, #reload-btn, #submit-btn, .delete-btn, .dismiss-btn, .edit-btn, .reply-btn {
background-color: #1e90ff; /* Dodgerblue */
color: white;
border: none;
padding: 4px 6px;
font-size: 20px;
cursor: pointer;
}
#new-thread-header-btn {
background-color: #1e90ff;
color: white;
border: none;
padding: 4px 6px;
font-size: 20px;
cursor: pointer;
}
#username-display {
font-weight: bold;
}
.category {
margin-bottom: 30px;
}
.category h2 {
border-bottom: 1px solid #1e90ff; /* Dodgerblue */
padding-bottom: 5px;
}
/* Category header hover effect */
.category-header {
cursor: pointer;
}
.category-header h2 {
margin: 0;
}
.category-header:hover h2 {
color: dodgerblue;
text-decoration: underline;
}
.close {
position: absolute;
top: 10px;
right: 20px;
color: #ffffff; /* White text */
font-size: 48px;
font-weight: bold;
cursor: pointer;
}
.close:hover {
color: #cc0000;
}
.thread {
background-color: #1b263b; /* Match header background */
padding: 10px;
margin: 10px 0;
border-radius: 5px;
}
.thread h3 {
margin: 0;
}
.thread p {
margin: 5px 0 0 0;
}
.message {
background-color: #1b263b;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
overflow: hidden; /* Ensure content doesn't overflow */
}
.message .author {
font-weight: bold;
}
.message-content {
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word;
}
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden; /* Prevent content from overflowing the modal */
background-color: rgba(0,0,0,0.4);
display: flex; /* Use Flexbox for centering */
align-items: center; /* Center vertically */
justify-content: center; /* Center horizontally */
padding: 0; /* Remove padding that could cause overflow */
}
.modal-content {
background-color: #0d1b2a; /* Match body background */
padding: 20px;
border: 1px solid #1e90ff; /* Dodgerblue */
width: 90%;
max-height: 90vh; /* Set maximum height */
overflow-y: auto; /* Enable vertical scrolling */
overflow-x: hidden; /* Prevent horizontal scrolling */
box-sizing: border-box; /* Include padding and border in width and height calculations */
position: relative; /* For positioning the close button */
}
.modal-content p,
.modal-content h3,
.modal-content h4 {
word-wrap: break-word;
overflow-wrap: break-word;
}
.modal-content img,
.modal-content video,
.modal-content audio {
max-width: 100%;
height: auto;
}
.modal-content button {
margin-top: 10px;
}
.modal-content input[type="text"], .modal-content textarea {
width: 100%;
padding: 10px;
margin: 5px 0;
background-color: #1b263b; /* Slightly lighter blue */
color: #ffffff; /* White text */
border: 1px solid #1e90ff; /* Dodgerblue */
border-radius: 3px;
}