-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94bfb23
commit e8cc389
Showing
3 changed files
with
195 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,169 +1,125 @@ | ||
/* Basic styling for body */ | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #2e2e2e; /* Dark background */ | ||
color: #f4f4f4; /* Light text color */ | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
.container { | ||
width: 100%; | ||
max-width: 800px; | ||
background: #333; /* Slightly lighter dark background */ | ||
padding: 20px; | ||
border-radius: 10px; | ||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); | ||
display: flex; | ||
flex-direction: column; | ||
height: 90vh; /* Full height minus some margin */ | ||
box-sizing: border-box; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
color: #fff; | ||
margin-bottom: 20px; | ||
} | ||
|
||
/* Toggle switch styles */ | ||
.toggle-container { | ||
display: flex; | ||
align-items: center; | ||
margin: 10px 0; | ||
} | ||
|
||
.switch { | ||
position: relative; | ||
display: inline-block; | ||
width: 60px; | ||
height: 34px; | ||
margin-right: 10px; | ||
} | ||
|
||
.switch input { | ||
opacity: 0; | ||
width: 0; | ||
height: 0; | ||
} | ||
|
||
.slider { | ||
position: absolute; | ||
cursor: pointer; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background-color: #555; | ||
transition: .4s; | ||
border-radius: 34px; | ||
} | ||
|
||
.slider:before { | ||
position: absolute; | ||
content: ""; | ||
height: 26px; | ||
width: 26px; | ||
border-radius: 50%; | ||
left: 4px; | ||
bottom: 4px; | ||
background-color: white; | ||
transition: .4s; | ||
} | ||
|
||
input:checked + .slider { | ||
background-color: #007BFF; | ||
} | ||
|
||
input:checked + .slider:before { | ||
transform: translateX(26px); | ||
} | ||
|
||
#toggleLabel { | ||
font-size: 16px; | ||
color: #fff; | ||
} | ||
|
||
/* Styling for message display */ | ||
.messages-container { | ||
flex: 1; /* Take up remaining space */ | ||
overflow-y: auto; | ||
margin-bottom: 20px; /* Space for form */ | ||
padding-right: 10px; /* Padding to prevent content overlap */ | ||
} | ||
|
||
.message { | ||
background-color: #444; | ||
border: 1px solid #555; | ||
padding: 15px; | ||
margin-bottom: 10px; | ||
border-radius: 8px; | ||
position: relative; | ||
} | ||
|
||
.message p { | ||
margin: 0; | ||
color: #f4f4f4; | ||
} | ||
|
||
.upvotes { | ||
font-weight: bold; | ||
color: #ffeb3b; /* Yellow color for upvotes */ | ||
} | ||
|
||
.upvoteBtn { | ||
background-color: #007BFF; | ||
border: none; | ||
padding: 6px 12px; | ||
cursor: pointer; | ||
border-radius: 5px; | ||
color: #fff; | ||
font-size: 14px; | ||
position: absolute; | ||
right: 10px; | ||
bottom: 10px; | ||
} | ||
|
||
.message-form { | ||
display: flex; | ||
flex-direction: column; | ||
position: sticky; | ||
bottom: 0; | ||
background: #333; | ||
padding: 10px; | ||
box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.3); | ||
border-top: 1px solid #555; | ||
} | ||
|
||
textarea { | ||
width: 100%; | ||
height: 100px; | ||
padding: 10px; | ||
border: none; | ||
border-radius: 8px; | ||
box-sizing: border-box; | ||
margin-bottom: 10px; | ||
background-color: #555; | ||
color: #f4f4f4; | ||
resize: none; | ||
} | ||
|
||
textarea::placeholder { | ||
color: #888; | ||
} | ||
|
||
.message-form button { | ||
align-self: flex-end; | ||
background-color: #007BFF; | ||
border: none; | ||
color: #fff; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
} | ||
|
||
font-family: Arial, sans-serif; | ||
background-color: #121212; | ||
color: #ffffff; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.container { | ||
width: 90%; | ||
max-width: 800px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
} | ||
|
||
.message-form { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
textarea { | ||
padding: 10px; | ||
margin-bottom: 10px; | ||
border: 1px solid #444; | ||
border-radius: 5px; | ||
background-color: #222; | ||
color: #fff; | ||
width: 100%; | ||
} | ||
|
||
button { | ||
padding: 10px; | ||
border: none; | ||
border-radius: 5px; | ||
background-color: #007bff; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
|
||
button:hover { | ||
background-color: #0056b3; | ||
} | ||
|
||
.messages-container { | ||
margin-top: 20px; | ||
} | ||
|
||
.message { | ||
background-color: #333; | ||
padding: 15px; | ||
margin-bottom: 10px; | ||
border-radius: 5px; | ||
} | ||
|
||
.message p { | ||
margin: 0; | ||
} | ||
|
||
.upvote { | ||
background-color: #28a745; | ||
border: none; | ||
padding: 5px; | ||
border-radius: 5px; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
|
||
.upvote:hover { | ||
background-color: #218838; | ||
} | ||
|
||
.toggle-container { | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.switch { | ||
position: relative; | ||
display: inline-block; | ||
width: 34px; | ||
height: 20px; | ||
} | ||
|
||
.switch input { | ||
opacity: 0; | ||
width: 0; | ||
height: 0; | ||
} | ||
|
||
.slider { | ||
position: absolute; | ||
cursor: pointer; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background-color: #ccc; | ||
transition: .4s; | ||
border-radius: 20px; | ||
} | ||
|
||
.slider:before { | ||
position: absolute; | ||
content: ""; | ||
height: 12px; | ||
width: 12px; | ||
border-radius: 50%; | ||
left: 4px; | ||
bottom: 4px; | ||
background-color: white; | ||
transition: .4s; | ||
} | ||
|
||
input:checked + .slider { | ||
background-color: #007bff; | ||
} | ||
|
||
input:checked + .slider:before { | ||
transform: translateX(14px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.