Skip to content

Commit

Permalink
chore: more style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Sep 30, 2024
1 parent b43b8bd commit 200baaa
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

position: relative;
display: flex;
align-items: flex-start;
font:
normal 0.625rem/0.75rem -apple-system,
BlinkMacSystemFont,
Expand Down
5 changes: 1 addition & 4 deletions projects/demo/src/modules/markup/colors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
</ng-template>

<ng-template pageTab="Others">
<table
[colors]="others"
[tuiPlatform]="platform"
></table>
<table [colors]="others"></table>
<table
[attr.tuiTheme]="darkMode() ? 'light' : 'dark'"
[colors]="others"
Expand Down
9 changes: 9 additions & 0 deletions projects/kit/directives/button-group/button-group.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
color: var(--tui-text-action);
text-align: center;
text-decoration: none;
clip-path: inset(0);

&:first-child {
clip-path: inset(0 0 0 -10rem);
}

&:last-child {
clip-path: inset(0 -10rem 0 0);
}

&:active {
background: var(--tui-background-neutral-1);
Expand Down
1 change: 1 addition & 0 deletions projects/layout/components/card/card.styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
flex-shrink: 0;
text-decoration: none;
overscroll-behavior: contain;
overflow: hidden;

&[tuiTitle],
[tuiTitle]:not([tuiCell] *):not([tuiLabel] *) {
Expand Down
7 changes: 5 additions & 2 deletions projects/layout/components/cell/cell.styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
padding: var(--t-padding);
min-block-size: var(--t-height);
border-radius: var(--t-radius);
overflow: hidden;

&:disabled {
pointer-events: none;
Expand Down Expand Up @@ -166,7 +167,8 @@
}

&:hover [tuiCellActions] button,
&:hover [tuiCellActions] a {
&:hover [tuiCellActions] a,
&:hover [tuiCellActions] label {
opacity: 1;
}

Expand All @@ -178,7 +180,8 @@

@media (hover: hover) and (pointer: fine) {
a[tuiCell]:not([tuiSurface]):hover,
button[tuiCell]:not([tuiSurface]):hover {
button[tuiCell]:not([tuiSurface]):hover,
label[tuiCell]:not([tuiSurface]):hover {
background: var(--tui-background-neutral-1);
cursor: pointer;
}
Expand Down

0 comments on commit 200baaa

Please sign in to comment.