This repository has been archived by the owner on Dec 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f26e3b6
commit 38f52b9
Showing
21 changed files
with
316 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import path from 'path'; | ||
|
||
/** | ||
* A custom rollup-plugin-postcss loader that resolves node_modules imports in Less files | ||
* and replaces them with relative path imports. | ||
*/ | ||
export default { | ||
name: 'resolveNodeImportsInLess', | ||
test: /\.less$/, | ||
async process({code}) { | ||
const lessFilePath = this.id; | ||
const from = path.dirname(lessFilePath); | ||
const to = './node_modules/'; | ||
const relativePath = path.relative(from, to); | ||
|
||
const modifiedInput = code.replace(/(@import ['"])(~)([a-zA-Z0-9\/]*['"];\n)/g, `$1${relativePath}/$3`); | ||
|
||
return { | ||
code: modifiedInput, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import "ui/FileUpload"; | ||
@import "ui/table/DataTable"; | ||
@import "ui/table/DataTableCustomFilter"; | ||
@import "ui/table/DataTableFilterControlLayout"; | ||
@import "ui/table/DataTableIntervalEditor"; | ||
@import "ui/table/DataTableListEditor"; | ||
@import "style/palette"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// NOTE: Use colors from antd/es/style/themes/default.less or antd/es/style/color/colors.less whenever possible | ||
|
||
@mono-tint-100: #ffffff; // same as antd @white; | ||
@mono-tint-90: #f2f2f2; | ||
@mono-tint-80: #e6e6e6; | ||
@mono-tint-70: #d9d9d9; // same as antd @normal-color | ||
@mono-tint-60: #cccccc; | ||
@mono-tint-50: #c0c0c0; | ||
@mono-tint-40: #b3b3b3; | ||
@mono-tint-30: #a6a6a6; | ||
@mono-tint-20: #999999; | ||
@mono-tint-10: #8d8d8d; | ||
@mono-primary: #808080; | ||
@mono-shade-10: #737373; | ||
@mono-shade-20: #666666; | ||
@mono-shade-30: #5a5a5a; | ||
@mono-shade-40: #4d4d4d; | ||
@mono-shade-50: #404040; | ||
@mono-shade-60: #333333; | ||
@mono-shade-70: #262626; | ||
@mono-shade-80: #1a1a1a; | ||
@mono-shade-90: #0d0d0d; | ||
@mono-shade-100: #000000; // same as antd @black | ||
|
||
@gray: @mono-primary; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
@import '~antd/es/style/themes/default'; | ||
@import '../style/palette'; | ||
|
||
._cuba-file-upload-full-width-enabled span.ant-upload { | ||
display: table; | ||
table-layout: fixed; | ||
width: 100%; | ||
} | ||
|
||
.cuba-file-drop-area { | ||
background-color: @mono-tint-90; | ||
border: dashed @border-width-base @mono-tint-30; | ||
cursor: pointer; | ||
display: table-cell; | ||
padding: @padding-sm; | ||
text-align: center; | ||
transition: all @animation-duration-base; | ||
|
||
&:hover { | ||
border-color: @primary-color; | ||
} | ||
|
||
> .uploadicon { | ||
font-size: 48px; | ||
margin-bottom: 8px; | ||
} | ||
|
||
> .replaceicon { | ||
margin-right: 8px; | ||
} | ||
|
||
> .uploadtext { | ||
color: @mono-shade-70; | ||
} | ||
|
||
> .replacetext { | ||
color: @mono-shade-30; | ||
font-size: @font-size-sm; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@import "~antd/es/style/themes/default"; | ||
|
||
.cuba-data-table { | ||
> .buttons { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
} | ||
|
||
.cuba-data-table-clear-filters { | ||
margin-left: auto; | ||
} | ||
|
||
.cuba-data-table-loader { | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.cuba-data-table-header-cell { | ||
white-space: nowrap; | ||
max-width: 120px; | ||
overflow: hidden; | ||
text-overflow: clip; | ||
} | ||
|
||
._cuba-hide-selection-column .ant-table-selection-column { | ||
display: none; | ||
} | ||
|
||
@media screen and (max-width: @screen-xs-max) { | ||
.cuba-data-table-clear-filters { | ||
margin-left: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.