• Threads
  • Categories
  • Users
  • GitHub
  • Documentation
  • Discord
  • forum
  • group
  • search
  • chevron_right Threads
  • label Styling

Changing Font Size?

yaroslawbagriy
May 12, 2020
chat_bubble_outline 10
  • link
    yaroslawbagriy
    Members 36 posts
    May 12, 2020, 4:43 a.m. May 12, 2020, 4:43 a.m.
    link

    Hello!

    Is there any way to change the font size of the whole forum?

  • link
    rafalp
    Project Lead 1623 posts
    May 12, 2020, 12:21 p.m. May 12, 2020, 12:21 p.m.
    link

    Hi @yaroslawbagriy

    You can do this by re-building locally default theme with custom $font-size variable, and then uploading the result css file on your forum's admin panel as new theme.

    You'll have to git clone main repo and in frontend directory edit style/flavor/variables.less to add those lines:

    @font-size-base:          14px;
    @font-size-large:         ceil((@font-size-base * 1.25)); // ~18px
    @font-size-small:         ceil((@font-size-base * .85)); // ~12px
    

    Next, run those commadns in frontend:

    npm run install
    gulp style
    

    This will case the CSS files in misago/static/misago/css to update. Those files are the ones you will need to upload in your forum's admin panel.

  • link
    yaroslawbagriy
    Members 36 posts
    May 15, 2020, 3:54 p.m. May 15, 2020, 3:54 p.m.
    link

    @rafalp Thank you! I'll try that this weekend :)

  • link
    yaroslawbagriy
    Members 36 posts
    May 16, 2020, 9:37 p.m. May 16, 2020, 9:37 p.m.
    link

    I tried running npm run install, but I just get the following npm ERR! missing script: install. I ran npm install inside frontend. I'm also running npm run install in frontend. Not sure what the problem is? Is the install script in a different directory?

  • link
    rafalp
    Project Lead 1623 posts
    May 16, 2020, 9:39 p.m. May 16, 2020, 9:39 p.m.
    link

    The problem is I've mistaken npm install for npm run install :D

  • link
    yaroslawbagriy
    Members 36 posts
    May 16, 2020, 9:46 p.m. May 16, 2020, 9:46 p.m.
    link

    Haha yeah I thought maybe that could be the case haha :) Okay it did build! I tried to upload misago.css into themes but it says it needs to be a zip? Can I just zip misago.css and upload that?

  • link
    yaroslawbagriy
    Members 36 posts
    May 16, 2020, 9:47 p.m. May 16, 2020, 9:47 p.m.
    link

    Alright I got it to work! I just created a new theme, then upload the misago.css to it. But now the whole forum looks weird haha.

  • link
    rafalp
    Project Lead 1623 posts
    May 16, 2020, 9:49 p.m. May 16, 2020, 9:49 p.m.
    link

    Make sure your theme is not a child of "Misago" theme, or Misago will include both your CSS and theme's CSS.

    yaroslawbagriy likes this.

    favorite 1

  • link
    yaroslawbagriy
    Members 36 posts
    May 16, 2020, 9:52 p.m. May 16, 2020, 9:52 p.m.
    link

    Thanks! Yes I got it working :)

  • link
    yaroslawbagriy
    Members 36 posts
    May 18, 2020, 3:21 a.m. May 18, 2020, 3:21 a.m.
    link

    @rafalp do you know if there's a way to change the font itself? What font does Misago currently use?

  • link
    rafalp
    Project Lead 1623 posts
    May 18, 2020, 8:23 p.m. May 18, 2020, 8:23 p.m.
    link

    Misago UI is built with Bootstrap. If you need to change something (eg. font) to something else, you only have to customize variable in it (like how you've did with @font-size-base).

    Here's list of available variables:

    github.com/twbs/bootstrap/blob/v3.4.0/less/variables.less

    yaroslawbagriy likes this.

    favorite 1

There are no more posts in this thread.

  • This site uses cookies to gather statistical data for use in traffic analysis. Header photo by Joanna Malinowska.
  • GitHub
  • Documentation
  • Discord
  • Terms of service
  • Privacy policy
powered by misago