blob: 93f82c458958bed20ff8f36ca3f70d381699a909 [file] [log] [blame]
lfmylbhf223a10f2025-06-08 20:50:31 +08001@import '../../../globals.scss';
2
3//全局容器样式
4.resources-container {
5 max-width: 1200px;
6 margin: 0 auto;
7 padding: 0 2rem;
8
9 .resource-title {
10
11 }
12
13 .resources-list {
14 width: 100%;
15 padding: 1rem;
16
17 &-card {
18 height: 140px;
19 padding: 1.5rem;
20 margin-bottom: 1rem;
21 border-radius: 0.5rem;
22 transition: transform 0.3s ease;
23 box-shadow: none !important; // 取消阴影
24
25 //填充卡片
26 &.p-card.p-component {
27 padding: 0;
28 }
29
30 .p-card-body {
31 padding: 0;
32 }
33
34 &:hover {
35 transform: translateY(-3px);
36 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
37 }
38
39 .p-card-content {
40 height: 140px;
41 display: flex;
42 justify-content: space-between;
43 padding: 0;
44 }
45
46 img {
47 border-radius: 0.5rem 0 0 0.5rem;
48 object-fit: cover;
49 }
50
51
52 .resource-avatar {
53 width: 80px;
54 height: 80px;
55 border-radius: 8px;
56 object-fit: cover;
57 }
58
59 .resource-header {
60 display: flex;
61 flex: 1;
62 max-width: 850px;
63 padding-left: 20px;
64 padding-right: 20px;
65 margin-bottom: 20px;
66 }
67
68 .resource-content {
69 flex: 1;
70 display: flex;
71 flex-direction: column;
72
73 h3 {
74 font-size: 1.5rem;
75 font-weight: bold;
76 color: #2c3e50;
77 }
78
79
80 }
81
82 .resource-operation {
83 min-width: 240px;
84 display: flex;
85 flex-direction: row;
86 justify-content: flex-end;
87 align-items: flex-end;
88 gap: 1rem;
89 }
90 }
91 }
92}
93
94//删除资源弹窗样式
95.resource-delete-dialog {
96 width: 350px !important;
97 max-width: 90vw;
98
99 .dialog-footer {
100 margin-top: 10px;
101 display: flex;
102 justify-content: center;
103 }
104
105 .p-dialog-header {
106 font-size: 1.5rem;
107 font-weight: bold;
108 color: $heading-color;
109 padding-bottom: 0.5rem;
110 }
111
112 .p-dialog-content {
113 padding-top: 0;
114 padding-bottom: 0;
115
116 .dialog-form {
117 display: flex;
118 flex-direction: column;
119 gap: 1.5rem;
120 margin-top: 1rem;
121
122 .form-field {
123 display: flex;
124 flex-direction: column;
125 gap: 0.5rem;
126
127 label {
128 font-weight: 600;
129 color: $heading-color;
130 }
131
132 input,
133 textarea{
134 padding: 0.75rem 1rem;
135 border-radius: 8px;
136 font-size: 1rem;
137 color: #2d3748;
138 }
139
140 }
141 }
142 }
143}
144
145//资源编辑弹窗样式
146.resource-edit-dialog {
147 width: 600px !important;
148 max-width: 90vw;
149
150 .dialog-footer {
151 margin-top: 10px;
152 display: flex;
153 justify-content: center;
154 }
155
156 .p-dialog-header {
157 font-size: 1.5rem;
158 font-weight: bold;
159 color: $heading-color;
160 padding-bottom: 0.5rem;
161 }
162
163 .p-dialog-content {
164 padding-top: 0;
165 padding-bottom: 0;
166
167 .dialog-form {
168 display: flex;
169 flex-direction: column;
170 gap: 1.5rem;
171 margin-top: 1rem;
172
173 .form-field {
174 display: flex;
175 flex-direction: column;
176 gap: 0.5rem;
177
178 label {
179 font-weight: 600;
180 color: $heading-color;
181 }
182
183 input,
184 textarea{
185 padding: 0.75rem 1rem;
186 border-radius: 8px;
187 font-size: 1rem;
188 color: #2d3748;
189 }
190
191 .p-fileupload {
192 .p-button {
193 width: 100%;
194 justify-content: center;
195 border: none;
196 margin-bottom: 1rem;
197 }
198 }
199 }
200 }
201 }
202}