用户:晨茗biu/Sandbox-SaturnForum.css

来自Limbo Wiki Mirror
晨茗biu留言 | 贡献2026年1月22日 (四) 01:02的版本
  .SaturnForum-Maincontainer {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 95%;
      min-width: 200px;
      max-width: 1100px;
      min-height: 300px;
      background-color: #f0f0f0;
      margin: 0 auto;
  }

  .SaturnForum-logo {
      position: absolute;
      width: 96px;
      height: 32px;
      left: 2px;
      top: 4px;
  }

  .SaturnForum-portrait {
      background-color: rgba(98,92,93,255);
      margin-top: 10px;
      margin-left: 20px;
      height: 60px;
      width: 60px;
      display: flex;
      order: 2;
  }

  .SaturnForum-user {
      width: 90px;
      height: auto;
      text-align: center;
      padding: 6px;
      text-decoration: none;
      transition: all 0.1s ease;
      cursor: pointer;
      word-break: break-all;
      order: 2;
  }

      .SaturnForum-user:hover {
          color: #3498db;
          text-decoration: underline;
      }

  .SaturnForum-line-top {
      position: relative;
      width: 100%;
      height: 2px;
      background-color: rgba(98,98,98,255);
      order: 1;
  }

  .SaturnForum-line-left {
      position: absolute;
      left: 100px;
      height: 100%;
      width: 2px;
      background-color: rgba(98,98,98,255);
  }

  .SaturnForum-line-bottom {
      position: relative;
      width: 100%;
      height: 2px;
      background-color: rgba(98,98,98,255);
      margin-bottom: 40px;
      order: 3;
  }

  .SaturnForum-header-container {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      width: 100%;
      justify-content: flex-start;
      align-items: flex-start;
      order: 0;
      margin: 0 auto;
  }

  .SaturnForum-time {
      position: static;
      text-align: left;
      padding: 10px;
      padding-left: 120px;
      margin-right: 10px;
      font-size: 0.85rem;
      word-break: break-word;
  }

  .SaturnForum-floor {
      position: static;
      text-align: right;
      padding: 10px;
      padding-right: 10px;
      margin-left: auto;
      font-size: 0.85rem;
      word-break: break-word;
      min-width: 25px;
  }

  .SaturnForum-refence {
      position: absolute;
      bottom: 10px;
      left: 120px;
      height: 10px;
      text-align: center;
      padding: 10px;
      font-size: 0.85rem;
      color: #3498db;
      text-decoration: none;
      transition: all 0.3s ease;
      cursor: pointer;
  }

      .SaturnForum-refence:hover {
          color: #e74c3c;
          text-decoration: underline;
      }

  .SaturnForum-ping {
      position: absolute;
      bottom: 11px;
      left: 160px;
      height: 10px;
      text-align: center;
      padding: 10px;
      font-size: 0.85rem;
      color: #3498db;
      text-decoration: none;
      transition: all 0.3s ease;
      cursor: pointer;
  }

      .SaturnForum-ping:hover {
          color: #e74c3c;
          text-decoration: underline;
      }

  .SaturnForum-report {
      position: absolute;
      bottom: 10px;
      right: 10px;
      height: 10px;
      text-align: center;
      padding: 10px;
      font-size: 0.85rem;
      color: #3498db;
      text-decoration: none;
      transition: all 0.3s ease;
      cursor: pointer;
  }

      .SaturnForum-report:hover {
          color: #e74c3c;
          text-decoration: underline;
      }

  .SaturnForum-text {
      position: static;
      flex: 1;
      align-self: stretch;
      margin: -100px 15px 10px 114px;
      font-size: 0.95rem;
      word-break: break-all;
      overflow: auto;
      line-height: 2;
      order: 2;
  }
        /* 基础三列等宽布局 */
        .container1 {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 创建3列等宽 */
            gap: 10px; /* 网格间距 */
        }

            .container1 > div {
                background: #ff6b6b;
                padding: 20px;
                text-align: center;
            }

        /* 响应式两列+侧边栏布局 */
        .container2 {
            display: grid;
            grid-template-columns: 200px 1fr; /* 固定侧边栏+弹性主内容区 */
            grid-template-areas:
                "header header"
                "sidebar main";
        }

        .header {
            grid-area: header;
            background: #4ecdc4;
        }

        .sidebar {
            grid-area: sidebar;
            background: #45b7d1;
        }

        .main {
            grid-area: main;
            background: #f9f871;
        }

        /* 图片画廊布局(自动行高) */
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* 自动填充最小150px的列 */
            gap: 15px;
        }

            .gallery img {
                width: 100%;
                height: auto;
                border-radius: 8px;
            }

        /* 复杂区域划分 */
        .container3 {
            display: grid;
            grid-template-areas:
                "header header header"
                "nav    content ads"
                "footer footer footer";
            grid-template-columns: 100px 1fr 100px;
            min-height: 300px;
        }

        .nav {
            grid-area: nav;
            background: #a6a6a6;
        }

        .content {
            grid-area: content;
            background: #ffffff;
        }

        .ads {
            grid-area: ads;
            background: #d4a5a5;
        }

        .footer {
            grid-area: footer;
            background: #2c3e50;
        }