Code Monkey home page Code Monkey logo

Comments (3)

UNICKCHENG avatar UNICKCHENG commented on August 15, 2024 1

@igeekbb 比较遗憾,目前 logseq 不支持通过界面来设置字体样式。不过可以试试配置 custom.css 来实现

image

image

:root {
   // 自定义字体,
    --ls-font-family: apple-font, common-font, code-font, ui-font, system-ui !important;

   // 自定义字体大小 
    font-size: 11px; 
}

注:字体大小的调整也可通过放缩界面来达到效果,如按住 ctrl + + (加号键) 来实现。按住 ctrl + 0 可还原为默认大小

可参考

from logseq-developer-theme.

igeekbb avatar igeekbb commented on August 15, 2024

非常感谢,我发现通过以上代码,可以实现字体大小设置,但正文字体大小并不会改变,只会改变菜单文字大小,这代码在其它主题设置并不会发生此问题。

from logseq-developer-theme.

UNICKCHENG avatar UNICKCHENG commented on August 15, 2024

非常感谢,我发现通过以上代码,可以实现字体大小设置,但正文字体大小并不会改变,只会改变菜单文字大小,这代码在其它主题设置并不会发生此问题。

@igeekbb 是的,有些字体大小被配置成固定值了,如标题。建议改用 zoom 来进行界面放缩,而不是font-size来配置,避免破坏不同字体样式之间的相对大小。

:root {
    // 自定义放缩比例
    zoom:120%;
}

from logseq-developer-theme.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.