-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(script): script info tab overflow (#145)
* fix(script): overflow * fix(script): change style of script info * fix(script): close medal missed * fix(script): close button position * feat(tab): move the css code to the styled components * fix(script): remove more icon
- Loading branch information
Showing
6 changed files
with
194 additions
and
114 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { Tabs } from 'antd' | ||
import TabPane from 'antd/lib/tabs/TabPane' | ||
import styled from 'styled-components' | ||
|
||
export const ScriptTab = styled(Tabs)` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
width: 100%; | ||
background-color: #fff; | ||
border-radius: 6px 6px 0 0; | ||
/* stylelint-disable-next-line selector-class-pattern */ | ||
.ant-tabs-nav-list { | ||
padding-left: 40px; | ||
} | ||
/* stylelint-disable-next-line selector-class-pattern */ | ||
.ant-tabs-tab.ant-tabs-tab-active { | ||
/* stylelint-disable-next-line selector-class-pattern */ | ||
.ant-tabs-tab-btn { | ||
color: var(--primary-color); | ||
} | ||
} | ||
/* stylelint-disable-next-line selector-class-pattern */ | ||
.ant-tabs-tab-active { | ||
/* stylelint-disable-next-line selector-class-pattern */ | ||
.ant-tabs-tab-btn { | ||
color: #333; | ||
} | ||
} | ||
/* stylelint-disable-next-line selector-class-pattern */ | ||
.ant-tabs-tab-btn { | ||
color: #333; | ||
font-weight: 400; | ||
font-size: 20px; | ||
line-height: 23px; | ||
margin-bottom: 0; | ||
&[aria-selected='true'] { | ||
font-weight: 500; | ||
} | ||
} | ||
/* stylelint-disable-next-line selector-class-pattern */ | ||
.ant-tabs-nav .ant-tabs-ink-bar { | ||
background: linear-gradient( | ||
to right, | ||
transparent 30%, | ||
var(--primary-color) 30%, | ||
var(--primary-color) 70%, | ||
transparent 70% | ||
); | ||
height: 3px; | ||
bottom: 3px; | ||
} | ||
` | ||
export const ScriptTabTitle = styled.span` | ||
font-size: 20px; | ||
` | ||
|
||
export const ScriptTabPane = styled(TabPane)` | ||
color: #333; | ||
` |
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
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
Oops, something went wrong.