• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How can I change font family?

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 302 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sharonyue
    wrote on last edited by
    #1

    ... only in this area and preview (not title and others)

    .p
    {
        font-family: Optima-Regular, "Times New Roman", serif;
    }
    

    Above does not work.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    You need to target the correct element, you can inspect the elements in your browser console to find the correct selectors.

    For example

    .composer .preview {
    font-size: 24px;
    color: green;
    }
    

    Will change the font-size and color of the composer.

    399c40c0-cd41-428b-9f07-d7e9072b79cd-image.png

    1 Reply Last reply
    0
  • S Offline
    S Offline
    sharonyue
    wrote on last edited by
    #3

    @baris Thank you. How can I change this part's font? The following doesnot work.

    .composer .p {
    font-size: 24px;
    color: green;
    }
    

    捕获.JPG

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #4

    That would be

    .topic .content {
    
    }
    
    1 Reply Last reply
    1
  • S Offline
    S Offline
    sharonyue
    wrote on last edited by
    #5

    Thanks it works indeed!

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development