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
38303dd9
Commit
38303dd9
authored
Sep 12, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert the js evaluation in .box-shadow mixin, fix last mixin usages to escape if using >1 shadows
parent
bbadd429
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5798 deletions
+8
-5798
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+0
-5788
less/mixins.less
less/mixins.less
+5
-7
less/navbar.less
less/navbar.less
+3
-3
No files found.
docs/assets/css/bootstrap.css
View file @
38303dd9
This diff is collapsed.
Click to expand it.
less/mixins.less
View file @
38303dd9
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
&:focus {
&:focus {
border-color: darken(@borderColor, 10%);
border-color: darken(@borderColor, 10%);
.box-shadow(
inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%)
);
.box-shadow(
~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%)"
);
}
}
}
}
// Give a small background color for input-prepend/-append
// Give a small background color for input-prepend/-append
...
@@ -248,12 +248,10 @@
...
@@ -248,12 +248,10 @@
}
}
// Drop shadows
// Drop shadows
.box-shadow(@shadowA, @shadowB:X, ...){
.box-shadow(@shadow){
// Multiple shadow solution from http://toekneestuck.com/blog/2012/05/15/less-css-arguments-variable/
-webkit-box-shadow: @shadow;
@props: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
-moz-box-shadow: @shadow;
-webkit-box-shadow: @props;
box-shadow: @shadow;
-moz-box-shadow: @props;
box-shadow: @props;
}
}
// Transitions
// Transitions
...
...
less/navbar.less
View file @
38303dd9
...
@@ -202,7 +202,7 @@
...
@@ -202,7 +202,7 @@
.navbar-fixed-top,
.navbar-fixed-top,
.navbar-static-top {
.navbar-static-top {
.navbar-inner {
.navbar-inner {
.box-shadow(
inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1)
);
.box-shadow(
~"inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1)"
);
}
}
}
}
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
.navbar-fixed-bottom {
.navbar-fixed-bottom {
bottom: 0;
bottom: 0;
.navbar-inner {
.navbar-inner {
.box-shadow(
inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1)
);
.box-shadow(
~"inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1)"
);
}
}
}
}
...
@@ -446,7 +446,7 @@
...
@@ -446,7 +446,7 @@
color: @white;
color: @white;
background-color: @navbarInverseSearchBackground;
background-color: @navbarInverseSearchBackground;
border-color: @navbarInverseSearchBorder;
border-color: @navbarInverseSearchBorder;
.box-shadow(
inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)
);
.box-shadow(
~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)"
);
.transition(none);
.transition(none);
.placeholder(@navbarInverseSearchPlaceholderColor);
.placeholder(@navbarInverseSearchPlaceholderColor);
...
...
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