pub enum TextShadow {
None,
Sm,
Md,
Default,
Lg,
Xl,
Xl2,
Inner,
}
Expand description
Text shadow values
Variants§
None
No text shadow
Sm
Small text shadow (0 1px 2px 0 rgb(0 0 0 / 0.05))
Md
Medium text shadow (0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))
Default
Default text shadow (0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1))
Lg
Large text shadow (0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))
Xl
Extra large text shadow (0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))
Xl2
2XL text shadow (0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1))
Inner
Inner text shadow (inset 0 2px 4px 0 rgb(0 0 0 / 0.05))
Implementations§
Source§impl TextShadow
impl TextShadow
Sourcepub fn to_class_name(&self) -> String
pub fn to_class_name(&self) -> String
Get the CSS class name for this text shadow
Sourcepub fn to_css_value(&self) -> String
pub fn to_css_value(&self) -> String
Get the CSS value for this text shadow
Trait Implementations§
Source§impl Clone for TextShadow
impl Clone for TextShadow
Source§fn clone(&self) -> TextShadow
fn clone(&self) -> TextShadow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextShadow
impl Debug for TextShadow
Source§impl<'de> Deserialize<'de> for TextShadow
impl<'de> Deserialize<'de> for TextShadow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TextShadow
impl Display for TextShadow
Source§impl Hash for TextShadow
impl Hash for TextShadow
Source§impl PartialEq for TextShadow
impl PartialEq for TextShadow
Source§impl Serialize for TextShadow
impl Serialize for TextShadow
impl Copy for TextShadow
impl Eq for TextShadow
impl StructuralPartialEq for TextShadow
Auto Trait Implementations§
impl Freeze for TextShadow
impl RefUnwindSafe for TextShadow
impl Send for TextShadow
impl Sync for TextShadow
impl Unpin for TextShadow
impl UnwindSafe for TextShadow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.