跳转到内容

User:LimiEi/userpage/oldwindow.css

维基百科,自由的百科全书
/* 1. 藍綠色桌面背景容器(無需修改 body 也能顯示背景) */
  .retro-desktop {
    justify-content: center !important;
    align-items: center !important;
    font-family: "MS Sans Serif", "Microsoft JhengHei", sans-serif !important;
    box-sizing: border-box !important;
  }

  /* 2. 視窗外框:雙層立體凸起邊框(加上 !important 防止被平台樣式覆蓋) */
  .retro-window {
    display: block !important;
    width: 380px !important;
    background-color: #c0c0c0 !important;
    color: #000000 !important;
    padding: 3px !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-color: #f0f0f0 #808080 #808080 #f0f0f0 !important;
    box-shadow: 1px 1px 0 1px #000000, inset 1px 1px 0 #dfdfdf !important;
    box-sizing: border-box !important;
  }

  /* 3. 標題列:深藍至亮藍漸層 */
  .title-bar {
    background: linear-gradient(90deg, #000080, #1084d0) !important;
    color: #ffffff !important;
    padding: 4px 6px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: bold !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
  }

  .title-bar-controls {
    display: flex !important;
    gap: 3px !important;
  }

  /* 4. 視窗內容區 */
  .window-body {
    padding: 16px !important;
    font-size: 14px !important;
    color: #000000 !important;
    background-color: #c0c0c0 !important;
  }

  /* 5. 內凹白色內容區 */
  .inset-box {
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 10px !important;
    margin-bottom: 16px !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-color: #808080 #f0f0f0 #f0f0f0 #808080 !important;
  }

  /* 6. 底部按鈕對齊區 */
  .action-area {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  /* =========================================
     7. 按鈕基礎樣式(尺寸鎖定 + 防覆蓋)
     ========================================= */
  .win-btn,
  .action-btn {
    display: inline-block !important;
    box-sizing: border-box !important;
    background-color: #c0c0c0 !important;
    color: #000000 !important;
    cursor: pointer !important;
    user-select: none !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-color: #f0f0f0 #808080 #808080 #f0f0f0 !important;
    box-shadow: 1px 1px 0 #000000 !important;
  }

  /* 標題列小按鈕尺寸 */
  .win-btn {
    width: 20px !important;
    height: 18px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-align: center !important;
    line-height: 14px !important;
    padding: 0 !important;
  }

  /* 底部功能按鈕尺寸 */
  .action-btn {
    padding: 4px 18px !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  /* 預設灰色按鈕 Hover 與 Active */
  .win-btn:hover,
  .action-btn:hover {
    background-color: #dfdfdf !important;
  }

  .win-btn:active,
  .action-btn:active {
    border-color: #808080 #f0f0f0 #f0f0f0 #808080 !important;
    box-shadow: inset 1px 1px 0 #000000 !important;
  }

  .action-btn:active {
    padding: 5px 17px 3px 19px !important;
  }

  /* =========================================
     8. 獨立按鈕配色(必須與基礎 class 並排使用)
     ========================================= */

  /* 紅色按鈕 */
  .btn-red {
    background-color: #d9534f !important;
    color: #ffffff !important;
    border-color: #ff9e9e #8b0000 #8b0000 #ff9e9e !important;
  }
  .btn-red:hover {
    background-color: #e57373 !important;
  }
  .btn-red:active {
    border-color: #8b0000 #ff9e9e #ff9e9e #8b0000 !important;
  }

  /* 橙色按鈕 */
  .btn-orange {
    background-color: #d35400 !important;
    color: #ffffff !important;
    border-color: #ffbe76 #6e2c00 #6e2c00 #ffbe76 !important;
  }
  .btn-orange:hover {
    background-color: #e67e22 !important;
  }
  .btn-orange:active {
    border-color: #6e2c00 #ffbe76 #ffbe76 #6e2c00 !important;
  }

  /* 黃色按鈕 */
  .btn-yellow {
    background-color: #e1b12c !important;
    color: #000000 !important;
    border-color: #fff2a6 #7f6000 #7f6000 #fff2a6 !important;
  }
  .btn-yellow:hover {
    background-color: #fbc531 !important;
  }
  .btn-yellow:active {
    border-color: #7f6000 #fff2a6 #fff2a6 #7f6000 !important;
  }

  /* 綠色按鈕 */
  .btn-green {
    background-color: #2e8b57 !important;
    color: #ffffff !important;
    border-color: #8fbc8f #004d00 #004d00 #8fbc8f !important;
  }
  .btn-green:hover {
    background-color: #3cb371 !important;
  }
  .btn-green:active {
    border-color: #004d00 #8fbc8f #8fbc8f #004d00 !important;
  }

  /* 藍色按鈕 */
  .btn-blue {
    background-color: #1084d0 !important;
    color: #ffffff !important;
    border-color: #80c1ff #000080 #000080 #80c1ff !important;
  }
  .btn-blue:hover {
    background-color: #3399ff !important;
  }
  .btn-blue:active {
    border-color: #000080 #80c1ff #80c1ff #000080 !important;
  }

  /* 紫色按鈕 */
  .btn-purple {
    background-color: #8e44ad !important;
    color: #ffffff !important;
    border-color: #d6a2e8 #3b0054 #3b0054 #d6a2e8 !important;
  }
  .btn-purple:hover {
    background-color: #9b59b6 !important;
  }
  .btn-purple:active {
    border-color: #3b0054 #d6a2e8 #d6a2e8 #3b0054 !important;
  }

.window-toggle > summary {
  list-style: none;
  cursor: pointer;
}