「テンプレート:Post/styles.css」の版間の差分
表示
編集の要約なし |
編集の要約なし |
||
| (同じ利用者による、間の2版が非表示) | |||
| 1行目: | 1行目: | ||
.f-post{ | .f-post{ | ||
width: 100%; | width: 100%; | ||
margin-bottom: | margin-bottom: 16px; | ||
border-radius: 4px; | |||
box-shadow: 0 1px 3px rgba(0,0,0,.1); | |||
} | } | ||
.f-header{ | .f-header{ | ||
display: flex; | display: flex; | ||
padding: | align-items: center; | ||
background: # | padding: 4px 8px; | ||
border: 2px solid # | background: #e8e8e8; | ||
border-radius: | border: 1px solid #c8c8c8; | ||
border-bottom: 2px solid #b0b0b0; | |||
border-radius: 4px 4px 0 0; | |||
font-size: .88em; | |||
font-weight: bold; | font-weight: bold; | ||
gap: 2px; | |||
} | } | ||
.f-number-text{ | .f-number-text{ | ||
color:# | color: #888888; | ||
font-size: .95em; | |||
font-weight: normal; | |||
min-width: 2.5em; | |||
} | } | ||
.f-user-text{ | .f-user-text{ | ||
color: #2a6e2a; | |||
font-size: 1em; | |||
} | } | ||
.f-date{ | .f-date{ | ||
margin-left: auto; | margin-left: auto; | ||
color: #777777; | |||
font-size: .85em; | |||
font-weight: normal; | |||
white-space: nowrap; | |||
} | } | ||
.f-content{ | .f-content{ | ||
border: | border: 1px solid #c8c8c8; | ||
border-radius:0 0 | border-top: none; | ||
padding: | border-radius: 0 0 4px 4px; | ||
padding: 8px 12px; | |||
white-space: pre-wrap; | white-space: pre-wrap; | ||
word-wrap: break-word; | |||
word-break: break-word; | |||
overflow-wrap: break-word; | |||
font-size: .95em; | |||
line-height: 1.7; | |||
background: #fafafa; | |||
color: #222222; | |||
min-height: 2em; | |||
} | } | ||
.f-content p{ | .f-content p{ | ||
| 32行目: | 54行目: | ||
padding: 0; | padding: 0; | ||
white-space: normal; | white-space: normal; | ||
word-wrap: break-word; | |||
word-break: break-word; | |||
} | } | ||
blockquote *{ | blockquote *{ | ||
| 39行目: | 63行目: | ||
white-space: normal; | white-space: normal; | ||
} | } | ||
/* ===== レスホバープレビュー ===== */ | /* ===== レスホバープレビュー ===== */ | ||
#f-hover-popup{ | #f-hover-popup{ | ||
max-height: 300px; | max-height: 300px; | ||
max-width: 480px; | |||
overflow-y: auto; | overflow-y: auto; | ||
overflow-x: hidden; /* ← 追加 */ | |||
padding: 2px; | padding: 2px; | ||
word-wrap: break-word; /* ← 追加 */ | |||
} | } | ||
#f-hover-popup .f-post{ | #f-hover-popup .f-post{ | ||
margin-bottom: 0; | |||
box-shadow: none; | |||
} | } | ||
/* >>>N リンクを5chライクに強調 */ | /* >>>N リンクを5chライクに強調 */ | ||
.f-content a[href^="#post-"]{ | .f-content a[href^="#post-"]{ | ||
color: #0645ad; | |||
font-weight: bold; | |||
text-decoration: none; | |||
word-break: keep-all; | |||
white-space: nowrap; | |||
} | } | ||
.f-content a[href^="#post-"]:hover{ | .f-content a[href^="#post-"]:hover{ | ||
text-decoration: underline; | |||
color: #d33; | |||
} | |||
/* ===== モバイル対応 ===== */ | |||
@media (max-width: 768px) { | |||
.f-content { | |||
font-size: .9em; | |||
padding: 6px 10px; | |||
} | |||
.f-content a { | |||
word-break: break-all; | |||
overflow-wrap: anywhere; | |||
} | |||
.f-header { | |||
font-size: .85em; | |||
padding: 3px 6px; | |||
} | |||
.f-date { | |||
font-size: .8em; | |||
} | |||
} | } | ||
2026年2月23日 (月) 17:09時点における最新版
.f-post{
width: 100%;
margin-bottom: 16px;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.f-header{
display: flex;
align-items: center;
padding: 4px 8px;
background: #e8e8e8;
border: 1px solid #c8c8c8;
border-bottom: 2px solid #b0b0b0;
border-radius: 4px 4px 0 0;
font-size: .88em;
font-weight: bold;
gap: 2px;
}
.f-number-text{
color: #888888;
font-size: .95em;
font-weight: normal;
min-width: 2.5em;
}
.f-user-text{
color: #2a6e2a;
font-size: 1em;
}
.f-date{
margin-left: auto;
color: #777777;
font-size: .85em;
font-weight: normal;
white-space: nowrap;
}
.f-content{
border: 1px solid #c8c8c8;
border-top: none;
border-radius: 0 0 4px 4px;
padding: 8px 12px;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-word;
overflow-wrap: break-word;
font-size: .95em;
line-height: 1.7;
background: #fafafa;
color: #222222;
min-height: 2em;
}
.f-content p{
display: inline;
margin: 0;
padding: 0;
white-space: normal;
word-wrap: break-word;
word-break: break-word;
}
blockquote *{
white-space: pre !important;
}
ol, ul, dd{
white-space: normal;
}
/* ===== レスホバープレビュー ===== */
#f-hover-popup{
max-height: 300px;
max-width: 480px;
overflow-y: auto;
overflow-x: hidden; /* ← 追加 */
padding: 2px;
word-wrap: break-word; /* ← 追加 */
}
#f-hover-popup .f-post{
margin-bottom: 0;
box-shadow: none;
}
/* >>>N リンクを5chライクに強調 */
.f-content a[href^="#post-"]{
color: #0645ad;
font-weight: bold;
text-decoration: none;
word-break: keep-all;
white-space: nowrap;
}
.f-content a[href^="#post-"]:hover{
text-decoration: underline;
color: #d33;
}
/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
.f-content {
font-size: .9em;
padding: 6px 10px;
}
.f-content a {
word-break: break-all;
overflow-wrap: anywhere;
}
.f-header {
font-size: .85em;
padding: 3px 6px;
}
.f-date {
font-size: .8em;
}
}