123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- @import '../ios-theme.scss';
- :host {
- display: block;
- background-color: $ios-background-secondary;
- min-height: 100vh;
- padding: $ios-spacing-lg;
- }
- .dashboard-header {
- margin-bottom: $ios-spacing-xxl;
- h1 {
- font-size: $ios-font-size-xl;
- font-weight: $ios-font-weight-bold;
- color: $ios-text-primary;
- margin: 0;
- }
- }
- .dashboard-main {
- max-width: 1400px;
- margin: 0 auto;
- }
- .section-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: $ios-spacing-lg;
- h2 {
- font-size: $ios-font-size-lg;
- font-weight: $ios-font-weight-semibold;
- color: $ios-text-primary;
- margin: 0;
- }
- }
- .section-filters {
- display: flex;
- gap: $ios-spacing-md;
- select {
- padding: $ios-spacing-sm $ios-spacing-md;
- border: 1px solid $ios-border;
- border-radius: $ios-radius-md;
- background-color: $ios-background;
- font-size: $ios-font-size-sm;
- color: $ios-text-primary;
- cursor: pointer;
- &:focus {
- outline: none;
- border-color: $ios-primary;
- }
- }
- }
- /* 项目监控大盘样式 */
- .monitoring-section {
- background-color: $ios-card-background;
- border-radius: $ios-radius-lg;
- padding: $ios-spacing-xl;
- margin-bottom: $ios-spacing-xl;
- box-shadow: $ios-shadow-card;
- }
- .project-gantt-chart {
- .project-bar {
- display: flex;
- gap: $ios-spacing-lg;
- padding: $ios-spacing-lg 0;
- border-bottom: 1px solid $ios-border;
- &:last-child {
- border-bottom: none;
- }
- .project-info {
- flex: 0 0 300px;
- .project-name {
- font-size: $ios-font-size-base;
- font-weight: $ios-font-weight-medium;
- color: $ios-primary;
- cursor: pointer;
- margin: 0 0 $ios-spacing-xs 0;
- &:hover {
- text-decoration: underline;
- }
- }
- .project-details {
- font-size: $ios-font-size-sm;
- color: $ios-text-secondary;
- margin: 0 0 $ios-spacing-xs 0;
- }
- .project-deadline {
- font-size: $ios-font-size-sm;
- color: $ios-text-secondary;
- margin: 0;
- &.overdue-warning {
- color: $ios-danger;
- font-weight: $ios-font-weight-medium;
- }
- }
- }
- .gantt-bars {
- flex: 1;
- position: relative;
- height: 40px;
- background-color: $ios-background-secondary;
- border-radius: $ios-radius-md;
- overflow: hidden;
- .phase-bar {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- height: 24px;
- border-radius: $ios-radius-sm;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: $ios-feedback-hover;
- .phase-label {
- font-size: $ios-font-size-xs;
- color: $ios-background;
- font-weight: $ios-font-weight-medium;
- text-shadow: 0 1px 2px rgba(0,0,0,0.2);
- }
- }
- .phase-建模 {
- background-color: $ios-primary-light;
- }
- .phase-渲染 {
- background-color: $ios-info;
- }
- .phase-后期 {
- background-color: $ios-warning;
- }
- .phase-交付 {
- background-color: $ios-success;
- }
- .phase-bar.current {
- box-shadow: 0 0 0 2px $ios-primary;
- transform: translateY(-50%) scale(1.05);
- }
- .phase-bar.completed {
- opacity: 0.6;
- }
- }
- }
- }
- /* 工作量评估样式 */
- .workload-section {
- background-color: $ios-card-background;
- border-radius: $ios-radius-lg;
- padding: $ios-spacing-xl;
- margin-bottom: $ios-spacing-xl;
- box-shadow: $ios-shadow-card;
- }
- .workload-calculator {
- display: flex;
- gap: $ios-spacing-xl;
- .calculator-form {
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: $ios-spacing-lg;
- .form-group {
- display: flex;
- flex-direction: column;
- gap: $ios-spacing-sm;
- label {
- font-size: $ios-font-size-sm;
- font-weight: $ios-font-weight-medium;
- color: $ios-text-primary;
- }
- input,
- select {
- padding: $ios-spacing-sm $ios-spacing-md;
- border: 1px solid $ios-border;
- border-radius: $ios-radius-md;
- background-color: $ios-background;
- font-size: $ios-font-size-base;
- color: $ios-text-primary;
- &:focus {
- outline: none;
- border-color: $ios-primary;
- }
- }
- }
- .btn-calculate {
- background-color: $ios-primary;
- color: $ios-background;
- border: none;
- border-radius: $ios-radius-md;
- padding: $ios-spacing-md;
- font-size: $ios-font-size-base;
- font-weight: $ios-font-weight-medium;
- cursor: pointer;
- transition: $ios-feedback-tap;
- &:hover {
- background-color: $ios-primary-light;
- transform: translateY(-1px);
- }
- &:active {
- transform: translateY(0);
- }
- }
- }
- .workload-result {
- flex: 1;
- background-color: $ios-background-secondary;
- border-radius: $ios-radius-md;
- padding: $ios-spacing-lg;
- h3 {
- font-size: $ios-font-size-base;
- font-weight: $ios-font-weight-medium;
- color: $ios-text-primary;
- margin: 0 0 $ios-spacing-lg 0;
- }
- p {
- margin: 0 0 $ios-spacing-md 0;
- font-size: $ios-font-size-base;
- color: $ios-text-primary;
- strong {
- font-weight: $ios-font-weight-medium;
- }
- }
- .btn-sync {
- background-color: $ios-success;
- color: $ios-background;
- border: none;
- border-radius: $ios-radius-md;
- padding: $ios-spacing-sm $ios-spacing-lg;
- font-size: $ios-font-size-sm;
- font-weight: $ios-font-weight-medium;
- cursor: pointer;
- transition: $ios-feedback-tap;
- &:hover {
- background-color: #2AA049;
- transform: translateY(-1px);
- }
- }
- }
- }
- /* 待办任务样式 */
- .todo-section {
- background-color: $ios-card-background;
- border-radius: $ios-radius-lg;
- padding: $ios-spacing-xl;
- margin-bottom: $ios-spacing-xl;
- box-shadow: $ios-shadow-card;
- }
- .todo-list {
- .todo-item {
- padding: $ios-spacing-lg;
- border-radius: $ios-radius-md;
- margin-bottom: $ios-spacing-md;
- background-color: $ios-background;
- border: 1px solid $ios-border;
- transition: $ios-feedback-hover;
- &:last-child {
- margin-bottom: 0;
- }
- &.priority-high {
- border-left: 4px solid $ios-danger;
- }
- &.priority-medium {
- border-left: 4px solid $ios-warning;
- }
- &.priority-low {
- border-left: 4px solid $ios-info;
- }
- &:hover {
- transform: translateY(-1px);
- box-shadow: $ios-shadow-sm;
- }
- .todo-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: $ios-spacing-md;
- h3 {
- font-size: $ios-font-size-base;
- font-weight: $ios-font-weight-medium;
- color: $ios-text-primary;
- margin: 0;
- }
- .task-priority {
- font-size: $ios-font-size-xs;
- padding: $ios-spacing-xs $ios-spacing-sm;
- border-radius: $ios-radius-full;
- font-weight: $ios-font-weight-medium;
- }
- }
- .todo-info {
- margin-bottom: $ios-spacing-md;
- p {
- margin: 0 0 $ios-spacing-xs 0;
- font-size: $ios-font-size-sm;
- color: $ios-text-secondary;
- }
- .task-deadline {
- font-size: $ios-font-size-xs;
- color: $ios-text-tertiary;
- }
- }
- .todo-actions {
- .btn-handle {
- background-color: $ios-primary;
- color: $ios-background;
- border: none;
- border-radius: $ios-radius-md;
- padding: $ios-spacing-sm $ios-spacing-lg;
- font-size: $ios-font-size-sm;
- font-weight: $ios-font-weight-medium;
- cursor: pointer;
- transition: $ios-feedback-tap;
- &:hover {
- background-color: $ios-primary-light;
- }
- }
- }
- }
- }
- /* 超期提醒样式 */
- .overdue-alert {
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- background-color: $ios-card-background;
- border-radius: $ios-radius-lg;
- padding: $ios-spacing-xl;
- box-shadow: $ios-shadow-lg;
- z-index: 1000;
- min-width: 400px;
- .alert-content {
- h3 {
- font-size: $ios-font-size-lg;
- font-weight: $ios-font-weight-semibold;
- color: $ios-danger;
- margin: 0 0 $ios-spacing-lg 0;
- }
- ul {
- margin: 0 0 $ios-spacing-lg 0;
- padding-left: $ios-spacing-xl;
- li {
- font-size: $ios-font-size-base;
- color: $ios-text-primary;
- margin-bottom: $ios-spacing-sm;
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- .btn-close {
- background-color: $ios-text-tertiary;
- color: $ios-text-primary;
- border: none;
- border-radius: $ios-radius-md;
- padding: $ios-spacing-sm $ios-spacing-lg;
- font-size: $ios-font-size-sm;
- font-weight: $ios-font-weight-medium;
- cursor: pointer;
- transition: $ios-feedback-tap;
- &:hover {
- background-color: $ios-text-secondary;
- color: $ios-background;
- }
- }
- }
- }
|