speakmore-2.0/static/styles.css

174 lines
No EOL
2.7 KiB
CSS

/* styles.css */
body {
display: flex;
height: 100vh;
margin: 0;
}
.sidebar {
width: 250px;
background-color: #2f3136;
color: white;
padding: 20px;
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.sidebar h3 {
margin-top: 0;
}
.sidebar ul {
list-style: none;
padding: 0;
}
.sidebar ul li {
margin: 10px 0;
cursor: pointer;
display: flex;
align-items: center;
}
.sidebar ul li .status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 10px;
}
.content {
flex: 1;
padding: 20px;
overflow-y: auto;
}
.friend-request {
margin-bottom: 20px;
}
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
padding: 20px;
overflow-y: auto;
}
.chat-header {
background-color: #36393f;
color: white;
padding: 10px;
margin-bottom: 20px;
}
.messages {
flex: 1;
overflow-y: auto;
margin-bottom: 20px;
}
.message {
margin-bottom: 10px;
position: relative;
}
.message strong {
color: #7289da;
}
.message .timestamp {
display: none;
position: absolute;
top: -20px;
right: 0;
background-color: rgba(0,0,0,0.7);
color: white;
padding: 5px;
border-radius: 3px;
}
.message:hover .timestamp {
display: block;
}
.send-message-form {
display: flex;
align-items: center;
}
.send-message-form input[type="text"] {
flex: 1;
padding: 10px;
margin-right: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
.send-message-form button {
padding: 10px;
border: none;
background-color: #7289da;
color: white;
border-radius: 5px;
cursor: pointer;
}
.image-preview {
position: relative;
display: inline-block;
}
.image-preview img {
max-width: 100px;
max-height: 100px;
display: block;
}
.image-preview .remove-image {
position: absolute;
top: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
}
/* Image enhancer */
.image-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
z-index: 1000;
}
.image-overlay img {
max-width: 90%;
max-height: 90%;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
border-radius: 10px;
cursor: pointer;
}
.online{
margin-right: 10px;
height: 10px;
width: 10px;
background-color: #23a55a;
border-radius: 50%;
}
.offline{
margin-right: 10px;
height: 10px;
width: 10px;
background-color: #80848e;
border-radius: 50%;
}