Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • asciidoc.org asciidoc.org
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse Working Groups
  • AsciiDoc WG
  • asciidoc.orgasciidoc.org
  • Issues
  • #10
Closed
Open
Issue created Apr 05, 2022 by Dan Allen@mojavelinuxMaintainer

Set font family for interactive editor in playground

The font family for the interactive editor in the playground is not specified. Therefore, it falls back to the default that CodeMirror sets, which is monospace. This value produces variation across platforms. It's also inconsistent with the font used for the code comparisons later in the page.

Since the stylesheet for the site already loads the Source Code Pro font, the simplest solution is to set this font family on the interactive editor in the playground as well.

#editorCode .cm-scroller {
 border-radius: 5px;
 font-family: "Source Code Pro__subset", monospace;
}

Since this font family must be used more than once, I think it should be defined using the --monospace-font CSS variable.

#editorCode .cm-scroller {
 border-radius: 5px;
 font-family: var(--monospace-font);
}
Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent