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
7a673751
Commit
7a673751
authored
Jan 26, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
break scaffolding down into smaller less files
parent
8a6be660
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
148 additions
and
144 deletions
+148
-144
bootstrap.css
bootstrap.css
+50
-50
bootstrap.min.css
bootstrap.min.css
+10
-10
lib/bootstrap.less
lib/bootstrap.less
+2
-0
lib/grid.less
lib/grid.less
+41
-0
lib/layouts.less
lib/layouts.less
+43
-0
lib/scaffolding.less
lib/scaffolding.less
+2
-84
No files found.
bootstrap.css
View file @
7a673751
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Thu Jan 26 1
3:56:25
PST 2012
* Date: Thu Jan 26 1
4:50:34
PST 2012
*/
*/
article
,
article
,
aside
,
aside
,
...
@@ -102,55 +102,6 @@ body {
...
@@ -102,55 +102,6 @@ body {
color
:
#555555
;
color
:
#555555
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
}
}
.container
{
width
:
940px
;
margin-left
:
auto
;
margin-right
:
auto
;
*
zoom
:
1
;
}
.container
:before
,
.container
:after
{
display
:
table
;
content
:
""
;
}
.container
:after
{
clear
:
both
;
}
.fluid-container
{
position
:
relative
;
min-width
:
940px
;
padding-left
:
20px
;
padding-right
:
20px
;
*
zoom
:
1
;
}
.fluid-container
:before
,
.fluid-container
:after
{
display
:
table
;
content
:
""
;
}
.fluid-container
:after
{
clear
:
both
;
}
.fluid-sidebar
{
width
:
220px
;
margin
:
0
20px
18px
;
}
.sidebar-left
{
padding-left
:
260px
;
}
.sidebar-right
{
padding-right
:
260px
;
}
.sidebar-left
.fluid-sidebar
{
float
:
left
;
margin-left
:
-240px
;
}
.sidebar-right
.fluid-sidebar
{
float
:
right
;
margin-right
:
-240px
;
}
.fluid-content
{
float
:
left
;
width
:
100%
;
}
a
{
a
{
color
:
#0088cc
;
color
:
#0088cc
;
text-decoration
:
none
;
text-decoration
:
none
;
...
@@ -243,6 +194,55 @@ a:hover {
...
@@ -243,6 +194,55 @@ a:hover {
.offset11
{
.offset11
{
margin-left
:
900px
;
margin-left
:
900px
;
}
}
.container
{
width
:
940px
;
margin-left
:
auto
;
margin-right
:
auto
;
*
zoom
:
1
;
}
.container
:before
,
.container
:after
{
display
:
table
;
content
:
""
;
}
.container
:after
{
clear
:
both
;
}
.fluid-container
{
position
:
relative
;
min-width
:
940px
;
padding-left
:
20px
;
padding-right
:
20px
;
*
zoom
:
1
;
}
.fluid-container
:before
,
.fluid-container
:after
{
display
:
table
;
content
:
""
;
}
.fluid-container
:after
{
clear
:
both
;
}
.fluid-sidebar
{
width
:
220px
;
margin
:
0
20px
18px
;
}
.sidebar-left
{
padding-left
:
260px
;
}
.sidebar-right
{
padding-right
:
260px
;
}
.sidebar-left
.fluid-sidebar
{
float
:
left
;
margin-left
:
-240px
;
}
.sidebar-right
.fluid-sidebar
{
float
:
right
;
margin-right
:
-240px
;
}
.fluid-content
{
float
:
left
;
width
:
100%
;
}
p
{
p
{
margin
:
0
0
9px
;
margin
:
0
0
9px
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
...
...
bootstrap.min.css
View file @
7a673751
...
@@ -16,16 +16,6 @@ input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box
...
@@ -16,16 +16,6 @@ input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box
input
[
type
=
"search"
]
::-webkit-search-decoration
,
input
[
type
=
"search"
]
::-webkit-search-cancel-button
{
-webkit-appearance
:
none
;}
input
[
type
=
"search"
]
::-webkit-search-decoration
,
input
[
type
=
"search"
]
::-webkit-search-cancel-button
{
-webkit-appearance
:
none
;}
textarea
{
overflow
:
auto
;
vertical-align
:
top
;}
textarea
{
overflow
:
auto
;
vertical-align
:
top
;}
body
{
margin
:
0
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
13px
;
line-height
:
18px
;
color
:
#555555
;
background-color
:
#ffffff
;}
body
{
margin
:
0
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
13px
;
line-height
:
18px
;
color
:
#555555
;
background-color
:
#ffffff
;}
.container
{
width
:
940px
;
margin-left
:
auto
;
margin-right
:
auto
;
*
zoom
:
1
;}
.container
:before
,
.container
:after
{
display
:
table
;
content
:
""
;}
.container
:after
{
clear
:
both
;}
.fluid-container
{
position
:
relative
;
min-width
:
940px
;
padding-left
:
20px
;
padding-right
:
20px
;
*
zoom
:
1
;}
.fluid-container
:before
,
.fluid-container
:after
{
display
:
table
;
content
:
""
;}
.fluid-container
:after
{
clear
:
both
;}
.fluid-sidebar
{
width
:
220px
;
margin
:
0
20px
18px
;}
.sidebar-left
{
padding-left
:
260px
;}
.sidebar-right
{
padding-right
:
260px
;}
.sidebar-left
.fluid-sidebar
{
float
:
left
;
margin-left
:
-240px
;}
.sidebar-right
.fluid-sidebar
{
float
:
right
;
margin-right
:
-240px
;}
.fluid-content
{
float
:
left
;
width
:
100%
;}
a
{
color
:
#0088cc
;
text-decoration
:
none
;}
a
:hover
{
color
:
#005580
;
text-decoration
:
underline
;}
a
{
color
:
#0088cc
;
text-decoration
:
none
;}
a
:hover
{
color
:
#005580
;
text-decoration
:
underline
;}
.row
{
margin-left
:
-20px
;
*
zoom
:
1
;}
.row
:before
,
.row
:after
{
display
:
table
;
content
:
""
;}
.row
{
margin-left
:
-20px
;
*
zoom
:
1
;}
.row
:before
,
.row
:after
{
display
:
table
;
content
:
""
;}
.row
:after
{
clear
:
both
;}
.row
:after
{
clear
:
both
;}
...
@@ -53,6 +43,16 @@ a{color:#0088cc;text-decoration:none;}a:hover{color:#005580;text-decoration:unde
...
@@ -53,6 +43,16 @@ a{color:#0088cc;text-decoration:none;}a:hover{color:#005580;text-decoration:unde
.offset9
{
margin-left
:
740px
;}
.offset9
{
margin-left
:
740px
;}
.offset10
{
margin-left
:
820px
;}
.offset10
{
margin-left
:
820px
;}
.offset11
{
margin-left
:
900px
;}
.offset11
{
margin-left
:
900px
;}
.container
{
width
:
940px
;
margin-left
:
auto
;
margin-right
:
auto
;
*
zoom
:
1
;}
.container
:before
,
.container
:after
{
display
:
table
;
content
:
""
;}
.container
:after
{
clear
:
both
;}
.fluid-container
{
position
:
relative
;
min-width
:
940px
;
padding-left
:
20px
;
padding-right
:
20px
;
*
zoom
:
1
;}
.fluid-container
:before
,
.fluid-container
:after
{
display
:
table
;
content
:
""
;}
.fluid-container
:after
{
clear
:
both
;}
.fluid-sidebar
{
width
:
220px
;
margin
:
0
20px
18px
;}
.sidebar-left
{
padding-left
:
260px
;}
.sidebar-right
{
padding-right
:
260px
;}
.sidebar-left
.fluid-sidebar
{
float
:
left
;
margin-left
:
-240px
;}
.sidebar-right
.fluid-sidebar
{
float
:
right
;
margin-right
:
-240px
;}
.fluid-content
{
float
:
left
;
width
:
100%
;}
p
{
margin
:
0
0
9px
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
13px
;
line-height
:
18px
;}
p
small
{
font-size
:
11px
;
color
:
#999999
;}
p
{
margin
:
0
0
9px
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
13px
;
line-height
:
18px
;}
p
small
{
font-size
:
11px
;
color
:
#999999
;}
.lead
{
margin-bottom
:
18px
;
font-size
:
20px
;
font-weight
:
200
;
line-height
:
27px
;}
.lead
{
margin-bottom
:
18px
;
font-size
:
20px
;
font-weight
:
200
;
line-height
:
27px
;}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
margin
:
0
;
font-weight
:
bold
;
color
:
#333333
;
text-rendering
:
optimizelegibility
;}
h1
small
,
h2
small
,
h3
small
,
h4
small
,
h5
small
,
h6
small
{
font-weight
:
normal
;
color
:
#999999
;}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
margin
:
0
;
font-weight
:
bold
;
color
:
#333333
;
text-rendering
:
optimizelegibility
;}
h1
small
,
h2
small
,
h3
small
,
h4
small
,
h5
small
,
h6
small
{
font-weight
:
normal
;
color
:
#999999
;}
...
...
lib/bootstrap.less
View file @
7a673751
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
// Grid system and page structure
// Grid system and page structure
@import "scaffolding.less";
@import "scaffolding.less";
@import "grid.less";
@import "layouts.less";
// Base CSS
// Base CSS
@import "type.less";
@import "type.less";
...
...
lib/grid.less
0 → 100644
View file @
7a673751
// GRID SYSTEM
// -----------
// To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
.row {
margin-left: @gridGutterWidth * -1;
.clearfix();
}
// Find all .span# classes within .row and give them the necessary properties for grid columns
// (supported by all browsers back to IE7)
// Credit to @dhg for the idea
[class*="span"] {
.gridColumn();
}
// Default columns
.span1 { .columns(1); }
.span2 { .columns(2); }
.span3 { .columns(3); }
.span4 { .columns(4); }
.span5 { .columns(5); }
.span6 { .columns(6); }
.span7 { .columns(7); }
.span8 { .columns(8); }
.span9 { .columns(9); }
.span10 { .columns(10); }
.span11 { .columns(11); }
.span12 { .columns(12); }
// Offset column options
.offset1 { .offset(1); }
.offset2 { .offset(2); }
.offset3 { .offset(3); }
.offset4 { .offset(4); }
.offset5 { .offset(5); }
.offset6 { .offset(6); }
.offset7 { .offset(7); }
.offset8 { .offset(8); }
.offset9 { .offset(9); }
.offset10 { .offset(10); }
.offset11 { .offset(11); }
lib/layouts.less
0 → 100644
View file @
7a673751
//
// Layouts
// Fixed-width and fluid (with sidebar) layouts
// --------------------------------------------
// Container (centered, fixed-width layouts)
.container {
.container-fixed();
}
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
.fluid-container {
position: relative;
min-width: @siteWidth;
padding-left: @gridGutterWidth;
padding-right: @gridGutterWidth;
.clearfix();
}
// Sidebars (left and right options)
.fluid-sidebar {
width: @fluidSidebarWidth;
margin: 0 20px 18px;
}
.sidebar-left { padding-left: @fluidSidebarWidth + @gridGutterWidth * 2; }
.sidebar-right { padding-right: @fluidSidebarWidth + @gridGutterWidth * 2; }
// Float the sidebars accordingly
.sidebar-left .fluid-sidebar {
float: left;
margin-left: (@fluidSidebarWidth + @gridGutterWidth) * -1;
}
.sidebar-right .fluid-sidebar {
float: right;
margin-right: (@fluidSidebarWidth + @gridGutterWidth) * -1;
}
// The main content area
.fluid-content {
float: left;
width: 100%;
}
lib/scaffolding.less
View file @
7a673751
...
@@ -16,49 +16,10 @@ body {
...
@@ -16,49 +16,10 @@ body {
background-color: @white;
background-color: @white;
}
}
// Container (centered, fixed-width layouts)
.container {
.container-fixed();
}
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
.fluid-container {
position: relative;
min-width: @siteWidth;
padding-left: @gridGutterWidth;
padding-right: @gridGutterWidth;
.clearfix();
}
// Sidebars (left and right options)
.fluid-sidebar {
width: @fluidSidebarWidth;
margin: 0 20px 18px;
}
.sidebar-left { padding-left: @fluidSidebarWidth + @gridGutterWidth * 2; }
.sidebar-right { padding-right: @fluidSidebarWidth + @gridGutterWidth * 2; }
// Float the sidebars accordingly
.sidebar-left .fluid-sidebar {
float: left;
margin-left: (@fluidSidebarWidth + @gridGutterWidth) * -1;
}
.sidebar-right .fluid-sidebar {
float: right;
margin-right: (@fluidSidebarWidth + @gridGutterWidth) * -1;
}
// The main content area
.fluid-content {
float: left;
width: 100%;
}
//
BASE STYLE
S
//
LINK
S
// -----
------
// -----
// Links
a {
a {
color: @linkColor;
color: @linkColor;
text-decoration: none;
text-decoration: none;
...
@@ -67,46 +28,3 @@ a {
...
@@ -67,46 +28,3 @@ a {
text-decoration: underline;
text-decoration: underline;
}
}
}
}
// GRID SYSTEM
// -----------
// To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
.row {
margin-left: @gridGutterWidth * -1;
.clearfix();
}
// Find all .span# classes within .row and give them the necessary properties for grid columns
// (supported by all browsers back to IE7)
// Credit to @dhg for the idea
[class*="span"] {
.gridColumn();
}
// Default columns
.span1 { .columns(1); }
.span2 { .columns(2); }
.span3 { .columns(3); }
.span4 { .columns(4); }
.span5 { .columns(5); }
.span6 { .columns(6); }
.span7 { .columns(7); }
.span8 { .columns(8); }
.span9 { .columns(9); }
.span10 { .columns(10); }
.span11 { .columns(11); }
.span12 { .columns(12); }
// Offset column options
.offset1 { .offset(1); }
.offset2 { .offset(2); }
.offset3 { .offset(3); }
.offset4 { .offset(4); }
.offset5 { .offset(5); }
.offset6 { .offset(6); }
.offset7 { .offset(7); }
.offset8 { .offset(8); }
.offset9 { .offset(9); }
.offset10 { .offset(10); }
.offset11 { .offset(11); }
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