* split up main, sass imports, import new nds * migrate most buttons * update sizes based on feedback * update copy buttons * update executions list * fix issues * force message box buttons * update warning color * update more buttons * wrap message box buttons * update last component * lint fixes * add build report step * breakout imports * set package.json * fix notification bug * clean up imports * use build directories directly * update imports * remove xl size * update number inputs * fix input width * update line height, fix icon bug * fix up editor * fix spacing between buttons * Reset line height * revert changes to this * revert changes * clean up button sizes * change to outline * update select height * update tooltip * remove build report step * clean up impl * remove regenerator runtime * add design system repo * apply editorconfig * apply editor config prettier * lint issue * switch to tabs * switch to single space * update eslintrc * remove git modules * update sass package * support dart sass * add build * update dependency * update contributing.md * set repo * update versions * add tslint step * update spacing to spaces, add dev step * add test step * add test step * update browser lint rc * remove .github * delete .gitignore * set comment for icons * remove preview link * update button interface * update types * set types * clean up intro * update intro * remove assets * move into preview * remove headline comment * reduce theme build * loading executions * match deps versions * match deps versions * fix lint issues * fix lint issues * update callback * disable codacy for docs.css * fix storybook issues * add design system to docker image * update spacing around delete sort button * set line height to stop juggling headline * update sizes * clean up vars * fix scss issues * update button vars * add shade color * fix button without click * fix buttons bug * fix bug with executions list * clean up theme * update link styling * fix typo * run prettier * 🎨 code format * 🎨 code format * 🔥 remove empty files * ✨ N8n 2284 new inputs (#2075) * implement inputs * prettier fixes * revert unnessary change * move input components and tooltip * remove form elements * move select * update input placements * update sizes * update credentails * clean up select size * fix caret issue * update inputs * clean up select * fix tags dropdown border * clean up tags input * fix workflow name bug * clean up select here * add sizes template * fix option caret * fix input sizes * update date input size * remove tags input override * update prop * update input size * center run data inputs * update disabled colors * update execution header * update scrollbar * update text area spacing * fix items in header * update run data tooltip * remove popover * update prefix positions * add filterable demo * address design issues * fix input issues, flip boolean input to text * update input sufffix colors * remove override * speed up switch, fix toggle spacing issue * update icon * remove icon classes * clean up inputs * clean up inputs with icons * update input spacing again * update suffix position * build * Add support for xlarge inputs * fix input issues * fix input issue * update listeners * update number inputs for settings * update append/prepend spacing * clean up inputs, set expression input as text * fix type errors * fix workflow number input * fix tags dropdown bug * fix bugs * fix menu item bug * remove font weight from link element * remove default * fix select option * fix contrast issues * allow overflow x for multi selects * fix icon * update options select * fix issue that resolves expression to null * update how actions are centered * fix up selects * update selects to support limiting size * update option styles * ⚡ Apply suggestions BHesseldieck Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com> * 🎨 code format Co-authored-by: Jan <janober@users.noreply.github.com> Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com> Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com> * ⏪ Revert "🔥 remove empty files" This reverts commit e91ace4e52403f4a6b00b7be68b86fc48b7d8fef. * ⚡ Remove private from n8n-design-system package * 🎨 Change to spaces to stay consistent with editorconfig & others package files * ⚡ Fix year in license Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com> Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com> Co-authored-by: Jan <janober@users.noreply.github.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
610 lines
9.8 KiB
SCSS
610 lines
9.8 KiB
SCSS
@use "mixins/mixins";
|
|
@use "progress";
|
|
@use "./common/var";
|
|
@use "mixins/utils";
|
|
|
|
@include mixins.b(upload) {
|
|
display: inline-block;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
outline: none;
|
|
@include mixins.e(input) {
|
|
display: none;
|
|
}
|
|
|
|
@include mixins.e(tip) {
|
|
font-size: 12px;
|
|
color: var(--color-text-dark);
|
|
margin-top: 7px;
|
|
}
|
|
|
|
iframe {
|
|
position: absolute;
|
|
z-index: -1;
|
|
top: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
filter: alpha(opacity=0);
|
|
}
|
|
|
|
/* 照片墙模式 */
|
|
@include mixins.m(picture-card) {
|
|
background-color: #fbfdff;
|
|
border: 1px dashed #c0ccda;
|
|
border-radius: 6px;
|
|
box-sizing: border-box;
|
|
width: 148px;
|
|
height: 148px;
|
|
cursor: pointer;
|
|
line-height: 146px;
|
|
vertical-align: top;
|
|
|
|
i {
|
|
font-size: 28px;
|
|
color: #8c939d;
|
|
}
|
|
|
|
&:hover {
|
|
border-color: var(--color-primary);
|
|
color: var(--color-primary);
|
|
}
|
|
}
|
|
&:focus {
|
|
border-color: var(--color-primary);
|
|
color: var(--color-primary);
|
|
|
|
.el-upload-dragger {
|
|
border-color: var(--color-primary);
|
|
}
|
|
}
|
|
}
|
|
|
|
@include mixins.b(upload-dragger) {
|
|
background-color: #fff;
|
|
border: 1px dashed #d9d9d9;
|
|
border-radius: 6px;
|
|
box-sizing: border-box;
|
|
width: 360px;
|
|
height: 180px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
.el-icon-upload {
|
|
font-size: 67px;
|
|
color: var(--color-text-lighter);
|
|
margin: 40px 0 16px;
|
|
line-height: 50px;
|
|
}
|
|
|
|
+ .el-upload__tip {
|
|
text-align: center;
|
|
}
|
|
|
|
~ .el-upload__files {
|
|
border-top: var(--border-base);
|
|
margin-top: 7px;
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.el-upload__text {
|
|
color: var(--color-text-dark);
|
|
font-size: 14px;
|
|
text-align: center;
|
|
|
|
em {
|
|
color: var(--color-primary);
|
|
font-style: normal;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
@include mixins.when(dragover) {
|
|
background-color: rgba(32, 159, 255, 0.06);
|
|
border: 2px dashed var(--color-primary);
|
|
}
|
|
}
|
|
|
|
@include mixins.b(upload-list) {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
|
|
@include mixins.e(item) {
|
|
transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
|
|
font-size: 14px;
|
|
color: var(--color-text-dark);
|
|
line-height: 1.8;
|
|
margin-top: 5px;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
border-radius: 4px;
|
|
width: 100%;
|
|
|
|
.el-progress {
|
|
position: absolute;
|
|
top: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.el-progress__text {
|
|
position: absolute;
|
|
right: 0;
|
|
top: -13px;
|
|
}
|
|
|
|
.el-progress-bar {
|
|
margin-right: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
&:first-child {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
& .el-icon-upload-success {
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.el-icon-close {
|
|
display: none;
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
cursor: pointer;
|
|
opacity: 0.75;
|
|
color: var(--color-text-dark);
|
|
//transform: scale(.7);
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
& .el-icon-close-tip {
|
|
display: none;
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
opacity: 1;
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var.$background-color-base;
|
|
|
|
.el-icon-close {
|
|
display: inline-block;
|
|
}
|
|
|
|
.el-progress__text {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@include mixins.when(success) {
|
|
.el-upload-list__item-status-label {
|
|
display: block;
|
|
}
|
|
|
|
.el-upload-list__item-name:hover,
|
|
.el-upload-list__item-name:focus {
|
|
color: var.$link-hover-color;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&:focus:not(:hover) {
|
|
/* 键盘focus */
|
|
.el-icon-close-tip {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
&:not(.focusing):focus,
|
|
&:active {
|
|
/* click时 */
|
|
outline-width: 0;
|
|
.el-icon-close-tip {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
.el-upload-list__item-status-label {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@include mixins.when(disabled) {
|
|
.el-upload-list__item:hover .el-upload-list__item-status-label {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
@include mixins.e(item-name) {
|
|
color: var(--color-text-dark);
|
|
display: block;
|
|
margin-right: 40px;
|
|
overflow: hidden;
|
|
padding-left: 4px;
|
|
text-overflow: ellipsis;
|
|
transition: color 0.3s;
|
|
white-space: nowrap;
|
|
|
|
[class^='el-icon'] {
|
|
height: 100%;
|
|
margin-right: 7px;
|
|
color: var(--color-text-light);
|
|
line-height: inherit;
|
|
}
|
|
}
|
|
|
|
@include mixins.e(item-status-label) {
|
|
position: absolute;
|
|
right: 5px;
|
|
top: 0;
|
|
line-height: inherit;
|
|
display: none;
|
|
}
|
|
|
|
@include mixins.e(item-delete) {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 0;
|
|
font-size: 12px;
|
|
color: var(--color-text-dark);
|
|
display: none;
|
|
|
|
&:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
}
|
|
|
|
@include mixins.m(picture-card) {
|
|
margin: 0;
|
|
display: inline;
|
|
vertical-align: top;
|
|
|
|
.el-upload-list__item {
|
|
overflow: hidden;
|
|
background-color: #fff;
|
|
border: 1px solid #c0ccda;
|
|
border-radius: 6px;
|
|
box-sizing: border-box;
|
|
width: 148px;
|
|
height: 148px;
|
|
margin: 0 8px 8px 0;
|
|
display: inline-block;
|
|
|
|
.el-icon-check,
|
|
.el-icon-circle-check {
|
|
color: var.$color-white;
|
|
}
|
|
|
|
.el-icon-close {
|
|
display: none;
|
|
}
|
|
&:hover {
|
|
.el-upload-list__item-status-label {
|
|
display: none;
|
|
}
|
|
|
|
.el-progress__text {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.el-upload-list__item-name {
|
|
display: none;
|
|
}
|
|
|
|
.el-upload-list__item-thumbnail {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.el-upload-list__item-status-label {
|
|
position: absolute;
|
|
right: -15px;
|
|
top: -6px;
|
|
width: 40px;
|
|
height: 24px;
|
|
background: #13ce66;
|
|
text-align: center;
|
|
transform: rotate(45deg);
|
|
box-shadow: 0 0 1pc 1px rgba(0, 0, 0, 0.2);
|
|
|
|
i {
|
|
font-size: 12px;
|
|
margin-top: 11px;
|
|
transform: rotate(-45deg);
|
|
}
|
|
}
|
|
|
|
.el-upload-list__item-actions {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
top: 0;
|
|
cursor: default;
|
|
text-align: center;
|
|
color: #fff;
|
|
opacity: 0;
|
|
font-size: 20px;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
transition: opacity 0.3s;
|
|
&::after {
|
|
display: inline-block;
|
|
content: '';
|
|
height: 100%;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
span {
|
|
display: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
span + span {
|
|
margin-left: 15px;
|
|
}
|
|
|
|
.el-upload-list__item-delete {
|
|
position: static;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
span {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.el-progress {
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
bottom: auto;
|
|
width: 126px;
|
|
|
|
.el-progress__text {
|
|
top: 50%;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include mixins.m(picture) {
|
|
.el-upload-list__item {
|
|
overflow: hidden;
|
|
z-index: 0;
|
|
background-color: #fff;
|
|
border: 1px solid #c0ccda;
|
|
border-radius: 6px;
|
|
box-sizing: border-box;
|
|
margin-top: 10px;
|
|
padding: 10px 10px 10px 90px;
|
|
height: 92px;
|
|
|
|
.el-icon-check,
|
|
.el-icon-circle-check {
|
|
color: var.$color-white;
|
|
}
|
|
|
|
&:hover {
|
|
.el-upload-list__item-status-label {
|
|
background: transparent;
|
|
box-shadow: none;
|
|
top: -2px;
|
|
right: -12px;
|
|
}
|
|
|
|
.el-progress__text {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
&.is-success {
|
|
.el-upload-list__item-name {
|
|
line-height: 70px;
|
|
margin-top: 0;
|
|
i {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.el-upload-list__item-thumbnail {
|
|
vertical-align: middle;
|
|
display: inline-block;
|
|
width: 70px;
|
|
height: 70px;
|
|
float: left;
|
|
position: relative;
|
|
z-index: 1;
|
|
margin-left: -80px;
|
|
background-color: var.$color-white;
|
|
}
|
|
|
|
.el-upload-list__item-name {
|
|
display: block;
|
|
margin-top: 20px;
|
|
|
|
i {
|
|
font-size: 70px;
|
|
line-height: 1;
|
|
position: absolute;
|
|
left: 9px;
|
|
top: 10px;
|
|
}
|
|
}
|
|
|
|
.el-upload-list__item-status-label {
|
|
position: absolute;
|
|
right: -17px;
|
|
top: -7px;
|
|
width: 46px;
|
|
height: 26px;
|
|
background: #13ce66;
|
|
text-align: center;
|
|
transform: rotate(45deg);
|
|
box-shadow: 0 1px 1px #ccc;
|
|
|
|
i {
|
|
font-size: 12px;
|
|
margin-top: 12px;
|
|
transform: rotate(-45deg);
|
|
}
|
|
}
|
|
|
|
.el-progress {
|
|
position: relative;
|
|
top: -7px;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include mixins.b(upload-cover) {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
z-index: 10;
|
|
cursor: default;
|
|
@include utils.utils-vertical-center;
|
|
|
|
img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
@include mixins.e(label) {
|
|
position: absolute;
|
|
right: -15px;
|
|
top: -6px;
|
|
width: 40px;
|
|
height: 24px;
|
|
background: #13ce66;
|
|
text-align: center;
|
|
transform: rotate(45deg);
|
|
box-shadow: 0 0 1pc 1px rgba(0, 0, 0, 0.2);
|
|
|
|
i {
|
|
font-size: 12px;
|
|
margin-top: 11px;
|
|
transform: rotate(-45deg);
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
@include mixins.e(progress) {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
position: static;
|
|
width: 243px;
|
|
|
|
+ .el-upload__inner {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@include mixins.e(content) {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
@include mixins.e(interact) {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(#000, 0.72);
|
|
text-align: center;
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
color: var.$color-white;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
vertical-align: middle;
|
|
transition: var.$md-fade-transition;
|
|
margin-top: 60px;
|
|
|
|
i {
|
|
margin-top: 0;
|
|
}
|
|
|
|
span {
|
|
opacity: 0;
|
|
transition: opacity 0.15s linear;
|
|
}
|
|
|
|
&:not(:first-child) {
|
|
margin-left: 35px;
|
|
}
|
|
|
|
&:hover {
|
|
transform: translateY(-13px);
|
|
|
|
span {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
i {
|
|
color: var.$color-white;
|
|
display: block;
|
|
font-size: 24px;
|
|
line-height: inherit;
|
|
margin: 0 auto 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include mixins.e(title) {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
background-color: var.$color-white;
|
|
height: 36px;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
padding: 0 10px;
|
|
margin: 0;
|
|
line-height: 36px;
|
|
font-size: 14px;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
+ .el-upload__inner {
|
|
opacity: 0;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
}
|