Skip to content

Commit

Permalink
Made font-family configurable (bokuweb#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWillitts authored and bokuweb committed May 31, 2017
1 parent 1ec2823 commit f819dae
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion build/css.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions default/re-bulma-variables.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
font_family = "Helvetica Neue", "Helvetica", "Arial", sans-serif

base_color = #69707a
primary_color = #1fc8db
primary_hover_color = #199fae
Expand Down
2 changes: 1 addition & 1 deletion src/styles/box.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
margin: 0;
width: auto;
overflow: visible;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
}

.content:not(:last-child) {
Expand Down
11 changes: 5 additions & 6 deletions src/styles/form.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
.input {
box-sizing: border-box;
vertical-align: middle;
font: 99% sans-serif;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
}

select.select {
box-sizing: border-box;
vertical-align: middle;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
Expand Down Expand Up @@ -37,7 +36,7 @@ input[type=file].input,

input.input,
textarea.textarea {
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
Expand Down Expand Up @@ -802,7 +801,7 @@ input[type=button].input {

@media screen and (max-width: ${breakpoint_mobile_max}) {
.control-label {
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
Expand All @@ -814,7 +813,7 @@ input[type=button].input {
@media screen and (min-width: ${breakpoint_tablet_min}) {
.control-label {
vertical-align: baseline;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/level.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/message.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-weight: 400;
line-height: 1.428571428571429;
font-weight: normal;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
font-size: ${font_size_base};
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand All @@ -185,7 +185,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/notification.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
font-size: ${font_size_base};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/pagination.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
color: ${base_color};
line-height: 1.428571428571429;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/table.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.table {
border-collapse: collapse;
border-spacing: 0;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/title.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ p.subtitle {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: ${font_family};
}

.title em,
Expand Down
3 changes: 1 addition & 2 deletions styleguide/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,6 @@ button:active,
}.__re-bulma_input {
box-sizing: border-box;
vertical-align: middle;
font: 99% sans-serif;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

Expand Down Expand Up @@ -4812,8 +4811,8 @@ p.__re-bulma_menu-label {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
color: #69707a;
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
line-height: 1.428571428571429;
font-size: 1rem;
margin: 0;
Expand Down

0 comments on commit f819dae

Please sign in to comment.