Lines Matching defs:attributes

36      * @param TagAttributes $attributes
38 public static function processAlignAttributes(TagAttributes &$attributes)
42 $alignAttributeValues = $attributes->getValueAndRemove($align);
62 $attributes->addClassName(self::CENTER_CLASS);
74 $attributes->addClassName("align-self{$breakpoint}-center");
80 $attributes->addStyleDeclarationIfNotSet("margin-left", "auto");
82 $attributes->addClassName("ms-auto");
84 $attributes->addStyleDeclarationIfNotSet(Dimension::WIDTH_KEY, "fit-content");
94 $attributes->addClassName("justify-content{$breakpoint}-left");
97 $attributes->addClassName("justify-content{$breakpoint}-start");
108 $attributes->addClassName("justify-content{$breakpoint}-right");
111 $attributes->addClassName("justify-content{$breakpoint}-end");
118 $attributes->addClassName("justify-content{$breakpoint}-center");
124 $attributes->addClassName("justify-content{$breakpoint}-between");
129 $attributes->addClassName("align-items{$breakpoint}-center");
134 $attributes->addClassName("align-items{$breakpoint}-start");
138 $attributes->addClassName("text{$breakpoint}-center");
145 $attributes->addClassName("text{$breakpoint}-left");
148 $attributes->addClassName("text{$breakpoint}-start");
156 $attributes->addClassName("text{$breakpoint}-right");
159 $attributes->addClassName("text{$breakpoint}-end");
174 if ($attributes->getLogicalTag() !== GridTag::TAG) {
175 $attributes->addClassName("d-flex");
185 $attributes->addClassName("align-items-center");
199 if ($blockAlign === true && in_array($attributes->getLogicalTag(), TagAttributes::INLINE_LOGICAL_ELEMENTS)) {
200 $attributes->addClassName("d-block");