[FFmpeg-devel] [PATCH 3/4] web/style.less: colors: Reindent and use more obvious functions
Timothy Gu
timothygu99 at gmail.com
Fri Nov 7 03:55:55 CET 2014
Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
I feel like using hsl() in this case is clearer that the color is plain
gray. Bikeshedding welcome.
---
src/less/style.less | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/src/less/style.less b/src/less/style.less
index 7de443b..c9ebdc8 100644
--- a/src/less/style.less
+++ b/src/less/style.less
@@ -24,18 +24,25 @@ SOFTWARE.
// ************************************************************************* //
// COLORS
- at Cmain: #313131;
- at Cmaindark: darken(@Cmain, 5%);
- at Cmaindarkdark: darken(@Cmaindark, 5%);
- at Cmainlight: lighten(@Cmain, 5%);
- at Cmainlightlight: lighten(@Cmainlight, 50%);
- at Cborder: #101010;
- at Cinvert: darken(#fff, 10%);
- at Csecond: darken(#4cae4c, 0%);
- at Cseconddark: darken(@Csecond, 10%);
- at Cseconddarkdark: darken(@Cseconddark, 10%);
- at Csecondlight: lighten(@Csecond, 15%);
- at Csecondlightlight: lighten(@Csecondlight, 20%);
+// Main black color and its shades.
+ at Cmain: hsl(0, 0%, 19%);
+ at Cmaindark: darken(@Cmain, 5%);
+ at Cmaindarkdark: darken(@Cmain, 10%);
+ at Cborder: darken(@Cmain, 13%);
+ at Cmainlight: lighten(@Cmain, 5%);
+ at Cmainlightlight: lighten(@Cmain, 55%);
+
+// Complete invert of the main black theme.
+ at Cinvert: hsl(0, 0%, 90%);
+
+// The green theme colors and its shades.
+ at Csecond: #4cae4c;
+ at Cseconddark: darken(@Csecond, 10%);
+ at Cseconddarkdark: darken(@Csecond, 20%);
+ at Csecondlight: lighten(@Csecond, 15%);
+ at Csecondlightlight: lighten(@Csecond, 35%);
+
+// The red theme color.
@Cwarning: #ae4c4c;
// ************************************************************************* //
--
1.9.1
More information about the ffmpeg-devel
mailing list