Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
style_tool
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Bugzilla
Bugzilla
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
于广洋
style_tool
Commits
53519ab5
Commit
53519ab5
authored
May 17, 2020
by
刘安琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据设计图覆盖tabs样式
parent
77cb409d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
889 additions
and
780 deletions
+889
-780
tabs.scss
node_module/element-theme-chalk/src/tabs.scss
+23
-24
index.css
theme/index.css
+433
-378
tabs.css
theme/tabs.css
+433
-378
No files found.
node_module/element-theme-chalk/src/tabs.scss
View file @
53519ab5
...
...
@@ -2,11 +2,6 @@
@import
"common/var"
;
@include
b
(
tabs
)
{
border
:
1px
solid
#D7D8D9
;
border-radius
:
3px
;
>
.el-tabs__content
{
padding
:
0
8px
8px
8px
;
}
@include
e
(
header
)
{
padding
:
0
;
position
:
relative
;
...
...
@@ -15,12 +10,12 @@
@include
e
(
active-bar
)
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
height
:
2px
;
background-color
:
$--color-primary
;
z-index
:
1
;
transition
:
transform
.3s
cubic-bezier
(
.645
,.
045
,.
355
,
1
);
list-style
:
none
;
padding
:
0
16px
;
}
@include
e
(
new-tab
)
{
float
:
right
;
...
...
@@ -55,7 +50,7 @@
left
:
0
;
bottom
:
0
;
width
:
100%
;
height
:
1
px
;
height
:
2
px
;
background-color
:
$--border-color-light
;
z-index
:
$--index-normal
;
}
...
...
@@ -82,6 +77,7 @@
left
:
0
;
}
@include
e
(
nav
)
{
border
:
none
!
important
;
white-space
:
nowrap
;
position
:
relative
;
transition
:
transform
.3s
;
...
...
@@ -98,16 +94,21 @@
}
}
@include
e
(
item
)
{
padding
:
0
2
4
px
;
height
:
4
8
px
;
padding
:
0
2
0
px
;
height
:
4
0
px
;
box-sizing
:
border-box
;
line-height
:
4
8
px
;
line-height
:
4
0
px
;
display
:
inline-block
;
list-style
:
none
;
font-size
:
1
6
px
;
font-size
:
1
4
px
;
font-weight
:
500
;
color
:
$--color-text-
regular
;
color
:
$--color-text-
primary
;
position
:
relative
;
border
:
1px
solid
$--color-default-text-plain
;
margin-left
:
20px
;
border-radius
:
4px
4px
0
0
;
background
:
#E6E8ED
;
&
:focus
,
&
:focus:active
{
outline
:
none
;
}
...
...
@@ -135,6 +136,7 @@
@include
when
(
active
)
{
color
:
$--color-primary
;
background
:
$--color-white
;
}
&
:hover
{
...
...
@@ -181,11 +183,8 @@
}
>
.el-tabs__header
.el-tabs__item
{
border-bottom
:
1px
solid
transparent
;
border-left
:
1px
solid
$--border-color-light
;
transition
:
color
.3s
cubic-bezier
(
.645
,.
045
,.
355
,
1
)
,
padding
.3s
cubic-bezier
(
.645
,.
045
,.
355
,
1
);
&
:first-child
{
border-left
:
none
;
}
&
.is-closable
{
&
:hover
{
padding-left
:
13px
;
...
...
@@ -259,14 +258,14 @@
}
}
@include
m
((
top
,
bottom
))
{
//
.el-tabs__item.is-top:nth-child(2),
//
.el-tabs__item.is-bottom:nth-child(2) {
//
padding-left: 0;
//
}
//
.el-tabs__item.is-top:last-child,
//
.el-tabs__item.is-bottom:last-child {
//
padding-right: 0;
//
}
.el-tabs__item.is-top
:nth-child
(
2
),
.el-tabs__item.is-bottom
:nth-child
(
2
)
{
padding-left
:
0
;
}
.el-tabs__item.is-top
:last-child
,
.el-tabs__item.is-bottom
:last-child
{
padding-right
:
0
;
}
&
.el-tabs--border-card
,
&
.el-tabs--card
,
.el-tabs--left
,
.el-tabs--right
{
...
...
theme/index.css
View file @
53519ab5
This diff is collapsed.
Click to expand it.
theme/tabs.css
View file @
53519ab5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment