Skip to content

Commit

Permalink
#70 fix site fonts beleeding into components.
Browse files Browse the repository at this point in the history
- added default font to each component by updating fd-reset
- change reset to fd-rest.
  • Loading branch information
Saad M committed Feb 13, 2018
1 parent 0dad446 commit 4b531ef
Show file tree
Hide file tree
Showing 26 changed files with 400 additions and 280 deletions.
306 changes: 181 additions & 125 deletions docs/css/fui-site.css

Large diffs are not rendered by default.

320 changes: 188 additions & 132 deletions docs/css/fundamental-ui.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions scss/components/action-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $block: ns(action-bar);

//BLOCK BASE *******************************************
//set all BLOCK reset and baseline styles
@include reset;
@include fd-reset;
height: $fd-action-bar-height;
background-color: $fd-action-bar-background-color;
border-style: solid;
Expand All @@ -35,7 +35,7 @@ $block: ns(action-bar);

}
&__title {
@include reset;
@include fd-reset;
@include fd-type(3, header, med);
flex: 1;
margin-bottom: 0;
Expand All @@ -44,7 +44,7 @@ $block: ns(action-bar);
}
}
&__actions {
@include reset;
@include fd-reset;
display: flex;
transition: opacity $fd-action-bar-transition-params;
visibility: visible;
Expand Down
1 change: 1 addition & 0 deletions scss/components/add-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $block: ns(add-button);
.#{$block} {

// Block
@include fd-reset;
text-align: right;
padding: fd-space(s);
margin-top: -(fd-space(m));
Expand Down
1 change: 1 addition & 0 deletions scss/components/alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $block: ns(alert);
$fd-alert-action--clerance: 50px;

// Block
@include fd-reset;
color: $fd-alert-color;
border: solid 1px $fd-alert-border-color;
background-color: $fd-alert-background-color;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$block: ns(badge);

.#{$block} {
@include reset;
@include fd-reset;
@include fd-type(-3);
line-height: fd-space(reg);
border-radius: 5px;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/card-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $block: ns(card-group);
$fd-card-group-items-per-group: 3 !default;
$fd-card-group-width--gutter: fd-space(reg) !default;

@include reset;
@include fd-reset;
@include fd-clearfix;
$gutter_: $fd-card-group-width--gutter;
$i_: $fd-card-group-items-per-group;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//set component name using namespace function, then use #{$block} below
$block: ns(card);
.#{$block} {
@include reset;
@include fd-reset;

//dimensions
$fd-card-media-width: 75px !default;
Expand Down
1 change: 1 addition & 0 deletions scss/components/contextual-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
$block: ns(contextual-menu);

.#{$block} {
@include fd-reset;
min-width: 169px;
right: 0;
}
6 changes: 3 additions & 3 deletions scss/components/dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $block: ns(dropdown);

//BLOCK BASE *******************************************
//set all BLOCK reset and baseline styles
@include reset;
@include fd-reset;
position: relative;
display: inline-block;

Expand Down Expand Up @@ -86,7 +86,7 @@ $block: ns(dropdown);
}
&__item,
&__option {
@include reset;
@include fd-reset;
@include fd-type(-1,body);
display: block;
padding-left: 0;
Expand All @@ -99,7 +99,7 @@ $block: ns(dropdown);
}
}
&__separator {
@include reset;
@include fd-reset;
@include fd-type(-3, body, reg, none);
display: block;
color: fd-color(text, 2);
Expand Down
2 changes: 2 additions & 0 deletions scss/components/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ $block: ns(form);
$fd-form-item-gutter: $fd-width--gutter !default;
$fd-form-item-margin-bottom: fd-space(8) !default;

@include fd-reset;
&__group {
@include fd-clearfix;
@include fd-last-child;
Expand Down Expand Up @@ -77,6 +78,7 @@ $block: ns(form);
}
}
&__label, &__legend {
@include fd-reset;
@include fd-type($fd-form-label-font-size);
display: block;
margin-bottom: fd-space(2);
Expand Down
1 change: 1 addition & 0 deletions scss/components/image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $block: ns(image);
$fd-image-background-image--product: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+dG4taW1hZ2UtYmFja2dyb3VuZC1pbWFnZS0tcHJvZHVjdDwvdGl0bGU+PHBhdGggZD0iTTEzLjg3NiAxOC4yMjNsNS44NzQtMi41NTUgMTEgNS45MzQtNS4yOTEgMi4xNzgtMTEuNTgzLTUuNTU3ek0xMyAzMy4wNDN2LTE0LjAzbDExLjkxNyA1LjcxdjE0LjA5MWwtMTEuNTktNS4yNzVhLjU0LjU0IDAgMCAxLS4zMjctLjQ5N3ptMy4yNS05LjIwOXY1LjQxN2EuNTQuNTQgMCAwIDAgLjMxNy40OTNsNS40MTcgMi43MDhjLjM1OC4xNjMuNzY2LS4xLjc2Ni0uNDkzdi01LjQxN2EuNTQyLjU0MiAwIDAgMC0uMzE3LS40OTJsLTUuNDE3LTIuNzA5YS41NDIuNTQyIDAgMCAwLS43NjYuNDkzem05Ljc1Ljg4OWwxMy01LjcxdjE0LjAzYS41NC41NCAwIDAgMS0uMzI2LjQ5NkwyNiAzOC44MTVWMjQuNzIzem0xMi4xMjQtNi41bC02LjE0IDIuODEzLTEwLjk3LTUuOTE3IDQuNzctMi4wNzNhLjUzNi41MzYgMCAwIDEgLjQzMiAwbDExLjkwOCA1LjE3N3oiIGZpbGwtcnVsZT0ibm9uemVybyIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==" !default;

//BLOCK BASE *******************************************
@include fd-reset;
display: inline-block;
vertical-align: middle;
background-repeat: no-repeat;
Expand Down
1 change: 1 addition & 0 deletions scss/components/inline-help.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $block: ns(inline-help);
$fd-tooltip-min-width: 350px;

//BLOCK BASE *******************************************
@include fd-reset;
@include fd-type(-1);
position: relative;
//margin-left: fd-space(xs);
Expand Down
2 changes: 1 addition & 1 deletion scss/components/input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $block: ns(input-group);

//BLOCK BASE *******************************************
//set all BLOCK reset and baseline styles
@include reset;
@include fd-reset;
display: flex;
vertical-align: bottom;
max-height: $fd-forms-height--input-text;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$block: ns(label);

.#{$block} {
@include reset;
@include fd-reset;
@include fd-type(-3);
&--success {
color: $fd-color--success;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/list-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $block: ns(list-group);
$fd-list-group-action-height: fd-space(10) !default;
$fd-list-group-transition-params: $fd-animation--speed ease-in !default;

@include reset;
@include fd-reset;

margin-left: 0;
&__item {
Expand Down
1 change: 1 addition & 0 deletions scss/components/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $block: ns(modal);


.#{$block} {
@include fd-reset;
width: 700px;
margin: fd-space(8) auto;
&__content{
Expand Down
2 changes: 1 addition & 1 deletion scss/components/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $block: ns(nav);

.#{$block} {
$fd-nav-link-padding: fd-space(2);
@include reset;
@include fd-reset;
display: flex;
flex-wrap: wrap;
padding-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $block: ns(pagination);
$fd-pagination-color--disabled: fd-color(text, 1) !default;
$fd-pagination-nav-color--disabled: fd-color(text, 2) !default;

@include reset;
@include fd-reset;
@include fd-type(-1);
display: inline-block;
margin-bottom: 0;
Expand Down
3 changes: 1 addition & 2 deletions scss/components/spinner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ $block: ns(spinner);
$fd-spinner-backdrop-background-color: rgba(fd-color(background, 1),0.95) !default;

//BLOCK BASE *******************************************
//set all BLOCK reset and baseline styles

@include fd-reset;
$_width: $fd-spinner-width--bar*4 + $fd-spinner-width--gutter*3;
$_height: $fd-spinner-height;

Expand Down
2 changes: 1 addition & 1 deletion scss/components/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $block: ns(table);

//BLOCK BASE *******************************************
//set all BLOCK reset and baseline styles
@include reset;
@include fd-reset;
@include fd-last-child;
width: 100%;
max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $block: ns(tabs);
$fd-tabs-link-border-color: fd-color(action, 1) !default;
$fd-tabs-link-transition-params: $fd-animation--speed ease-in !default;

@include reset;
@include fd-reset;
display: flex;
flex-wrap: wrap;
padding-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $block: ns(toggle);
$fd-toggle-switch-background-color--disabled: fd-color(neutral, 2) !default;
$fd-toggle-transition-params: $fd-animation--speed ease-in !default;

@include reset;
@include fd-reset;
position: relative;
display: inline-block;
height: $fd-toggle-height;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $block: ns(toolbar);

//BLOCK BASE *******************************************
//set all BLOCK reset and baseline styles
@include reset;
@include fd-reset;
min-height: $fd-toolbar-group-height;
background-color: $fd-toolbar-background-color;
border-color: $fd-toolbar-border-color;
Expand Down
2 changes: 1 addition & 1 deletion scss/components/tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $block: ns(tree);
$fd-tree-control-margin-right: fd-space(2) !default;
$fd-tree-transition-params: $fd-animation--speed ease-in !default;

@include reset;
@include fd-reset;
@include fd-last-child;
position: relative;
width: 100%;
Expand Down
5 changes: 3 additions & 2 deletions scss/core/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

$ns: ns();
//utils
@mixin reset {
@mixin fd-reset {
font-size: $fd-font-size;
line-height: $fd-line-height;
color: $fd-color;
font-family: $fd-font-family;
}



//els
@mixin fd-form-base {
@include reset;
@include fd-reset;
@include fd-type(0, body);
appearance: none;
-webkit-appearance: textfield;
Expand Down

0 comments on commit 4b531ef

Please sign in to comment.