API 목록, API 상세 페이지 적용

This commit is contained in:
현성필
2025-10-02 14:12:47 +09:00
parent 02cfbf54f3
commit 46657f1744
15 changed files with 2122 additions and 309 deletions
+688
View File
@@ -4060,6 +4060,694 @@ select.form-control {
animation: countUp 0.6s ease-out forwards;
}
.api-market-container {
display: flex;
min-height: 100vh;
background-color: #F8FAFC;
position: relative;
}
.api-market-sidebar {
width: 280px;
background-color: #FFFFFF;
border-right: 1px solid #E2E8F0;
padding: 40px 24px;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
flex-shrink: 0;
}
@media (max-width: 1024px) {
.api-market-sidebar {
width: 240px;
}
}
@media (max-width: 768px) {
.api-market-sidebar {
position: fixed;
left: 0;
top: 60px;
transform: translateX(-100%);
transition: transform 0.3s ease;
box-shadow: 0 8px 24px rgba(75, 155, 255, 0.15);
z-index: 500;
height: calc(100vh - 60px);
}
.api-market-sidebar.mobile-open {
transform: translateX(0);
}
}
.api-sidebar-nav .menu-section {
margin-bottom: 4px;
}
.api-sidebar-nav .menu-title {
padding: 12px 16px;
font-size: 14px;
font-weight: 600;
color: #2E7FF7;
cursor: pointer;
border-radius: 8px;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: space-between;
}
.api-sidebar-nav .menu-title:hover {
background-color: #F8FAFC;
}
.api-sidebar-nav .menu-title.active {
background-color: #EFF6FF;
color: #2E7FF7;
}
.api-sidebar-nav .menu-title .api-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
height: 24px;
padding: 0 8px;
background-color: rgba(75, 155, 255, 0.1);
color: #4B9BFF;
font-size: 12px;
font-weight: 600;
border-radius: 50px;
transition: all 0.3s ease;
}
.api-sidebar-nav .menu-title.active .api-count {
background-color: #4B9BFF;
color: #FFFFFF;
}
.api-sidebar-nav .api-list {
padding-left: 16px;
margin-top: 4px;
margin-bottom: 8px;
}
.api-sidebar-nav .api-item {
padding: 8px 16px;
font-size: 14px;
color: #64748B;
cursor: pointer;
border-radius: 6px;
transition: all 0.3s ease;
display: flex;
align-items: center;
position: relative;
margin-bottom: 4px;
}
.api-sidebar-nav .api-item::before {
content: "•";
margin-right: 8px;
color: #4B9BFF;
opacity: 0.5;
}
.api-sidebar-nav .api-item:hover {
background-color: rgba(75, 155, 255, 0.05);
color: #1A1A2E;
padding-left: 20px;
}
.api-sidebar-nav .api-item:hover::before {
opacity: 1;
}
.api-sidebar-nav .api-item.active {
background-color: rgba(75, 155, 255, 0.1);
color: #4B9BFF;
font-weight: 500;
}
.api-sidebar-nav .api-item.active::before {
opacity: 1;
}
.api-sidebar-nav .api-item .api-name {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.api-market-content {
flex: 1;
padding: 40px 48px;
min-height: 100vh;
display: flex;
flex-direction: column;
}
@media (max-width: 768px) {
.api-market-content {
padding: 24px 16px;
}
}
.api-mobile-toggle {
display: none;
position: fixed;
bottom: 24px;
right: 24px;
width: 56px;
height: 56px;
background: linear-gradient(135deg, #4B9BFF 0%, #2E7FF7 100%);
border-radius: 50%;
border: none;
color: #FFFFFF;
font-size: 24px;
cursor: pointer;
box-shadow: 0 8px 24px rgba(75, 155, 255, 0.15);
z-index: 501;
transition: all 0.3s ease;
}
.api-mobile-toggle:hover {
transform: scale(1.05);
box-shadow: 0 16px 40px rgba(75, 155, 255, 0.2);
}
.api-mobile-toggle:active {
transform: scale(0.95);
}
@media (max-width: 768px) {
.api-mobile-toggle {
display: flex;
align-items: center;
justify-content: center;
}
}
.api-market-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
}
@media (max-width: 768px) {
.api-market-header {
flex-direction: column;
align-items: flex-start;
gap: 24px;
}
}
.api-market-title h1 {
font-size: 14px;
color: #64748B;
font-weight: 400;
margin-bottom: 4px;
}
.api-market-title h2 {
font-size: 32px;
font-weight: 700;
color: #1A1A2E;
}
.api-market-search {
position: relative;
width: 300px;
}
@media (max-width: 768px) {
.api-market-search {
width: 100%;
}
}
.api-market-search form {
position: relative;
display: flex;
align-items: center;
}
.api-market-search input {
flex: 1;
padding: 12px 48px 12px 16px;
border: 1px solid #E2E8F0;
border-radius: 12px;
font-size: 14px;
outline: none;
transition: all 0.3s ease;
}
.api-market-search input:focus {
border-color: #4B9BFF;
box-shadow: 0 0 0 3px rgba(75, 155, 255, 0.1);
}
.api-market-search input::placeholder {
color: #94A3B8;
}
.api-market-search .search-submit-btn {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
width: 36px;
height: 36px;
background: transparent;
border: none;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
color: #64748B;
}
.api-market-search .search-submit-btn:hover {
background: #EFF6FF;
color: #4B9BFF;
transform: translateY(-50%) scale(1.05);
}
.api-market-search .search-submit-btn:active {
transform: translateY(-50%) scale(0.95);
}
.api-market-search .search-submit-btn .search-icon {
font-size: 18px;
display: block;
}
.api-result-count {
font-size: 16px;
color: #64748B;
margin-bottom: 32px;
}
.api-result-count strong {
color: #4B9BFF;
font-weight: 600;
}
.api-card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 24px;
}
@media (max-width: 768px) {
.api-card-grid {
grid-template-columns: 1fr;
}
}
.api-card {
background: #FFFFFF;
border-radius: 12px;
padding: 32px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 220px;
position: relative;
overflow: hidden;
}
.api-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(135deg, #4B9BFF 0%, #2E7FF7 100%);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
.api-card:hover {
box-shadow: 0 8px 24px rgba(75, 155, 255, 0.15);
transform: translateY(-5px);
}
.api-card:hover::before {
transform: scaleX(1);
}
.api-card:hover .api-card-icon {
transform: scale(1.1);
}
.api-card:active {
transform: translateY(-3px);
}
.api-card-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
}
.api-card-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
background-color: #F8FAFC;
border-radius: 6px;
font-size: 12px;
color: #64748B;
font-weight: 500;
}
.api-card-badge::before {
content: "◉";
color: #4B9BFF;
font-size: 10px;
}
.api-card-title {
font-size: 18px;
font-weight: 600;
color: #1A1A2E;
margin-bottom: 12px;
line-height: 1.2;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.api-card-description {
font-size: 14px;
color: #64748B;
line-height: 1.6;
flex-grow: 1;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.api-card-icon {
text-align: center;
margin-top: 24px;
font-size: 48px;
opacity: 0.8;
transition: transform 0.3s ease;
}
.api-card-icon img {
max-width: 60px;
max-height: 60px;
object-fit: contain;
}
.api-card:nth-child(3n+1) .api-card-icon {
color: #60a5fa;
}
.api-card:nth-child(3n+2) .api-card-icon {
color: #34d399;
}
.api-card:nth-child(3n+3) .api-card-icon {
color: #818cf8;
}
.api-empty-state {
text-align: center;
padding: 80px 24px;
color: #64748B;
}
.api-empty-state .empty-icon {
font-size: 80px;
margin-bottom: 24px;
opacity: 0.5;
}
.api-empty-state h3 {
font-size: 24px;
font-weight: 600;
color: #1A1A2E;
margin-bottom: 16px;
}
.api-empty-state p {
font-size: 16px;
color: #64748B;
}
.api-loading {
display: flex;
justify-content: center;
align-items: center;
padding: 80px;
}
.api-loading .spinner {
width: 48px;
height: 48px;
border: 4px solid #E2E8F0;
border-top-color: #4B9BFF;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.api-mobile-overlay {
display: none;
position: fixed;
top: 60px;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 499;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
@media (max-width: 768px) {
.api-mobile-overlay {
display: block;
}
}
.api-mobile-overlay.active {
opacity: 1;
pointer-events: auto;
}
.api-detail-content {
display: flex;
flex-direction: column;
gap: 32px;
}
.api-detail-tabs {
display: flex;
gap: 8px;
border-bottom: 2px solid #E2E8F0;
margin-bottom: 32px;
}
.api-detail-tabs .tab-button {
padding: 16px 24px;
background: transparent;
border: none;
border-bottom: 3px solid transparent;
font-size: 16px;
font-weight: 500;
color: #64748B;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
bottom: -2px;
}
.api-detail-tabs .tab-button:hover {
color: #4B9BFF;
background-color: rgba(75, 155, 255, 0.05);
}
.api-detail-tabs .tab-button.active {
color: #4B9BFF;
font-weight: 600;
border-bottom-color: #4B9BFF;
}
.tab-content {
display: none;
flex-direction: column;
gap: 32px;
min-height: 200px;
}
.tab-content.active {
display: flex;
}
.api-overview-card {
background: #FFFFFF;
border-radius: 12px;
padding: 32px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
gap: 24px;
}
.api-overview-card .api-overview-header {
display: flex;
flex-direction: row;
align-items: center;
gap: 16px;
}
@media (max-width: 768px) {
.api-overview-card .api-overview-header {
flex-direction: column;
align-items: flex-start;
}
}
.api-overview-card .api-method-badge {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 8px 16px;
background: linear-gradient(135deg, #4B9BFF 0%, #2E7FF7 100%);
color: #FFFFFF;
font-size: 14px;
font-weight: 600;
border-radius: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.api-overview-card .api-endpoint {
flex: 1;
}
.api-overview-card .api-endpoint code {
display: block;
padding: 8px 16px;
background-color: #F8FAFC;
border: 1px solid #E2E8F0;
border-radius: 8px;
font-size: 18px;
font-family: "Courier New", monospace;
color: #1A1A2E;
word-break: break-all;
}
.api-overview-card .api-simple-description {
padding: 16px 0;
border-bottom: 1px solid #E2E8F0;
}
.api-overview-card .api-simple-description p {
font-size: 16px;
color: #64748B;
line-height: 1.6;
margin: 0;
}
.api-overview-card .api-overview-info h4 {
font-size: 18px;
font-weight: 600;
color: #1A1A2E;
margin-bottom: 16px;
}
.api-details-grid {
display: flex;
flex-direction: column;
gap: 24px;
}
.api-detail-card {
background: #FFFFFF;
border-radius: 12px;
padding: 32px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}
.api-detail-card:hover {
box-shadow: 0 4px 12px rgba(75, 155, 255, 0.1);
}
.api-detail-card h3 {
font-size: 20px;
font-weight: 600;
color: #1A1A2E;
margin-bottom: 16px;
padding-bottom: 8px;
border-bottom: 2px solid #EFF6FF;
}
.api-detail-card .detail-content {
font-size: 14px;
color: #64748B;
line-height: 1.6;
}
.api-detail-card .detail-content pre {
background-color: #F8FAFC;
border: 1px solid #E2E8F0;
border-radius: 8px;
padding: 16px;
overflow-x: auto;
margin: 0;
}
.api-detail-card .detail-content pre code {
font-family: "Courier New", monospace;
font-size: 14px;
color: #1A1A2E;
white-space: pre-wrap;
word-break: break-word;
}
.api-detail-card .detail-content table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
background-color: #FFFFFF;
border: 1px solid #E2E8F0;
border-radius: 8px;
overflow: hidden;
}
.api-detail-card .detail-content table thead {
background-color: #EFF6FF;
}
.api-detail-card .detail-content table th {
text-align: left;
padding: 8px 16px;
font-size: 14px;
font-weight: 600;
color: #1A1A2E;
border-bottom: 2px solid #E2E8F0;
background-color: rgba(75, 155, 255, 0.05);
}
.api-detail-card .detail-content table th:not(:last-child) {
border-right: 1px solid #E2E8F0;
}
.api-detail-card .detail-content table td {
padding: 8px 16px;
font-size: 14px;
color: #64748B;
border-bottom: 1px solid #E2E8F0;
}
.api-detail-card .detail-content table td:not(:last-child) {
border-right: 1px solid #E2E8F0;
}
.api-detail-card .detail-content table tr {
transition: all 0.3s ease;
}
.api-detail-card .detail-content table tr:last-child td {
border-bottom: none;
}
.api-detail-card .detail-content table tr:hover {
background-color: rgba(75, 155, 255, 0.02);
}
.api-detail-card .detail-content table tbody tr:nth-child(even) {
background-color: rgba(248, 250, 252, 0.3);
}
.api-info-table {
width: 100%;
border-collapse: collapse;
}
.api-info-table tr {
border-bottom: 1px solid #E2E8F0;
}
.api-info-table tr:last-child {
border-bottom: none;
}
.api-info-table th {
text-align: left;
padding: 8px 16px;
font-size: 14px;
font-weight: 600;
color: #1A1A2E;
width: 30%;
background-color: #F8FAFC;
}
.api-info-table td {
padding: 8px 16px;
font-size: 14px;
color: #64748B;
}
.api-info-table td code {
display: inline-block;
padding: 2px 8px;
background-color: #F8FAFC;
border-radius: 6px;
font-family: "Courier New", monospace;
font-size: 12px;
color: #4B9BFF;
}
.login-page {
min-height: calc(100vh - 140px);
display: flex;
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
Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

+1
View File
@@ -33,6 +33,7 @@
@import 'pages/index';
@import 'pages/home';
@import 'pages/api-portal';
@import 'pages/api-market';
@import 'pages/documentation';
@import 'pages/login';
@@ -0,0 +1,780 @@
// -----------------------------------------------------------------------------
// API Market Page - Modern Sidebar + Card Grid Layout
// Reference: design/api-market.html
// -----------------------------------------------------------------------------
.api-market-container {
display: flex;
min-height: 100vh;
background-color: $gray-bg;
position: relative;
}
// Sidebar Navigation
.api-market-sidebar {
width: 280px;
background-color: $white;
border-right: 1px solid $border-gray;
padding: $spacing-2xl $spacing-lg;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
flex-shrink: 0;
@media (max-width: $breakpoint-md) {
width: 240px;
}
@media (max-width: $breakpoint-sm) {
position: fixed;
left: 0;
top: 60px; // Below mobile header
transform: translateX(-100%);
transition: transform 0.3s ease;
box-shadow: $shadow-lg;
z-index: $z-index-modal;
height: calc(100vh - 60px); // Full height minus header
&.mobile-open {
transform: translateX(0);
}
}
}
.api-sidebar-nav {
.menu-section {
margin-bottom: $spacing-xs;
}
.menu-title {
padding: 12px $spacing-md;
font-size: $font-size-sm;
font-weight: $font-weight-semibold;
color: $secondary-blue;
cursor: pointer;
border-radius: $border-radius-md;
transition: $transition-base;
display: flex;
align-items: center;
justify-content: space-between;
&:hover {
background-color: $gray-bg;
}
&.active {
background-color: $light-bg;
color: $secondary-blue;
}
.api-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
height: 24px;
padding: 0 $spacing-sm;
background-color: rgba($primary-blue, 0.1);
color: $primary-blue;
font-size: $font-size-xs;
font-weight: $font-weight-semibold;
border-radius: $border-radius-full;
transition: $transition-base;
}
&.active .api-count {
background-color: $primary-blue;
color: $white;
}
}
// Level 2: API List
.api-list {
padding-left: $spacing-md;
margin-top: $spacing-xs;
margin-bottom: $spacing-sm;
}
.api-item {
padding: 8px $spacing-md;
font-size: $font-size-sm;
color: $text-gray;
cursor: pointer;
border-radius: $border-radius-sm;
transition: $transition-base;
display: flex;
align-items: center;
position: relative;
margin-bottom: 4px;
&::before {
content: '';
margin-right: $spacing-sm;
color: $primary-blue;
opacity: 0.5;
}
&:hover {
background-color: rgba($primary-blue, 0.05);
color: $text-dark;
padding-left: calc($spacing-md + 4px);
&::before {
opacity: 1;
}
}
&.active {
background-color: rgba($primary-blue, 0.1);
color: $primary-blue;
font-weight: $font-weight-medium;
&::before {
opacity: 1;
}
}
.api-name {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
// Main Content Area
.api-market-content {
flex: 1;
padding: $spacing-2xl $spacing-3xl;
min-height: 100vh;
display: flex;
flex-direction: column;
@media (max-width: $breakpoint-sm) {
padding: $spacing-lg $spacing-md;
}
}
// Mobile Menu Toggle
.api-mobile-toggle {
display: none;
position: fixed;
bottom: $spacing-lg;
right: $spacing-lg;
width: 56px;
height: 56px;
background: $gradient-primary;
border-radius: $border-radius-circle;
border: none;
color: $white;
font-size: 24px;
cursor: pointer;
box-shadow: $shadow-lg;
z-index: $z-index-modal + 1;
transition: $transition-base;
&:hover {
transform: scale(1.05);
box-shadow: $shadow-xl;
}
&:active {
transform: scale(0.95);
}
@media (max-width: $breakpoint-sm) {
display: flex;
align-items: center;
justify-content: center;
}
}
// Header Section
.api-market-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: $spacing-2xl;
@media (max-width: $breakpoint-sm) {
flex-direction: column;
align-items: flex-start;
gap: $spacing-lg;
}
}
.api-market-title {
h1 {
font-size: $font-size-sm;
color: $text-gray;
font-weight: $font-weight-regular;
margin-bottom: $spacing-xs;
}
h2 {
font-size: $font-size-2xl;
font-weight: $font-weight-bold;
color: $text-dark;
}
}
// Search Box
.api-market-search {
position: relative;
width: 300px;
@media (max-width: $breakpoint-sm) {
width: 100%;
}
form {
position: relative;
display: flex;
align-items: center;
}
input {
flex: 1;
padding: 12px 48px 12px $spacing-md;
border: 1px solid $border-gray;
border-radius: $border-radius-lg;
font-size: $font-size-sm;
outline: none;
transition: $transition-base;
&:focus {
border-color: $primary-blue;
box-shadow: 0 0 0 3px rgba($primary-blue, 0.1);
}
&::placeholder {
color: $text-light;
}
}
.search-submit-btn {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
width: 36px;
height: 36px;
background: transparent;
border: none;
border-radius: $border-radius-md;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: $transition-base;
color: $text-gray;
&:hover {
background: $light-bg;
color: $primary-blue;
transform: translateY(-50%) scale(1.05);
}
&:active {
transform: translateY(-50%) scale(0.95);
}
.search-icon {
font-size: 18px;
display: block;
}
}
}
// Result Count
.api-result-count {
font-size: $font-size-base;
color: $text-gray;
margin-bottom: $spacing-xl;
strong {
color: $primary-blue;
font-weight: $font-weight-semibold;
}
}
// Card Grid
.api-card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: $spacing-lg;
@media (max-width: $breakpoint-sm) {
grid-template-columns: 1fr;
}
}
// API Card
.api-card {
background: $white;
border-radius: $border-radius-lg;
padding: $spacing-xl;
box-shadow: $shadow-sm;
transition: $transition-base;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 220px;
position: relative;
overflow: hidden;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: $gradient-primary;
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
&:hover {
box-shadow: $shadow-lg;
transform: translateY(-5px);
&::before {
transform: scaleX(1);
}
.api-card-icon {
transform: scale(1.1);
}
}
&:active {
transform: translateY(-3px);
}
}
.api-card-header {
display: flex;
align-items: center;
gap: $spacing-sm;
margin-bottom: $spacing-md;
}
.api-card-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
background-color: $gray-bg;
border-radius: $border-radius-sm;
font-size: $font-size-xs;
color: $text-gray;
font-weight: $font-weight-medium;
&::before {
content: "";
color: $primary-blue;
font-size: 10px;
}
}
.api-card-title {
font-size: $font-size-md;
font-weight: $font-weight-semibold;
color: $text-dark;
margin-bottom: 12px;
line-height: $line-height-tight;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.api-card-description {
font-size: $font-size-sm;
color: $text-gray;
line-height: $line-height-normal;
flex-grow: 1;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.api-card-icon {
text-align: center;
margin-top: $spacing-lg;
font-size: 48px;
opacity: 0.8;
transition: transform 0.3s ease;
img {
max-width: 60px;
max-height: 60px;
object-fit: contain;
}
}
// Icon color variations
.api-card:nth-child(3n+1) .api-card-icon {
color: #60a5fa;
}
.api-card:nth-child(3n+2) .api-card-icon {
color: #34d399;
}
.api-card:nth-child(3n+3) .api-card-icon {
color: #818cf8;
}
// Empty State
.api-empty-state {
text-align: center;
padding: $spacing-5xl $spacing-lg;
color: $text-gray;
.empty-icon {
font-size: 80px;
margin-bottom: $spacing-lg;
opacity: 0.5;
}
h3 {
font-size: $font-size-xl;
font-weight: $font-weight-semibold;
color: $text-dark;
margin-bottom: $spacing-md;
}
p {
font-size: $font-size-base;
color: $text-gray;
}
}
// Loading State
.api-loading {
display: flex;
justify-content: center;
align-items: center;
padding: $spacing-5xl;
.spinner {
width: 48px;
height: 48px;
border: 4px solid $border-gray;
border-top-color: $primary-blue;
border-radius: $border-radius-circle;
animation: spin 1s linear infinite;
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
// Mobile Overlay
.api-mobile-overlay {
display: none;
position: fixed;
top: 60px; // Below mobile header
left: 0;
right: 0;
bottom: 0;
background-color: rgba($black, 0.5);
z-index: $z-index-modal - 1;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
@media (max-width: $breakpoint-sm) {
display: block;
}
&.active {
opacity: 1;
pointer-events: auto;
}
}
// API Detail Content
.api-detail-content {
display: flex;
flex-direction: column;
gap: $spacing-xl;
}
// Tab Navigation
.api-detail-tabs {
display: flex;
gap: $spacing-sm;
border-bottom: 2px solid $border-gray;
margin-bottom: $spacing-xl;
.tab-button {
padding: $spacing-md $spacing-lg;
background: transparent;
border: none;
border-bottom: 3px solid transparent;
font-size: $font-size-base;
font-weight: $font-weight-medium;
color: $text-gray;
cursor: pointer;
transition: $transition-base;
position: relative;
bottom: -2px;
&:hover {
color: $primary-blue;
background-color: rgba($primary-blue, 0.05);
}
&.active {
color: $primary-blue;
font-weight: $font-weight-semibold;
border-bottom-color: $primary-blue;
}
}
}
// Tab Content
.tab-content {
display: none;
flex-direction: column;
gap: $spacing-xl;
min-height: 200px;
&.active {
display: flex;
}
}
// API Overview Card
.api-overview-card {
background: $white;
border-radius: $border-radius-lg;
padding: $spacing-xl;
box-shadow: $shadow-sm;
display: flex;
flex-direction: column;
gap: $spacing-lg;
.api-overview-header {
display: flex;
flex-direction: row;
align-items: center;
gap: $spacing-md;
@media (max-width: $breakpoint-sm) {
flex-direction: column;
align-items: flex-start;
}
}
.api-method-badge {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 8px 16px;
background: $gradient-primary;
color: $white;
font-size: $font-size-sm;
font-weight: $font-weight-semibold;
border-radius: $border-radius-sm;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.api-endpoint {
flex: 1;
code {
display: block;
padding: $spacing-sm $spacing-md;
background-color: $gray-bg;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
font-size: $font-size-md;
font-family: 'Courier New', monospace;
color: $text-dark;
word-break: break-all;
}
}
.api-simple-description {
padding: $spacing-md 0;
border-bottom: 1px solid $border-gray;
p {
font-size: $font-size-base;
color: $text-gray;
line-height: $line-height-normal;
margin: 0;
}
}
.api-overview-info {
h4 {
font-size: $font-size-md;
font-weight: $font-weight-semibold;
color: $text-dark;
margin-bottom: $spacing-md;
}
}
}
// API Details Grid
.api-details-grid {
display: flex;
flex-direction: column;
gap: $spacing-lg;
}
// API Detail Card
.api-detail-card {
background: $white;
border-radius: $border-radius-lg;
padding: $spacing-xl;
box-shadow: $shadow-sm;
transition: $transition-base;
&:hover {
box-shadow: $shadow-md;
}
h3 {
font-size: $font-size-lg;
font-weight: $font-weight-semibold;
color: $text-dark;
margin-bottom: $spacing-md;
padding-bottom: $spacing-sm;
border-bottom: 2px solid $light-bg;
}
.detail-content {
font-size: $font-size-sm;
color: $text-gray;
line-height: $line-height-normal;
pre {
background-color: $gray-bg;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
padding: $spacing-md;
overflow-x: auto;
margin: 0;
code {
font-family: 'Courier New', monospace;
font-size: $font-size-sm;
color: $text-dark;
white-space: pre-wrap;
word-break: break-word;
}
}
// Table styling for HTML tables in specifications
table {
width: 100%;
border-collapse: collapse;
margin: $spacing-md 0;
background-color: $white;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
overflow: hidden;
thead {
background-color: $light-bg;
}
th {
text-align: left;
padding: $spacing-sm $spacing-md;
font-size: $font-size-sm;
font-weight: $font-weight-semibold;
color: $text-dark;
border-bottom: 2px solid $border-gray;
background-color: rgba($primary-blue, 0.05);
&:not(:last-child) {
border-right: 1px solid $border-gray;
}
}
td {
padding: $spacing-sm $spacing-md;
font-size: $font-size-sm;
color: $text-gray;
border-bottom: 1px solid $border-gray;
&:not(:last-child) {
border-right: 1px solid $border-gray;
}
}
tr {
transition: $transition-base;
&:last-child td {
border-bottom: none;
}
&:hover {
background-color: rgba($primary-blue, 0.02);
}
}
tbody tr:nth-child(even) {
background-color: rgba($gray-bg, 0.3);
}
}
}
}
// API Info Table
.api-info-table {
width: 100%;
border-collapse: collapse;
tr {
border-bottom: 1px solid $border-gray;
&:last-child {
border-bottom: none;
}
}
th {
text-align: left;
padding: $spacing-sm $spacing-md;
font-size: $font-size-sm;
font-weight: $font-weight-semibold;
color: $text-dark;
width: 30%;
background-color: $gray-bg;
}
td {
padding: $spacing-sm $spacing-md;
font-size: $font-size-sm;
color: $text-gray;
code {
display: inline-block;
padding: 2px 8px;
background-color: $gray-bg;
border-radius: $border-radius-sm;
font-family: 'Courier New', monospace;
font-size: $font-size-xs;
color: $primary-blue;
}
}
}