私はcustom block in bookdown
でリンクをスタイルしようとしています。カスタムブロックタイプは「rmdcomment」と呼ばれ、私はstyle.css
ファイルに以下を追加しました:ブックダウンのカスタムブロックのスタイルリンク
.rmdcomment {
padding: 1em 1em 1em 4em;
margin-top: 30px;
margin-bottom: 30px;
background: #1f9ac9;
position:relative;
color: white;
}
.rmdcomment:before {
content: "\f075";
font-family: FontAwesome;
left:10px;
position:absolute;
top:0px;
font-size: 45px;
color: white;
}
上記正しく表示されます。
私はまた、リンクスタイルにする(失敗した)の試みで、以下を追加しました:
.rmdcomment a:link {text-decoration: underline; font-weight:bold; color:white;}
.rmdcomment a:visited {text-decoration: underline; font-weight:bold; color:white;}
.rmdcomment a:hover {text-decoration: underline; font-weight:bold; color:white;}
私はあなたのHTML –
てみ色で 'rmdcomment'クラスを見つけることができませんでした!:白; – Vcasso
申し訳ありませんが、カスタムブロックの 'bookdown'パッケージの説明にリンクしています。あなたはここにそれを見ることができます:http://www.designsandmethods.com/ebook/research101.html#living-with-uncertainty –