Skip to content

linux.do - 宽屏优化 by magicdawn

Screenshot of linux.do - 宽屏优化

Details

Authormagicdawn

LicenseMIT

Categorylinux.do

Created

Updated

Size829 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

linux.do on 显示器

Notes

简单的为显示器编写, 非响应式, 切换到小屏需要禁用样式.

Source code

/* ==UserStyle==
@name         linux.do - 宽屏优化
@version      20240719.08.02
@namespace    https://userstyles.world/user/magicdawn
@description  linux.do on 显示器
@author       magicdawn
@license      MIT
==/UserStyle== */

@-moz-document domain("linux.do") {
body.has-sidebar-page .wrap {
  max-width: 90vw;

  .topic-body {
    flex: 1;
  }

  .container.posts {
    grid-template-columns: auto 200px;

    .topic-area {
      max-width: 1300px;
      margin-inline: auto;
    }
  }
}

/* 总是误点分享 */
.quote-sharing button[title="通过电子邮件发送"] {
  display: none !important;
}

.fk-d-menu__inner-content:has(.quote-button.visible) {
  position: relative;
  top: -15px;
}

/* fix: 复制链接总是带上 badge */
.topic-post .topic-body .contents a span.badge.clicks {
  user-select: none;
}
}

Reviews

No reviews yet.