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
1853e31a
Commit
1853e31a
authored
Mar 27, 2014
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename generateCustomCSS to generateCustomLess for accuracy
parent
24c5a453
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/assets/js/_src/customizer.js
docs/assets/js/_src/customizer.js
+2
-2
No files found.
docs/assets/js/_src/customizer.js
View file @
1853e31a
...
@@ -158,7 +158,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
...
@@ -158,7 +158,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
complete
(
content
)
complete
(
content
)
}
}
function
generateCustom
CSS
(
vars
)
{
function
generateCustom
Less
(
vars
)
{
var
result
=
''
var
result
=
''
for
(
var
key
in
vars
)
{
for
(
var
key
in
vars
)
{
...
@@ -203,7 +203,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
...
@@ -203,7 +203,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
// Custom variables are added after Bootstrap variables so the custom
// Custom variables are added after Bootstrap variables so the custom
// ones take precedence.
// ones take precedence.
if
((
'
variables.less
'
===
filename
)
&&
vars
)
lessSource
+=
generateCustom
CSS
(
vars
)
if
((
'
variables.less
'
===
filename
)
&&
vars
)
lessSource
+=
generateCustom
Less
(
vars
)
})
})
lessSource
=
lessSource
.
replace
(
/@import
[^\n]
*/gi
,
''
)
//strip any imports
lessSource
=
lessSource
.
replace
(
/@import
[^\n]
*/gi
,
''
)
//strip any imports
...
...
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