Sha256: 36adae8e1bcb819d3a793b8b07a35989a8e6a85143cda215b9d9d3eb90b3138d

Contents?: true

Size: 1.89 KB

Versions: 40

Compression:

Stored size: 1.89 KB

Contents

h1 Cards

p A simple card

= sts.editor do
  | = sts.card :your_card, title: '' do |c|
      | Content here
br
= sts.card :your_card, title: '' do |c|
  | Content here


p A simple card

= sts.editor do
  | = sts.card :your_card_with_title, title: 'Your profile' do |c|
     | Content here

= sts.card :your_card_with_title, title: 'Your profile' do |c|
  | Content here

p You can add a description to the card

pre
  | = sts.card :your_card_with_title_and_description, title: 'Your profile', description: 'Edit your profile information' do |c|
     | Content here

= sts.card :your_card_with_title_and_description, title: 'Your profile', description: 'Edit your profile information' do |c|
  | Content here

p You can add buttons for actions on the card

pre
  | = sts.card :your_card_with_actions, title: 'Your profile', description: 'Edit your profile information' do |c|
   - c.with_action
     button.button Save
    | Content here

= sts.card :your_card_with_actions, title: 'Your profile', description: 'Edit your profile information' do |c|
  - c.with_action
  button.button Save
  | Content here

p An icon can be added before the title

pre
  | = sts.card :your_card_with_icon, icon: 'fa fa-truck', title: 'Your profile' do |c|
   - c.with_action
     button.button Save
    | Content here

= sts.card :your_card_with_icon, icon: 'fa fa-truck', title: 'Your profile' do |c|
  - c.with_action
  button.button Save
  | Content here

p Cards can have tabs

pre
  | = sts.card :your_card_with_tabs, title: 'Your profile' do |c|
      - c.with_tab :first
        | Tabs don't have padding by default
      - c.with_tab :second, padding: true
        | But padding can be added by adding
        pre padding: true

= sts.card :your_card_with_tabs, title: 'Your profile' do |c|
  - c.with_tab :first
  | Tabs don't have padding by default
  - c.with_tab :second, padding: true
  | But padding can be added by adding
  pre padding: true

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
satis-2.1.47 app/views/satis/documentation/cards/index.html.slim
satis-2.1.46 app/views/satis/documentation/cards/index.html.slim
satis-2.1.45 app/views/satis/documentation/cards/index.html.slim
satis-2.1.44 app/views/satis/documentation/cards/index.html.slim
satis-2.1.43 app/views/satis/documentation/cards/index.html.slim
satis-2.1.42 app/views/satis/documentation/cards/index.html.slim
satis-2.1.41 app/views/satis/documentation/cards/index.html.slim
satis-2.1.40 app/views/satis/documentation/cards/index.html.slim
satis-2.1.39 app/views/satis/documentation/cards/index.html.slim
satis-2.1.38 app/views/satis/documentation/cards/index.html.slim
satis-2.1.37 app/views/satis/documentation/cards/index.html.slim
satis-2.1.36 app/views/satis/documentation/cards/index.html.slim
satis-2.1.35 app/views/satis/documentation/cards/index.html.slim
satis-2.1.33 app/views/satis/documentation/cards/index.html.slim
satis-2.1.31 app/views/satis/documentation/cards/index.html.slim
satis-2.1.30 app/views/satis/documentation/cards/index.html.slim
satis-2.1.29 app/views/satis/documentation/cards/index.html.slim
satis-2.1.28 app/views/satis/documentation/cards/index.html.slim
satis-2.1.27 app/views/satis/documentation/cards/index.html.slim
satis-2.1.26 app/views/satis/documentation/cards/index.html.slim