mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-29 23:54:24 +00:00
feat: add request button near request tabs
This commit is contained in:
@@ -16,15 +16,29 @@ const Wrapper = styled.div`
|
||||
bottom: -1px;
|
||||
position: relative;
|
||||
list-style: none;
|
||||
padding: 6px 12px;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
cursor: pointer;
|
||||
|
||||
.tab-container {
|
||||
border-left: 1px solid #dcdcdc;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
&.active {
|
||||
border-color: #cfcfcf;
|
||||
background: #fff;
|
||||
border-radius: 5px 5px 0 0;
|
||||
|
||||
.tab-container {
|
||||
border-left: 1px solid transparent;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.tab-label {
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -46,6 +60,56 @@ const Wrapper = styled.div`
|
||||
color: rgb(142, 68, 173);
|
||||
}
|
||||
}
|
||||
|
||||
&.new-tab {
|
||||
vertical-align: bottom;
|
||||
width: 34px;
|
||||
padding: 3px 0px;
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
color: rgb(117 117 117);
|
||||
margin-bottom: 2px;
|
||||
|
||||
> div {
|
||||
padding: 3px 4px;
|
||||
}
|
||||
|
||||
svg {
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
> div {
|
||||
background-color: #eaeaea;
|
||||
color: rgb(76 76 76);
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li.last-tab {
|
||||
.tab-container {
|
||||
border-right: 1px solid #dcdcdc;
|
||||
}
|
||||
|
||||
&.active {
|
||||
.tab-container {
|
||||
border-right: 1px solid transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li.active + li {
|
||||
.tab-container {
|
||||
border-left: 1px solid transparent;
|
||||
}
|
||||
}
|
||||
|
||||
li:first-child {
|
||||
.tab-container {
|
||||
border-left: 1px solid transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user