Use line_height
in z_index
stories
This commit is contained in:
parent
98c0e00a2c
commit
b16d37953d
1 changed files with 2 additions and 4 deletions
|
@ -72,8 +72,7 @@ trait Styles: Styled + Sized {
|
||||||
self.bg(rgb::<Hsla>(0xe5e8fc))
|
self.bg(rgb::<Hsla>(0xe5e8fc))
|
||||||
.border_5()
|
.border_5()
|
||||||
.border_color(rgb::<Hsla>(0x112382))
|
.border_color(rgb::<Hsla>(0x112382))
|
||||||
// HACK: Simulate `line-height: 55px`.
|
.line_height(px(55.))
|
||||||
.pt(px(16.))
|
|
||||||
// HACK: Simulate `text-align: center`.
|
// HACK: Simulate `text-align: center`.
|
||||||
.pl(px(24.))
|
.pl(px(24.))
|
||||||
}
|
}
|
||||||
|
@ -119,8 +118,7 @@ impl<S: 'static + Send + Sync> ZIndexExample<S> {
|
||||||
.text_color(rgb::<Hsla>(0x000000))
|
.text_color(rgb::<Hsla>(0x000000))
|
||||||
.border_5()
|
.border_5()
|
||||||
.border_color(rgb::<Hsla>(0xe3e0a1))
|
.border_color(rgb::<Hsla>(0xe3e0a1))
|
||||||
// HACK: Simulate `line-height: 215px`.
|
.line_height(px(215.))
|
||||||
.pt(px(100.))
|
|
||||||
// HACK: Simulate `text-align: center`.
|
// HACK: Simulate `text-align: center`.
|
||||||
.pl(px(24.))
|
.pl(px(24.))
|
||||||
.z_index(self.z_index)
|
.z_index(self.z_index)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue