Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
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
Administrator
bootstrap
Commits
d9d351e2
Commit
d9d351e2
authored
Apr 27, 2015
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more flex grid stuff
parent
15692d5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
5 deletions
+64
-5
scss/_grid.scss
scss/_grid.scss
+64
-5
No files found.
scss/_grid.scss
View file @
d9d351e2
...
...
@@ -44,8 +44,15 @@
@include
make-grid-columns
();
// Flex column reordering
// Flex variation
//
// Custom styles for additional flex alignment options.
@if
$enable-flex
{
// Flex column reordering
.col-xs-first
{
order
:
-1
;
}
.col-xs-last
{
order
:
1
;
}
...
...
@@ -53,19 +60,71 @@
.col-sm-first
{
order
:
-1
;
}
.col-sm-last
{
order
:
1
;
}
}
@include
media-breakpoint-up
(
md
)
{
.col-md-first
{
order
:
-1
;
}
.col-md-last
{
order
:
1
;
}
}
@include
media-breakpoint-up
(
lg
)
{
.col-lg-first
{
order
:
-1
;
}
.col-lg-last
{
order
:
1
;
}
}
@include
media-breakpoint-up
(
xl
)
{
.col-xl-first
{
order
:
-1
;
}
.col-xl-last
{
order
:
1
;
}
}
}
// Alignment for every column in row
.row-xs-top
{
align-items
:
flex-start
;
}
.row-xs-center
{
align-items
:
center
;
}
.row-xs-bottom
{
align-items
:
flex-end
;
}
@include
media-breakpoint-up
(
sm
)
{
.row-sm-top
{
align-items
:
flex-start
;
}
.row-sm-center
{
align-items
:
center
;
}
.row-sm-bottom
{
align-items
:
flex-end
;
}
}
@include
media-breakpoint-up
(
md
)
{
.row-md-top
{
align-items
:
flex-start
;
}
.row-md-center
{
align-items
:
center
;
}
.row-md-bottom
{
align-items
:
flex-end
;
}
}
@include
media-breakpoint-up
(
lg
)
{
.row-lg-top
{
align-items
:
flex-start
;
}
.row-lg-center
{
align-items
:
center
;
}
.row-lg-bottom
{
align-items
:
flex-end
;
}
}
@include
media-breakpoint-up
(
xl
)
{
.row-xl-top
{
align-items
:
flex-start
;
}
.row-xl-center
{
align-items
:
center
;
}
.row-xl-bottom
{
align-items
:
flex-end
;
}
}
// Alignment per column
.col-xs-top
{
align-self
:
flex-start
;
}
.col-xs-center
{
align-self
:
center
;
}
.col-xs-bottom
{
align-self
:
flex-end
;
}
@include
media-breakpoint-up
(
sm
)
{
.col-sm-top
{
align-self
:
flex-start
;
}
.col-sm-center
{
align-self
:
center
;
}
.col-sm-bottom
{
align-self
:
flex-end
;
}
}
@include
media-breakpoint-up
(
md
)
{
.col-md-top
{
align-self
:
flex-start
;
}
.col-md-center
{
align-self
:
center
;
}
.col-md-bottom
{
align-self
:
flex-end
;
}
}
@include
media-breakpoint-up
(
lg
)
{
.col-lg-top
{
align-self
:
flex-start
;
}
.col-lg-center
{
align-self
:
center
;
}
.col-lg-bottom
{
align-self
:
flex-end
;
}
}
@include
media-breakpoint-up
(
xl
)
{
.col-xl-top
{
align-self
:
flex-start
;
}
.col-xl-center
{
align-self
:
center
;
}
.col-xl-bottom
{
align-self
:
flex-end
;
}
}
}
\ 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