0% found this document useful (0 votes)
11 views8 pages

Question Bar Css

question

Uploaded by

aryansatavlekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views8 pages

Question Bar Css

question

Uploaded by

aryansatavlekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 8

.

container {
width: 600px;
margin: 0 auto;
padding: 20px;
}

/* Media query for larger screens */


@media (min-width: 1366px) {
.container {
width: 900px;
}
}

.question-input-card {
display: flex;
align-items: center;
margin-bottom: 20px;
padding: 20px;
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border: 1px solid #ddd;
outline: none;
cursor: pointer;
}

.user-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: bold;
margin-right: 15px;
}

.input-section {
flex-grow: 1;
}

.question-input {
width: 100%;
padding: 15px;
border: 1px solid #ddd;
border-radius: 10px;
margin-bottom: 10px;
outline: none;
font-size: 16px;
background: #f9f9f9;
cursor: pointer;
}

.question-input:read-only {
cursor: pointer;
}
.error {
color: red;
margin-bottom: 10px;
}

.attachment-post-section {
display: flex;
align-items: center;
}

.attachment-icon {
margin-right: 10px;
}

.post-question-icon {
display: flex;
align-items: center;
cursor: pointer;
}

.arrow-left {
display: inline-block;
width: 0;
height: 0;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
border-right: 7px solid gray;
margin-right: 5px;
}

.post-text {
color: gray;
}

.questions-list {
margin-top: 20px;
}

.question-item {
background: white;
padding: 20px;
margin-bottom: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-header {
display: flex;
align-items: center;
margin-bottom: 10px;
}

.question-meta {
margin-left: 10px;
}

.username {
font-weight: bold;
margin-right: 5px;
}

.date {
color: #777;
}

.question-text {
margin-bottom: 10px;
}

.question-image {
max-width: 100%;
margin-bottom: 10px;
}

.question-actions {
display: flex;
align-items: center;
margin-bottom: 10px;
}

.question-actions button {
background: none;
border: none;
cursor: pointer;
margin-right: 10px;
}

/* Comment Section */
.comment-item,
.reply-item {
background: #f5f5f5;
padding: 10px;
border-radius: 5px;
margin-bottom: 10px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-header,
.reply-header {
display: flex;
align-items: center;
margin-bottom: 5px;
}

.comment-meta,
.reply-meta {
margin-left: 10px;
}

.comment-text,
.reply-text {
margin-bottom: 5px;
}

.reply-input-section {
display: flex;
align-items: center;
margin-top: 10px;
}

.reply-input {
flex-grow: 1;
padding: 5px;
border: 1px solid #ddd;
border-radius: 5px;
margin-right: 10px;
}

.add-reply-btn {
background: none;
padding: 5px 10px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #eb5757;
color: white;
}

.modal {
position: absolute;
top: 50%;
left: 50%;
right: auto;
bottom: auto;
margin-right: -50%;
transform: translate(-50%, -50%);
background: #fff;
padding: 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
width: 700px;
max-width: 100%;
height: 500px;
max-height: 100%;
border: none;
}

.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.75);
}

.modal h2 {
position: absolute;
margin-top: 0;
margin-bottom: 30px;
align-items: center;
left: 50%;
top: 8%;
transform: translateX(-50%);
}

.modal h3 {
position: absolute;
margin-top: 15px;
margin-bottom: 10px;
top: 18%;
}

.modal .background-text {
position: absolute;
width: 670px;
background-color: #ffd0d0;
top: 20%;
transform: translateX(-50%);
left: 50%;
backface-visibility: visible;
border-width: 1.5cm;
z-index: -1;
opacity: 0.5;
}

.modal form {
display: flex;
flex-direction: column;
}

.modal ul {
margin-top: 120px;
margin-left: 18px;
}

.modal li {
font-size: 18px;
}

.modal textarea {
justify-content: center;
border-bottom: 0.05cm solid #D3D3D3;
border-top: 0px;
border-left: 0px;
border-right: 0px;
padding: 10px;
margin-bottom: 10px;
resize: none;
outline: none;
overflow-x: auto;
overflow-y: hidden;
font-size: 20px;
margin-top: 40px;
width: 660px;
left: 0%;
}

.modal hr {
position: absolute;
left: 50%; /* Position the <hr> horizontally at 50% of the modal's width */
transform: translateX(-50%);
width: 300px;
top: 15%;
border-width: 2px;
border-color: #eb5757;
border-style: solid;
border-radius: 10px;
}

.modal input[type="file"] {
position: absolute;
margin-bottom: 10px;
top: 91.3%;
}

.modal .close-button {
background-color: transparent;
top: 2%;
margin-left: 0px;
left: 1%;
font-size: 15px;
}

.modal button {
position: absolute;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #f3a0a0;
color: black;
cursor: pointer;
align-self: flex-end;
top: 90%;
font-weight: bold;
}

.modal .divider-buttons {
position: absolute;
width: 700px;
left: 50%;
transform: translateX(-50%);
top: 85%;
border-color: #D3D3D3;
border-width: 0.05cm;
}

/* Specific Styles for the Comment Section */


.comment-section {
margin-top: 10px;
}

.comment-item {
background: #f5f5f5;
padding: 10px;
border-radius: 5px;
margin-bottom: 15px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-header {
display: flex;
align-items: center;
}

.user-avatar {
width: 35px;
height: 35px;
background-color: #f3a0a0;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
font-weight: bold;
margin-right: 10px;
}

.comment-meta {
display: flex;
flex-direction: column;
}

.username {
font-weight: bold;
}

.date {
font-size: 12px;
color: gray;
}

.comment-text {
margin: 10px 0;
}

.comment-btn-emoji {
background: none;
border: none;
color: #007bff;
cursor: pointer;
padding: 0;
}

.reply-input-section {
display: flex;
align-items: center;
margin-top: 10px;
}

.reply-input {
flex-grow: 1;
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
}

.add-reply-btn {
padding: 5px 10px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #eb5757;
color: white;
}
.reply-section {
margin-left: 20px;
}

You might also like