Skip to content

Commit

Permalink
GHI-#50 Use root-based font size instead of per-compoment definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
svengreb committed Dec 10, 2016
1 parent f359fa3 commit d876a93
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 20 deletions.
6 changes: 5 additions & 1 deletion styles/atom.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ copyright Copyright (C) 2016 +
> Select Forms
> Text Editors
*/

html {
font-size: @font-size;
}

/*++++++++++++++++++++
+ find-and-replace +
++++++++++++++++++++*/
Expand All @@ -40,7 +45,6 @@ copyright Copyright (C) 2016 +
top: 4px;

span {
font-size: 11px;
text-transform: uppercase;
}
}
Expand Down
2 changes: 0 additions & 2 deletions styles/lists.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ copyright Copyright (C) 2016 +

li.selected .character-match {
.text(selected);
font-size: @font-size;
}

li.selected .word {
Expand Down Expand Up @@ -81,7 +80,6 @@ copyright Copyright (C) 2016 +
li:not(.list-nested-item).selected,
li.list-nested-item.selected > .list-item {
.text(selected);
font-size: @font-size;
}
}

Expand Down
3 changes: 0 additions & 3 deletions styles/package-support/build.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Atom Packages
.heading {
font-family: @font-family !important;
color: @text-color;
font-size: @font-size;

.heading-text {
text-align: center;
Expand All @@ -49,7 +48,6 @@ Atom Packages
}

.output {
font-size: @font-size;
background-color: @build-terminal-background-color !important;
padding-left: @component-padding/2;
padding-right: @component-padding/2;
Expand All @@ -62,7 +60,6 @@ Atom Packages
}

.title {
font-size: @font-size;
background: transparent !important;

&.error {
Expand Down
5 changes: 0 additions & 5 deletions styles/settings-view.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ copyright Copyright (C) 2016 +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
.settings-view {
font-size: @font-size;
.text(normal);

.breadcrumb {
Expand Down Expand Up @@ -83,12 +82,10 @@ copyright Copyright (C) 2016 +

.section-heading {
.text(heading);
font-size: 24px;
}

.sub-section-heading {
.text(heading);
font-size: 16px;
}
}

Expand Down Expand Up @@ -174,8 +171,6 @@ copyright Copyright (C) 2016 +
}

.package-readme {
font-size: 1em;

h1, h2, h3, h4 {
.text(heading);
}
Expand Down
5 changes: 0 additions & 5 deletions styles/status-bar.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ status-bar {
background: @base-border-color;
height: @input-height;
line-height: @component-line-height;
font-size: 11px;

& > .flexbox-repaint-hack {
padding-top: 3px;
}

span {
font-size: 11px;
}
}
1 change: 0 additions & 1 deletion styles/tree-view.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ copyright Copyright (C) 2016 +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
.tree-view {
font-size: @font-size;
background: @tree-view-background-color;
padding-top: 0;

Expand Down
3 changes: 1 addition & 2 deletions styles/ui-mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ copyright Copyright (C) 2016 +

.text(highlight) {
.text(normal);
font-size: inherit;
color: @text-color-highlight;
}

Expand All @@ -132,7 +131,7 @@ copyright Copyright (C) 2016 +
.text(normal) {
color: @text-color;
font-family: @font-family;
font-size: @font-size;
font-size: inherit;
font-weight: 400;
}

Expand Down
2 changes: 1 addition & 1 deletion styles/ui-variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ copyright Copyright (C) 2016 +

/*+--- Font ---+*/
@font-size: 14px;
@input-font-size: 14px;
@input-font-size: inherit;

/*+--- Input ---+*/
@input-height: 32px;
Expand Down

0 comments on commit d876a93

Please sign in to comment.