UchuNewsBot (トーク | 投稿記録) 「書いてみませんか」用スタイル |
UchuNewsBot (トーク | 投稿記録) 「書いてみませんか」用スタイル |
||
| (同じ利用者による、間の5版が非表示) | |||
| 70行目: | 70行目: | ||
box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35); | box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35); | ||
text-decoration: none; | text-decoration: none; | ||
/* round 98: 600〜719px でボタンが約660pxまで伸びて間延びするのを防ぐ。 | |||
スマホ(430px以下)では自然な幅のほうが小さいので影響はない。 */ | |||
max-width: 520px; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | } | ||
| 84行目: | 89行目: | ||
margin-top: 4px; | margin-top: 4px; | ||
line-height: 1.5; | line-height: 1.5; | ||
} | } | ||
| 292行目: | 264行目: | ||
font-size: 0.82rem; | font-size: 0.82rem; | ||
} | } | ||
} | |||
/* =========================================================================== | |||
round 113: 「もっと書いてみたくなったら」のボタンを、線だけの形にする | |||
--------------------------------------------------------------------------- | |||
実物の1行を出すようになって、そのすぐ下に「わたしも書く」の金色ボタンが | |||
立った。そのまた下にある このカードのボタンも金色のベタ塗りだったので、 | |||
同じ形のボタンが2つ続けて並び、どちらを押せばいいのか分からなくなっていた。 | |||
ボタンを減らすのではなく(書き足しの入口は減らしたくない)、 | |||
こちらを「線だけ」にして、主と副の区別がつくようにする。 | |||
姉妹サイトのリンクで使ったのと同じ考え方。 | |||
=========================================================================== */ | |||
.uw-card .uw-cta a, | |||
.uw-card .uw-cta a.external, | |||
.uw-card .uw-cta a:visited { | |||
background-color: transparent; | |||
background-image: none; | |||
border: 1px solid #a8892f; | |||
box-shadow: none; | |||
color: #7a5f11; | |||
font-size: 0.95rem; | |||
padding: 12px 12px 11px; | |||
} | |||
.uw-card .uw-cta .uw-cta-sub { | |||
color: #7c6d3d; | |||
} | } | ||
2026年8月30日 (日) 17:16時点における最新版
/* 「宇宙wiki:書いてみませんか」専用スタイル(2026 round 55)
* ・クリーム+金の配色。ライトモードでもダークモードでも同じに読めます。
* ・スマホは縦積み、PC(720px以上)は横並び。
* ・文が変な位置で折り返さないよう、意味のかたまりを inline-block にしています。
*/
/* ---------- 共通 ---------- */
.uw-nb {
display: inline-block;
}
.uw-lead {
font-size: 0.95rem;
line-height: 2;
margin: 0.1em 0 0;
word-break: normal;
overflow-wrap: break-word;
}
/* ---------- 体験カード(クリーム) ---------- */
.uw-card {
background: #fffdf4;
border: 1px solid #e0d09a;
border-radius: 14px;
padding: 14px 14px 13px;
margin: 16px 0 0;
color: #3c3826;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
word-break: normal;
overflow-wrap: break-word;
}
.uw-card-h {
font-size: 1.02rem;
font-weight: 700;
color: #7a6420;
line-height: 1.5;
}
.uw-card-s {
font-size: 0.86rem;
line-height: 1.85;
color: #5c5340;
margin-top: 7px;
}
.uw-card-s b {
color: #7a6420;
}
/* ---------- ボタン ---------- */
.uw-cta {
display: block;
margin-top: 12px;
}
.uw-cta a,
.uw-cta a.external,
.uw-cta a:visited {
display: block;
text-align: center;
font-weight: 700;
font-size: 1.02rem;
line-height: 1.45;
padding: 14px 12px 12px;
border-radius: 14px;
color: #3a2d05;
background-color: #ddb85c;
background-image: linear-gradient(135deg, #f2d778, #c9a84c);
box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35);
text-decoration: none;
/* round 98: 600〜719px でボタンが約660pxまで伸びて間延びするのを防ぐ。
スマホ(430px以下)では自然な幅のほうが小さいので影響はない。 */
max-width: 520px;
margin-left: auto;
margin-right: auto;
}
.uw-cta a.external {
background-image: linear-gradient(135deg, #f2d778, #c9a84c);
padding-right: 12px;
}
.uw-cta-sub {
display: block;
font-size: 0.75rem;
font-weight: 600;
color: #5c4a12;
margin-top: 4px;
line-height: 1.5;
}
/* ---------- ビフォー / アフター ---------- */
.uw-ex {
background: #fffdf4;
border: 1px solid #e6dcbb;
border-radius: 12px;
padding: 12px 13px 13px;
margin: 12px 0 0;
color: #3c3826;
word-break: normal;
overflow-wrap: break-word;
}
.uw-ex-h {
font-size: 0.88rem;
font-weight: 700;
color: #7a6420;
line-height: 1.5;
}
.uw-ba {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 9px;
}
.uw-col {
background: #ffffff;
border: 1px solid #eae2c8;
border-radius: 9px;
padding: 9px 11px;
min-width: 0;
}
.uw-lb {
font-size: 0.68rem;
font-weight: 700;
color: #a4996c;
letter-spacing: 0.04em;
}
.uw-tx {
font-size: 0.85rem;
line-height: 1.75;
margin-top: 3px;
color: #3c3826;
}
.uw-add {
display: inline-block;
background: #fff2b8;
border-radius: 3px;
padding: 0 3px;
font-weight: 700;
color: #6b5510;
}
.uw-ar {
text-align: center;
font-size: 0.95rem;
color: #c9b982;
line-height: 1;
}
.uw-ar-h {
display: none;
}
.uw-note {
font-size: 0.78rem;
line-height: 1.7;
color: #8a7a45;
margin-top: 9px;
}
/* 記事の中に出ている「書き足す・直す」ボタンの見本 */
.uw-pill {
display: inline-block;
font-size: 0.75rem;
font-weight: 700;
color: #8a6f1e;
background: #f6ecc9;
border: 1px solid #e0d09a;
border-radius: 999px;
padding: 2px 9px;
white-space: nowrap;
}
/* ---------- PC(720px以上) ---------- */
@media screen and (min-width: 720px) {
.uw-lead {
font-size: 1rem;
}
.uw-card {
padding: 20px 22px 18px;
margin-top: 20px;
}
.uw-card-h {
font-size: 1.12rem;
}
.uw-card-s {
font-size: 0.92rem;
}
.uw-cta a,
.uw-cta a.external,
.uw-cta a:visited {
font-size: 1.08rem;
padding: 16px 18px 14px;
max-width: 520px;
margin-left: auto;
margin-right: auto;
}
/* round 98: PCでは横に間延びしないよう、いちばん上のボタンだけ
少し広め(560px)にして中央に置く。中央よせは上の指定を引き継ぐ。 */
.uw-cta-hero a,
.uw-cta-hero a.external,
.uw-cta-hero a:visited {
font-size: 1.2rem;
padding: 19px 18px 17px;
max-width: 560px;
}
.uw-cta-sub {
font-size: 0.8rem;
}
.uw-ex {
padding: 15px 18px 16px;
margin-top: 14px;
}
.uw-ex-h {
font-size: 0.95rem;
}
.uw-ba {
flex-direction: row;
align-items: stretch;
gap: 10px;
}
.uw-col {
flex: 1 1 0;
padding: 11px 13px;
}
.uw-tx {
font-size: 0.9rem;
}
.uw-ar {
display: flex;
align-items: center;
flex: none;
font-size: 1.1rem;
}
.uw-ar-v {
display: none;
}
.uw-ar-h {
display: inline;
}
.uw-note {
font-size: 0.82rem;
}
}
/* ===========================================================================
round 113: 「もっと書いてみたくなったら」のボタンを、線だけの形にする
---------------------------------------------------------------------------
実物の1行を出すようになって、そのすぐ下に「わたしも書く」の金色ボタンが
立った。そのまた下にある このカードのボタンも金色のベタ塗りだったので、
同じ形のボタンが2つ続けて並び、どちらを押せばいいのか分からなくなっていた。
ボタンを減らすのではなく(書き足しの入口は減らしたくない)、
こちらを「線だけ」にして、主と副の区別がつくようにする。
姉妹サイトのリンクで使ったのと同じ考え方。
=========================================================================== */
.uw-card .uw-cta a,
.uw-card .uw-cta a.external,
.uw-card .uw-cta a:visited {
background-color: transparent;
background-image: none;
border: 1px solid #a8892f;
box-shadow: none;
color: #7a5f11;
font-size: 0.95rem;
padding: 12px 12px 11px;
}
.uw-card .uw-cta .uw-cta-sub {
color: #7c6d3d;
}