|
|
Line 25: |
Line 25: |
|
| |
|
| === Context colors<html> | | === Context colors<html> |
| <head>
| |
| </head>
| |
| <body>
| |
| <p>The Turnkey application typography includes a range of contrasting styles that support the needs of your application and its content. </p>
| |
| </body>
| |
| </html> ===
| |
|
| |
|
| === Chips ===
| |
|
| |
| === Info block ===
| |
|
| |
| == 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.<html>
| |
| <head>
| |
| <script src="/extensions/style-system-presentation/ripple.js"></script>
| |
| <link rel="stylesheet" href="/extensions/style-system-presentation/style.css">
| |
| </head>
| |
|
| |
| <body>
| |
|
| |
| <p><b>Generic modifier classes</b> for the buttons:<p>
| |
| <ul>
| |
| <li><b>danger</b></li>
| |
| <li><b>warning</b></li>
| |
| <li><b>success</b></li>
| |
| <li><b>info</b></li>
| |
| <li><b>primary </b> (applies primary color of your application)</li>
| |
| </ul>
| |
|
| |
| <p><b>Default</b> buttons in MDriven Turnkey</p>
| |
| <p>Use the generic modifier classes with the default buttons to change their style.</p>
| |
|
| |
| <div class="examples buttons">
| |
| <div class="examples__item" title="">
| |
| <button class="tk-button__native ripple-effect">Button</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="danger">
| |
| <button class="tk-button__native ripple-effect danger">Button</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="warning">
| |
| <button class="tk-button__native ripple-effect warning">Button</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="success">
| |
| <button class="tk-button__native ripple-effect success">Button</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="info">
| |
| <button class="tk-button__native ripple-effect info">Button</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="primary">
| |
| <button class="tk-button__native ripple-effect primary">Button</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="Disabled state">
| |
| <button class="tk-button__native ripple-effect" disabled="disabled">Button</button>
| |
| </div>
| |
| </div>
| |
|
| |
| <p><b>Oulined</b> buttons in MDriven Turnkey. <i>(Style ref: <b>outlined</b>)</i> </p>
| |
| <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 buttons">
| |
| <div class="examples__item" title="outkined">
| |
| <button class="tk-button__native ripple-effect outlined">Outlined</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="outlined danger">
| |
| <button class="tk-button__native ripple-effect outlined danger">Outlined</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="outlined warning">
| |
| <button class="tk-button__native ripple-effect outlined warning">Outlined</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="outlined success">
| |
| <button class="tk-button__native ripple-effect success outlined">Outlined</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="outlined info">
| |
| <button class="tk-button__native ripple-effect info outlined">Outlined</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="outlined primary">
| |
| <button class="tk-button__native ripple-effect primary outlined">Outlined</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="Disabled state">
| |
| <button class="tk-button__native ripple-effect outlined" disabled="disabled">Outlined</button>
| |
| </div>
| |
| </div>
| |
|
| |
| <p><b>Flat</b> buttons in MDriven Turnkey. <i>(Style ref: <b>flat</b>)</i></p>
| |
| <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 buttons">
| |
| <div class="examples__item" title="flat">
| |
| <button class="tk-button__native ripple-effect flat">Flat</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="flat danger">
| |
| <button class="tk-button__native ripple-effect flat danger">Flat</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="flat warning">
| |
| <button class="tk-button__native ripple-effect flat warning">Flat</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="flat success">
| |
| <button class="tk-button__native ripple-effect flat success">Flat</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="flat info">
| |
| <button class="tk-button__native ripple-effect flat info">Flat</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="flat primary">
| |
| <button class="tk-button__native ripple-effect flat primary">Flat</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="Disabled state">
| |
| <button class="tk-button__native ripple-effect flat" disabled="disabled">Flat</button>
| |
| </div>
| |
| </div>
| |
|
| |
| <p><b>Shaped</b> buttons in MDriven Turnkey. <i>(Style ref: <b>shaped</b>)</i></p>
| |
| <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 buttons">
| |
| <div class="examples__item" title="shaped">
| |
| <button class="tk-button__native ripple-effect shaped">Shaped</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="shaped danger">
| |
| <button class="tk-button__native ripple-effect shaped danger">Shaped</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="shaped warning">
| |
| <button class="tk-button__native ripple-effect shaped warning">Shaped</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="shaped success">
| |
| <button class="tk-button__native ripple-effect shaped success">Shaped</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="shaped info">
| |
| <button class="tk-button__native ripple-effect shaped info">Shaped</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="shaped primary">
| |
| <button class="tk-button__native ripple-effect shaped primary">Shaped</button>
| |
| </div>
| |
|
| |
| <div class="examples__item" title="Disabled state">
| |
| <button class="tk-button__native ripple-effect shaped" disabled="disabled">Shaped</button>
| |
| </div>
| |
| </div>
| |
| </body>
| |
| </html>
| |
|
| |
|
| |
| === Checkbox controls ===
| |
|
| |
| <html>
| |
| <body>
| |
| <p><b>Checkbox control</b> is the default presentation of the boolean data in your model. Checkbox controls always use primary color of your Turnkey application.</p>
| |
| <div class="examples checkbox">
| |
| <div class="examples__item checkbox" title="Enabled selected/unselected state">
| |
| <div class="tk-checkbox__inner">
| |
| <label class="tk-checkbox__content ripple-effect">
| |
| <input type="checkbox" name="Checkbox" id="checkbox" class="tk-checkbox__native">
| |
| <div class="tk-checkbox__interactive"></div>
| |
| </label>
| |
| <label for="checkbox" class="tk-checkbox__label">Checkbox control</label></div>
| |
| </div>
| |
| <div class="examples__item checkbox" title="Disabled unselected state">
| |
| <div class="tk-checkbox__inner">
| |
| <label class="tk-checkbox__content ripple-effect">
| |
| <input type="checkbox" name="Checkbox" id="Checkbox.disabled" class="tk-checkbox__native" disabled="disabled">
| |
| <div class="tk-checkbox__interactive"></div>
| |
| </label>
| |
| <label for="Checkbox.disabled" class="tk-checkbox__label">Checkbox control</label></div>
| |
| </div>
| |
| <div class="examples__item checkbox" title="Disabled unselected state">
| |
| <div class="tk-checkbox__inner">
| |
| <label class="tk-checkbox__content ripple-effect">
| |
| <input type="checkbox" name="Checkbox" id="checkbox.checked" class="tk-checkbox__native" disabled="disabled"
| |
| checked>
| |
| <div class="tk-checkbox__interactive"></div>
| |
| </label>
| |
| <label for="checkbox.checked" class="tk-checkbox__label">Checkbox control</label></div>
| |
| </div>
| |
| </div>
| |
| </body>
| |
| </html>
| |
|
| |
| === Switch controls ===
| |
|
| |
| <html>
| |
| <body>
| |
| <p><b>Switch control</b> is the enhancement for the default checkbox controls. Switch controls toggle the state of a single setting on or off. You can easy get the switch control in Turnkey app, just set <b>TaggedValue "Switch" to "True" </b> for ViewModel Column. </p>
| |
| <div class="examples checkbox">
| |
| <div class="examples__item checkbox" title="Enabled selected/unselected state">
| |
| <div class="tk-switch__inner">
| |
| <input type="checkbox" name="Switch" id="switch" class="tk-switch__native">
| |
| <label for="switch" class="tk-switch__content">
| |
| <div class="tk-switch__track"></div>
| |
| <div class="tk-switch__interactive">
| |
| <span></span>
| |
| </div>
| |
| </label>
| |
| <label for="switch" class="tk-switch__label">Switch control</label>
| |
| </div>
| |
| </div>
| |
| <div class="examples__item checkbox" title="Disabled unselected state">
| |
| <div class="tk-switch__inner">
| |
| <input type="checkbox" name="Switch" id="switch.disabled" class="tk-switch__native" disabled>
| |
| <label for="switch.disabled" class="tk-switch__content">
| |
| <div class="tk-switch__track"></div>
| |
| <div class="tk-switch__interactive">
| |
| <span></span>
| |
| </div>
| |
| </label>
| |
| <label for="switch.disabled" class="tk-switch__label">Switch control</label>
| |
| </div>
| |
| </div>
| |
| <div class="examples__item checkbox" title="Selected disabled state">
| |
| <div class="tk-switch__inner">
| |
| <input type="checkbox" name="Switch" id="switch.checked" class="tk-switch__native" disabled checked>
| |
| <label for="BooleanControl.Switch" class="tk-switch__content">
| |
| <div class="tk-switch__track"></div>
| |
| <div class="tk-switch__interactive">
| |
| <span></span>
| |
| </div>
| |
| </label>
| |
| <label for="switch.checked" class="tk-switch__label">Switch control</label>
| |
| </div>
| |
| </div>
| |
| </div>
| |
| </body>
| |
| </html>
| |
|
| |
|
| === Input controls === | | === Input controls === |