Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
楚学文
node-sass
Commits
9dc4a0d0
Commit
9dc4a0d0
authored
Sep 06, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented lighten, darken, saturate, and desaturate built-ins.
parent
5fb53f44
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
8 deletions
+26
-8
context.cpp
context.cpp
+5
-1
functions.cpp
functions.cpp
+0
-0
functions.hpp
functions.hpp
+21
-7
No files found.
context.cpp
View file @
9dc4a0d0
...
...
@@ -109,12 +109,16 @@ namespace Sass {
register_function
(
blue_sig
,
blue
);
register_function
(
mix_sig
,
mix
);
// HSL Functions
register_function
(
hsla_sig
,
hsla
);
register_function
(
hsl_sig
,
hsl
);
register_function
(
hsla_sig
,
hsla
);
register_function
(
hue_sig
,
hue
);
register_function
(
saturation_sig
,
saturation
);
register_function
(
lightness_sig
,
lightness
);
register_function
(
adjust_hue_sig
,
adjust_hue
);
register_function
(
lighten_sig
,
lighten
);
register_function
(
darken_sig
,
darken
);
register_function
(
saturate_sig
,
saturate
);
register_function
(
desaturate_sig
,
desaturate
);
register_function
(
adjust_color_sig
,
adjust_color
);
register_function
(
change_color_sig
,
change_color
);
register_function
(
invert_sig
,
invert
);
...
...
functions.cpp
View file @
9dc4a0d0
This diff is collapsed.
Click to expand it.
functions.hpp
View file @
9dc4a0d0
...
...
@@ -86,12 +86,12 @@ namespace Sass {
// HSL Functions ///////////////////////////////////////////////////////
extern
Signature
hsla_sig
;
Node
hsla
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
hsl_sig
;
Node
hsl
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
hsla_sig
;
Node
hsla
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
hue_sig
;
Node
hue
(
const
Node
,
Environment
&
,
Node_Factory
&
);
...
...
@@ -104,11 +104,17 @@ namespace Sass {
extern
Signature
adjust_hue_sig
;
Node
adjust_hue
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
adjust_color
_sig
;
Node
adjust_color
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
lighten
_sig
;
Node
lighten
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
change_color_sig
;
Node
change_color
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
darken_sig
;
Node
darken
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
saturate_sig
;
Node
saturate
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
desaturate_sig
;
Node
desaturate
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
invert_sig
;
Node
invert
(
const
Node
,
Environment
&
,
Node_Factory
&
);
...
...
@@ -127,6 +133,14 @@ namespace Sass {
extern
Signature
fade_out_sig
;
Node
transparentize
(
const
Node
,
Environment
&
,
Node_Factory
&
);
// Other Color Functions ///////////////////////////////////////////////
extern
Signature
adjust_color_sig
;
Node
adjust_color
(
const
Node
,
Environment
&
,
Node_Factory
&
);
extern
Signature
change_color_sig
;
Node
change_color
(
const
Node
,
Environment
&
,
Node_Factory
&
);
// String Functions ////////////////////////////////////////////////////
extern
Signature
unquote_sig
;
...
...
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