Bootstrap 요약표
화면 크기
768 992 1200
' ' ' ' ' ' ' '
<---------^------------^------------------^--------->
xs sm md lg
(스마트폰) (태블릿) (노트북) (데스크탑)최소 (Min):
@media (min-width: @screen-sm-min) // >= 768px (작은 화면 태블릿)
@media (min-width: @screen-md-min) // >= 992px (중간 화면 데스크탑)
@media (min-width: @screen-lg-min) // >= 1200px (큰 화면 대형 데스크탑)최대 (Max):
@media (max-width: @screen-xs-max) { // < 768px (매우 작은 화면 스마트폰)
@media (max-width: @screen-sm-max) { // < 992px (작은 화면 태블릿)
@media (max-width: @screen-md-max) { // < 1200px (중간 화면 데스크탑)그리드 (Grid)
.container
.container-fluid.col-xs-1
.col-sm-1
.col-md-1
.col-lg-1
.col-md-offset-1믹스인 (Mixins):
@include make-xs-column(12);
@include make-sm-column(6);
@include make-md-column(3);
@include make-lg-column(3);@include make-sm-column-offset(1);
@include make-sm-column-push(1);
@include make-sm-column-pull(1);반응형 유틸리티
.pull-left
.pull-right.hidden-{xs,sm,md,lg}
.visible-{xs,sm,md,lg}
.visible-{xs,sm,md,lg,print}-{block,inline,inline-block}.center-block /* margin: auto */
.clearfix
.text-{center,left,right,justify,nowrap}
.text-{lowercase,uppercase,capitalize}.show
.hidden모달 (Modal)
<a data-toggle='modal' data-target='#new'>#new.modal.fade(role='dialog')
.modal-dialog // .modal-lg, .modal-sm
.modal-content
.modal-header
%h4.modal-title hello
%button.close{type: 'button', data: { dismiss: 'modal' }}
%span{'aria-hidden' => true}!= "×"
%span.sr-only Close
.modal-body
...
.modal-footer
...모달을 이용한 Ajax
%button.btn{data: { |
toggle: 'modal', |
target: '#chooseTheme', |
remote: '/path/to/remote'}
Change Theme.modal.fade#chooseTheme
.modal-dialog.modal-xl
.modal-content
.modal-header
%h4.modal-title Choose a theme
.modal-body
.spinner-panel.-lg
%i툴팁 (Tooltip)
<span
data-toggle='tooltip'
title='tooltip'
data-placement='left|top|bottom|right'>$(function () {
$('[data-toogle~="tooltip"]').tooltip()
})입력 그룹 (Input Group)
.input-group
input.form-control(type='text')
.input-group-addon years