mathzhaoliang
V2EX  ›  Hexo

求助一个 Hexo 主题的 CSS 格式的修改

  •  
  •   mathzhaoliang · Nov 7, 2019 · 6689 views
    This topic created in 2448 days ago, the information mentioned may be changed or developed.
    问题是这样的:我想修改一个叫做 raytaylorism 的 hexo 主题

    https://github.com/raytaylorlin/hexo-theme-raytaylorism/

    的 table 样式 (原样式默认占据全部宽度,不好看),于是我找到了这一行代码:

    https://github.com/raytaylorlin/hexo-theme-raytaylorism/blob/master/source/css/_base/lib_customize.styl#L54

    给它加上了一个 max-width: 30%,这样表格宽度缩小为原来的 30%,大小就合适了.但是这样修改以后行间代码段的宽度也被缩小为原来的 30%,我看了下生成的 html 代码是这样的:

    <figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">python run_coset_enumeration.py filename.yaml</span><br></pre></td></tr></table></figure>

    原来它这部分的设置也和 table 有关.求助下 v2 上的大佬们这个地方应该怎样修改?

    (给出帮助的大佬请留下二维码,一杯咖啡钱敬上)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5913 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 02:24 · PVG 10:24 · LAX 19:24 · JFK 22:24
    ♥ Do have faith in what you're doing.