OSDN Git Service

web/css_attributes.hpp: margin, borderのpx版も追加
authorMyun2 <myun2@nwhite.info>
Sat, 25 Dec 2010 08:01:10 +0000 (17:01 +0900)
committerMyun2 <myun2@nwhite.info>
Sat, 25 Dec 2010 08:01:10 +0000 (17:01 +0900)
roast/include/roast/web/css_attributes.hpp

index 3604a54..918b01c 100644 (file)
@@ -149,6 +149,22 @@ namespace roast
                                unit::px_<_Right>,
                                unit::px_<_Bottom>,
                                unit::px_<_Left> > {};
+
+                       //      margin(px) {1,4}
+                       template <int _Top, int _Right, int _Bottom, int _Left>
+                       struct margin_px_ : margin_<
+                               unit::px_<_Top>,
+                               unit::px_<_Right>,
+                               unit::px_<_Bottom>,
+                               unit::px_<_Left> > {};
+
+                       //      border(px) {1,4}
+                       template <int _Top, int _Right, int _Bottom, int _Left>
+                       struct border_px_ : border_<
+                               unit::px_<_Top>,
+                               unit::px_<_Right>,
+                               unit::px_<_Bottom>,
+                               unit::px_<_Left> > {};
                }
        }
 #undef ROAST_CSS_DECL_ATTR