커뮤니티 - 스타일 변경

This commit is contained in:
현성필
2025-11-05 17:13:09 +09:00
parent edb40d4a0f
commit 5168347f11
16 changed files with 4583 additions and 439 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,351 @@
// -----------------------------------------------------------------------------
// Accordion Component - FAQ and Collapsible Sections
// -----------------------------------------------------------------------------
// FAQ Accordion
.faq-accordion {
background: $white;
border-radius: $border-radius-lg;
box-shadow: $shadow-sm;
overflow: hidden;
.faq-item {
border-bottom: 1px solid $border-gray;
transition: $transition-base;
&:last-child {
border-bottom: none;
}
&.active {
background: rgba($primary-blue, 0.02);
.faq-question {
color: $primary-blue;
&::before {
background: $gradient-primary;
}
.faq-icon {
transform: rotate(180deg);
color: $primary-blue;
}
}
}
}
.faq-question {
display: flex;
align-items: center;
justify-content: space-between;
padding: $spacing-lg $spacing-xl;
font-size: $font-size-base;
font-weight: $font-weight-medium;
color: $text-dark;
cursor: pointer;
transition: $transition-base;
position: relative;
gap: $spacing-md;
@media (max-width: $breakpoint-sm) {
padding: $spacing-md $spacing-lg;
font-size: $font-size-sm;
}
&::before {
content: 'Q';
position: absolute;
left: $spacing-xl;
top: 50%;
transform: translateY(-50%);
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: $light-bg;
color: $primary-blue;
border-radius: $border-radius-circle;
font-size: $font-size-sm;
font-weight: $font-weight-bold;
transition: $transition-base;
@media (max-width: $breakpoint-sm) {
width: 28px;
height: 28px;
font-size: $font-size-xs;
}
}
&:hover {
background: rgba($primary-blue, 0.03);
color: $primary-blue;
}
.faq-question-text {
flex: 1;
padding-left: 48px;
line-height: $line-height-normal;
@media (max-width: $breakpoint-sm) {
padding-left: 40px;
}
}
.faq-icon {
flex-shrink: 0;
font-size: 20px;
color: $text-gray;
transition: $transition-base;
@media (max-width: $breakpoint-sm) {
font-size: 18px;
}
}
}
.faq-answer {
display: none;
padding: 0 $spacing-xl $spacing-lg;
margin-left: 48px;
margin-right: $spacing-xl;
position: relative;
@media (max-width: $breakpoint-sm) {
padding: 0 $spacing-lg $spacing-md;
margin-left: 40px;
margin-right: $spacing-lg;
}
&::before {
content: 'A';
position: absolute;
left: -48px;
top: 8px;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: $gradient-primary;
color: $white;
border-radius: $border-radius-circle;
font-size: $font-size-sm;
font-weight: $font-weight-bold;
@media (max-width: $breakpoint-sm) {
left: -40px;
width: 28px;
height: 28px;
font-size: $font-size-xs;
}
}
&.show {
display: block;
animation: slideDown 0.3s ease;
}
.faq-answer-content {
padding: $spacing-md 0;
font-size: $font-size-sm;
color: $text-gray;
line-height: $line-height-loose;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-xs;
padding: $spacing-sm 0;
}
// Content formatting
p {
margin-bottom: $spacing-md;
&:last-child {
margin-bottom: 0;
}
}
ul, ol {
margin: $spacing-sm 0;
padding-left: $spacing-lg;
}
li {
margin-bottom: $spacing-xs;
}
a {
color: $primary-blue;
text-decoration: underline;
&:hover {
color: $secondary-blue;
}
}
code {
background: $gray-bg;
padding: 2px 6px;
border-radius: $border-radius-sm;
font-family: $font-family-mono;
font-size: 0.9em;
color: $primary-blue;
}
pre {
background: $gray-bg;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
padding: $spacing-md;
overflow-x: auto;
margin: $spacing-md 0;
code {
background: transparent;
padding: 0;
color: $text-dark;
}
}
}
}
}
// FAQ Page specific styles
.faq-page {
min-height: calc(100vh - 140px);
background: $gray-bg;
padding: $spacing-3xl $spacing-lg;
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-md;
}
}
.faq-container {
max-width: $container-max-width;
margin: 0 auto;
}
.faq-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;
background: $gradient-primary;
-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;
}
}
}
// Slide down animation
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
// Generic accordion (for reuse)
.accordion {
background: $white;
border-radius: $border-radius-lg;
box-shadow: $shadow-sm;
overflow: hidden;
.accordion-item {
border-bottom: 1px solid $border-gray;
&:last-child {
border-bottom: none;
}
&.active {
.accordion-header {
background: rgba($primary-blue, 0.03);
color: $primary-blue;
.accordion-icon {
transform: rotate(180deg);
}
}
}
}
.accordion-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: $spacing-lg $spacing-xl;
font-size: $font-size-base;
font-weight: $font-weight-medium;
color: $text-dark;
cursor: pointer;
transition: $transition-base;
@media (max-width: $breakpoint-sm) {
padding: $spacing-md $spacing-lg;
font-size: $font-size-sm;
}
&:hover {
background: rgba($primary-blue, 0.02);
}
.accordion-title {
flex: 1;
}
.accordion-icon {
flex-shrink: 0;
font-size: 20px;
color: $text-gray;
transition: $transition-base;
}
}
.accordion-content {
display: none;
padding: $spacing-lg $spacing-xl;
font-size: $font-size-sm;
color: $text-gray;
line-height: $line-height-normal;
border-top: 1px solid $border-gray;
@media (max-width: $breakpoint-sm) {
padding: $spacing-md $spacing-lg;
}
&.show {
display: block;
animation: slideDown 0.3s ease;
}
}
}
@@ -0,0 +1,361 @@
// -----------------------------------------------------------------------------
// Table Component Styles - Reusable table designs
// -----------------------------------------------------------------------------
// Base table styles
.data-table {
width: 100%;
background: $white;
border-radius: $border-radius-lg;
overflow: hidden;
box-shadow: $shadow-sm;
// Table wrapper for responsive scrolling
&-wrapper {
overflow-x: auto;
margin-bottom: $spacing-xl;
@media (max-width: $breakpoint-sm) {
border-radius: $border-radius-lg;
box-shadow: $shadow-sm;
}
}
table {
width: 100%;
border-collapse: collapse;
thead {
background: $light-bg;
tr {
border-bottom: 2px solid $border-gray;
}
th {
padding: $spacing-md $spacing-lg;
text-align: left;
font-size: $font-size-sm;
font-weight: $font-weight-semibold;
color: $text-dark;
white-space: nowrap;
@media (max-width: $breakpoint-sm) {
padding: $spacing-sm $spacing-md;
font-size: $font-size-xs;
}
}
}
tbody {
tr {
border-bottom: 1px solid $border-gray;
transition: $transition-base;
&:last-child {
border-bottom: none;
}
&:hover {
background-color: rgba($primary-blue, 0.02);
}
}
td {
padding: $spacing-md $spacing-lg;
font-size: $font-size-sm;
color: $text-gray;
@media (max-width: $breakpoint-sm) {
padding: $spacing-sm $spacing-md;
font-size: $font-size-xs;
}
a {
color: $text-dark;
text-decoration: none;
transition: $transition-base;
&:hover {
color: $primary-blue;
}
}
}
}
}
}
// Notice board table (list view with columns)
.notice-table {
width: 100%;
background: $white;
border-radius: $border-radius-lg;
overflow: hidden;
box-shadow: $shadow-sm;
&-wrapper {
overflow-x: auto;
@media (max-width: $breakpoint-sm) {
border-radius: 0;
box-shadow: none;
}
}
// Table header
.table-header {
display: grid;
grid-template-columns: 80px 1fr 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 100px;
padding: $spacing-sm $spacing-md;
font-size: $font-size-xs;
}
@media (max-width: $breakpoint-sm) {
display: none; // Hide header on mobile
}
.col-num {
text-align: center;
}
.col-title {
text-align: left;
}
.col-date {
text-align: center;
}
}
// Table rows
.table-row {
display: grid;
grid-template-columns: 80px 1fr 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 100px;
padding: $spacing-md;
}
@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-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;
}
}
}
// Empty state for tables
.table-empty {
padding: $spacing-5xl $spacing-lg;
text-align: center;
background: $white;
border-radius: $border-radius-lg;
.empty-icon {
margin-bottom: $spacing-lg;
img {
max-width: 200px;
opacity: 0.7;
@media (max-width: $breakpoint-sm) {
max-width: 150px;
}
}
}
.empty-text {
font-size: $font-size-base;
color: $text-gray;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
}
}
}
// Search and filter section for tables
.table-controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: $spacing-xl;
gap: $spacing-lg;
@media (max-width: $breakpoint-sm) {
flex-direction: column;
align-items: stretch;
gap: $spacing-md;
}
.total-count {
font-size: $font-size-sm;
color: $text-gray;
strong {
color: $primary-blue;
font-weight: $font-weight-semibold;
}
@media (max-width: $breakpoint-sm) {
order: 2;
text-align: center;
}
}
.search-box {
display: flex;
gap: $spacing-sm;
@media (max-width: $breakpoint-sm) {
order: 1;
}
input {
flex: 1;
min-width: 250px;
padding: $spacing-sm $spacing-md;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
font-size: $font-size-sm;
transition: $transition-base;
@media (max-width: $breakpoint-sm) {
min-width: auto;
}
&:focus {
outline: none;
border-color: $primary-blue;
box-shadow: 0 0 0 3px rgba($primary-blue, 0.1);
}
&::placeholder {
color: $text-light;
}
}
button {
padding: $spacing-sm $spacing-lg;
background: $gradient-primary;
color: $white;
border: none;
border-radius: $border-radius-md;
font-size: $font-size-sm;
font-weight: $font-weight-medium;
cursor: pointer;
transition: $transition-base;
white-space: nowrap;
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
}
&:active {
transform: translateY(0);
}
i {
margin-right: $spacing-xs;
}
}
}
}
+4
View File
@@ -30,6 +30,8 @@
@import 'components/cta';
@import 'components/password-popup';
@import 'components/header-auth';
@import 'components/tables';
@import 'components/accordion';
// 5. Page-specific styles
@import 'pages/index';
@@ -42,6 +44,8 @@
@import 'pages/mypage';
@import 'pages/apikey-register';
@import 'pages/apikey-detail';
@import 'pages/notice';
@import 'pages/inquiry';
// 6. Themes
@import 'themes/dark';
@@ -0,0 +1,961 @@
// -----------------------------------------------------------------------------
// 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;
background: $gradient-primary;
-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 {
display: inline-flex;
align-items: center;
justify-content: center;
padding: $spacing-xs $spacing-md;
border-radius: $border-radius-full;
font-size: $font-size-xs;
font-weight: $font-weight-semibold;
white-space: nowrap;
&.status-pending {
background: rgba($accent-orange, 0.1);
color: $accent-orange;
}
&.status-completed {
background: rgba($accent-green, 0.1);
color: $accent-green;
}
}
}
.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;
}
}
}
// ===========================
// Shared Button Styles (used across all inquiry pages)
// ===========================
// Base action button styles - NOT nested, applies globally
.action-btn-new,
.action-btn-primary,
.action-btn-secondary,
.action-btn-edit,
.action-btn-delete {
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;
}
i {
font-size: 16px;
}
}
// New inquiry button & primary action (create, submit)
.action-btn-new,
.action-btn-primary {
background: $gradient-primary;
color: $white;
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
}
&:active {
transform: translateY(0);
}
}
// Secondary action button (cancel, back, list)
.action-btn-secondary {
background: $white;
color: $text-dark;
border: 1px solid $border-gray;
&:hover {
background: $gray-bg;
border-color: $primary-blue;
color: $primary-blue;
}
&:active {
transform: scale(0.98);
}
}
// Edit button
.action-btn-edit {
background: $primary-blue;
color: $white;
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
background: $secondary-blue;
}
&:active {
transform: translateY(0);
}
}
// Delete button
.action-btn-delete {
background: $accent-orange;
color: $white;
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
background: darken($accent-orange, 5%);
}
&:active {
transform: translateY(0);
}
}
// ===========================
// Button Container Layouts
// ===========================
// 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 {
max-width: 960px;
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;
background: linear-gradient(180deg, $light-bg 0%, $white 100%);
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-lg $spacing-md;
}
.status-badge-header {
display: inline-flex;
align-items: center;
justify-content: center;
padding: $spacing-xs $spacing-md;
border-radius: $border-radius-full;
font-size: $font-size-xs;
font-weight: $font-weight-semibold;
margin-bottom: $spacing-md;
&.status-pending {
background: rgba($accent-orange, 0.1);
color: $accent-orange;
}
&.status-completed {
background: rgba($accent-green, 0.1);
color: $accent-green;
}
}
.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: column;
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 {
background: $gradient-primary;
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 {
max-width: 960px;
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 field wrapper
.file-upload-wrapper {
display: flex;
gap: $spacing-md;
align-items: center;
width: 100%;
@media (max-width: $breakpoint-sm) {
flex-direction: column;
align-items: stretch;
}
// File name display input
.file-name-display {
flex: 1;
padding: $spacing-md;
background: $gray-bg;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
font-size: $font-size-sm;
color: $text-gray;
cursor: default;
transition: $transition-base;
&.has-file {
color: $text-dark;
background: rgba($primary-blue, 0.05);
border-color: $primary-blue;
}
&:focus {
outline: none;
border-color: $primary-blue;
box-shadow: 0 0 0 3px rgba($primary-blue, 0.1);
}
}
// File upload button (label)
.file-upload-btn {
padding: $spacing-md $spacing-lg;
background: $gradient-primary;
color: $white;
border-radius: $border-radius-md;
font-size: $font-size-sm;
font-weight: $font-weight-medium;
cursor: pointer;
transition: $transition-base;
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: $spacing-xs;
border: none;
@media (max-width: $breakpoint-sm) {
justify-content: center;
}
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
}
&:active {
transform: translateY(0);
}
i {
font-size: 14px;
}
}
// File remove button
.file-remove-btn {
padding: $spacing-md;
background: $accent-orange;
color: $white;
border-radius: $border-radius-md;
border: none;
cursor: pointer;
transition: $transition-base;
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
@media (max-width: $breakpoint-sm) {
width: 100%;
height: auto;
padding: $spacing-md;
}
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
background: darken($accent-orange, 5%);
}
&:active {
transform: translateY(0);
}
i {
font-size: 14px;
}
}
// Hidden file input
input[type="file"] {
display: none;
}
}
// File help text
.form-help-text {
margin-top: $spacing-md;
font-size: $font-size-xs;
color: $text-light;
line-height: $line-height-normal;
p {
margin: $spacing-xs 0;
display: flex;
align-items: flex-start;
gap: $spacing-xs;
i {
color: $primary-blue;
margin-top: 2px;
flex-shrink: 0;
}
}
}
}
}
// 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
}
@@ -0,0 +1,455 @@
// -----------------------------------------------------------------------------
// Notice Pages - List and Detail Views
// -----------------------------------------------------------------------------
// Notice list page container
.notice-page {
min-height: calc(100vh - 140px);
background: $gray-bg;
padding: $spacing-3xl $spacing-lg;
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-md;
}
}
.notice-container {
max-width: $container-max-width;
margin: 0 auto;
}
// Page header
.notice-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;
background: $gradient-primary;
-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;
}
}
}
// Notice list wrapper
.notice-list-wrapper {
background: $white;
border-radius: $border-radius-lg;
box-shadow: $shadow-md;
overflow: hidden;
margin-bottom: $spacing-xl;
}
// Notice detail page
.notice-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;
}
}
.notice-detail-container {
max-width: 960px;
margin: 0 auto;
}
// Notice detail card
.notice-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;
background: linear-gradient(180deg, $light-bg 0%, $white 100%);
@media (max-width: $breakpoint-sm) {
padding: $spacing-2xl $spacing-lg $spacing-md;
}
.notice-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;
}
}
.notice-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: 300px;
@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;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
}
// Content formatting
p {
margin-bottom: $spacing-md;
&:last-child {
margin-bottom: 0;
}
}
h1, h2, h3, h4, h5, h6 {
margin-top: $spacing-xl;
margin-bottom: $spacing-md;
font-weight: $font-weight-semibold;
color: $text-dark;
}
img {
max-width: 100%;
height: auto;
border-radius: $border-radius-md;
margin: $spacing-lg 0;
}
a {
color: $primary-blue;
text-decoration: underline;
&:hover {
color: $secondary-blue;
}
}
ul, ol {
margin: $spacing-md 0;
padding-left: $spacing-xl;
}
li {
margin-bottom: $spacing-sm;
}
blockquote {
border-left: 4px solid $primary-blue;
padding-left: $spacing-lg;
margin: $spacing-lg 0;
color: $text-gray;
font-style: italic;
}
code {
background: $gray-bg;
padding: 2px 6px;
border-radius: $border-radius-sm;
font-family: $font-family-mono;
font-size: 0.9em;
color: $primary-blue;
}
pre {
background: $gray-bg;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
padding: $spacing-md;
overflow-x: auto;
margin: $spacing-lg 0;
code {
background: transparent;
padding: 0;
color: $text-dark;
}
}
table {
width: 100%;
border-collapse: collapse;
margin: $spacing-lg 0;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
overflow: hidden;
th {
background: $light-bg;
padding: $spacing-sm $spacing-md;
text-align: left;
font-weight: $font-weight-semibold;
border-bottom: 2px solid $border-gray;
}
td {
padding: $spacing-sm $spacing-md;
border-bottom: 1px solid $border-gray;
}
tr:last-child td {
border-bottom: none;
}
}
}
}
}
// Action buttons
.notice-actions {
display: flex;
justify-content: center;
gap: $spacing-md;
margin-bottom: $spacing-3xl;
@media (max-width: $breakpoint-sm) {
flex-direction: column;
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;
@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 {
background: $gradient-primary;
color: $white;
border: none;
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
}
}
&.btn-delete {
background: $accent-orange;
color: $white;
border: none;
&:hover {
transform: translateY(-2px);
box-shadow: $shadow-md;
}
}
i {
font-size: 16px;
}
}
}
// Navigation (prev/next)
.notice-navigation {
background: $white;
border-radius: $border-radius-lg;
box-shadow: $shadow-sm;
overflow: hidden;
.nav-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: $spacing-lg $spacing-2xl;
border-bottom: 1px solid $border-gray;
transition: $transition-base;
cursor: pointer;
@media (max-width: $breakpoint-sm) {
flex-direction: column;
align-items: flex-start;
padding: $spacing-md $spacing-lg;
gap: $spacing-sm;
}
&:last-child {
border-bottom: none;
}
&:hover {
background: $gray-bg;
.nav-title {
color: $primary-blue;
}
}
.nav-label {
display: flex;
align-items: center;
gap: $spacing-sm;
font-size: $font-size-sm;
font-weight: $font-weight-medium;
color: $text-gray;
min-width: 80px;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-xs;
}
i {
color: $primary-blue;
}
}
.nav-title {
flex: 1;
font-size: $font-size-base;
color: $text-dark;
transition: $transition-base;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-sm;
}
}
.nav-date {
font-size: $font-size-sm;
color: $text-light;
min-width: 100px;
text-align: right;
@media (max-width: $breakpoint-sm) {
font-size: $font-size-xs;
text-align: left;
}
}
}
}