Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
99eb9366
Commit
99eb9366
authored
Nov 17, 2016
by
baiyaaaaa
Committed by
Leopoldthecoder
Nov 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix col responsive style bug
parent
7dcbc9ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
34 deletions
+34
-34
examples/docs/zh-CN/layout.md
examples/docs/zh-CN/layout.md
+1
-1
packages/theme-default/src/col.css
packages/theme-default/src/col.css
+33
-33
No files found.
examples/docs/zh-CN/layout.md
View file @
99eb9366
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
::: demo 将
`type`
属性赋值为 'flex',可以启用 flex 布局,并可通过
`justify`
属性来指定 start, center, end, space-between, space-around 其中的值来定义子元素的排版方式。
::: demo 将
`type`
属性赋值为 'flex',可以启用 flex 布局,并可通过
`justify`
属性来指定 start, center, end, space-between, space-around 其中的值来定义子元素的排版方式。
```
html
```
html
<el-row
type=
"flex"
class=
"row-bg"
>
<el-row
type=
"flex"
class=
"row-bg"
>
<el-col
:span=
"6"
:sm=
"8"
:md=
"{span: 4, offset: 2}"
><div
class=
"grid-content bg-purple"
></div></el-col>
<el-col
:span=
"6"
><div
class=
"grid-content bg-purple"
></div></el-col>
<el-col
:span=
"6"
><div
class=
"grid-content bg-purple-light"
></div></el-col>
<el-col
:span=
"6"
><div
class=
"grid-content bg-purple-light"
></div></el-col>
<el-col
:span=
"6"
><div
class=
"grid-content bg-purple"
></div></el-col>
<el-col
:span=
"6"
><div
class=
"grid-content bg-purple"
></div></el-col>
</el-row>
</el-row>
...
...
packages/theme-default/src/col.css
View file @
99eb9366
...
@@ -32,17 +32,17 @@
...
@@ -32,17 +32,17 @@
.el-col-sm-
$
i
{
.el-col-sm-
$
i
{
width
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
width
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
}
.el-col-xs-offset-
$
i
{
.el-col-xs-offset-
$
i
{
margin-left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
margin-left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
.el-col-xs-pull-
$
i
{
.el-col-xs-pull-
$
i
{
position
:
relative
;
position
:
relative
;
right
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
right
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
.el-col-xs-push-
$
i
{
.el-col-xs-push-
$
i
{
position
:
relative
;
position
:
relative
;
left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
}
}
}
@media
(
min-width
:
992px
)
{
@media
(
min-width
:
992px
)
{
...
@@ -50,17 +50,17 @@
...
@@ -50,17 +50,17 @@
.el-col-md-
$
i
{
.el-col-md-
$
i
{
width
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
width
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
}
.el-col-md-offset-
$
i
{
.el-col-md-offset-
$
i
{
margin-left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
margin-left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
.el-col-md-pull-
$
i
{
.el-col-md-pull-
$
i
{
position
:
relative
;
position
:
relative
;
right
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
right
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
.el-col-md-push-
$
i
{
.el-col-md-push-
$
i
{
position
:
relative
;
position
:
relative
;
left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
}
}
}
@media
(
min-width
:
1200px
)
{
@media
(
min-width
:
1200px
)
{
...
@@ -68,16 +68,16 @@
...
@@ -68,16 +68,16 @@
.el-col-lg-
$
i
{
.el-col-lg-
$
i
{
width
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
width
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
}
.el-col-xs-offset-
$
i
{
.el-col-xs-offset-
$
i
{
margin-left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
margin-left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
.el-col-xs-pull-
$
i
{
.el-col-xs-pull-
$
i
{
position
:
relative
;
position
:
relative
;
right
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
right
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
.el-col-xs-push-
$
i
{
.el-col-xs-push-
$
i
{
position
:
relative
;
position
:
relative
;
left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
left
:
calc
(
1
/
24
*
$
(
i
)
*
100
)
%
;
}
}
}
}
}
\ No newline at end of file
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