gitlink_help_center/src/components/FloatingButtons/styles.module.css

214 lines
3.4 KiB
CSS

.floatingButtons {
position: fixed;
right: 20px;
bottom: 80px;
z-index: 1000;
display: flex;
flex-direction: row;
gap: 12px;
}
.button {
width: 50px;
height: 50px;
padding: 0;
background-color: #f2f3f5;
color: #666;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.button:hover {
background-color: #e4e6eb;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}
.button:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}
.modalOverlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0,0,0,0.18);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
overflow-y: auto;
padding: 20px;
}
.modal {
background: linear-gradient(180deg, #eaf1fb 0%, #fff 100%);
border-radius: 8px;
box-shadow: 0 4px 24px rgba(0,0,0,0.13);
padding: 32px 24px 24px 24px;
min-width: 400px;
max-width: 90vw;
max-height: 90vh;
position: relative;
display: flex;
flex-direction: column;
align-items: stretch;
overflow-y: auto;
}
.closeBtn {
position: sticky;
top: 0;
right: 16px;
background: none;
border: none;
font-size: 28px;
color: #888;
cursor: pointer;
line-height: 1;
z-index: 100;
align-self: flex-end;
margin-bottom: -20px;
}
.modalTitle {
margin: 0 0 20px;
font-size: 20px;
color: #333;
position: sticky;
top: 0;
background: white;
padding: 10px 0;
z-index: 1;
}
.form {
display: flex;
flex-direction: column;
gap: 12px;
}
.textarea {
width: 100%;
min-height: 120px;
resize: vertical;
border: 1px solid #dbe2ea;
border-radius: 6px;
padding: 14px;
font-size: 15px;
color: #222;
background: #fff;
outline: none;
box-sizing: border-box;
}
.textarea::placeholder {
color: #b0b8c7;
}
.footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 4px;
}
.counter {
color: #888;
font-size: 13px;
}
.submitBtn {
background: #466aff;
color: #fff;
border: none;
border-radius: 4px;
padding: 7px 32px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
}
.submitBtn:hover {
background: #3355cc;
}
.submitBtn:disabled {
background: #a0a0a0;
cursor: not-allowed;
}
.aiAnswer {
margin-top: 20px;
padding: 16px;
background: #f8f9fa;
border-radius: 6px;
border: 1px solid #e9ecef;
overflow-y: auto;
max-height: 400px;
}
.aiAnswer h3 {
margin: 0 0 10px;
font-size: 16px;
color: #333;
position: sticky;
top: 60px;
background: white;
padding: 10px 0;
z-index: 1;
}
.aiAnswer p {
margin: 0;
font-size: 15px;
line-height: 1.6;
color: #333;
white-space: pre-wrap;
}
.cursor {
display: inline-block;
width: 2px;
height: 1em;
background-color: #466aff;
margin-left: 2px;
animation: blink 1s infinite;
vertical-align: middle;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.aiAnswerFixed {
position: sticky;
top: 80px;
background: #f8f9fa;
border-radius: 6px;
border: 1px solid #e9ecef;
margin-bottom: 16px;
padding: 16px;
z-index: 10;
}
.formWithAIFixed {
display: flex;
flex-direction: column;
gap: 12px;
overflow-y: auto;
max-height: 320px;
}