Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
33dad130
Commit
33dad130
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
update fluid layout to use variable for sidebar width
parent
8ccc3bcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootstrap.css
+1
-1
bootstrap.css
lib/scaffolding.less
+5
-5
lib/scaffolding.less
lib/variables.less
+3
-0
lib/variables.less
with
9 additions
and
6 deletions
+9
-6
bootstrap.css
+
1
-
1
View file @
33dad130
...
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sat Jan 7 03:
37:53
PST 2012
* Date: Sat Jan 7 03:
52:42
PST 2012
*/
html
,
body
{
margin
:
0
;
...
...
This diff is collapsed.
Click to expand it.
lib/scaffolding.less
+
5
-
5
View file @
33dad130
...
...
@@ -32,15 +32,15 @@ body {
// Sidebars (left and right options)
.fluid-sidebar {
width:
220px
;
width:
@fluidSidebarWidth
;
margin: 0 20px 18px;
}
.sidebar-left { padding-left:
260px
; }
.sidebar-right { padding-right:
260px
; }
.sidebar-left { padding-left:
@fluidSidebarWidth + 40
; }
.sidebar-right { padding-right:
@fluidSidebarWidth + 40
; }
// Float the sidebars accordingly
.sidebar-left .fluid-sidebar { float: left; margin-left:
-240px
; }
.sidebar-right .fluid-sidebar { float: right; margin-right:
-240px
; }
.sidebar-left .fluid-sidebar { float: left; margin-left:
(@fluidSidebarWidth + 20) * -1
; }
.sidebar-right .fluid-sidebar { float: right; margin-right:
(@fluidSidebarWidth + 20) * -1
; }
// The main content area
.fluid-content {
...
...
This diff is collapsed.
Click to expand it.
lib/variables.less
+
3
-
0
View file @
33dad130
...
...
@@ -43,6 +43,9 @@
@gridGutterWidth: 20px;
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
// Fluid width sidebar
@fluidSidebarWidth: 220px;
// THEME VARIABLES
// ---------------
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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