wiki:syntax:common_attributes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:syntax:common_attributes [Wednesday, June 14, 2023 01:31 AM] – removed - external edit (Unknown date) 127.0.0.1 | wiki:syntax:common_attributes [Sunday, July 16, 2023 11:49 PM] (current) – Nathan C. McGuire | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Common Attributes ====== | ||
+ | [[doku> | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Common Attributes are available on most elements across the Mikio Plugin range. | ||
+ | |||
+ | ===== Alignment ===== | ||
+ | Aligns an element on the page | ||
+ | |||
+ | <alert dark align-left width=20em> | ||
+ | <alert dark align-center width=20em> | ||
+ | <alert dark align-right width=20em> | ||
+ | |||
+ | <code -> | ||
+ | <alert dark align-left width=20em> | ||
+ | <alert dark align-center width=20em> | ||
+ | <alert dark align-right width=20em> | ||
+ | </ | ||
+ | |||
+ | ===== Border ===== | ||
+ | Applies a border to the element. | ||
+ | |||
+ | **border-color**: | ||
+ | <row> | ||
+ | <box width=10em text-center border-color=# | ||
+ | <box width=10em text-center border-color=green border-width=10px> | ||
+ | <box width=10em text-center border-color=green border-width=" | ||
+ | <box width=10em text-center border-color=rgba(0, | ||
+ | </ | ||
+ | |||
+ | <code -> | ||
+ | <box width=10em text-center border-color=# | ||
+ | <box width=10em text-center border-color=green border-width=10px> | ||
+ | <box width=10em text-center border-color=green border-width=" | ||
+ | <box width=10em text-center border-color=rgba(0, | ||
+ | </ | ||
+ | |||
+ | ===== Height ===== | ||
+ | Sets the height of the element. Sizes can be in%% %%'' | ||
+ | |||
+ | <box width=10em height=10em border-color=pink> | ||
+ | |||
+ | <code -> | ||
+ | <box width=10em height=10em border-color=pink> | ||
+ | </ | ||
+ | |||
+ | ===== Rounded Corners ===== | ||
+ | Adds rounded corners (or border radius) to an element. Supports%% %%'' | ||
+ | <row> | ||
+ | <box width=10em round=.25em> | ||
+ | <box width=10em round=.5em> | ||
+ | <box width=10em round=40px> | ||
+ | <box width=10em round=100%> | ||
+ | </ | ||
+ | <code -> | ||
+ | <box width=10em round=.25em> | ||
+ | <box width=10em round=.5em> | ||
+ | <box width=10em round=40px> | ||
+ | <box width=10em round=100%> | ||
+ | </ | ||
+ | |||
+ | ===== Shadow ===== | ||
+ | Adds a shadow to an element. | ||
+ | <row> | ||
+ | < | ||
+ | <button shadow> | ||
+ | <button shadow-large> | ||
+ | <button shadow-small> | ||
+ | </ | ||
+ | <code -> | ||
+ | < | ||
+ | <button shadow> | ||
+ | <button shadow-large> | ||
+ | <button shadow-small> | ||
+ | </ | ||
+ | |||
+ | ===== Styles ===== | ||
+ | Styles elements using the standard Bootstrap colors. | ||
+ | < | ||
+ | <alert secondary> | ||
+ | <alert success> | ||
+ | <alert danger>A simple danger alert - check it out!</ | ||
+ | <alert warning> | ||
+ | <alert info>A simple info alert - check it out!</ | ||
+ | <alert light>A simple light alert - check it out!</ | ||
+ | <alert dark>A simple dark alert - check it out!</ | ||
+ | <code -> | ||
+ | < | ||
+ | <alert secondary> | ||
+ | <alert success> | ||
+ | <alert danger>A simple danger alert - check it out!</ | ||
+ | <alert warning> | ||
+ | <alert info>A simple info alert - check it out!</ | ||
+ | <alert light>A simple light alert - check it out!</ | ||
+ | <alert dark>A simple dark alert - check it out!</ | ||
+ | </ | ||
+ | |||
+ | ===== Text Alignment ===== | ||
+ | Aligns text within an element | ||
+ | <row> | ||
+ | <card title=" | ||
+ | With supporting text below as a natural lead-in to additional content. | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | <card title=" | ||
+ | With supporting text below as a natural lead-in to additional content. | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | <card title=" | ||
+ | With supporting text below as a natural lead-in to additional content. | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | <code -> | ||
+ | <card title=" | ||
+ | With supporting text below as a natural lead-in to additional content. | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | <card title=" | ||
+ | With supporting text below as a natural lead-in to additional content. | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | <card title=" | ||
+ | With supporting text below as a natural lead-in to additional content. | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Tooltip ===== | ||
+ | Adds a tooltip that is displayed when the cursor hovers over | ||
+ | <button tooltip=" | ||
+ | <code -> | ||
+ | <button tooltip=" | ||
+ | </ | ||
+ | |||
+ | ===== URL ===== | ||
+ | Some elements support a URL attribute that opens a page when the user clicks. | ||
+ | |||
+ | * External web pages are required to begin with http:// or https:// | ||
+ | * Wiki pages can be written as the direct namespace | ||
+ | * Anchors must begin with # | ||
+ | |||
+ | <button url=" | ||
+ | <code -> | ||
+ | <button url=" | ||
+ | </ | ||
+ | |||
+ | ===== Vertical Alignment ==== | ||
+ | Sets the elements vertical alignment | ||
+ | <box width=10em height=10em border-color=black vertical-align=middle> | ||
+ | <code -> | ||
+ | <box width=10em height=10em border-color=black vertical-align=middle> | ||
+ | </ | ||
+ | |||
+ | ===== Width ===== | ||
+ | Sets the width of the element. Sizes can be in%% %%'' | ||
+ | <alert danger width=20em shadow> | ||
+ | <icon fa exclamation-triangle> | ||
+ | </ | ||
+ | <code -> | ||
+ | <alert danger width=20em shadow> | ||
+ | <icon fa exclamation-triangle> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Set Attributes ===== | ||
+ | https:// | ||
+ | |||
+ | Mikio Plugin has a special element named%% %%'' | ||
+ | |||
+ | <code -> | ||
+ | <setattr name=mybox border-width=1px border-color=green> | ||
+ | <setattr name=otherbox border-width=2px border-color=blue> | ||
+ | </ | ||
+ | |||
+ | The above sets elements that have the attribute%% %%'' | ||
+ | |||
+ | <code -> | ||
+ | <box attr=mybox> | ||
+ | <box attr=otherbox> | ||
+ | <box attr=mybox> | ||
+ | <box attr=otherbox> | ||
+ | </ | ||
+ | |||
+ | <setattr name=mybox border-width=1px border-color=green> | ||
+ | <setattr name=otherbox border-width=2px border-color=blue> | ||
+ | <box attr=mybox> | ||
+ | <box attr=otherbox> | ||
+ | <box attr=mybox> | ||
+ | <box attr=otherbox> | ||
+ | |||
+ | |||