Skip to content

Commit

Permalink
fix(kit): InputFiles fix styles (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Apr 11, 2022
1 parent 3ae86ea commit 9b55ce3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
42 changes: 21 additions & 21 deletions projects/kit/components/files/files.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@

tui-files {
display: block;
}

.t-files {
position: relative;
display: block;
width: 100%;
height: 100%;
border-radius: var(--tui-radius-m);
overflow: hidden;
}
.t-files {
position: relative;
display: block;
width: 100%;
height: 100%;
border-radius: var(--tui-radius-m);
overflow: hidden;
}

.t-button {
z-index: 3;
width: 100%;
background: var(--tui-base-01);
.t-button {
z-index: 3;
width: 100%;
background: var(--tui-base-01);

&_collapsed {
.shadow(3);
margin-top: -1.5rem;
&_collapsed {
.shadow(3);
margin-top: -1.5rem;
}
}
}

.t-extra-items tui-file {
border-radius: 0;
margin-top: 0;
margin-bottom: -0.0625rem;
.t-extra-items tui-file {
border-radius: 0;
margin-top: 0;
margin-bottom: -0.0625rem;
}
}
28 changes: 14 additions & 14 deletions projects/kit/components/input-files/input-files.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

tui-input-files {
display: block;

.t-native {
.fullsize();
opacity: 0;
cursor: pointer;

&::-webkit-file-upload-button {
display: none;
}
}

.t-inline {
display: inline;
}
}

tui-wrapper[data-appearance='input-file'] {
Expand Down Expand Up @@ -106,17 +120,3 @@ tui-wrapper[data-appearance='input-file'] {
}
}
}

.t-native {
.fullsize();
opacity: 0;
cursor: pointer;

&::-webkit-file-upload-button {
display: none;
}
}

.t-inline {
display: inline;
}

0 comments on commit 9b55ce3

Please sign in to comment.