Skip to content

Instantly share code, notes, and snippets.

@sompylasar
Last active October 18, 2018 18:30
Show Gist options
  • Select an option

  • Save sompylasar/87d273c98a472c59a0694e5d8b94b78c to your computer and use it in GitHub Desktop.

Select an option

Save sompylasar/87d273c98a472c59a0694e5d8b94b78c to your computer and use it in GitHub Desktop.

Revisions

  1. sompylasar revised this gist Oct 18, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion styles.less
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,8 @@
    atom-workspace {
    // NOTE: This overrides the built-in editor text zoom feature (Cmd + / Cmd - / Cmd 0).
    --editor-font-size: 18px;
    --editor-line-height: 28px;
    // NOTE: Ideally, `--editor-line-height: 28px`, but the editor lines are grouped and positioned without accounting for this variable with `transform: translateY(126px);`.
    --editor-line-height: 21px;
    }

    // Linter icons don't scale well with root font-size
  2. sompylasar revised this gist Sep 20, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions styles.less
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@

    // Editor font size is specified separately
    atom-workspace {
    // NOTE: This overrides the built-in editor text zoom feature (Cmd + / Cmd - / Cmd 0).
    --editor-font-size: 18px;
    --editor-line-height: 28px;
    }
  3. sompylasar revised this gist Sep 20, 2018. No changes.
  4. sompylasar created this gist Sep 20, 2018.
    24 changes: 24 additions & 0 deletions styles.less
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    // Adapt tree view and editor font size for large monitors (like the 27" ones).
    @media (min-width: 1800px) {
    // Root font size
    body {
    font-size: 18px;
    }

    // Editor font size is specified separately
    atom-workspace {
    --editor-font-size: 18px;
    --editor-line-height: 28px;
    }

    // Linter icons don't scale well with root font-size
    .linter-status-count a {
    padding: 3px 6px;
    }
    .linter-status-count a::before {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    font-size: 16px;
    }
    }