更改嵌入文本的颜色
Changing the color of embeded text
我一直在尝试将此文本颜色设置为白色而不是黑色,以便它在我们的网站上更具可读性。不幸的是,我一直没有成功改变它。我不确定我错过了什么大声笑我确定它就在我面前。我确实通过一个网站也嵌入了这个。
<div id="medium-widget">
</div>
<script src="https://medium-widget.pixelpoint.io/widget.js">
</script>
<script>MediumWidget.Init({renderTo: '#medium-widget', params: {"resource":"https://medium.com/paradigm-fund/c%C3%B8smos-network-proposal-to-add-the-gravity-dex-onto-cosmos-hub-is-live-tendermint-invests-in-c68d8600e35b","postsPerLine":3,"limit":6,"picture":"big","fields":["description","publishAt"],"ratio":"original"}})
</script>
我相信您可以检查元素并像这样覆盖 CSS:
以红色为例:
.medium-widget-article__description{
color: red !important;
}
<div id="medium-widget">
</div>
<script src="https://medium-widget.pixelpoint.io/widget.js">
</script>
<script>MediumWidget.Init({renderTo: '#medium-widget', params: {"resource":"https://medium.com/paradigm-fund/c%C3%B8smos-network-proposal-to-add-the-gravity-dex-onto-cosmos-hub-is-live-tendermint-invests-in-c68d8600e35b","postsPerLine":3,"limit":6,"picture":"big","fields":["description","publishAt"],"ratio":"original"}})
</script>
Customize styles
This widget does not use iframes, which allows you to
override all of the existing styles used by it and make it look
however you like. For example, you could customize the style of the
article title by simply defining css properties for
medium-widget-article__title class.
我一直在尝试将此文本颜色设置为白色而不是黑色,以便它在我们的网站上更具可读性。不幸的是,我一直没有成功改变它。我不确定我错过了什么大声笑我确定它就在我面前。我确实通过一个网站也嵌入了这个。
<div id="medium-widget">
</div>
<script src="https://medium-widget.pixelpoint.io/widget.js">
</script>
<script>MediumWidget.Init({renderTo: '#medium-widget', params: {"resource":"https://medium.com/paradigm-fund/c%C3%B8smos-network-proposal-to-add-the-gravity-dex-onto-cosmos-hub-is-live-tendermint-invests-in-c68d8600e35b","postsPerLine":3,"limit":6,"picture":"big","fields":["description","publishAt"],"ratio":"original"}})
</script>
我相信您可以检查元素并像这样覆盖 CSS:
以红色为例:
.medium-widget-article__description{
color: red !important;
}
<div id="medium-widget">
</div>
<script src="https://medium-widget.pixelpoint.io/widget.js">
</script>
<script>MediumWidget.Init({renderTo: '#medium-widget', params: {"resource":"https://medium.com/paradigm-fund/c%C3%B8smos-network-proposal-to-add-the-gravity-dex-onto-cosmos-hub-is-live-tendermint-invests-in-c68d8600e35b","postsPerLine":3,"limit":6,"picture":"big","fields":["description","publishAt"],"ratio":"original"}})
</script>
Customize styles
This widget does not use iframes, which allows you to override all of the existing styles used by it and make it look however you like. For example, you could customize the style of the article title by simply defining css properties for medium-widget-article__title class.