[gimp-help-2] Add Save as CSS option



commit 9d4438cefce72ecca569672601f5ee30353d2c96
Author: Julien Hardelin <jm hard wanadoo fr>
Date:   Wed Apr 4 08:54:28 2012 +0200

    Add Save as CSS option

 src/dialogs/gradient-dialog.xml |   45 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 42 insertions(+), 3 deletions(-)
---
diff --git a/src/dialogs/gradient-dialog.xml b/src/dialogs/gradient-dialog.xml
index 04baed7..02f3bd3 100755
--- a/src/dialogs/gradient-dialog.xml
+++ b/src/dialogs/gradient-dialog.xml
@@ -4,11 +4,10 @@
 <!-- section history:
   2012-03-04 j.h: updated to v2.8
   2012-03-02 j.h: added link to tagging
-  2008-12-15 j.h: updated en;fr to v2.6
+  2008-12-15 j.h: updated to v2.6
   2008-02-22 j.h: added description for the four first gradients en;fr.
   2008-01-18 ude: added v2.4. gradient menu options and screenshot
-  2007-09-30 j.h : revised en ;fr for v2.4. no change
-  2006-08-30 ciampix: added italian translation
+  2007-09-30 j.h : revised for v2.4. no change
   2006-04-29 lexa: made file docbook compliant
 -->
 <sect2 xmlns:xi="http://www.w3.org/2001/XInclude"; id="gimp-gradient-dialog">
@@ -289,6 +288,46 @@
           </para>
         </listitem>
       </varlistentry>
+      <varlistentry id="script-fu-gradient-save-as-css">
+        <term>Save as CSS</term>
+        <listitem>
+          <!--Written with the help of Joao S.O Bueno, plugin author-->
+          <indexterm>
+            <primary>Gradient CSS code snippet</primary>
+          </indexterm>
+          <para>
+            The CSS (Cascading Style Sheets) language is used to format the
+            display of HTML and XML files, for instance background color, font
+            size... and background gradient. The "CSS Save" plugin is a CSS3
+            linear gradient generator that allows you to save a CSS3
+            code snippet, containing the gradient data for a given GIMP
+            gradient. This code snippet is a text file: you can copy-past it to
+            the stylesheet related to your HTML file, to get a gradient
+            background on opening the HTML file in Firefox, Chrome or Safari web
+            navigators. This CSS3 code snippet can also be used as a gradient in
+            SVG files.
+          </para>
+          <para>
+            Here is an example of code snippet, got using the Blue Green
+            gradient:
+          </para>
+          <formalpara>
+            <title>A CSS snippet created with Save as CSS</title>
+            <para>
+              <literallayout>
+background-image: linear-gradient(top, rgb(0,123,255) 0%, rgb(72,226,255) 56%,
+     rgb(0,255,161) 100%);
+background-image: -moz-linear-gradient(center top, rgb(0,123,255) 0%,rgb(72,
+    226,255) 56%,rgb(0,255,
+    161) 100%);
+background-image: -webkit-gradient(linear, left top, left bottom,
+     color-stop(0.000, rgb(0,123,255)),color-stop(0.566, rgb(72,226,255)),
+    color-stop(1.000, rgb(0,255,161)));
+              </literallayout>
+          </para>
+          </formalpara>
+        </listitem>
+      </varlistentry>
     </variablelist>
     
     <sect4 id="gimp-gradient-dialog-tags">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]