Skip to content

Commit

Permalink
fix: use font size property on all components
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jan 17, 2019
1 parent cd99cc1 commit d2dbc3a
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ a.dnb-button {
flex: 1 100%;
padding: 0.5em 1.5em;
color: var(--color-black);
font-size: 0.75em;
font-size: var(--font-size-small);
line-height: 1.25rem; }
> .dnb-form-label ~ .dnb-input__extra-information {
padding: 0.5em 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ a.dnb-button {
flex: 1 100%;
padding: 0.5em 1.5em;
color: var(--color-black);
font-size: 0.75em;
font-size: var(--font-size-small);
line-height: 1.25rem; }
> .dnb-form-label ~ .dnb-input__extra-information {
padding: 0.5em 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ a.dnb-button {
flex: 1 100%;
padding: 0.5em 1.5em;
color: var(--color-black);
font-size: 0.75em;
font-size: var(--font-size-small);
line-height: 1.25rem; }
> .dnb-form-label ~ .dnb-input__extra-information {
padding: 0.5em 0; }
Expand Down
2 changes: 1 addition & 1 deletion packages/dnb-ui-lib/src/components/input/style/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
padding: 0.5em 1.5em;

color: var(--color-black);
font-size: 0.75em; // 12px
font-size: var(--font-size-small); // 14px
line-height: 1.25rem;
}
> .dnb-form-label ~ &__extra-information {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,30 @@ $large-right-padding: (100 - $large-title-width);
}

&__title {
font-size: 1.5rem;
line-height: 2rem;
display: inline;
position: relative;
z-index: 1;
display: inline;

font-size: var(--font-size-medium);
line-height: 2rem;
}

&__mask {
position: absolute;
background-color: white; // so we overlay the line
width: calc(100% + 1rem);
height: calc(100% + 1rem);
z-index: 1;
top: -0.5rem;
left: -0.5rem;
z-index: 1;

width: calc(100% + 1rem);
height: calc(100% + 1rem);

background-color: white; // so we overlay the line
}

&__text {
display: inline;
position: relative;
z-index: 2;
display: inline;
}

&--small {
Expand All @@ -49,10 +52,12 @@ $large-right-padding: (100 - $large-title-width);
}

.dnb-line-title__line {
width: 100%;
height: 1px;
background: var(--color-summer-green);
position: absolute;
top: 50%;
left: 0;

width: 100%;
height: 1px;

background: var(--color-summer-green);
}
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ exports[`Tabs scss have to match default theme snapshot 1`] = `
.dnb-tabs__tabs .dnb-tablink-title {
font-weight: var(--font-weight-book);
font-size: 1em;
line-height: 1.5em;
font-size: var(--font-size-default);
text-align: center;
color: var(--color-emerald-green); }
Expand Down Expand Up @@ -460,8 +459,7 @@ exports[`Tabs scss have to match snapshot 1`] = `
outline: none;
border: none; }
.dnb-tabs__tabs .dnb-tablink-title {
font-size: 1em;
line-height: 1.5em;
font-size: var(--font-size-default);
white-space: nowrap; }
.dnb-tabs__tabs .dnb-tablink > span[hidden] {
display: flex;
Expand Down
6 changes: 2 additions & 4 deletions packages/dnb-ui-lib/src/components/tabs/style/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
&__tabs {
position: relative;
z-index: 1;
// z-index: 100; /* some components have set a position, like MainMenu */
// overflow: hidden;

display: flex;
flex-direction: row;
Expand All @@ -34,6 +32,7 @@

// we may wrap this &::after in allAbove to now show for mobile
// @include allAbove(medium) {}

&::after {
content: '';
position: absolute;
Expand Down Expand Up @@ -61,8 +60,7 @@

// should be same as .lead small
&-title {
font-size: 1em;
line-height: 1.5em;
font-size: var(--font-size-default);
white-space: nowrap;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
// should be same as .lead small
&-title {
font-weight: var(--font-weight-book);
font-size: 1em;
line-height: 1.5em;
font-size: var(--font-size-default);
text-align: center;

color: var(--color-emerald-green);
Expand Down

0 comments on commit d2dbc3a

Please sign in to comment.