![]()
@@ -76,32 +72,196 @@
@@ -125,10 +285,9 @@ const navigateToCreateCourse = () => {
}
.top {
- padding: 20px;
+ padding: 10px 20px;
white-space: nowrap;
/* 进一步减少左右padding */
- height: 60px;
display: flex;
align-items: center;
justify-content: space-between;
@@ -139,94 +298,21 @@ const navigateToCreateCourse = () => {
}
.nav-links {
- display: flex;
- align-items: center;
-
+ flex: 1;
}
.actions {
display: flex;
align-items: center;
flex-shrink: 0;
+ gap: 12px;
}
- .top a {
- margin-right: 74px;
- display: inline-block;
- height: 60px;
- line-height: 60px;
- font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
- font-size: 16px;
- color: #333333;
- text-decoration: none;
- position: relative;
- }
-
- .top a.active {
- color: #1890ff;
- }
-
- .top a.active::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 3px;
- background-color: #1890ff;
- }
-
- .create-btn {
- background-color: #0288D1;
- color: white;
- border: none;
- padding: 7px 16px;
- border-radius: 2px;
- font-size: 14px;
- cursor: pointer;
- margin-right: 24px;
- /* 增加按钮与搜索框间距 */
- transition: background-color 0.3s;
- }
-
- .create-btn:hover {
- background-color: #40a9ff;
- }
+
.search-container {
display: flex;
align-items: center;
- border: 1px solid #d9d9d9;
- border-radius: 2px;
- overflow: hidden;
- }
-
- .search-container input {
- border: none;
- padding: 7px 12px;
- outline: none;
- font-size: 14px;
- width: 240px;
- /* 增加搜索框宽度 */
- }
-
- .search-btn {
- background-color: #0288D1;
- border: none;
- border-left: 1px solid #d9d9d9;
- padding: 8px 16px;
- cursor: pointer;
- font-size: 16px;
- color: #FFFFFF;
- transition: background-color 0.3s;
- line-height: 18px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- }
-
- .search-btn:hover {
- background-color: #e8e8e8;
}
.course-container {
@@ -266,7 +352,7 @@ const navigateToCreateCourse = () => {
.course-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- transform: translateY(-5px);
+ /* transform: translateY(-5px); */
}
.course-image-container {
@@ -307,10 +393,12 @@ const navigateToCreateCourse = () => {
font-size: 18px;
font-weight: bold;
color: #333;
- display: block;
- padding: 0;
- margin: 0;
+ display: flex;
line-height: 1;
+ width: 32px;
+ height: 32px;
+ justify-content: center;
+ align-items: center;
}
.course-image-container img {
@@ -318,83 +406,6 @@ const navigateToCreateCourse = () => {
height: 13px;
}
- /* 添加更多选项按钮样式 */
- .more-options {
- position: relative;
- cursor: pointer;
- }
-
- .more-icon {
- font-size: 18px;
- font-weight: bold;
- color: #333;
- display: block;
- padding: 5px;
- margin: 0;
- line-height: 1;
- }
-
- .options-menu {
- position: absolute;
- top: 100%;
- right: 0;
- background: white;
- border: 1px solid #eee;
- border-radius: 4px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
- display: none;
- z-index: 10;
- width: auto;
- min-width: 59px;
- height: auto;
- }
-
- .more-options:hover .options-menu {
- display: block;
- }
-
- .option-item {
- display: flex;
- align-items: center;
- padding: 5px 8px;
- color: #333;
- text-decoration: none;
- font-size: 12px;
- text-align: center;
- height: 24px;
- line-height: 14px;
- box-sizing: border-box;
- border-bottom: 1px solid #f0f0f0;
- }
-
- .icon-edit,
- .icon-view,
- .icon-delete,
- .icon-more {
- margin-right: 4px;
- color: #1890ff;
- }
-
- .icon-view {
- color: #52c41a;
- }
-
- .icon-delete {
- color: #f5222d;
- }
-
- .icon-more {
- color: #faad14;
- }
-
- .option-item:last-child {
- border-bottom: none;
- }
-
- .option-item:hover {
- background-color: #f5f5f5;
- }
-
.course-info {
display: flex;
flex-direction: column;
@@ -523,12 +534,15 @@ const navigateToCreateCourse = () => {
border-color: #1890ff;
}
+:deep(.n-tabs.n-tabs--top .n-tab-pane){
+ padding: 0;
+}
+
/* 响应式设计 - 让卡片图片和文字响应式放大 */
/* 超大屏幕 (≥1920px) - 图片和文字放大 */
@media (min-width: 1920px) {
.course-category {
- max-width: 1800px;
margin: 0 auto;
background: #fff;
border-radius: 8px;
@@ -575,7 +589,6 @@ const navigateToCreateCourse = () => {
/* 超大屏幕 (1600px+) */
@media (min-width: 1600px) {
.course-category {
- max-width: 1500px;
margin: 0 auto;
}
diff --git a/src/components/admin/CourseComponents/CourseCreate.vue b/src/components/admin/CourseComponents/CourseCreate.vue
index ab51118..6f5b35c 100644
--- a/src/components/admin/CourseComponents/CourseCreate.vue
+++ b/src/components/admin/CourseComponents/CourseCreate.vue
@@ -3,6 +3,17 @@