Files
eapim-portal/src/main/resources/static/sass/pages/_inquiry.scss
T
2025-12-12 15:47:59 +09:00

690 lines
14 KiB
SCSS

// -----------------------------------------------------------------------------
// Inquiry (Q&A) Pages - List, Detail, and Form Views
// -----------------------------------------------------------------------------
// Inquiry list page container
.inquiry-page {
min-height: calc(100vh - 140px);
background: $gray-bg;
padding: $spacing-3xl $spacing-lg;
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-md;
}
}
.inquiry-container {
max-width: $container-max-width;
margin: 0 auto;
}
// Page header
.inquiry-header {
margin-bottom: $spacing-3xl;
@media (max-width: $breakpoint-sm) {
margin-bottom: $spacing-2xl;
}
.page-title {
font-size: $font-size-3xl;
font-weight: $font-weight-bold;
color: $text-dark;
margin-bottom: $spacing-md;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-2xl;
}
}
.page-description {
font-size: $font-size-base;
color: $text-gray;
line-height: $line-height-normal;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
}
}
}
// Inquiry table wrapper
.inquiry-list-wrapper {
background: $white;
border-radius: $border-radius-lg;
box-shadow: $shadow-md;
overflow: hidden;
margin-bottom: $spacing-xl;
}
// Inquiry table (extends notice-table structure)
.inquiry-table {
width: 100%;
background: $white;
border-radius: $border-radius-lg;
overflow: hidden;
// Table header
.table-header {
display: grid;
grid-template-columns: 80px 1fr 100px 100px 120px;
gap: $spacing-md;
padding: $spacing-md $spacing-lg;
background: $light-bg;
border-bottom: 2px solid $border-gray;
font-size: $font-size-sm;
font-weight: $font-weight-semibold;
color: $text-dark;
@media (max-width: $breakpoint-md) {
grid-template-columns: 60px 1fr 80px 100px;
padding: $spacing-sm $spacing-md;
font-size: $font-size-xs;
.col-name {
display: none;
}
}
@media (max-width: $breakpoint-sm) {
display: none;
}
.col-num {
text-align: center;
}
.col-title {
text-align: left;
}
.col-name {
text-align: center;
}
.col-status {
text-align: center;
}
.col-date {
text-align: center;
}
}
// Table rows
.table-row {
display: grid;
grid-template-columns: 80px 1fr 100px 100px 120px;
gap: $spacing-md;
padding: $spacing-lg;
border-bottom: 1px solid $border-gray;
transition: $transition-base;
cursor: pointer;
@media (max-width: $breakpoint-md) {
grid-template-columns: 60px 1fr 80px 100px;
padding: $spacing-md;
.col-name {
display: none;
}
}
@media (max-width: $breakpoint-sm) {
grid-template-columns: 1fr;
gap: $spacing-sm;
padding: $spacing-md;
}
&:last-child {
border-bottom: none;
}
&:hover {
background-color: rgba($primary-blue, 0.02);
}
.col-num {
display: flex;
align-items: center;
justify-content: center;
font-size: $font-size-sm;
color: $text-gray;
font-weight: $font-weight-medium;
@media (max-width: $breakpoint-sm) {
display: none;
}
}
.col-title {
display: flex;
align-items: center;
font-size: $font-size-base;
color: $text-dark;
font-weight: $font-weight-medium;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
}
a {
color: inherit;
text-decoration: none;
display: flex;
align-items: center;
gap: $spacing-sm;
transition: $transition-base;
&:hover {
color: $primary-blue;
}
}
.file-icon {
display: inline-flex;
align-items: center;
margin-left: $spacing-sm;
opacity: 0.6;
img {
width: 16px;
height: 16px;
}
}
}
.col-name {
display: flex;
align-items: center;
justify-content: center;
font-size: $font-size-sm;
color: $text-gray;
@media (max-width: $breakpoint-md) {
display: none;
}
}
.col-status {
display: flex;
align-items: center;
justify-content: center;
@media (max-width: $breakpoint-sm) {
justify-content: flex-start;
}
// Status badge styles now in components/_badges.scss
}
.col-date {
display: flex;
align-items: center;
justify-content: center;
font-size: $font-size-sm;
color: $text-light;
@media (max-width: $breakpoint-sm) {
justify-content: flex-start;
font-size: $font-size-xs;
padding-top: $spacing-xs;
}
}
}
// Mobile label for date
@media (max-width: $breakpoint-sm) {
.table-row .col-date::before {
content: '등록일: ';
color: $text-gray;
margin-right: $spacing-xs;
}
}
}
// ===========================
// Button Container Layouts
// Note: Button styles now in components/_buttons.scss
// ===========================
// Inquiry actions (list page + detail page)
.inquiry-actions {
display: flex;
justify-content: center;
align-items: center;
gap: $spacing-md;
margin-top: $spacing-xl;
@media (max-width: $breakpoint-sm) {
flex-direction: column;
align-items: stretch;
}
// Layout for detail page split actions
.actions-left,
.actions-right {
display: flex;
align-items: center;
gap: $spacing-md;
@media (max-width: $breakpoint-sm) {
width: 100%;
justify-content: center;
}
}
@media (max-width: $breakpoint-sm) {
flex-direction: column;
align-items: stretch;
gap: $spacing-md;
.actions-left,
.actions-right {
flex-direction: column;
}
}
}
// ===========================
// Inquiry Detail Page
// ===========================
.inquiry-detail-page {
min-height: calc(100vh - 140px);
background: $gray-bg;
padding: $spacing-3xl $spacing-lg;
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-md;
}
}
.inquiry-detail-container {
margin: 0 auto;
}
// Inquiry detail card
.inquiry-detail-card {
background: $white;
border-radius: $border-radius-lg;
box-shadow: $shadow-md;
overflow: hidden;
margin-bottom: $spacing-xl;
// Header section
.detail-header {
padding: $spacing-3xl $spacing-2xl $spacing-xl;
border-bottom: 2px solid $border-gray;
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-lg $spacing-md;
}
// Status badge header styles now in components/_badges.scss
.inquiry-title {
font-size: $font-size-2xl;
font-weight: $font-weight-bold;
color: $text-dark;
line-height: $line-height-tight;
margin-bottom: $spacing-lg;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-xl;
}
}
.inquiry-meta {
display: flex;
align-items: center;
gap: $spacing-lg;
flex-wrap: wrap;
font-size: $font-size-sm;
color: $text-gray;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-xs;
gap: $spacing-md;
}
.meta-item {
display: flex;
align-items: center;
gap: $spacing-xs;
i {
color: $primary-blue;
}
strong {
color: $text-dark;
font-weight: $font-weight-medium;
}
}
}
}
// Attachment section
.detail-attachments {
padding: $spacing-lg $spacing-2xl;
background: $gray-bg;
border-bottom: 1px solid $border-gray;
@media (max-width: $breakpoint-sm) {
padding: $spacing-md $spacing-lg;
}
.attachment-list {
display: flex;
flex-direction: column;
gap: $spacing-sm;
.attachment-item {
display: flex;
align-items: center;
gap: $spacing-sm;
a {
color: $text-dark;
text-decoration: none;
font-size: $font-size-sm;
transition: $transition-base;
display: flex;
align-items: center;
gap: $spacing-xs;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-xs;
}
&:hover {
color: $primary-blue;
i {
transform: translateY(-2px);
}
}
i {
color: $primary-blue;
transition: $transition-base;
}
}
}
}
}
// Content section
.detail-content {
padding: $spacing-3xl $spacing-2xl;
min-height: 200px;
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-lg;
}
.content-body {
font-size: $font-size-base;
color: $text-dark;
line-height: $line-height-loose;
white-space: pre-line;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
}
}
}
}
// Response section (answer from admin)
.inquiry-response-card {
background: $white;
border-radius: $border-radius-lg;
box-shadow: $shadow-md;
overflow: hidden;
margin-bottom: $spacing-xl;
border-left: 4px solid $accent-green;
.response-header {
padding: $spacing-xl $spacing-2xl;
background: rgba($accent-green, 0.03);
border-bottom: 1px solid $border-gray;
@media (max-width: $breakpoint-sm) {
padding: $spacing-lg;
}
.response-title {
display: flex;
align-items: center;
gap: $spacing-sm;
font-size: $font-size-lg;
font-weight: $font-weight-semibold;
color: $text-dark;
margin-bottom: $spacing-sm;
i {
color: $accent-green;
}
}
.response-meta {
font-size: $font-size-sm;
color: $text-gray;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-xs;
}
}
}
.response-content {
padding: $spacing-2xl;
font-size: $font-size-base;
color: $text-dark;
line-height: $line-height-loose;
white-space: pre-line;
@media (max-width: $breakpoint-sm) {
padding: $spacing-lg;
font-size: $font-size-sm;
}
}
}
// Inquiry actions (detail page buttons)
.inquiry-detail-actions {
display: flex;
justify-content: center;
gap: $spacing-md;
margin-bottom: $spacing-3xl;
flex-wrap: wrap;
@media (max-width: $breakpoint-sm) {
flex-direction: row;
align-items: stretch;
}
.action-btn {
padding: $spacing-md $spacing-2xl;
border-radius: $border-radius-md;
font-size: $font-size-base;
font-weight: $font-weight-medium;
text-decoration: none;
transition: $transition-base;
display: inline-flex;
align-items: center;
justify-content: center;
gap: $spacing-sm;
cursor: pointer;
border: none;
@media (max-width: $breakpoint-sm) {
padding: $spacing-md $spacing-lg;
font-size: $font-size-sm;
}
&.btn-list {
background: $white;
color: $text-dark;
border: 1px solid $border-gray;
&:hover {
background: $gray-bg;
border-color: $primary-blue;
}
}
&.btn-edit {
color: $white;
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
}
}
&.btn-delete {
background: $accent-orange;
color: $white;
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
}
}
i {
font-size: 16px;
}
}
}
// ===========================
// Inquiry Form Page
// ===========================
.inquiry-form-page {
min-height: calc(100vh - 140px);
background: $gray-bg;
padding: $spacing-3xl $spacing-lg;
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-md;
}
}
.inquiry-form-container {
margin: 0 auto;
}
.inquiry-form-card {
background: $white;
border-radius: $border-radius-lg;
box-shadow: $shadow-md;
padding: $spacing-3xl;
margin-bottom: $spacing-xl;
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-lg;
}
.form-group {
margin-bottom: $spacing-2xl;
&:last-child {
margin-bottom: 0;
}
.form-label {
display: block;
font-size: $font-size-base;
font-weight: $font-weight-semibold;
color: $text-dark;
margin-bottom: $spacing-md;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
}
&.required::after {
content: '*';
color: $accent-orange;
margin-left: $spacing-xs;
}
}
.form-input {
width: 100%;
padding: $spacing-md;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
font-size: $font-size-base;
transition: $transition-base;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
padding: $spacing-sm $spacing-md;
}
&:focus {
outline: none;
border-color: $primary-blue;
box-shadow: 0 0 0 3px rgba($primary-blue, 0.1);
}
&::placeholder {
color: $text-light;
}
}
.form-textarea {
width: 100%;
min-height: 200px;
padding: $spacing-md;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
font-size: $font-size-base;
font-family: $font-family-primary;
resize: vertical;
transition: $transition-base;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
padding: $spacing-sm $spacing-md;
min-height: 150px;
}
&:focus {
outline: none;
border-color: $primary-blue;
box-shadow: 0 0 0 3px rgba($primary-blue, 0.1);
}
&::placeholder {
color: $text-light;
}
}
// File upload styles now in components/_forms.scss
}
}
// Inquiry form actions
.inquiry-form-actions {
display: flex;
justify-content: center;
gap: $spacing-md;
margin-top: $spacing-xl;
@media (max-width: $breakpoint-sm) {
flex-direction: column-reverse;
align-items: stretch;
}
// Uses the same action button styles from .inquiry-actions above
// Supports: action-btn-primary, action-btn-secondary
}