4 prism_languages: [scss, haml, html]
8 .container .row .col-md-6, @screen-sm-min, .form-control, grids, .modal-content, tooltips, and other Bootstrap CSS examples.
16 <---------^------------^------------------^--------->
18 (phone) (tablet) (laptop) (desktop)
24 @media (min-width: @screen-sm-min) // >= 768px (small tablet)
25 @media (min-width: @screen-md-min) // >= 992px (medium laptop)
26 @media (min-width: @screen-lg-min) // >= 1200px (large desktop)
32 @media (max-width: @screen-xs-max) { // < 768px (xsmall phone)
33 @media (max-width: @screen-sm-max) { // < 992px (small tablet)
34 @media (max-width: @screen-md-max) { // < 1200px (medium laptop)
55 @include make-xs-column(12);
56 @include make-sm-column(6);
57 @include make-md-column(3);
58 @include make-lg-column(3);
62 @include make-sm-column-offset(1);
63 @include make-sm-column-push(1);
64 @include make-sm-column-pull(1);
76 .visible-{xs,sm,md,lg}
77 .visible-{xs,sm,md,lg,print}-{block,inline,inline-block}
81 .center-block /* margin: auto */
83 .text-{center,left,right,justify,nowrap}
84 .text-{lowercase,uppercase,capitalize}
95 <a data-toggle='modal' data-target='#new'>
99 #new.modal.fade(role='dialog')
100 .modal-dialog // .modal-lg, .modal-sm
103 %h4.modal-title hello
104 %button.close{type: 'button', data: { dismiss: 'modal' }}
105 %span{'aria-hidden' => true}!= "×"
113 ### Modal via ajax (Rails)
116 %button.btn{data: { |
118 target: '#chooseTheme', |
119 remote: '/path/to/remote'}
124 .modal.fade#chooseTheme
125 .modal-dialog.modal-xl
128 %h4.modal-title Choose a theme
139 data-toggle='tooltip'
141 data-placement='left|top|bottom|right'>
146 $('[data-toogle~="tooltip"]').tooltip()
154 input.form-control(type='text')
155 .input-group-addon years