Denis Pupin (talk | contribs) |
Denis Pupin (talk | contribs) |
||
Line 75: | Line 75: | ||
<p><b>Oulined</b> buttons in MDriven Turnkey. </p> | <p><b>Oulined</b> buttons in MDriven Turnkey. </p> | ||
<p>Add to style-references "<b>outlined</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with | <p>Add to style-references "<b>outlined</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "outlined". For example: "outlined danger", "outlined warning", "outlined primary"</p> | ||
<div class="examples"> | <div class="examples"> | ||
Line 108: | Line 108: | ||
<p><b>Flat</b> buttons in MDriven Turnkey</p> | <p><b>Flat</b> buttons in MDriven Turnkey</p> | ||
<p>Add to style-references "<b>flat</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with | <p>Add to style-references "<b>flat</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "flat". For example: "flat danger", "flat warning", "flat primary"</p> | ||
<div class="examples"> | <div class="examples"> | ||
Line 141: | Line 141: | ||
<p><b>Shaped</b> buttons in MDriven Turnkey</p> | <p><b>Shaped</b> buttons in MDriven Turnkey</p> | ||
<p>Add to style-references "<b>shaped</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with | <p>Add to style-references "<b>shaped</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "shaped". For example: "shaped danger", "shaped warning", "shaped primary"</p> | ||
<div class="examples"> | <div class="examples"> |
Revision as of 09:13, 31 July 2019
Getting started
MDriven Turnkey Style system based on the BEM methodology. BEM stands for Block, Element, Modifier and it is a convention on how to structure CSS rules. Read more here.
Out of the box you will receive the following UI elements:
- Static text
- Image
- Text field
- Checkbox
- Select (Combobox)
- Date picker
- Data-table
- Button
- File upload
- Link
- Textarea
- Number field
- Float field
Layout
MDriven Turnkey uses CSS Grid to create the application layout.
Components
Buttons
Out of the box in MDriven Turnkey you have the default button styles, but you can modify it with the predefined Modifier-classes. To style your buttons add the modifier classes to style-reference in your viewmodel column. Find out all predefined modifier classes for the buttons, below.
Default buttons in MDriven Turnkey
Generic modifier classes for the buttons:
- danger
- warning
- success
- info
- primary (applies primary color of your application)
Oulined buttons in MDriven Turnkey.
Add to style-references "outlined" in your viewmodel column. Also, you can use generic modifier classes in pair with "outlined". For example: "outlined danger", "outlined warning", "outlined primary"
Flat buttons in MDriven Turnkey
Add to style-references "flat" in your viewmodel column. Also, you can use generic modifier classes in pair with "flat". For example: "flat danger", "flat warning", "flat primary"
Shaped buttons in MDriven Turnkey
Add to style-references "shaped" in your viewmodel column. Also, you can use generic modifier classes in pair with "shaped". For example: "shaped danger", "shaped warning", "shaped primary"