-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fee631d
commit 3d6ebe6
Showing
2 changed files
with
80 additions
and
34 deletions.
There are no files selected for viewing
39 changes: 34 additions & 5 deletions
39
packages/bruno-app/src/components/RequestPane/Script/StyledWrapper.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,42 @@ | ||
import styled from 'styled-components'; | ||
|
||
const StyledWrapper = styled.div` | ||
div.CodeMirror { | ||
height: inherit; | ||
height: 100%; | ||
.script-tabs { | ||
display: flex; | ||
gap: 1px; | ||
padding: 0 1px; | ||
border-bottom: 1px solid ${(props) => props.theme.requestTabs.bottomBorder}; | ||
} | ||
div.title { | ||
color: var(--color-tab-inactive); | ||
.tab { | ||
padding: 8px 16px; | ||
font-size: 13px; | ||
background: transparent; | ||
border: none; | ||
cursor: pointer; | ||
color: ${(props) => props.theme.requestTabs.color}; | ||
border-bottom: 2px solid transparent; | ||
transition: all 0.2s ease; | ||
position: relative; | ||
&:hover { | ||
color: ${(props) => props.theme.requestTabs.icon.hoverColor}; | ||
background: ${(props) => props.theme.requestTabs.icon.hoverBg}; | ||
} | ||
&.active { | ||
color: ${(props) => props.theme.tabs.active.color}; | ||
border-bottom: solid 2px ${(props) => props.theme.tabs.active.border}; | ||
background: ${(props) => props.theme.requestTabs.active.bg}; | ||
} | ||
} | ||
div.CodeMirror { | ||
height: calc(100vh - 290px); | ||
background: ${(props) => props.theme.codemirror.bg}; | ||
} | ||
`; | ||
|
||
export default StyledWrapper; | ||
export default StyledWrapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters