"eslint-plugin-jest": "^21.17.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.7.0",
+ "file-loader": "^1.1.11",
"html-webpack-plugin": "^3.2.0",
"i18next-scanner": "^2.4.6",
"identity-obj-proxy": "^3.0.0",
-@import 'common/fonts';
@import '../../node_modules/sdc-ui/lib/style/scss/common/variables.scss';
-@import '../../node_modules/sdc-ui/lib/style/scss/common/typography.scss';
@import 'common/customVariables';
+@import 'common/fonts';
@import 'common/utils';
$cursor-disabled: not-allowed !default;
$cursor-pointer: pointer;
+$heading-font-1: 28px;
+$heading-font-2: 24px;
+$heading-font-3: 20px;
+$heading-font-4: 16px;
+$heading-font-5: 14px;
+
+$body-font-1: 14px;
+$body-font-2: 13px;
+$body-font-3: 12px;
+$body-font-4: 10px;
+
+@mixin regular-font() {
+ font-family: OpenSans-Regular, Arial, sans-serif;
+ font-style: normal;
+ font-weight: 400;
+}
+
+@mixin italic-font() {
+ font-family: OpenSans-Italic, OpenSans-Regular, Arial, sans-serif;
+ font-style: italic;
+ font-weight: 400;
+}
+
+@mixin semibold-font() {
+ font-family: OpenSans-Semibold, Arial, sans-serif;
+ font-style: normal;
+ font-weight: 600;
+}
+
+@mixin body-1() {
+ @include regular-font;
+ font-size: $body-font-1;
+}
+
+@mixin body-1-semibold() {
+ @include semibold-font;
+ font-size: $body-font-1;
+}
+
+@mixin body-2() {
+ @include regular-font;
+ font-size: $body-font-2;
+}
+
+@mixin body-2-semibold() {
+ @include semibold-font;
+ font-size: $body-font-2;
+}
+
+@mixin body-3() {
+ @include regular-font;
+ font-size: $body-font-3;
+}
+
+@mixin body-4() {
+ @include regular-font;
+ font-size: $body-font-4;
+}
+
+@mixin heading-1() {
+ @include regular-font;
+ font-size: $heading-font-1;
+}
+
+@mixin heading-1-semibold() {
+ @include semibold-font;
+ font-size: $heading-font-1;
+}
+
+@mixin heading-4() {
+ @include regular-font;
+ font-size: $heading-font-4;
+}
+
+@mixin heading-4-semibold() {
+ @include semibold-font;
+ font-size: $heading-font-4;
+}
+
+@mixin heading-5() {
+ @include regular-font;
+ font-size: $heading-font-5;
+}
+
.flex {
display: flex;
flex: 1;
opacity: 0.7 !important;
cursor: $cursor-disabled;
}
-
-@mixin semi-bold() {
- font-weight: 600;
-};
-
-
-/* Fonts */
@font-face {
font-family: 'OpenSans-Regular';
font-style: normal;
font-weight: 400;
- src:
- local('Open Sans Regular'),
- local('OpenSans-Regular'),
- url(https://fonts.gstatic.com/s/opensans/v15/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2) format('woff2'),
- url(http://fonts.gstatic.com/s/opensans/v15/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
- }
- @font-face {
+ src: local('Open Sans Regular'), local('OpenSans-Regular'),
+ url('../fonts/open-sans-v15-latin-regular.woff2') format('woff2'),
+ url('../fonts/open-sans-v15-latin-regular.woff') format('woff');
+}
+
+@font-face {
font-family: 'OpenSans-Italic';
- font-style: normal;
+ font-style: italic;
font-weight: 400;
- src:
- local('Open Sans Italic'),
- local('OpenSans-Italic'),
- url(https://fonts.gstatic.com/s/opensans/v15/xjAJXh38I15wypJXxuGMBogp9Q8gbYrhqGlRav_IXfk.woff2) format('woff2'),
- url(http://fonts.gstatic.com/s/opensans/v15/xjAJXh38I15wypJXxuGMBobN6UDyHWBl620a-IRfuBk.woff) format('woff');
- }
- @font-face {
- font-family: 'OpenSans-Semibold';
+ src: local('Open Sans Italic'), local('OpenSans-Italic'),
+ url('../fonts/open-sans-v15-latin-italic.woff2') format('woff2'),
+ url('../fonts/open-sans-v15-latin-italic.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'OpenSans-SemiBold';
font-style: normal;
- font-weight: 400;
- src:
- local('Open Sans Semibold'),
- local('OpenSans-Semibold'),
- url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNShampu5_7CjHW5spxoeN3Vs.woff2) format('woff2'),
- url(http://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSnhCUOGz7vYGh680lGh-uXM.woff) format('woff');
- }
\ No newline at end of file
+ font-weight: 600;
+ src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'),
+ url('../fonts/open-sans-v15-latin-600.woff2') format('woff2'),
+ url('../fonts/open-sans-v15-latin-600.woff') format('woff');
+}
flex-direction: column;
background-color: $light-silver;
.group-name {
- @include heading-4;
- @include semi-bold;
- @include ellipsis;
- display: block;
+ @include heading-4-semibold;
+ @include ellipsis;
+ display: block;
padding: 24px 12px 13px 40px;
background-color: $white;
border-bottom: 1px solid $silver;
@include ellipsis;
white-space: normal;
&.selected {
- @include body-1;
- @include semi-bold;
+ @include body-1-semibold;
border-left: 4px solid $blue;
padding-left: 18px;
color: $blue;
}
&.bold-name {
- @include body-1;
- @include semi-bold;
+ @include body-1-semibold;
}
}
}
text {
text-anchor: end;
- @include body-2;
- @include semi-bold;
+ @include body-2-semibold;
fill: $blue;
}
.group-name-wrapper {
width: 245px;
.group-name {
- @include heading-4;
- @include semi-bold;
+ @include heading-4-semibold;
@include ellipsis;
display: block;
padding: 24px 12px 13px 40px;
align-items: center;
padding: 25px 60px;
&__total {
- @include body-1;
- @include semi-bold;
+ @include body-1-semibold;
color: $dark-gray;
}
&__order {
display: flex;
&__label {
- @include body-1;
- @include semi-bold;
+ @include body-1-semibold;
color: $dark-gray;
}
&__alphabetical {
.general-page-title {
height: 110px;
line-height: 110px;
- @include heading-1;
- @include semi-bold;
+ @include heading-1-semibold;
color: $dark-gray;
}
&__title {
height: 110px;
line-height: 110px;
- @include heading-1;
- @include semi-bold;
+ @include heading-1-semibold;
color: $dark-gray;
}
&__header {
display: flex;
- @include body-1;
- @include semi-bold;
+ @include body-1-semibold;
&__right {
flex: 1;
display: flex;
&__table {
&__thead {
background-color: $silver;
- @include body-1;
- @include semi-bold;
+ @include body-1-semibold;
}
}
&__tr {
display: flex;
@include border();
- &:hover:not(.no-data) {
+ &:hover:not(&--no-hover) {
background-color: $light-silver;
}
& + & {
&--empty {
padding: 20px;
color: $dark-gray;
- @include body-1;
- @include semi-bold;
+ @include body-1-semibold;
justify-content: center;
}
.overview-page {
- @include body-1;
- @include base-font-regular;
+ @include body-1-semibold;
padding: 25px;
.overview-content {
@include version-page-box-shadow();
.version-tree-title-container {
- @include base-font-semibold();
+ @include body-1-semibold();
background-color: $light-silver;
display: flex;
align-items: center;
height: 40px;
background-color: $light-silver;
- @include base-font-semibold();
+ @include body-1-semibold();
@include version-page-sub-title();
padding: 15px 27px;
import PropTypes from 'prop-types';
const NoDataRow = ({ children }) => (
- <div className="input-output__tr no-data">
+ <div className="input-output__tr input-output__tr--no-hover">
<div className="input-output__td input-output__td--empty">
{children}
</div>
render() {
return (
<div className="input-output__table__thead">
- <div className="input-output__tr">
+ <div className="input-output__tr input-output__tr--no-hover">
<div className="input-output__th">
<Translate value="workflow.inputOutput.name" />
</div>
test: /\.ts|\.tsx$/,
loader: ['babel-loader', 'awesome-typescript-loader'],
include: srcPath
+ },
+ {
+ test: /\.woff|\.woff2$/,
+ loader: 'file-loader'
}
]
},