@@ -3,12 +3,11 @@ use crate::engine::Engine;
33use crate :: foundations:: { elem, Content , NativeElement , Packed , Show , StyleChain } ;
44use crate :: layout:: { BlockElem , Length , Rel } ;
55
6- /// Adds spacing around content.
6+ /// コンテンツの周囲に空白を追加。
77///
8- /// The spacing can be specified for each side individually, or for all sides at
9- /// once by specifying a positional argument.
8+ /// 空白は各辺を独立に指定するか、位置変数を用いて全辺を一括指定できます。
109///
11- /// # Example
10+ /// # 例
1211/// ```example
1312/// #set align(center)
1413///
@@ -18,7 +17,7 @@ use crate::layout::{BlockElem, Length, Rel};
1817/// ```
1918#[ elem( title = "Padding" , Show ) ]
2019pub struct PadElem {
21- /// The padding at the left side.
20+ /// 左辺のパディング。
2221 #[ parse(
2322 let all = args. named( "rest" ) ?. or( args. find( ) ?) ;
2423 let x = args. named( "x" ) ?. or( all) ;
@@ -27,31 +26,31 @@ pub struct PadElem {
2726 ) ]
2827 pub left : Rel < Length > ,
2928
30- /// The padding at the top side.
29+ /// 上辺のパディング。
3130 #[ parse( args. named( "top" ) ?. or( y) ) ]
3231 pub top : Rel < Length > ,
3332
34- /// The padding at the right side.
33+ /// 右辺のパディング。
3534 #[ parse( args. named( "right" ) ?. or( x) ) ]
3635 pub right : Rel < Length > ,
3736
38- /// The padding at the bottom side.
37+ /// 下辺のパディング。
3938 #[ parse( args. named( "bottom" ) ?. or( y) ) ]
4039 pub bottom : Rel < Length > ,
4140
42- /// A shorthand to set `left` and `right` to the same value.
41+ /// `left`と `right`を同じ値で設定するための省略記法。
4342 #[ external]
4443 pub x : Rel < Length > ,
4544
46- /// A shorthand to set `top` and `bottom` to the same value.
45+ /// `top`と `bottom`を同じ値で設定するための省略記法。
4746 #[ external]
4847 pub y : Rel < Length > ,
4948
50- /// A shorthand to set all four sides to the same value.
49+ /// 四辺すべてを同じ値で設定するための省略記法。
5150 #[ external]
5251 pub rest : Rel < Length > ,
5352
54- /// The content to pad at the sides.
53+ /// パディングを追加するコンテンツ。
5554 #[ required]
5655 pub body : Content ,
5756}
0 commit comments