Discourse Vincent theme

このトピックは #customization:theme:broken-theme に移動されたため、このテーマはメンテナンスが終了している可能性が高いです。Vincent のテーマは単独でも十分に機能していましたが、フォークを維持するリソースがなかったため、Chrome 拡張機能を使ってフォーラムにいくつかの微調整を施しています。それらは多少個人的な好みが入っており、すべての問題をカバーしているわけではありません。また、公式に修正済みのバグを修正するためのものや、少し古くなっているものもあるかもしれませんが、誰かの役に立つかもしれません。

/************************************ 
モバイル固有の修正 / 微調整
************************************/

/* パディングの不良を修正 */
.form-vertical, 
.user-main .about .primary,
.user-main .about .secondary,
.user-main .user-content {
    padding: 15px;
}

/* ヘッダーロゴの下部が切り欠かれるのを修正 */
.d-header #site-logo {
    max-height: 2.6em;
}

/* ロック/非公開メッセージのサイズが不均一なのを修正、スレッド右側の謎のスペースを修正 */
.small-action {
    width: 100%;
}

/* YouTube 埋め込みが中央寄せされないのを修正 */
.lazyYT-container {
    margin: 12px 20px;
}

/* タブレットでのトピックリストのパディングを修正 */
#list-area .contents tbody td {
    padding: 10px 15px;
}

/************************************
汎用およびデスクトップ固有の修正 / 微調整 
************************************/

/* html 上の .font-helvetica によってフォントが上書きされるのを修正 */
html {
    font-family: "Assistant", sans-serif !important;
}

/* カテゴリカラーバッジを四角くする */
span.badge-category-bg, span.badge-category-parent-bg, span.badge-category-parent-bg+.badge-category-bg {
    border-radius: 0;
}

.badge-wrapper.bullet .badge-category-parent-bg,
.badge-wrapper.bullet .badge-category-parent-bg+.badge-category-bg,
.extra-info-wrapper .badge-wrapper.bullet .badge-category-parent-bg {
    width: 4px;
    min-width: 4px;
}

span.badge-category-parent-bg {
    border-right: 1px solid rgba(0,0,0,0.2);
}

span.badge-category-parent-bg+.badge-category-bg {
    border-left: 1px solid rgba(0,0,0,0.2);
}

/* スレッドが細すぎ、ページ下部のコントロールと奇妙な配置になっているのを修正 */
.topic-post {
    max-width: 758px;
}

.topic-post .embedded-posts {
    width: 758px;
}

#topic-title .title-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: 758px;
}

#topic-title, .posts-wrapper {
    margin: 0;
    width: 758px;
}

html.desktop-view.not-mobile-device .topic-body {
    max-width: 758px;
}

.topic-body {
    width: 100%;
}

/* 新しいトピックバナーが表示されているときにスレッドリストのソートラベルのコントラストが悪いのを修正 */
.show-more.has-topics .alert {
    background: rgba(40,42,49,1);
}

.alert.alert-info {
    background: rgba(19,20,24,1);
}

/* コードブロックをよりなじませる */
p>code, li>code, pre>code {
    background: rgba(255,255,255,0.09);
}

/* YouTube 埋め込みのパディングが欠落しているのを修正 */
.lazyYT.lazyYT-container {
    width: 100% !important;
}

/* カテゴリの左側の色付きラインがカテゴリコンテナの下端まで届かないのを修正 */
.category-list tbody .category {
    display: table-cell;
}

/* サブカテゴリのレイアウトを改善(デスクトップのみ) */
.not-mobile-device .category-list .subcategories {
    display: flex;
    flex-direction: column;
}

.not-mobile-device .category-list .subcategories .subcategory .badge.new-posts {
    display: inline-block;
    margin: 0 5px;
}

.not-mobile-device .category-list .subcategories .subcategory {
    height: 21px;
    align-items: center;
}

/* ピン留めされた投稿を強調表示 */
.topic-list-item.pinned  {
    background: rgba(200,200,255,0.06);
}

.topic-list tbody tr:nth-of-type(even).pinned {
    background: rgba(200,200,255,0.04);
}

/* 無効化された「新しいトピック」ボタンの外観とコントラストを改善 */

.list-controls #create-topic[disabled],
.list-controls #create-topic.disabled {
    background-color: rgba(255,255,255,0.04);
    color: #888
}

.list-controls #create-topic[disabled]:hover,
.list-controls #create-topic.disabled:hover {
    background-color: rgba(255,255,255,0.06);
}

.list-controls #create-topic[disabled] svg,
.list-controls #create-topic.disabled svg {
    color: inherit;
}

/* 可読性を向上させるための文字間隔の拡大 */
* {
    letter-spacing: 0.2px;
}

/* 可読性を向上させるためのフォントサイズの拡大 */
a {
    font-size: 95%; /* テーマは 90% を設定 */
}

.search-link .blurb {
    font-size: 1em;
}

/* 検索ページで UI の色が正しくないのを修正 */
.search-container .search-advanced-sidebar .search-advanced-title,
.search-container .search-advanced-sidebar .search-advanced-filters {
    background: rgba(255,255,255,0.04);
}

.search-container .search-advanced-sidebar .search-advanced-title.btn {
    background: rgba(255,255,255,0.04);
}

.search-advanced-options {
    background: rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

/* プロフィールのバイオ用コンポーザーの周りに浮遊する境界線を修正 */
.user-preferences .bio-composer {
    border: none;
}

/* プロフィールページで折りたたみボタンがフレームからはみ出るのを修正 */
.user-main .about .details .primary,
.user-main .about.collapsed-info .details .primary {
    width: auto;
}

/* 投稿通知のサイズと境界線の色を修正 */
.post-notice {
    width: calc(100% - 1.6em);
    border-top: none;
}

/* 投稿リンクコンテナのサイズを修正 */
.post-links-container {
    margin-left: 0;
}

/* バイオのスクロールバーが右側にならないのを修正 */
.user-main .about .details .primary .bio {
    max-width: none;
}

/* カテゴリリンクの強調表示 */
.category-list .subcategories .subcategory .badge-wrapper:hover .category-name {
    color: white;
}

.category-list .subcategories .subcategory .badge-wrapper .category-name {
    transition: color 0.3s;
}

/* 非表示の投稿が非表示解除リンクによって水平に分割されるのを修正 */
.post-hidden {
    position: relative;
}

.post-hidden .expand-hidden {
    position: absolute;
    top: 36px;
    left: 0;
    z-index: 1;
}

.post-hidden .post-menu-area,
.post-hidden .expand-hidden {
    opacity: 0.5;
}
}
「いいね!」 3