| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397 |
- // 全局变量
- $primary-color: #1976d2;
- $primary-light: #e3f2fd;
- $secondary-color: #6c757d;
- $success-color: #4caf50;
- $warning-color: #ff9800;
- $danger-color: #f44336;
- $text-primary: #333;
- $text-secondary: #666;
- $text-light: #999;
- $bg-light: #f5f7fa;
- $bg-white: #fff;
- $border-color: #e1e5e9;
- $box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- $transition: all 0.3s ease;
- // 主容器
- .project-list-container {
- display: flex;
- flex-direction: column;
- height: 100vh;
- overflow: hidden;
- background-color: $bg-light;
- }
- // 加载状态
- .loading-container {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- min-height: 400px;
- gap: 16px;
- .loading-spinner {
- width: 48px;
- height: 48px;
- border: 4px solid $border-color;
- border-top-color: $primary-color;
- border-radius: 50%;
- animation: spin 1s linear infinite;
- }
- p {
- color: $text-secondary;
- font-size: 14px;
- }
- }
- @keyframes spin {
- to {
- transform: rotate(360deg);
- }
- }
- // 错误状态
- .error-container {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- min-height: 400px;
- gap: 16px;
- svg {
- color: $danger-color;
- }
- p {
- color: $text-secondary;
- font-size: 14px;
- }
- .retry-btn {
- padding: 8px 24px;
- background-color: $primary-color;
- color: white;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-size: 14px;
- transition: $transition;
- &:hover {
- background-color: darken($primary-color, 10%);
- }
- }
- }
- // 空列状态
- .empty-column {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 40px 20px;
- gap: 12px;
- svg {
- color: $text-light;
- }
- p {
- color: $text-light;
- font-size: 13px;
- }
- }
- // 顶部导航栏
- .top-navbar {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 24px;
- height: 64px;
- background-color: $bg-white;
- border-bottom: 1px solid $border-color;
- box-shadow: $box-shadow;
- .navbar-left {
- display: flex;
- align-items: center;
- gap: 16px;
- .menu-toggle {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 40px;
- border: none;
- background: none;
- color: $text-primary;
- cursor: pointer;
- transition: $transition;
- &:hover {
- color: $primary-color;
- background-color: $bg-light;
- border-radius: 4px;
- }
- }
- .app-title {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary;
- margin: 0;
- }
- }
- .navbar-right {
- display: flex;
- align-items: center;
- gap: 16px;
- .notification-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 40px;
- border: none;
- background: none;
- color: $text-primary;
- cursor: pointer;
- position: relative;
- transition: $transition;
- &:hover {
- color: $primary-color;
- background-color: $bg-light;
- border-radius: 4px;
- }
- .notification-badge {
- position: absolute;
- top: 8px;
- right: 8px;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 16px;
- height: 16px;
- font-size: 10px;
- font-weight: 600;
- color: white;
- background-color: $danger-color;
- border-radius: 50%;
- }
- }
- .user-profile {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 8px 12px;
- border-radius: 6px;
- transition: $transition;
- &:hover {
- background-color: $bg-light;
- }
- .user-avatar {
- width: 32px;
- height: 32px;
- border-radius: 50%;
- object-fit: cover;
- }
- .user-name {
- font-size: 14px;
- font-weight: 500;
- color: $text-primary;
- }
- }
- }
- }
- // 主要内容区
- .dashboard-content {
- display: flex;
- flex: 1;
- overflow: hidden;
- }
- // 左侧侧边栏
- .sidebar {
- width: 240px;
- background-color: $bg-white;
- border-right: 1px solid $border-color;
- overflow-y: auto;
- flex-shrink: 0;
- .sidebar-nav {
- padding: 16px 0;
- .nav-item {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px 24px;
- color: $text-secondary;
- text-decoration: none;
- transition: $transition;
- &:hover {
- color: $primary-color;
- background-color: $bg-light;
- }
- &.active {
- color: $primary-color;
- background-color: #e3f2fd;
- border-left: 3px solid $primary-color;
- padding-left: 21px;
- }
- svg {
- flex-shrink: 0;
- }
- span {
- font-size: 14px;
- font-weight: 500;
- }
- }
- }
- }
- // 右侧主要内容
- .project-content {
- flex: 1;
- overflow-y: auto;
- padding: 24px;
- // 页面标题和操作
- .page-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 24px;
- h2 {
- font-size: 24px;
- font-weight: 600;
- color: $text-primary;
- margin: 0;
- }
- .header-actions {
- .search-container {
- .search-box {
- display: flex;
- align-items: center;
- width: 320px;
- border: 1px solid $border-color;
- border-radius: 6px;
- overflow: hidden;
- transition: $transition;
- &:focus-within {
- border-color: $primary-color;
- box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
- }
- svg:first-child {
- margin-left: 12px;
- color: $text-light;
- }
- input {
- flex: 1;
- padding: 8px 12px;
- border: none;
- outline: none;
- font-size: 14px;
- color: $text-primary;
- background-color: $bg-white;
- }
- .search-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 100%;
- border: none;
- color: $primary-color;
- background-color: $primary-light;
- cursor: pointer;
- transition: $transition;
- &:hover {
- background-color: $primary-color;
- color: white;
- }
- }
- }
- }
- }
- }
- // 筛选和排序工具栏
- .filter-toolbar {
- display: flex;
- align-items: center;
- gap: 24px;
- padding: 16px 20px;
- margin-bottom: 24px;
- background-color: $bg-white;
- border-radius: 8px;
- box-shadow: $box-shadow;
- .filter-group {
- display: flex;
- align-items: center;
- gap: 8px;
- label {
- font-size: 14px;
- font-weight: 500;
- color: $text-secondary;
- white-space: nowrap;
- }
- select {
- padding: 6px 12px;
- border: 1px solid $border-color;
- border-radius: 4px;
- font-size: 14px;
- color: $text-primary;
- background-color: $bg-white;
- cursor: pointer;
- transition: $transition;
- &:focus {
- outline: none;
- border-color: $primary-color;
- box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
- }
- &:hover {
- border-color: $primary-color;
- }
- }
- }
- .filter-results {
- margin-left: auto;
- font-size: 14px;
- color: $text-secondary;
- }
- }
- // 项目网格布局
- .project-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
- gap: 20px;
- margin-bottom: 24px;
- // 项目卡片
- .project-card {
- display: flex;
- flex-direction: column;
- padding: 20px;
- background-color: $bg-white;
- border-radius: 8px;
- box-shadow: $box-shadow;
- transition: $transition;
- border: 1px solid transparent;
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
- border-color: $primary-light;
- }
- // 卡片头部
- .card-header {
- margin-bottom: 16px;
- .card-title-section {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: 8px;
- .project-name {
- font-size: 16px;
- font-weight: 600;
- color: $text-primary;
- margin: 0;
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .project-id {
- font-size: 12px;
- color: $text-light;
- margin-left: 8px;
- }
- }
- .card-tags {
- display: flex;
- gap: 8px;
- flex-wrap: wrap;
- .project-tag {
- padding: 4px 12px;
- font-size: 12px;
- font-weight: 500;
- color: $primary-color;
- background-color: $primary-light;
- border-radius: 16px;
- }
- .urgent-tag {
- padding: 4px 12px;
- font-size: 12px;
- font-weight: 500;
- color: $danger-color;
- background-color: #ffebee;
- border-radius: 16px;
- }
- }
- }
- // 卡片内容
- .card-content {
- flex: 1;
- // 信息项
- .info-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12px;
- .info-label {
- font-size: 13px;
- color: $text-light;
- }
- .info-value {
- font-size: 14px;
- font-weight: 500;
- color: $text-primary;
- }
- .status-badge {
- padding: 4px 12px;
- border-radius: 16px;
- font-size: 12px;
- font-weight: 500;
- }
- .stage-badge {
- padding: 4px 12px;
- border-radius: 16px;
- font-size: 12px;
- font-weight: 500;
- }
- // 状态样式
- .status-active {
- color: $primary-color;
- background-color: $primary-light;
- }
- .status-completed {
- color: $success-color;
- background-color: #e8f5e9;
- }
- .status-paused {
- color: $secondary-color;
- background-color: #f5f5f5;
- }
- .status-overdue {
- color: $danger-color;
- background-color: #ffebee;
- }
- // 阶段样式
- .stage-communication {
- color: #9c27b0;
- background-color: #f3e5f5;
- }
- .stage-modeling {
- color: #2196f3;
- background-color: #e3f2fd;
- }
- .stage-decoration {
- color: #009688;
- background-color: #e0f2f1;
- }
- .stage-rendering {
- color: #ff5722;
- background-color: #fbe9e7;
- }
- .stage-postproduction {
- color: #ff9800;
- background-color: #fff3e0;
- }
- .stage-completed {
- color: $success-color;
- background-color: #e8f5e9;
- }
- .stage-active {
- color: $danger-color;
- background-color: #ffebee;
- }
- }
- // 进度部分
- .progress-section {
- margin-bottom: 16px;
- .progress-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
- .progress-label {
- font-size: 13px;
- color: $text-light;
- }
- .progress-percentage {
- font-size: 14px;
- font-weight: 600;
- color: $primary-color;
- }
- }
- .progress-bar {
- height: 6px;
- background-color: $bg-light;
- border-radius: 3px;
- overflow: hidden;
- .progress-fill {
- height: 100%;
- border-radius: 3px;
- transition: width 0.6s ease;
- }
- }
- }
- // 时间信息
- .timeline-info {
- margin-bottom: 16px;
- .time-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
- .time-label {
- font-size: 13px;
- color: $text-light;
- }
- .time-value {
- font-size: 13px;
- color: $text-secondary;
- }
- .deadline {
- &.overdue {
- color: $danger-color;
- font-weight: 500;
- }
- &.urgent {
- color: $warning-color;
- font-weight: 500;
- }
- }
- }
- }
- // 高优先级需求
- .needs-section {
- padding-top: 12px;
- border-top: 1px solid $border-color;
- .needs-label {
- display: block;
- font-size: 13px;
- color: $text-light;
- margin-bottom: 8px;
- }
- .needs-list {
- margin: 0;
- padding: 0;
- list-style: none;
- li {
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 13px;
- color: $warning-color;
- margin-bottom: 4px;
- svg {
- flex-shrink: 0;
- color: $warning-color;
- }
- }
- }
- }
- }
- // 卡片底部
- .card-footer {
- display: flex;
- gap: 12px;
- margin-top: 16px;
- padding-top: 16px;
- border-top: 1px solid $border-color;
- .secondary-btn,
- .primary-btn {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 8px 16px;
- border: none;
- border-radius: 6px;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: $transition;
- }
- .primary-btn {
- flex: 1;
- color: white;
- background-color: $primary-color;
- &:hover {
- background-color: #1565c0;
- }
-
- &:active {
- background-color: #0E42CB;
- }
- }
- .secondary-btn {
- flex: 1;
- color: $text-primary;
- background-color: $bg-light;
- &:hover {
- background-color: $border-color;
- }
-
- &:active {
- background-color: #D1D1D6;
- }
- }
- .card-action {
- justify-content: center;
- }
- }
- }
- }
- // 分页控件
- .pagination {
- display: flex;
- justify-content: center;
- align-items: center;
- gap: 8px;
- padding: 20px;
- background-color: $bg-white;
- border-radius: 8px;
- box-shadow: $box-shadow;
- .pagination-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 36px;
- height: 36px;
- border: 1px solid $border-color;
- background-color: $bg-white;
- color: $text-secondary;
- border-radius: 4px;
- cursor: pointer;
- transition: $transition;
- font-size: 14px;
- font-weight: 500;
- &:hover:not(:disabled) {
- color: $primary-color;
- border-color: $primary-color;
- }
- &:active:not(:disabled):not(.active) {
- background-color: $primary-light;
- }
- &.active {
- color: white;
- background-color: $primary-color;
- border-color: $primary-color;
- }
- &.active:active {
- background-color: #0E42CB;
- }
- &:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- }
- .pagination-ellipsis {
- font-size: 14px;
- color: $text-light;
- padding: 0 8px;
- }
- }
- }
- // 响应式设计
- @media (max-width: 1200px) {
- .project-grid {
- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
- }
- }
- @media (max-width: 1024px) {
- .sidebar {
- width: 200px;
- }
- .project-content {
- padding: 16px;
- }
- .filter-toolbar {
- flex-wrap: wrap;
- }
- .page-header {
- flex-direction: column;
- align-items: flex-start !important;
- gap: 16px;
- }
- .header-actions {
- width: 100%;
- }
- .search-box {
- width: 100% !important;
- }
- }
- @media (max-width: 768px) {
- .top-navbar {
- padding: 0 16px;
- .navbar-right {
- gap: 8px;
- }
- .user-name {
- display: none;
- }
- }
- .sidebar {
- display: none;
- }
- .filter-toolbar {
- gap: 16px;
- padding: 12px 16px;
- .filter-group {
- flex: 1 1 calc(50% - 8px);
- }
- .filter-results {
- width: 100%;
- margin-left: 0;
- text-align: center;
- }
- }
- .project-grid {
- grid-template-columns: 1fr !important;
- gap: 16px !important;
- }
- .pagination {
- padding: 16px;
- }
- .pagination-btn {
- width: 32px !important;
- height: 32px !important;
- font-size: 13px !important;
- }
- }
- // 动画效果
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(10px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- .project-card {
- animation: fadeIn 0.4s ease-out;
- }
- .project-card:nth-child(2n) {
- animation-delay: 0.1s;
- }
- .project-card:nth-child(3n) {
- animation-delay: 0.2s;
- }
- .project-card:nth-child(4n) {
- animation-delay: 0.3s;
- }
- /* --- Kanban, toolbar, and modal styles (scoped to customer-service project list) --- */
- /* Header actions layout */
- .project-content .page-header .header-actions {
- display: flex;
- align-items: center;
- gap: 12px;
- }
- /* View toggle buttons */
- .project-content .page-header .header-actions .view-toggle {
- display: inline-flex;
- border: 1px solid $border-color;
- background-color: $bg-white;
- border-radius: 6px;
- overflow: hidden;
- }
- .project-content .page-header .header-actions .view-toggle button {
- padding: 8px 12px;
- border: none;
- background: transparent;
- color: $text-secondary;
- font-size: 14px;
- cursor: pointer;
- transition: $transition;
- }
- .project-content .page-header .header-actions .view-toggle button:hover:not(.active) {
- background-color: $bg-light;
- color: $text-primary;
- }
- .project-content .page-header .header-actions .view-toggle button.active {
- background-color: $primary-light;
- color: $primary-color;
- font-weight: 600;
- }
- /* Add project button */
- .project-content .page-header .header-actions .add-project-btn {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- padding: 8px 12px;
- border: none;
- border-radius: 6px;
- color: #fff;
- background-color: $primary-color;
- cursor: pointer;
- transition: $transition;
- }
- .project-content .page-header .header-actions .add-project-btn:hover {
- background-color: #1565c0;
- }
- .project-content .page-header .header-actions .add-project-btn:active {
- background-color: #0E42CB;
- }
- /* Kanban layout */
- .project-content .kanban-container {
- background-color: transparent;
- width: 100%;
- overflow: hidden;
- }
- .project-content .kanban-scroll {
- overflow-x: auto;
- padding-bottom: 8px;
- width: 100%;
- }
- .project-content .kanban-header,
- .project-content .kanban-body {
- display: grid;
- grid-template-columns: repeat(4, 1fr); // 四列平均分布
- gap: 16px;
- width: 100%;
- min-width: 0; // 允许列收缩
-
- // 响应式设计
- @media (max-width: 1400px) {
- gap: 12px;
- }
-
- @media (max-width: 1200px) {
- grid-template-columns: repeat(2, 1fr); // 小屏幕显示2列
- }
-
- @media (max-width: 768px) {
- grid-template-columns: 1fr; // 移动端显示1列
- }
- }
- /* Column header */
- .project-content .kanban-header .kanban-column-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px;
- background-color: $bg-white;
- border: 1px solid $border-color;
- border-radius: 8px;
- box-shadow: $box-shadow;
- }
- .project-content .kanban-header .kanban-column-header .column-title {
- margin: 0;
- font-size: 14px;
- font-weight: 600;
- color: $text-primary;
- }
- .project-content .kanban-header .kanban-column-header .stage-count {
- font-size: 12px;
- color: $text-light;
- background-color: $bg-light;
- border-radius: 12px;
- padding: 2px 8px;
- }
- /* Column body */
- .project-content .kanban-body .kanban-column {
- min-height: 420px;
- max-height: calc(100vh - 300px); // 限制最大高度
- padding: 12px;
- background-color: $bg-white;
- border: 1px dashed $border-color;
- border-radius: 8px;
- box-shadow: $box-shadow;
- overflow-y: auto; // 内容超出时滚动
- overflow-x: hidden; // 禁止横向滚动
- min-width: 0; // 允许收缩
-
- // 自定义滚动条样式
- &::-webkit-scrollbar {
- width: 6px;
- }
-
- &::-webkit-scrollbar-track {
- background: transparent;
- }
-
- &::-webkit-scrollbar-thumb {
- background: rgba(0, 0, 0, 0.1);
- border-radius: 3px;
-
- &:hover {
- background: rgba(0, 0, 0, 0.2);
- }
- }
- }
- /* Card */
- .project-content .kanban-card {
- background-color: $bg-white;
- border: 1px solid rgba(0, 0, 0, 0.06);
- border-radius: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
- padding: 18px;
- margin-bottom: 14px;
- cursor: pointer;
- transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
- position: relative;
- overflow: hidden;
- // 卡片顶部装饰条
- &::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- height: 3px;
- background: linear-gradient(90deg, $primary-color, lighten($primary-color, 15%));
- opacity: 0;
- transition: opacity 0.25s ease;
- }
- }
- .project-content .kanban-card:hover {
- transform: translateY(-4px);
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
- border-color: rgba($primary-color, 0.2);
- &::before {
- opacity: 1;
- }
- }
- .project-content .kanban-card:active {
- transform: translateY(-2px);
- }
- .project-content .kanban-card-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- margin-bottom: 12px;
- gap: 8px;
- min-width: 0; // 允许收缩
- }
- .project-content .kanban-card-header .left {
- display: flex;
- flex-direction: column;
- gap: 4px;
- flex: 1;
- min-width: 0; // 允许收缩
- overflow: hidden;
- }
- .project-content .kanban-card-header .left .project-name {
- margin: 0;
- font-size: 15px;
- font-weight: 600;
- color: $text-primary;
- line-height: 1.4;
- letter-spacing: -0.01em;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2; // 最多显示2行
- line-clamp: 2; // 标准属性
- -webkit-box-orient: vertical;
- word-break: break-word;
- }
- .project-content .kanban-card-header .left .project-id {
- font-size: 11px;
- color: $text-light;
- font-weight: 500;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .project-content .kanban-card-header .right {
- display: flex;
- align-items: center;
- gap: 6px;
- flex-shrink: 0; // 不收缩
- }
- /* Pending badge */
- .project-content .pending-badge {
- color: $warning-color;
- background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
- border: 1px solid rgba($warning-color, 0.3);
- padding: 4px 10px;
- border-radius: 14px;
- font-size: 11px;
- font-weight: 600;
- letter-spacing: 0.02em;
- box-shadow: 0 2px 4px rgba($warning-color, 0.1);
- animation: pulse-badge 2s ease-in-out infinite;
- }
- @keyframes pulse-badge {
- 0%, 100% {
- box-shadow: 0 2px 4px rgba($warning-color, 0.1);
- }
- 50% {
- box-shadow: 0 2px 8px rgba($warning-color, 0.25);
- }
- }
- .project-content .kanban-card-content {
- font-size: 13px;
- color: $text-secondary;
- min-width: 0; // 允许收缩
- overflow: hidden;
-
- // 确保所有子元素不溢出
- > * {
- min-width: 0;
- overflow: hidden;
- }
-
- // 文本内容截断
- p, div {
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-word;
- }
- }
- .project-content .kanban-card-content .stage-badge {
- padding: 2px 8px;
- border-radius: 12px;
- font-size: 12px;
- }
- .project-content .kanban-card-content .progress-line {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .project-content .kanban-card-content .progress-line .progress-bar {
- flex: 1;
- height: 6px;
- background-color: $bg-light;
- border-radius: 3px;
- overflow: hidden;
- }
- .project-content .kanban-card-content .progress-line .progress-fill {
- height: 100%;
- background-color: $primary-color;
- }
- .project-content .kanban-card-content .progress-line .progress-text {
- font-size: 12px;
- color: $text-secondary;
- }
- .project-content .kanban-card-footer {
- display: flex;
- justify-content: flex-end;
- }
- .project-content .kanban-card-footer .btn-link {
- border: none;
- background: none;
- color: $primary-color;
- cursor: pointer;
- padding: 6px 8px;
- }
- .project-content .kanban-card-footer .btn-link:hover {
- text-decoration: underline;
- }
- /* Modal */
- .modal-backdrop {
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.4);
- z-index: 1000;
- }
- .modal {
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 480px;
- max-width: 90vw;
- background: $bg-white;
- border-radius: 8px;
- box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
- z-index: 1001;
- overflow: hidden;
- }
- .modal .modal-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 16px;
- border-bottom: 1px solid $border-color;
- }
- .modal .modal-header h3 {
- margin: 0;
- font-size: 18px;
- color: $text-primary;
- }
- .modal .modal-header .close-btn {
- border: none;
- background: none;
- font-size: 16px;
- color: $text-secondary;
- cursor: pointer;
- }
- .modal .modal-header .close-btn:hover {
- color: $text-primary;
- }
- .modal .modal-body {
- padding: 16px;
- }
- .modal .modal-body .form-item {
- margin-bottom: 12px;
- }
- .modal .modal-body .form-item label {
- display: block;
- font-size: 13px;
- color: $text-secondary;
- margin-bottom: 6px;
- }
- .modal .modal-body .form-item input,
- .modal .modal-body .form-item textarea {
- width: 100%;
- border: 1px solid $border-color;
- border-radius: 6px;
- padding: 8px 10px;
- font-size: 14px;
- background: $bg-white;
- outline: none;
- }
- .modal .modal-body .form-item input:focus,
- .modal .modal-body .form-item textarea:focus {
- border-color: $primary-color;
- box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
- }
- .modal .modal-body .tip {
- font-size: 12px;
- color: $text-light;
- margin-top: 8px;
- }
- .modal .modal-footer {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- gap: 12px;
- padding: 12px 16px;
- border-top: 1px solid $border-color;
- }
- .modal .modal-footer .btn-secondary,
- .modal .modal-footer .btn-primary {
- border: none;
- border-radius: 6px;
- padding: 8px 16px;
- font-size: 14px;
- cursor: pointer;
- }
- .modal .modal-footer .btn-secondary {
- background: $bg-light;
- color: $text-primary;
- }
- .modal .modal-footer .btn-secondary:hover {
- background: $border-color;
- }
- .modal .modal-footer .btn-primary {
- background: $primary-color;
- color: #fff;
- }
- .modal .modal-footer .btn-primary:hover {
- background: #1565c0;
- }
- .modal .modal-footer .btn-primary:active {
- background: #0E42CB;
- }
- // 监控大盘视图样式
- .dashboard-container {
- width: 100%;
- height: 100%;
- min-height: 800px;
- border: none;
-
- iframe {
- width: 100%;
- height: 100%;
- min-height: 800px;
- border: none;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
- }
- }
- // 视图切换按钮样式优化
- .view-toggle-buttons {
- .btn-view-toggle {
- &.active {
- background-color: $primary-color;
- color: white;
-
- // 监控大盘按钮特殊样式
- &[data-view="dashboard"] {
- background-color: #9c27b0; // 紫色主题色
- border-color: #9c27b0;
-
- &:hover {
- background-color: #7b1fa2;
- border-color: #7b1fa2;
- }
- }
- }
- }
- }
|