]> CRI, Mines Paris - PSL - Plinn.git/commitdiff
Introduction de règles de style spécifiques aux contenus pour utilisation via ckeditor.
authorBenoît Pin <benoit.pin@gmail.com>
Wed, 23 Jul 2014 05:13:04 +0000 (07:13 +0200)
committerBenoît Pin <benoit.pin@gmail.com>
Wed, 23 Jul 2014 05:13:04 +0000 (07:13 +0200)
skins/generic/base_properties.props
skins/generic/content_style.css.dtml [new file with mode: 0644]
skins/generic/global_plinn_style.css.dtml
skins/generic/plinn_ckeditor_styles.js.dtml
skins/photo_theme/base_properties.props [changed mode: 0755->0644]
skins/photo_theme/global_plinn_style.css.dtml

index c0a8ac28b4a40d39c25df67d2fe2a80c6ba039fe..53d55c9adfd3b9a547b2a8b1e13b41adc018b3a6 100644 (file)
@@ -63,3 +63,5 @@ boxeHeaderBackgroundColor:string=#fff
 
 twoColumnFormFontColor:string=#000
 twoColumnFormBackground:string=#ddd
 
 twoColumnFormFontColor:string=#000
 twoColumnFormBackground:string=#ddd
+
+borderRadius:int=7
diff --git a/skins/generic/content_style.css.dtml b/skins/generic/content_style.css.dtml
new file mode 100644 (file)
index 0000000..0748908
--- /dev/null
@@ -0,0 +1,7 @@
+/* <dtml-with base_properties> */
+
+.rounded-corners {
+       border-radius: &dtml-borderRadius;px;
+}
+
+/*</dtml-with> */
\ No newline at end of file
index 63963ce089e2a2f16292dffc769717453f52677d..6f5e53a79c1cf4113032ca0a30f8efd8a68a2790 100644 (file)
@@ -4,5 +4,8 @@
 /* plinn_style.css */
 <dtml-var plinn_style.css>
 
 /* plinn_style.css */
 <dtml-var plinn_style.css>
 
+/* content_style.css */
+<dtml-var content_style.css>
+
 /* Portfolio */
 <dtml-var portfolio_style.css>
 /* Portfolio */
 <dtml-var portfolio_style.css>
index 2d4711ef8c9868c66cffd21703ec831e2132230c..1fca357007415efc22f907b94a624dc3f852ad94 100644 (file)
 //The name and element values are required, while other values are optional.
 
 CKEDITOR.stylesSet.add( 'plinn_styles', [
 //The name and element values are required, while other values are optional.
 
 CKEDITOR.stylesSet.add( 'plinn_styles', [
-    { name: 'Coins arrondis',
+    { name: 'Bloc arrondi',
       element: 'div',
       element: 'div',
-      attributes : {'class' : 'news_box'}
+      attributes : {'class' : 'rounded-corners'}
     },
     },
-    { name: 'cellule arrondie',
+    { name: 'Cellule arrondie',
       element: 'td',
       element: 'td',
-      attributes : {'class' : 'news_box'}
+      attributes : {'class' : 'rounded-corners'}
     },
     },
+    { name: 'Image arrondie',
+      element: 'img',
+      attributes : {'class' : 'rounded-corners'}
+    },
+
 ]);
 ]);
old mode 100755 (executable)
new mode 100644 (file)
index a32b6ea..471a272
@@ -63,3 +63,5 @@ boxeHeaderBackgroundColor:string=#484848
 
 twoColumnFormFontColor:string=#fff
 twoColumnFormBackground:string=#3A3A3A
 
 twoColumnFormFontColor:string=#fff
 twoColumnFormBackground:string=#3A3A3A
+
+borderRadius:int=7
index a5f5f3d067afc91b4d07e31c569824f777c121e7..ab58319684bd9cfec3a5df70ba615441ef462447 100755 (executable)
@@ -4,6 +4,9 @@
 /* plinn_style.css */
 <dtml-var plinn_style.css>
 
 /* plinn_style.css */
 <dtml-var plinn_style.css>
 
+/* content_style.css */
+<dtml-var content_style.css>
+
 /* Portfolio */
 <dtml-var portfolio_style.css>
 
 /* Portfolio */
 <dtml-var portfolio_style.css>