Skip to content

Commit

Permalink
feat(business/field): expose field component for business applications (
Browse files Browse the repository at this point in the history
  • Loading branch information
efux authored and kyubisation committed Jun 19, 2019
1 parent 36745d0 commit 403a97d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 15 deletions.
1 change: 1 addition & 0 deletions projects/sbb-esta/angular-business/src/lib/field/field.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../../../../angular-public/src/lib/field/field';
2 changes: 1 addition & 1 deletion projects/sbb-esta/angular-business/src/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
* Public API Surface of angular-business
*/
export {};
export * from './lib/field/field';
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,23 @@
resize: none;
opacity: 1;
font-family: $fontSbbRoman;
font-size: pxToRem(14);
line-height: pxToEm(21, 14);
color: $sbbColorError;

@include mq($from: desktop4k) {
font-size: pxToRem(14 * $scalingFactor4k);
@include publicOnly() {
font-size: pxToRem(14);
line-height: pxToEm(21, 14);

@include mq($from: desktop4k) {
font-size: pxToRem(14 * $scalingFactor4k);
}

@include mq($from: desktop5k) {
font-size: pxToRem(14 * $scalingFactor5k);
}
}

@include mq($from: desktop5k) {
font-size: pxToRem(14 * $scalingFactor5k);
@include businessOnly() {
font-size: pxToRem(13);
line-height: pxToEm(16, 13);
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
@import 'common';

@mixin sbbLabel {
margin-bottom: pxToEm(5, 13);
padding-left: pxToEm(10, 13);

@include mq($from: desktop4k) {
margin-bottom: pxToEm(5 * $scalingFactor4k, 13);
@include publicOnly() {
margin-bottom: pxToEm(5, 13);
padding-left: pxToEm(10, 13);

@include mq($from: desktop4k) {
margin-bottom: pxToEm(5 * $scalingFactor4k, 13);
}

@include mq($from: desktop5k) {
margin-bottom: pxToEm(5 * $scalingFactor5k, 13);
}
}

@include mq($from: desktop5k) {
margin-bottom: pxToEm(5 * $scalingFactor5k, 13);
@include businessOnly() {
margin-bottom: pxToEm(3, 13);
padding-left: 0;
}

@include label;
Expand Down
1 change: 0 additions & 1 deletion projects/sbb-esta/angular-public/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
export * from './lib/_common/common';
export * from './lib/svg-icons/svg-icons';
export * from './lib/field/field';
export * from './lib/field/field';
export * from './lib/input/input';
export * from './lib/option/option';
export * from './lib/textarea/textarea';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

@include businessOnly() {
padding: 7px;
padding: 6px 8px 7px;
}
}

Expand Down

0 comments on commit 403a97d

Please sign in to comment.