Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Make tab close button respect tab's container #5480

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions less/tabs.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
}

.tab {
// background: rgba(222, 222, 222, 0.6);
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
position: relative;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
border-radius: @borderRadiusTabs @borderRadiusTabs 0px 0px;
border-width: 1px 1px 0;
box-sizing: border-box;
Expand Down Expand Up @@ -157,13 +157,24 @@
}

.closeTab {
transition: opacity 100ms linear;
opacity: 0;
text-align: center;
width: 16px;
height: 16px;
margin-left: 4px;
margin-right: 4px;

@media (max-width: @breakpointTabsTextTrim) {
position: absolute;
width: 100%;
margin: 0;
background: #fff;
border-radius: 0;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
&:hover {
opacity: 1;
}
Expand Down
1 change: 1 addition & 0 deletions less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@

@breakpointWideViewport: 1000px;
@breakpointNarrowViewport: 600px;
@breakpointTabsTextTrim: 770px;
@breakpointExtensionButtonPadding: 720px;
@breakpointSmallWin32: 650px;
@breakpointTinyWin32: 500px;
Expand Down