xiaoyukkkk commited on
Commit
f7f20ac
·
verified ·
1 Parent(s): 6e23603

Upload admin.css

Browse files
Files changed (1) hide show
  1. static/css/admin.css +119 -2
static/css/admin.css CHANGED
@@ -74,17 +74,98 @@
74
  font-size: 13px;
75
  border: 1px solid transparent;
76
  margin-bottom: 12px;
 
77
  }
78
  .alert-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
79
  .alert-content { flex: 1; }
80
- .alert-desc { color: inherit; opacity: 0.9; margin-top: 2px; font-size: 12px; }
81
- .alert-link { color: inherit; text-decoration: underline; margin-left: 10px; font-weight: 600; cursor: pointer; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  .alert-info { background: #eef7fe; border-color: #dcebfb; color: #1c5b96; }
83
  .alert-success { background: #eafbf0; border-color: #d3f3dd; color: #15682e; }
84
  .alert-warning { background: #fff8e6; border-color: #fcebc2; color: #9c6e03; }
85
  .alert-error { background: #ffebeb; border-color: #fddddd; color: #c41e1e; }
86
  .alert-primary { background: #f9fafb; border-color: #e5e7eb; color: #374151; }
87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  /* Sections & Grids */
89
  .section { margin-bottom: 30px; }
90
  .section-title {
@@ -520,11 +601,47 @@
520
  border: 1px solid #e1effe;
521
  }
522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
523
  @media (max-width: 800px) {
524
  .grid-3, .grid-env { grid-template-columns: 1fr; }
525
  .header { flex-direction: column; align-items: flex-start; gap: 16px; }
526
  .header-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
527
  .header-actions .btn { justify-content: center; text-align: center; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
  .ep-table td { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
529
  .ep-desc { margin-left: 0; }
530
 
 
74
  font-size: 13px;
75
  border: 1px solid transparent;
76
  margin-bottom: 12px;
77
+ position: relative;
78
  }
79
  .alert-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
80
  .alert-content { flex: 1; }
81
+ .alert-desc { color: inherit; opacity: 0.75; margin-top: 4px; font-size: 11px; line-height: 1.4; }
82
+ .alert-link {
83
+ color: inherit;
84
+ text-decoration: none;
85
+ margin-left: 8px;
86
+ font-weight: 600;
87
+ cursor: pointer;
88
+ padding: 0;
89
+ border-radius: 4px;
90
+ display: inline;
91
+ transition: opacity 0.2s;
92
+ font-size: 13px;
93
+ }
94
+ .alert-link:hover {
95
+ opacity: 0.8;
96
+ text-decoration: none;
97
+ }
98
+ .alert-close {
99
+ background: none;
100
+ border: none;
101
+ color: inherit;
102
+ font-size: 20px;
103
+ line-height: 1;
104
+ cursor: pointer;
105
+ padding: 0;
106
+ width: 24px;
107
+ height: 24px;
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+ opacity: 0.6;
112
+ transition: opacity 0.2s;
113
+ flex-shrink: 0;
114
+ }
115
+ .alert-close:hover { opacity: 1; }
116
  .alert-info { background: #eef7fe; border-color: #dcebfb; color: #1c5b96; }
117
  .alert-success { background: #eafbf0; border-color: #d3f3dd; color: #15682e; }
118
  .alert-warning { background: #fff8e6; border-color: #fcebc2; color: #9c6e03; }
119
  .alert-error { background: #ffebeb; border-color: #fddddd; color: #c41e1e; }
120
  .alert-primary { background: #f9fafb; border-color: #e5e7eb; color: #374151; }
121
 
122
+ /* API Endpoint Items */
123
+ .api-endpoint-item {
124
+ display: flex;
125
+ justify-content: space-between;
126
+ align-items: center;
127
+ padding: 10px 12px;
128
+ background: rgba(0,0,0,0.02);
129
+ border-radius: 6px;
130
+ margin-bottom: 8px;
131
+ gap: 12px;
132
+ }
133
+ .api-endpoint-label {
134
+ font-size: 11px;
135
+ color: #86868b;
136
+ margin-bottom: 4px;
137
+ font-weight: 500;
138
+ }
139
+ .api-endpoint-value {
140
+ font-size: 11px;
141
+ background: rgba(0,0,0,0.05);
142
+ padding: 4px 8px;
143
+ border-radius: 4px;
144
+ display: inline-block;
145
+ word-break: break-all;
146
+ font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
147
+ }
148
+ .btn-copy {
149
+ background: none;
150
+ border: 1px solid #d2d2d7;
151
+ padding: 6px 10px;
152
+ border-radius: 6px;
153
+ cursor: pointer;
154
+ font-size: 14px;
155
+ transition: all 0.2s;
156
+ flex-shrink: 0;
157
+ line-height: 1;
158
+ }
159
+ .btn-copy:hover {
160
+ background: #f0f0f2;
161
+ border-color: #b8b8bb;
162
+ }
163
+ .btn-copy.copied {
164
+ background: #34c759;
165
+ border-color: #34c759;
166
+ color: white;
167
+ }
168
+
169
  /* Sections & Grids */
170
  .section { margin-bottom: 30px; }
171
  .section-title {
 
601
  border: 1px solid #e1effe;
602
  }
603
 
604
+ .api-item {
605
+ display: flex;
606
+ align-items: center;
607
+ gap: 10px;
608
+ }
609
+ .api-item-label {
610
+ font-size: 11px;
611
+ color: #6b6b6b;
612
+ min-width: 60px;
613
+ flex-shrink: 0;
614
+ }
615
+ .api-item-code {
616
+ flex: 1;
617
+ font-size: 11px;
618
+ background: rgba(0,0,0,0.04);
619
+ padding: 4px 8px;
620
+ border-radius: 4px;
621
+ font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
622
+ word-break: break-all;
623
+ }
624
+
625
  @media (max-width: 800px) {
626
  .grid-3, .grid-env { grid-template-columns: 1fr; }
627
  .header { flex-direction: column; align-items: flex-start; gap: 16px; }
628
  .header-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
629
  .header-actions .btn { justify-content: center; text-align: center; }
630
+
631
+ /* API 接口移动端上下布局 */
632
+ .api-item {
633
+ flex-direction: column;
634
+ align-items: stretch;
635
+ gap: 4px;
636
+ }
637
+ .api-item-label {
638
+ margin-bottom: 0;
639
+ }
640
+ .api-item-content {
641
+ display: flex;
642
+ gap: 8px;
643
+ }
644
+
645
  .ep-table td { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
646
  .ep-desc { margin-left: 0; }
647