Style blocks in theme

Using bootstrap framework


Switcher theme:


Buttons





Disabled class



Disabled



Outline



Outline background





Sizes lg (btn-lg)





Sizes sm (btn-sm)





Block



Button loading add js spinner



Button loading add spinner html

Forms



radio buttons

compact

Форма обращения

original



checbox buttons

compact

original



checbox buttons outline style secondary (.custom-checkbox--style-secondary)

compact

original



input text

compact

Имя (YYYY-MM-DD)
*
(Например: 1970-05-31)

original

Допускаются только буквы и точка (.), за которыми следует пробел.


input text GROUP ACTIVE

compact

Имя

original

Optional field


error input text

compact

E-mail
*
  • Недействительная комбинация e-mail/пароль

original

  • Недействительная комбинация e-mail/пароль


valid input text

compact

E-mail
*

original



password text

compact

Новый пароль

original

Optional field


error password text

compact

Новый пароль
  • Недействительная комбинация e-mail/пароль

original

  • Недействительная комбинация e-mail/пароль
Optional field


file load

compact

original

Optional field


input textarea

compact

(How can we help?)

original

Optional field


Select

compact

Order reference

compact not plugin select

Order reference

original

Optional field

original not plugin select

Optional field


quantity input vertical

In custom html page



quantity input vertical left

In custom html page



quantity input horizontal

In custom html page

bredcrumb



Collapse



Accordion

1 accordion "collapse"

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.



Collapse click

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.


Multiple targets

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.

Tabs



text description 1
text description 2

Tooltip



standart tooltip



plugin n-tooltip



plugin n-tooltip cursor click



plugin n-tooltip cursor hover

Card



Example card

Card image cap
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Go somewhere


Body card

This is some text within a card body.


Header and footer

Featured
Card title

With supporting text below as a natural lead-in to additional content.

Go somewhere


Image overlays

Card image
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago



Card styles

Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Info card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Light card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.



Border

Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Info card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Light card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.



Card groups

Card image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Card image cap
Card title

This card has supporting text below as a natural lead-in to additional content.

Card image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.



Card groups

Card image cap
Card title that wraps to a new line

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
Card image cap
Card title

This card has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.

Someone famous in Source Title
Card title

This card has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Card image

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.

Last updated 3 mins ago

Alert



Examples



Link color



Additional content



Dismissing

Bunch button 2



Open block



content


content text


content test

content


content text


content test

block active



item block
item block
item block

block hover



  • item 1
  • item 2
  • item 3
  • item 4

block video youtube



        <div class="js-video-youtube"
             data-path-video="https://www.youtube.com/watch?v=8GJFzFijCRE&t=219s"
             data-width="800"
             data-height="500"></div>
    

scroll top elem



        <button class="btn btn-primary js-scroll-top-elem js-scroll-top-elem_1"
            data-scroll-elem=".js-scroll-top-elem_2"
            data-click-elem=".js-scroll-top-elem_2">
        1 btn, click scroll to elem
    </button>
    

---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---

spinner



Border spinner



Colors



Growing spinner



Colors



Size

.


Custom size



Buttons

block spinner

Test text

popovers



Example



Dismiss on next click

Dismissible popover

Four directions



Disabled elements

badge



Example

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New
Example heading New






Contextual variations

Primary Secondary Success Danger Warning Info Light Dark

Pill badges

Primary Secondary Success Danger Warning Info Light Dark

Links

Primary Secondary Success Danger Warning Info Light Dark

tables



Examples

# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Color

# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

Table head options

# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Striped rows

# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Bordered table

# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Hoverable rows

# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Small table

# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Contextual classes

Class Heading Heading
Active Cell Cell
Default Cell Cell
Primary Cell Cell
Secondary Cell Cell
Success Cell Cell
Danger Cell Cell
Warning Cell Cell
Info Cell Cell
Light Cell Cell
Dark Cell Cell
# Heading Heading
1 Cell Cell
2 Cell Cell
3 Cell Cell
4 Cell Cell
5 Cell Cell
6 Cell Cell
7 Cell Cell
8 Cell Cell
9 Cell Cell


Captions

List of users
# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Always responsive

# Heading Heading Heading Heading Heading Heading Heading Heading Heading
1 Cell Cell Cell Cell Cell Cell Cell Cell Cell
2 Cell Cell Cell Cell Cell Cell Cell Cell Cell
3 Cell Cell Cell Cell Cell Cell Cell Cell Cell


Breakpoint specific

# Heading Heading Heading Heading Heading
1 Cell Cell Cell Cell Cell
2 Cell Cell Cell Cell Cell
3 Cell Cell Cell Cell Cell
# Heading Heading Heading Heading Heading
1 Cell Cell Cell Cell Cell
2 Cell Cell Cell Cell Cell
3 Cell Cell Cell Cell Cell
# Heading Heading Heading Heading Heading
1 Cell Cell Cell Cell Cell
2 Cell Cell Cell Cell Cell
3 Cell Cell Cell Cell Cell
# Heading Heading Heading Heading Heading
1 Cell Cell Cell Cell Cell
2 Cell Cell Cell Cell Cell
3 Cell Cell Cell Cell Cell

progress



How it works









Labels

25%


Height




Backgrounds






Multiple bars



Striped







Animated stripes

toasts



Calling toast js

        prestashop.divlf_theme.toasts.add(
            {
                delay: 3000,
                autohide: true,
                animation: true,
                style_classes: []
            },
            undefined,
            'title',
            'time',
            true,
            'content'
        )
    


Calling toast error js

        prestashop.divlf_theme.toasts.add(
            {
                delay: 3000,
                autohide: true,
                animation: true,
                style_classes: ['text-white', 'bg-danger']
            },
            undefined,
            'title',
            'time',
            true,
            'content'
        )
    



Toasts

responsive



Применение атрибутов при изменение блока, к примеру изменения списка товаров


Применяй: data-theme-responsive="_desktop_768_ ... "
Применяй: data-theme-responsive="_desktop_992_ ... "
        <div>
            <strong>Desktop:</strong>
            <span data-theme-responsive="_desktop_768_miniature-actions"><span>value desktop</span></span>
        </div>
        <div>
            <strong>Mobile:</strong>
            <span data-theme-responsive="_mobile_768_miniature-actions"></span>
        </div>
    
Example:
Desktop: value desktop ATTRIBUTES
Mobile:



Применение к id элементам, применяется без обновления страницы


Применяй: id="_desktop_768_ ... "
Применяй: id="_desktop_992_ ... "
        <div>
            <strong>Desktop:</strong>
            <span id="_desktop_768_miniature-actions"><span>value desktop ID</span></span>
        </div>
        <div>
            <strong>Mobile:</strong>
            <span id="_mobile_768_miniature-actions"></span>
        </div>
    
Example:
Desktop: value desktop ID
Mobile:
        <div class="scroll-list js-scroll-list"
             data-display-nav-btn="true"
             data-active-drag-drop="true"
             data-duration-easing="250"
             data-name-btn-left="Left"
             data-name-btn-right="Right"
             data-content-btn-left="Left"
             data-content-btn-right="Right"
             data-items-move="3"
             data-items-move-btn-left="1"
             data-items-move-btn-right="1"
             data-attr-btn-prev='{ "class": "btn btn-primary"}'
             data-attr-btn-next='{ "class": "btn btn-primary"}'
             data-tablet-display-nav-btn="true"
             data-tablet-items-move="1"
             data-tablet-prev-items-move="1"
             data-tablet-next-items-move="1"
             data-mobile-display-nav-btn="true"
             data-mobile-items-move="1"
             data-mobile-prev-items-move="1"
             data-mobile-next-items-move="">
            <div><button class="btn btn-primary">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-secondary">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-success">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-danger">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-warning">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-dark">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-light">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-link">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-link">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-link">Test list 456 Test list 456</button></div>
            <div><button class="btn btn-link">Test list 456 Test list 456</button></div>
        </div>
    





expand_less