mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-14 13:47:11 +03:00
docs were never finished, we moved on to v4 instead.
This commit is contained in:
parent
92edf78d8c
commit
94ef7c4c6f
21
docs/LICENSE
21
docs/LICENSE
|
@ -1,21 +0,0 @@
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2015, Federico Zivolo
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
|
@ -1,10 +0,0 @@
|
||||||
-
|
|
||||||
browser: >
|
|
||||||
Internet Explorer 11 & Microsoft Edge
|
|
||||||
summary: >
|
|
||||||
Sample bug list item
|
|
||||||
upstream_bug: >
|
|
||||||
IE#926665
|
|
||||||
origin: >
|
|
||||||
BMD#14211
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
- name: Fez Vrasta
|
|
||||||
user: FezVrasta
|
|
||||||
gravatar:
|
|
||||||
|
|
||||||
- name: Kevin Ross
|
|
||||||
user: rosskevin
|
|
||||||
gravatar: 5d6a051e6dabb03bc775eb9265fad4bd
|
|
|
@ -1,763 +0,0 @@
|
||||||
# This file is generated via Grunt task. **Do not edit directly.**
|
|
||||||
# See the 'build-icons-data' task in Gruntfile.js.
|
|
||||||
|
|
||||||
- mdi-action-3d-rotation
|
|
||||||
- mdi-action-accessibility
|
|
||||||
- mdi-action-account-balance-wallet
|
|
||||||
- mdi-action-account-balance
|
|
||||||
- mdi-action-account-box
|
|
||||||
- mdi-action-account-child
|
|
||||||
- mdi-action-account-circle
|
|
||||||
- mdi-action-add-shopping-cart
|
|
||||||
- mdi-action-alarm-add
|
|
||||||
- mdi-action-alarm-off
|
|
||||||
- mdi-action-alarm-on
|
|
||||||
- mdi-action-alarm
|
|
||||||
- mdi-action-android
|
|
||||||
- mdi-action-announcement
|
|
||||||
- mdi-action-aspect-ratio
|
|
||||||
- mdi-action-assessment
|
|
||||||
- mdi-action-assignment-ind
|
|
||||||
- mdi-action-assignment-late
|
|
||||||
- mdi-action-assignment-return
|
|
||||||
- mdi-action-assignment-returned
|
|
||||||
- mdi-action-assignment-turned-in
|
|
||||||
- mdi-action-assignment
|
|
||||||
- mdi-action-autorenew
|
|
||||||
- mdi-action-backup
|
|
||||||
- mdi-action-book
|
|
||||||
- mdi-action-bookmark-outline
|
|
||||||
- mdi-action-bookmark
|
|
||||||
- mdi-action-bug-report
|
|
||||||
- mdi-action-cached
|
|
||||||
- mdi-action-check-circle
|
|
||||||
- mdi-action-class
|
|
||||||
- mdi-action-credit-card
|
|
||||||
- mdi-action-dashboard
|
|
||||||
- mdi-action-delete
|
|
||||||
- mdi-action-description
|
|
||||||
- mdi-action-dns
|
|
||||||
- mdi-action-done-all
|
|
||||||
- mdi-action-done
|
|
||||||
- mdi-action-event
|
|
||||||
- mdi-action-exit-to-app
|
|
||||||
- mdi-action-explore
|
|
||||||
- mdi-action-extension
|
|
||||||
- mdi-action-face-unlock
|
|
||||||
- mdi-action-favorite-outline
|
|
||||||
- mdi-action-favorite
|
|
||||||
- mdi-action-find-in-page
|
|
||||||
- mdi-action-find-replace
|
|
||||||
- mdi-action-flip-to-back
|
|
||||||
- mdi-action-flip-to-front
|
|
||||||
- mdi-action-get-app
|
|
||||||
- mdi-action-grade
|
|
||||||
- mdi-action-group-work
|
|
||||||
- mdi-action-help
|
|
||||||
- mdi-action-highlight-remove
|
|
||||||
- mdi-action-history
|
|
||||||
- mdi-action-home
|
|
||||||
- mdi-action-https
|
|
||||||
- mdi-action-info-outline
|
|
||||||
- mdi-action-info
|
|
||||||
- mdi-action-input
|
|
||||||
- mdi-action-invert-colors
|
|
||||||
- mdi-action-label-outline
|
|
||||||
- mdi-action-label
|
|
||||||
- mdi-action-language
|
|
||||||
- mdi-action-launch
|
|
||||||
- mdi-action-list
|
|
||||||
- mdi-action-lock-open
|
|
||||||
- mdi-action-lock-outline
|
|
||||||
- mdi-action-lock
|
|
||||||
- mdi-action-loyalty
|
|
||||||
- mdi-action-markunread-mailbox
|
|
||||||
- mdi-action-note-add
|
|
||||||
- mdi-action-open-in-browser
|
|
||||||
- mdi-action-open-in-new
|
|
||||||
- mdi-action-open-with
|
|
||||||
- mdi-action-pageview
|
|
||||||
- mdi-action-payment
|
|
||||||
- mdi-action-perm-camera-mic
|
|
||||||
- mdi-action-perm-contact-cal
|
|
||||||
- mdi-action-perm-data-setting
|
|
||||||
- mdi-action-perm-device-info
|
|
||||||
- mdi-action-perm-identity
|
|
||||||
- mdi-action-perm-media
|
|
||||||
- mdi-action-perm-phone-msg
|
|
||||||
- mdi-action-perm-scan-wifi
|
|
||||||
- mdi-action-picture-in-picture
|
|
||||||
- mdi-action-polymer
|
|
||||||
- mdi-action-print
|
|
||||||
- mdi-action-query-builder
|
|
||||||
- mdi-action-question-answer
|
|
||||||
- mdi-action-receipt
|
|
||||||
- mdi-action-redeem
|
|
||||||
- mdi-action-reorder
|
|
||||||
- mdi-action-report-problem
|
|
||||||
- mdi-action-restore
|
|
||||||
- mdi-action-room
|
|
||||||
- mdi-action-schedule
|
|
||||||
- mdi-action-search
|
|
||||||
- mdi-action-settings-applications
|
|
||||||
- mdi-action-settings-backup-restore
|
|
||||||
- mdi-action-settings-bluetooth
|
|
||||||
- mdi-action-settings-cell
|
|
||||||
- mdi-action-settings-display
|
|
||||||
- mdi-action-settings-ethernet
|
|
||||||
- mdi-action-settings-input-antenna
|
|
||||||
- mdi-action-settings-input-component
|
|
||||||
- mdi-action-settings-input-composite
|
|
||||||
- mdi-action-settings-input-hdmi
|
|
||||||
- mdi-action-settings-input-svideo
|
|
||||||
- mdi-action-settings-overscan
|
|
||||||
- mdi-action-settings-phone
|
|
||||||
- mdi-action-settings-power
|
|
||||||
- mdi-action-settings-remote
|
|
||||||
- mdi-action-settings-voice
|
|
||||||
- mdi-action-settings
|
|
||||||
- mdi-action-shop-two
|
|
||||||
- mdi-action-shop
|
|
||||||
- mdi-action-shopping-basket
|
|
||||||
- mdi-action-shopping-cart
|
|
||||||
- mdi-action-speaker-notes
|
|
||||||
- mdi-action-spellcheck
|
|
||||||
- mdi-action-star-rate
|
|
||||||
- mdi-action-stars
|
|
||||||
- mdi-action-store
|
|
||||||
- mdi-action-subject
|
|
||||||
- mdi-action-supervisor-account
|
|
||||||
- mdi-action-swap-horiz
|
|
||||||
- mdi-action-swap-vert-circle
|
|
||||||
- mdi-action-swap-vert
|
|
||||||
- mdi-action-system-update-tv
|
|
||||||
- mdi-action-tab-unselected
|
|
||||||
- mdi-action-tab
|
|
||||||
- mdi-action-theaters
|
|
||||||
- mdi-action-thumb-down
|
|
||||||
- mdi-action-thumb-up
|
|
||||||
- mdi-action-thumbs-up-down
|
|
||||||
- mdi-action-toc
|
|
||||||
- mdi-action-today
|
|
||||||
- mdi-action-track-changes
|
|
||||||
- mdi-action-translate
|
|
||||||
- mdi-action-trending-down
|
|
||||||
- mdi-action-trending-neutral
|
|
||||||
- mdi-action-trending-up
|
|
||||||
- mdi-action-turned-in-not
|
|
||||||
- mdi-action-turned-in
|
|
||||||
- mdi-action-verified-user
|
|
||||||
- mdi-action-view-agenda
|
|
||||||
- mdi-action-view-array
|
|
||||||
- mdi-action-view-carousel
|
|
||||||
- mdi-action-view-column
|
|
||||||
- mdi-action-view-day
|
|
||||||
- mdi-action-view-headline
|
|
||||||
- mdi-action-view-list
|
|
||||||
- mdi-action-view-module
|
|
||||||
- mdi-action-view-quilt
|
|
||||||
- mdi-action-view-stream
|
|
||||||
- mdi-action-view-week
|
|
||||||
- mdi-action-visibility-off
|
|
||||||
- mdi-action-visibility
|
|
||||||
- mdi-action-wallet-giftcard
|
|
||||||
- mdi-action-wallet-membership
|
|
||||||
- mdi-action-wallet-travel
|
|
||||||
- mdi-action-work
|
|
||||||
- mdi-alert-error
|
|
||||||
- mdi-alert-warning
|
|
||||||
- mdi-av-album
|
|
||||||
- mdi-av-closed-caption
|
|
||||||
- mdi-av-equalizer
|
|
||||||
- mdi-av-explicit
|
|
||||||
- mdi-av-fast-forward
|
|
||||||
- mdi-av-fast-rewind
|
|
||||||
- mdi-av-games
|
|
||||||
- mdi-av-hearing
|
|
||||||
- mdi-av-high-quality
|
|
||||||
- mdi-av-loop
|
|
||||||
- mdi-av-mic-none
|
|
||||||
- mdi-av-mic-off
|
|
||||||
- mdi-av-mic
|
|
||||||
- mdi-av-movie
|
|
||||||
- mdi-av-my-library-add
|
|
||||||
- mdi-av-my-library-books
|
|
||||||
- mdi-av-my-library-music
|
|
||||||
- mdi-av-new-releases
|
|
||||||
- mdi-av-not-interested
|
|
||||||
- mdi-av-pause-circle-fill
|
|
||||||
- mdi-av-pause-circle-outline
|
|
||||||
- mdi-av-pause
|
|
||||||
- mdi-av-play-arrow
|
|
||||||
- mdi-av-play-circle-fill
|
|
||||||
- mdi-av-play-circle-outline
|
|
||||||
- mdi-av-play-shopping-bag
|
|
||||||
- mdi-av-playlist-add
|
|
||||||
- mdi-av-queue-music
|
|
||||||
- mdi-av-queue
|
|
||||||
- mdi-av-radio
|
|
||||||
- mdi-av-recent-actors
|
|
||||||
- mdi-av-repeat-one
|
|
||||||
- mdi-av-repeat
|
|
||||||
- mdi-av-replay
|
|
||||||
- mdi-av-shuffle
|
|
||||||
- mdi-av-skip-next
|
|
||||||
- mdi-av-skip-previous
|
|
||||||
- mdi-av-snooze
|
|
||||||
- mdi-av-stop
|
|
||||||
- mdi-av-subtitles
|
|
||||||
- mdi-av-surround-sound
|
|
||||||
- mdi-av-timer
|
|
||||||
- mdi-av-video-collection
|
|
||||||
- mdi-av-videocam-off
|
|
||||||
- mdi-av-videocam
|
|
||||||
- mdi-av-volume-down
|
|
||||||
- mdi-av-volume-mute
|
|
||||||
- mdi-av-volume-off
|
|
||||||
- mdi-av-volume-up
|
|
||||||
- mdi-av-web
|
|
||||||
- mdi-communication-business
|
|
||||||
- mdi-communication-call-end
|
|
||||||
- mdi-communication-call-made
|
|
||||||
- mdi-communication-call-merge
|
|
||||||
- mdi-communication-call-missed
|
|
||||||
- mdi-communication-call-received
|
|
||||||
- mdi-communication-call-split
|
|
||||||
- mdi-communication-call
|
|
||||||
- mdi-communication-chat
|
|
||||||
- mdi-communication-clear-all
|
|
||||||
- mdi-communication-comment
|
|
||||||
- mdi-communication-contacts
|
|
||||||
- mdi-communication-dialer-sip
|
|
||||||
- mdi-communication-dialpad
|
|
||||||
- mdi-communication-dnd-on
|
|
||||||
- mdi-communication-email
|
|
||||||
- mdi-communication-forum
|
|
||||||
- mdi-communication-import-export
|
|
||||||
- mdi-communication-invert-colors-off
|
|
||||||
- mdi-communication-invert-colors-on
|
|
||||||
- mdi-communication-live-help
|
|
||||||
- mdi-communication-location-off
|
|
||||||
- mdi-communication-location-on
|
|
||||||
- mdi-communication-message
|
|
||||||
- mdi-communication-messenger
|
|
||||||
- mdi-communication-no-sim
|
|
||||||
- mdi-communication-phone
|
|
||||||
- mdi-communication-portable-wifi-off
|
|
||||||
- mdi-communication-quick-contacts-dialer
|
|
||||||
- mdi-communication-quick-contacts-mail
|
|
||||||
- mdi-communication-ring-volume
|
|
||||||
- mdi-communication-stay-current-landscape
|
|
||||||
- mdi-communication-stay-current-portrait
|
|
||||||
- mdi-communication-stay-primary-landscape
|
|
||||||
- mdi-communication-stay-primary-portrait
|
|
||||||
- mdi-communication-swap-calls
|
|
||||||
- mdi-communication-textsms
|
|
||||||
- mdi-communication-voicemail
|
|
||||||
- mdi-communication-vpn-key
|
|
||||||
- mdi-content-add-box
|
|
||||||
- mdi-content-add-circle-outline
|
|
||||||
- mdi-content-add-circle
|
|
||||||
- mdi-content-add
|
|
||||||
- mdi-content-archive
|
|
||||||
- mdi-content-backspace
|
|
||||||
- mdi-content-block
|
|
||||||
- mdi-content-clear
|
|
||||||
- mdi-content-content-copy
|
|
||||||
- mdi-content-content-cut
|
|
||||||
- mdi-content-content-paste
|
|
||||||
- mdi-content-create
|
|
||||||
- mdi-content-drafts
|
|
||||||
- mdi-content-filter-list
|
|
||||||
- mdi-content-flag
|
|
||||||
- mdi-content-forward
|
|
||||||
- mdi-content-gesture
|
|
||||||
- mdi-content-inbox
|
|
||||||
- mdi-content-link
|
|
||||||
- mdi-content-mail
|
|
||||||
- mdi-content-markunread
|
|
||||||
- mdi-content-redo
|
|
||||||
- mdi-content-remove-circle-outline
|
|
||||||
- mdi-content-remove-circle
|
|
||||||
- mdi-content-remove
|
|
||||||
- mdi-content-reply-all
|
|
||||||
- mdi-content-reply
|
|
||||||
- mdi-content-report
|
|
||||||
- mdi-content-save
|
|
||||||
- mdi-content-select-all
|
|
||||||
- mdi-content-send
|
|
||||||
- mdi-content-sort
|
|
||||||
- mdi-content-text-format
|
|
||||||
- mdi-content-undo
|
|
||||||
- mdi-editor-attach-file
|
|
||||||
- mdi-editor-attach-money
|
|
||||||
- mdi-editor-border-all
|
|
||||||
- mdi-editor-border-bottom
|
|
||||||
- mdi-editor-border-clear
|
|
||||||
- mdi-editor-border-color
|
|
||||||
- mdi-editor-border-horizontal
|
|
||||||
- mdi-editor-border-inner
|
|
||||||
- mdi-editor-border-left
|
|
||||||
- mdi-editor-border-outer
|
|
||||||
- mdi-editor-border-right
|
|
||||||
- mdi-editor-border-style
|
|
||||||
- mdi-editor-border-top
|
|
||||||
- mdi-editor-border-vertical
|
|
||||||
- mdi-editor-format-align-center
|
|
||||||
- mdi-editor-format-align-justify
|
|
||||||
- mdi-editor-format-align-left
|
|
||||||
- mdi-editor-format-align-right
|
|
||||||
- mdi-editor-format-bold
|
|
||||||
- mdi-editor-format-clear
|
|
||||||
- mdi-editor-format-color-fill
|
|
||||||
- mdi-editor-format-color-reset
|
|
||||||
- mdi-editor-format-color-text
|
|
||||||
- mdi-editor-format-indent-decrease
|
|
||||||
- mdi-editor-format-indent-increase
|
|
||||||
- mdi-editor-format-italic
|
|
||||||
- mdi-editor-format-line-spacing
|
|
||||||
- mdi-editor-format-list-bulleted
|
|
||||||
- mdi-editor-format-list-numbered
|
|
||||||
- mdi-editor-format-paint
|
|
||||||
- mdi-editor-format-quote
|
|
||||||
- mdi-editor-format-size
|
|
||||||
- mdi-editor-format-strikethrough
|
|
||||||
- mdi-editor-format-textdirection-l-to-r
|
|
||||||
- mdi-editor-format-textdirection-r-to-l
|
|
||||||
- mdi-editor-format-underline
|
|
||||||
- mdi-editor-functions
|
|
||||||
- mdi-editor-insert-chart
|
|
||||||
- mdi-editor-insert-comment
|
|
||||||
- mdi-editor-insert-drive-file
|
|
||||||
- mdi-editor-insert-emoticon
|
|
||||||
- mdi-editor-insert-invitation
|
|
||||||
- mdi-editor-insert-link
|
|
||||||
- mdi-editor-insert-photo
|
|
||||||
- mdi-editor-merge-type
|
|
||||||
- mdi-editor-mode-comment
|
|
||||||
- mdi-editor-mode-edit
|
|
||||||
- mdi-editor-publish
|
|
||||||
- mdi-editor-vertical-align-bottom
|
|
||||||
- mdi-editor-vertical-align-center
|
|
||||||
- mdi-editor-vertical-align-top
|
|
||||||
- mdi-editor-wrap-text
|
|
||||||
- mdi-file-attachment
|
|
||||||
- mdi-file-cloud-circle
|
|
||||||
- mdi-file-cloud-done
|
|
||||||
- mdi-file-cloud-download
|
|
||||||
- mdi-file-cloud-off
|
|
||||||
- mdi-file-cloud-queue
|
|
||||||
- mdi-file-cloud-upload
|
|
||||||
- mdi-file-cloud
|
|
||||||
- mdi-file-file-download
|
|
||||||
- mdi-file-file-upload
|
|
||||||
- mdi-file-folder-open
|
|
||||||
- mdi-file-folder-shared
|
|
||||||
- mdi-file-folder
|
|
||||||
- mdi-device-access-alarm
|
|
||||||
- mdi-device-access-alarms
|
|
||||||
- mdi-device-access-time
|
|
||||||
- mdi-device-add-alarm
|
|
||||||
- mdi-device-airplanemode-off
|
|
||||||
- mdi-device-airplanemode-on
|
|
||||||
- mdi-device-battery-20
|
|
||||||
- mdi-device-battery-30
|
|
||||||
- mdi-device-battery-50
|
|
||||||
- mdi-device-battery-60
|
|
||||||
- mdi-device-battery-80
|
|
||||||
- mdi-device-battery-90
|
|
||||||
- mdi-device-battery-alert
|
|
||||||
- mdi-device-battery-charging-20
|
|
||||||
- mdi-device-battery-charging-30
|
|
||||||
- mdi-device-battery-charging-50
|
|
||||||
- mdi-device-battery-charging-60
|
|
||||||
- mdi-device-battery-charging-80
|
|
||||||
- mdi-device-battery-charging-90
|
|
||||||
- mdi-device-battery-charging-full
|
|
||||||
- mdi-device-battery-full
|
|
||||||
- mdi-device-battery-std
|
|
||||||
- mdi-device-battery-unknown
|
|
||||||
- mdi-device-bluetooth-connected
|
|
||||||
- mdi-device-bluetooth-disabled
|
|
||||||
- mdi-device-bluetooth-searching
|
|
||||||
- mdi-device-bluetooth
|
|
||||||
- mdi-device-brightness-auto
|
|
||||||
- mdi-device-brightness-high
|
|
||||||
- mdi-device-brightness-low
|
|
||||||
- mdi-device-brightness-medium
|
|
||||||
- mdi-device-data-usage
|
|
||||||
- mdi-device-developer-mode
|
|
||||||
- mdi-device-devices
|
|
||||||
- mdi-device-dvr
|
|
||||||
- mdi-device-gps-fixed
|
|
||||||
- mdi-device-gps-not-fixed
|
|
||||||
- mdi-device-gps-off
|
|
||||||
- mdi-device-location-disabled
|
|
||||||
- mdi-device-location-searching
|
|
||||||
- mdi-device-multitrack-audio
|
|
||||||
- mdi-device-network-cell
|
|
||||||
- mdi-device-network-wifi
|
|
||||||
- mdi-device-nfc
|
|
||||||
- mdi-device-now-wallpaper
|
|
||||||
- mdi-device-now-widgets
|
|
||||||
- mdi-device-screen-lock-landscape
|
|
||||||
- mdi-device-screen-lock-portrait
|
|
||||||
- mdi-device-screen-lock-rotation
|
|
||||||
- mdi-device-screen-rotation
|
|
||||||
- mdi-device-sd-storage
|
|
||||||
- mdi-device-settings-system-daydream
|
|
||||||
- mdi-device-signal-cellular-0-bar
|
|
||||||
- mdi-device-signal-cellular-1-bar
|
|
||||||
- mdi-device-signal-cellular-2-bar
|
|
||||||
- mdi-device-signal-cellular-3-bar
|
|
||||||
- mdi-device-signal-cellular-4-bar
|
|
||||||
- mdi-signal-wifi-statusbar-connected-no-internet-after
|
|
||||||
- mdi-device-signal-cellular-connected-no-internet-0-bar
|
|
||||||
- mdi-device-signal-cellular-connected-no-internet-1-bar
|
|
||||||
- mdi-device-signal-cellular-connected-no-internet-2-bar
|
|
||||||
- mdi-device-signal-cellular-connected-no-internet-3-bar
|
|
||||||
- mdi-device-signal-cellular-connected-no-internet-4-bar
|
|
||||||
- mdi-device-signal-cellular-no-sim
|
|
||||||
- mdi-device-signal-cellular-null
|
|
||||||
- mdi-device-signal-cellular-off
|
|
||||||
- mdi-device-signal-wifi-0-bar
|
|
||||||
- mdi-device-signal-wifi-1-bar
|
|
||||||
- mdi-device-signal-wifi-2-bar
|
|
||||||
- mdi-device-signal-wifi-3-bar
|
|
||||||
- mdi-device-signal-wifi-4-bar
|
|
||||||
- mdi-device-signal-wifi-off
|
|
||||||
- mdi-device-signal-wifi-statusbar-1-bar
|
|
||||||
- mdi-device-signal-wifi-statusbar-2-bar
|
|
||||||
- mdi-device-signal-wifi-statusbar-3-bar
|
|
||||||
- mdi-device-signal-wifi-statusbar-4-bar
|
|
||||||
- mdi-device-signal-wifi-statusbar-connected-no-internet-
|
|
||||||
- mdi-device-signal-wifi-statusbar-connected-no-internet
|
|
||||||
- mdi-device-signal-wifi-statusbar-connected-no-internet-2
|
|
||||||
- mdi-device-signal-wifi-statusbar-connected-no-internet-3
|
|
||||||
- mdi-device-signal-wifi-statusbar-connected-no-internet-4
|
|
||||||
- mdi-signal-wifi-statusbar-not-connected-after
|
|
||||||
- mdi-device-signal-wifi-statusbar-not-connected
|
|
||||||
- mdi-device-signal-wifi-statusbar-null
|
|
||||||
- mdi-device-storage
|
|
||||||
- mdi-device-usb
|
|
||||||
- mdi-device-wifi-lock
|
|
||||||
- mdi-device-wifi-tethering
|
|
||||||
- mdi-hardware-cast-connected
|
|
||||||
- mdi-hardware-cast
|
|
||||||
- mdi-hardware-computer
|
|
||||||
- mdi-hardware-desktop-mac
|
|
||||||
- mdi-hardware-desktop-windows
|
|
||||||
- mdi-hardware-dock
|
|
||||||
- mdi-hardware-gamepad
|
|
||||||
- mdi-hardware-headset-mic
|
|
||||||
- mdi-hardware-headset
|
|
||||||
- mdi-hardware-keyboard-alt
|
|
||||||
- mdi-hardware-keyboard-arrow-down
|
|
||||||
- mdi-hardware-keyboard-arrow-left
|
|
||||||
- mdi-hardware-keyboard-arrow-right
|
|
||||||
- mdi-hardware-keyboard-arrow-up
|
|
||||||
- mdi-hardware-keyboard-backspace
|
|
||||||
- mdi-hardware-keyboard-capslock
|
|
||||||
- mdi-hardware-keyboard-control
|
|
||||||
- mdi-hardware-keyboard-hide
|
|
||||||
- mdi-hardware-keyboard-return
|
|
||||||
- mdi-hardware-keyboard-tab
|
|
||||||
- mdi-hardware-keyboard-voice
|
|
||||||
- mdi-hardware-keyboard
|
|
||||||
- mdi-hardware-laptop-chromebook
|
|
||||||
- mdi-hardware-laptop-mac
|
|
||||||
- mdi-hardware-laptop-windows
|
|
||||||
- mdi-hardware-laptop
|
|
||||||
- mdi-hardware-memory
|
|
||||||
- mdi-hardware-mouse
|
|
||||||
- mdi-hardware-phone-android
|
|
||||||
- mdi-hardware-phone-iphone
|
|
||||||
- mdi-hardware-phonelink-off
|
|
||||||
- mdi-hardware-phonelink
|
|
||||||
- mdi-hardware-security
|
|
||||||
- mdi-hardware-sim-card
|
|
||||||
- mdi-hardware-smartphone
|
|
||||||
- mdi-hardware-speaker
|
|
||||||
- mdi-hardware-tablet-android
|
|
||||||
- mdi-hardware-tablet-mac
|
|
||||||
- mdi-hardware-tablet
|
|
||||||
- mdi-hardware-tv
|
|
||||||
- mdi-hardware-watch
|
|
||||||
- mdi-image-add-to-photos
|
|
||||||
- mdi-image-adjust
|
|
||||||
- mdi-image-assistant-photo
|
|
||||||
- mdi-image-audiotrack
|
|
||||||
- mdi-image-blur-circular
|
|
||||||
- mdi-image-blur-linear
|
|
||||||
- mdi-image-blur-off
|
|
||||||
- mdi-image-blur-on
|
|
||||||
- mdi-image-brightness-1
|
|
||||||
- mdi-image-brightness-2
|
|
||||||
- mdi-image-brightness-3
|
|
||||||
- mdi-image-brightness-4
|
|
||||||
- mdi-image-brightness-5
|
|
||||||
- mdi-image-brightness-6
|
|
||||||
- mdi-image-brightness-7
|
|
||||||
- mdi-image-brush
|
|
||||||
- mdi-image-camera-alt
|
|
||||||
- mdi-image-camera-front
|
|
||||||
- mdi-image-camera-rear
|
|
||||||
- mdi-image-camera-roll
|
|
||||||
- mdi-image-camera
|
|
||||||
- mdi-image-center-focus-strong
|
|
||||||
- mdi-image-center-focus-weak
|
|
||||||
- mdi-image-collections
|
|
||||||
- mdi-image-color-lens
|
|
||||||
- mdi-image-colorize
|
|
||||||
- mdi-image-compare
|
|
||||||
- mdi-image-control-point-duplicate
|
|
||||||
- mdi-image-control-point
|
|
||||||
- mdi-image-crop-3-2
|
|
||||||
- mdi-image-crop-5-4
|
|
||||||
- mdi-image-crop-7-5
|
|
||||||
- mdi-image-crop-16-9
|
|
||||||
- mdi-image-crop-din
|
|
||||||
- mdi-image-crop-free
|
|
||||||
- mdi-image-crop-landscape
|
|
||||||
- mdi-image-crop-original
|
|
||||||
- mdi-image-crop-portrait
|
|
||||||
- mdi-image-crop-square
|
|
||||||
- mdi-image-crop
|
|
||||||
- mdi-image-dehaze
|
|
||||||
- mdi-image-details
|
|
||||||
- mdi-image-edit
|
|
||||||
- mdi-image-exposure-minus-1
|
|
||||||
- mdi-image-exposure-minus-2
|
|
||||||
- mdi-image-exposure-plus-1
|
|
||||||
- mdi-image-exposure-plus-2
|
|
||||||
- mdi-image-exposure-zero
|
|
||||||
- mdi-image-exposure
|
|
||||||
- mdi-image-filter-1
|
|
||||||
- mdi-image-filter-2
|
|
||||||
- mdi-image-filter-3
|
|
||||||
- mdi-image-filter-4
|
|
||||||
- mdi-image-filter-5
|
|
||||||
- mdi-image-filter-6
|
|
||||||
- mdi-image-filter-7
|
|
||||||
- mdi-image-filter-8
|
|
||||||
- mdi-image-filter-9-plus
|
|
||||||
- mdi-image-filter-9
|
|
||||||
- mdi-image-filter-b-and-w
|
|
||||||
- mdi-image-filter-center-focus
|
|
||||||
- mdi-image-filter-drama
|
|
||||||
- mdi-image-filter-frames
|
|
||||||
- mdi-image-filter-hdr
|
|
||||||
- mdi-image-filter-none
|
|
||||||
- mdi-image-filter-tilt-shift
|
|
||||||
- mdi-image-filter-vintage
|
|
||||||
- mdi-image-filter
|
|
||||||
- mdi-image-flare
|
|
||||||
- mdi-image-flash-auto
|
|
||||||
- mdi-image-flash-off
|
|
||||||
- mdi-image-flash-on
|
|
||||||
- mdi-image-flip
|
|
||||||
- mdi-image-gradient
|
|
||||||
- mdi-image-grain
|
|
||||||
- mdi-image-grid-off
|
|
||||||
- mdi-image-grid-on
|
|
||||||
- mdi-image-hdr-off
|
|
||||||
- mdi-image-hdr-on
|
|
||||||
- mdi-image-hdr-strong
|
|
||||||
- mdi-image-hdr-weak
|
|
||||||
- mdi-image-healing
|
|
||||||
- mdi-image-image-aspect-ratio
|
|
||||||
- mdi-image-image
|
|
||||||
- mdi-image-iso
|
|
||||||
- mdi-image-landscape
|
|
||||||
- mdi-image-leak-add
|
|
||||||
- mdi-image-leak-remove
|
|
||||||
- mdi-image-lens
|
|
||||||
- mdi-image-looks-3
|
|
||||||
- mdi-image-looks-4
|
|
||||||
- mdi-image-looks-5
|
|
||||||
- mdi-image-looks-6
|
|
||||||
- mdi-image-looks-one
|
|
||||||
- mdi-image-looks-two
|
|
||||||
- mdi-image-looks
|
|
||||||
- mdi-image-loupe
|
|
||||||
- mdi-image-movie-creation
|
|
||||||
- mdi-image-nature-people
|
|
||||||
- mdi-image-nature
|
|
||||||
- mdi-image-navigate-before
|
|
||||||
- mdi-image-navigate-next
|
|
||||||
- mdi-image-palette
|
|
||||||
- mdi-image-panorama-fisheye
|
|
||||||
- mdi-image-panorama-horizontal
|
|
||||||
- mdi-image-panorama-vertical
|
|
||||||
- mdi-image-panorama-wide-angle
|
|
||||||
- mdi-image-panorama
|
|
||||||
- mdi-image-photo-album
|
|
||||||
- mdi-image-photo-camera
|
|
||||||
- mdi-image-photo-library
|
|
||||||
- mdi-image-photo
|
|
||||||
- mdi-image-portrait
|
|
||||||
- mdi-image-remove-red-eye
|
|
||||||
- mdi-image-rotate-left
|
|
||||||
- mdi-image-rotate-right
|
|
||||||
- mdi-image-slideshow
|
|
||||||
- mdi-image-straighten
|
|
||||||
- mdi-image-style
|
|
||||||
- mdi-image-switch-camera
|
|
||||||
- mdi-image-switch-video
|
|
||||||
- mdi-image-tag-faces
|
|
||||||
- mdi-image-texture
|
|
||||||
- mdi-image-timelapse
|
|
||||||
- mdi-image-timer-3
|
|
||||||
- mdi-image-timer-10
|
|
||||||
- mdi-image-timer-auto
|
|
||||||
- mdi-image-timer-off
|
|
||||||
- mdi-image-timer
|
|
||||||
- mdi-image-tonality
|
|
||||||
- mdi-image-transform
|
|
||||||
- mdi-image-tune
|
|
||||||
- mdi-image-wb-auto
|
|
||||||
- mdi-image-wb-cloudy
|
|
||||||
- mdi-image-wb-incandescent
|
|
||||||
- mdi-image-wb-irradescent
|
|
||||||
- mdi-image-wb-sunny
|
|
||||||
- mdi-maps-beenhere
|
|
||||||
- mdi-maps-directions-bike
|
|
||||||
- mdi-maps-directions-bus
|
|
||||||
- mdi-maps-directions-car
|
|
||||||
- mdi-maps-directions-ferry
|
|
||||||
- mdi-maps-directions-subway
|
|
||||||
- mdi-maps-directions-train
|
|
||||||
- mdi-maps-directions-transit
|
|
||||||
- mdi-maps-directions-walk
|
|
||||||
- mdi-maps-directions
|
|
||||||
- mdi-maps-flight
|
|
||||||
- mdi-maps-hotel
|
|
||||||
- mdi-maps-layers-clear
|
|
||||||
- mdi-maps-layers
|
|
||||||
- mdi-maps-local-airport
|
|
||||||
- mdi-maps-local-atm
|
|
||||||
- mdi-maps-local-attraction
|
|
||||||
- mdi-maps-local-bar
|
|
||||||
- mdi-maps-local-cafe
|
|
||||||
- mdi-maps-local-car-wash
|
|
||||||
- mdi-maps-local-convenience-store
|
|
||||||
- mdi-maps-local-drink
|
|
||||||
- mdi-maps-local-florist
|
|
||||||
- mdi-maps-local-gas-station
|
|
||||||
- mdi-maps-local-grocery-store
|
|
||||||
- mdi-maps-local-hospital
|
|
||||||
- mdi-maps-local-hotel
|
|
||||||
- mdi-maps-local-laundry-service
|
|
||||||
- mdi-maps-local-library
|
|
||||||
- mdi-maps-local-mall
|
|
||||||
- mdi-maps-local-movies
|
|
||||||
- mdi-maps-local-offer
|
|
||||||
- mdi-maps-local-parking
|
|
||||||
- mdi-maps-local-pharmacy
|
|
||||||
- mdi-maps-local-phone
|
|
||||||
- mdi-maps-local-pizza
|
|
||||||
- mdi-maps-local-play
|
|
||||||
- mdi-maps-local-post-office
|
|
||||||
- mdi-maps-local-print-shop
|
|
||||||
- mdi-maps-local-restaurant
|
|
||||||
- mdi-maps-local-see
|
|
||||||
- mdi-maps-local-shipping
|
|
||||||
- mdi-maps-local-taxi
|
|
||||||
- mdi-maps-location-history
|
|
||||||
- mdi-maps-map
|
|
||||||
- mdi-maps-my-location
|
|
||||||
- mdi-maps-navigation
|
|
||||||
- mdi-maps-pin-drop
|
|
||||||
- mdi-maps-place
|
|
||||||
- mdi-maps-rate-review
|
|
||||||
- mdi-maps-restaurant-menu
|
|
||||||
- mdi-maps-satellite
|
|
||||||
- mdi-maps-store-mall-directory
|
|
||||||
- mdi-maps-terrain
|
|
||||||
- mdi-maps-traffic
|
|
||||||
- mdi-navigation-apps
|
|
||||||
- mdi-navigation-arrow-back
|
|
||||||
- mdi-navigation-arrow-drop-down-circle
|
|
||||||
- mdi-navigation-arrow-drop-down
|
|
||||||
- mdi-navigation-arrow-drop-up
|
|
||||||
- mdi-navigation-arrow-forward
|
|
||||||
- mdi-navigation-cancel
|
|
||||||
- mdi-navigation-check
|
|
||||||
- mdi-navigation-chevron-left
|
|
||||||
- mdi-navigation-chevron-right
|
|
||||||
- mdi-navigation-close
|
|
||||||
- mdi-navigation-expand-less
|
|
||||||
- mdi-navigation-expand-more
|
|
||||||
- mdi-navigation-fullscreen-exit
|
|
||||||
- mdi-navigation-fullscreen
|
|
||||||
- mdi-navigation-menu
|
|
||||||
- mdi-navigation-more-horiz
|
|
||||||
- mdi-navigation-more-vert
|
|
||||||
- mdi-navigation-refresh
|
|
||||||
- mdi-navigation-unfold-less
|
|
||||||
- mdi-navigation-unfold-more
|
|
||||||
- mdi-notification-adb
|
|
||||||
- mdi-notification-bluetooth-audio
|
|
||||||
- mdi-notification-disc-full
|
|
||||||
- mdi-notification-dnd-forwardslash
|
|
||||||
- mdi-notification-do-not-disturb
|
|
||||||
- mdi-notification-drive-eta
|
|
||||||
- mdi-notification-event-available
|
|
||||||
- mdi-notification-event-busy
|
|
||||||
- mdi-notification-event-note
|
|
||||||
- mdi-notification-folder-special
|
|
||||||
- mdi-notification-mms
|
|
||||||
- mdi-notification-more
|
|
||||||
- mdi-notification-network-locked
|
|
||||||
- mdi-notification-phone-bluetooth-speaker
|
|
||||||
- mdi-notification-phone-forwarded
|
|
||||||
- mdi-notification-phone-in-talk
|
|
||||||
- mdi-notification-phone-locked
|
|
||||||
- mdi-notification-phone-missed
|
|
||||||
- mdi-notification-phone-paused
|
|
||||||
- mdi-notification-play-download
|
|
||||||
- mdi-notification-play-install
|
|
||||||
- mdi-notification-sd-card
|
|
||||||
- mdi-notification-sim-card-alert
|
|
||||||
- mdi-notification-sms-failed
|
|
||||||
- mdi-notification-sms
|
|
||||||
- mdi-notification-sync-disabled
|
|
||||||
- mdi-notification-sync-problem
|
|
||||||
- mdi-notification-sync
|
|
||||||
- mdi-notification-system-update
|
|
||||||
- mdi-notification-tap-and-play
|
|
||||||
- mdi-notification-time-to-leave
|
|
||||||
- mdi-notification-vibration
|
|
||||||
- mdi-notification-voice-chat
|
|
||||||
- mdi-notification-vpn-lock
|
|
||||||
- mdi-social-cake
|
|
||||||
- mdi-social-domain
|
|
||||||
- mdi-social-group-add
|
|
||||||
- mdi-social-group
|
|
||||||
- mdi-social-location-city
|
|
||||||
- mdi-social-mood
|
|
||||||
- mdi-social-notifications-none
|
|
||||||
- mdi-social-notifications-off
|
|
||||||
- mdi-social-notifications-on
|
|
||||||
- mdi-social-notifications-paused
|
|
||||||
- mdi-social-notifications
|
|
||||||
- mdi-social-pages
|
|
||||||
- mdi-social-party-mode
|
|
||||||
- mdi-social-people-outline
|
|
||||||
- mdi-social-people
|
|
||||||
- mdi-social-person-add
|
|
||||||
- mdi-social-person-outline
|
|
||||||
- mdi-social-person
|
|
||||||
- mdi-social-plus-one
|
|
||||||
- mdi-social-poll
|
|
||||||
- mdi-social-public
|
|
||||||
- mdi-social-school
|
|
||||||
- mdi-social-share
|
|
||||||
- mdi-social-whatshot
|
|
||||||
- mdi-toggle-check-box-outline-blank
|
|
||||||
- mdi-toggle-check-box
|
|
||||||
- mdi-toggle-radio-button-off
|
|
||||||
- mdi-toggle-radio-button-on
|
|
||||||
- mdi-toggle-star-half
|
|
||||||
- mdi-toggle-star-outline
|
|
||||||
- mdi-toggle-star
|
|
|
@ -1,5 +0,0 @@
|
||||||
<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div>
|
|
||||||
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=fezvrastagithubiobootstrapmateri" id="_carbonads_js"></script>
|
|
||||||
<div id="fakecb">Seems like you are using AdBlock to hide banners... Carbon ADS are quite nice and don't take much space, you may consider disabling it on this website.<br>This is the only AD on the entire website.<br><br>Thanks!
|
|
||||||
</div>
|
|
||||||
</div></div>
|
|
|
@ -1,89 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="alerts" class="page-header">Alerts</h1>
|
|
||||||
|
|
||||||
<p class="lead">Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.</p>
|
|
||||||
|
|
||||||
<h2 id="alerts-examples">Examples</h2>
|
|
||||||
<p>Wrap any text and an optional dismiss button in <code>.alert</code> and one of the four contextual classes (e.g., <code>.alert-success</code>) for basic alert messages.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-alerts-no-default">
|
|
||||||
<h4>No default class</h4>
|
|
||||||
<p>Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-example" data-example-id="simple-alerts">
|
|
||||||
<div class="alert alert-success" role="alert">
|
|
||||||
<strong>Well done!</strong> You successfully read this important alert message.
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<strong>Heads up!</strong> This alert needs your attention, but it's not super important.
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-warning" role="alert">
|
|
||||||
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
<strong>Oh snap!</strong> Change a few things up and try submitting again.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="alert alert-success" role="alert">...</div>
|
|
||||||
<div class="alert alert-info" role="alert">...</div>
|
|
||||||
<div class="alert alert-warning" role="alert">...</div>
|
|
||||||
<div class="alert alert-danger" role="alert">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="alerts-dismissible">Dismissible alerts</h2>
|
|
||||||
<p>Build on any alert by adding an optional <code>.alert-dismissible</code> and close button.</p>
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-alerts-dismiss-plugin">
|
|
||||||
<h4>Requires JavaScript alert plugin</h4>
|
|
||||||
<p>For fully functioning, dismissible alerts, you must use the <a href="../javascript/#alerts">alerts JavaScript plugin</a>.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example" data-example-id="dismissible-alert-css">
|
|
||||||
<div class="alert alert-warning alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="alert alert-warning alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-alerts-dismiss-use-button">
|
|
||||||
<h4>Ensure proper behavior across all devices</h4>
|
|
||||||
<p>Be sure to use the <code><button></code> element with the <code>data-dismiss="alert"</code> data attribute.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="alerts-links">Links in alerts</h2>
|
|
||||||
<p>Use the <code>.alert-link</code> utility class to quickly provide matching colored links within any alert.</p>
|
|
||||||
<div class="bs-example" data-example-id="alerts-with-links">
|
|
||||||
<div class="alert alert-success" role="alert">
|
|
||||||
<strong>Well done!</strong> You successfully read <a href="#" class="alert-link">this important alert message</a>.
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<strong>Heads up!</strong> This <a href="#" class="alert-link">alert needs your attention</a>, but it's not super important.
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-warning" role="alert">
|
|
||||||
<strong>Warning!</strong> Better check yourself, you're <a href="#" class="alert-link">not looking too good</a>.
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
<strong>Oh snap!</strong> <a href="#" class="alert-link">Change a few things up</a> and try submitting again.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="alert alert-success" role="alert">
|
|
||||||
<a href="#" class="alert-link">...</a>
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-info" role="alert">
|
|
||||||
<a href="#" class="alert-link">...</a>
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-warning" role="alert">
|
|
||||||
<a href="#" class="alert-link">...</a>
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
<a href="#" class="alert-link">...</a>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,45 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="badges" class="page-header">Badges</h1>
|
|
||||||
|
|
||||||
<p class="lead">Easily highlight new or unread items by adding a <code><span class="badge"></code> to links, Bootstrap navs, and more.</p>
|
|
||||||
|
|
||||||
<div class="bs-example" data-example-id="simple-badges">
|
|
||||||
<a href="#">Inbox <span class="badge">42</span></a>
|
|
||||||
<br><br>
|
|
||||||
<button class="btn btn-primary" type="button">
|
|
||||||
Messages <span class="badge">4</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<a href="#">Inbox <span class="badge">42</span></a>
|
|
||||||
|
|
||||||
<button class="btn btn-primary" type="button">
|
|
||||||
Messages <span class="badge">4</span>
|
|
||||||
</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4>Self collapsing</h4>
|
|
||||||
<p>When there are no new or unread items, badges will simply collapse (via CSS's <code>:empty</code> selector) provided no content exists within.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-badges-ie8-empty">
|
|
||||||
<h4>Cross-browser compatibility</h4>
|
|
||||||
<p>Badges won't self collapse in Internet Explorer 8 because it lacks support for the <code>:empty</code> selector.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4>Adapts to active nav states</h4>
|
|
||||||
<p>Built-in styles are included for placing badges in active states in pill navigations.</p>
|
|
||||||
<div class="bs-example" data-example-id="badges-in-pills">
|
|
||||||
<ul class="nav nav-pills" role="tablist">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home <span class="badge">42</span></a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages <span class="badge">3</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="nav nav-pills" role="tablist">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home <span class="badge">42</span></a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages <span class="badge">3</span></a></li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,27 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="breadcrumbs" class="page-header">Breadcrumbs</h1>
|
|
||||||
|
|
||||||
<p class="lead">Indicate the current page's location within a navigational hierarchy.</p>
|
|
||||||
<p>Separators are automatically added in CSS through <code>:before</code> and <code>content</code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-breadcrumbs">
|
|
||||||
<ol class="breadcrumb">
|
|
||||||
<li class="active">Home</li>
|
|
||||||
</ol>
|
|
||||||
<ol class="breadcrumb">
|
|
||||||
<li><a href="#">Home</a></li>
|
|
||||||
<li class="active">Library</li>
|
|
||||||
</ol>
|
|
||||||
<ol class="breadcrumb">
|
|
||||||
<li><a href="#">Home</a></li>
|
|
||||||
<li><a href="#">Library</a></li>
|
|
||||||
<li class="active">Data</li>
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ol class="breadcrumb">
|
|
||||||
<li><a href="#">Home</a></li>
|
|
||||||
<li><a href="#">Library</a></li>
|
|
||||||
<li class="active">Data</li>
|
|
||||||
</ol>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,321 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="btn-dropdowns" class="page-header">Button dropdowns</h1>
|
|
||||||
|
|
||||||
<p class="lead">Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-btndropdown-dependency">
|
|
||||||
<h4>Plugin dependency</h4>
|
|
||||||
<p>Button dropdowns require the <a href="../javascript/#dropdowns">dropdown plugin</a> to be included in your version of Bootstrap.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="btn-dropdowns-single">Single button dropdowns</h2>
|
|
||||||
<p>Turn a button into a dropdown toggle with some basic markup changes.</p>
|
|
||||||
<div class="bs-example" data-example-id="single-button-dropdown">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Default <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Primary <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Success <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Info <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Warning <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Danger <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Single button -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Action <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="btn-dropdowns-split">Split button dropdowns</h2>
|
|
||||||
<p>Similarly, create split button dropdowns with the same markup changes, only with a separate button.</p>
|
|
||||||
<div class="bs-example" data-example-id="split-button-dropdown">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default">Default</button>
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-primary">Primary</button>
|
|
||||||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-success">Success</button>
|
|
||||||
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-info">Info</button>
|
|
||||||
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-warning">Warning</button>
|
|
||||||
<button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-danger">Danger</button>
|
|
||||||
<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Split button -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-danger">Action</button>
|
|
||||||
<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="btn-dropdowns-sizing">Sizing</h2>
|
|
||||||
<p>Button dropdowns work with buttons of all sizes.</p>
|
|
||||||
<div class="bs-example" data-example-id="button-dropdown-sizing">
|
|
||||||
<div class="btn-toolbar" role="toolbar">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-default btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Large button <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
</div><!-- /btn-toolbar -->
|
|
||||||
<div class="btn-toolbar" role="toolbar">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Small button <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
</div><!-- /btn-toolbar -->
|
|
||||||
<div class="btn-toolbar" role="toolbar">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Extra small button <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
</div><!-- /btn-toolbar -->
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Large button group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-default btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Large button <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Small button group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Small button <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Extra small button group -->
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Extra small button <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="btn-dropdowns-dropup">Dropup variation</h2>
|
|
||||||
<p>Trigger dropdown menus above elements by adding <code>.dropup</code> to the parent.</p>
|
|
||||||
<div class="bs-example" data-example-id="button-dropdown-dropup">
|
|
||||||
<div class="btn-toolbar" role="toolbar">
|
|
||||||
<div class="btn-group dropup">
|
|
||||||
<button type="button" class="btn btn-default">Dropup</button>
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<div class="btn-group dropup">
|
|
||||||
<button type="button" class="btn btn-primary">Right dropup</button>
|
|
||||||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu dropdown-menu-right">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group dropup">
|
|
||||||
<button type="button" class="btn btn-default">Dropup</button>
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<!-- Dropdown menu links -->
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,268 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="btn-groups" class="page-header">Button groups</h1>
|
|
||||||
|
|
||||||
<p class="lead">Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with <a href="../javascript/#buttons">our buttons plugin</a>.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-btn-group-tooltips">
|
|
||||||
<h4>Tooltips & popovers in button groups require special setting</h4>
|
|
||||||
<p>When using tooltips or popovers on elements within a <code>.btn-group</code>, you'll have to specify the option <code>container: 'body'</code> to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-btn-group-accessibility">
|
|
||||||
<h4>Ensure correct <code>role</code> and provide a label</h4>
|
|
||||||
<p>In order for assistive technologies – such as screen readers – to convey that a series of buttons is grouped, an appropriate <code>role</code> attribute needs to be provided. For button groups, this would be <code>role="group"</code>, while toolbars should have a <code>role="toolbar"</code>.</p>
|
|
||||||
<p>One exception are groups which only contain a single control (for instance the <a href="#btn-groups-justified">justified button groups</a> with <code><button></code> elements) or a dropdown.</p>
|
|
||||||
<p>In addition, groups and toolbars should be given an explicit label, as most assistive technologies will otherwise not announce them, despite the presence of the correct <code>role</code> attribute. In the examples provided here, we use <code>aria-label</code>, but alternatives such as <code>aria-labelledby</code> can also be used.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="btn-groups-single">Basic example</h2>
|
|
||||||
<p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-button-group">
|
|
||||||
<div class="btn-group" role="group" aria-label="Basic example">
|
|
||||||
<button type="button" class="btn btn-default">Left</button>
|
|
||||||
<button type="button" class="btn btn-default">Middle</button>
|
|
||||||
<button type="button" class="btn btn-default">Right</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group" role="group" aria-label="...">
|
|
||||||
<button type="button" class="btn btn-default">Left</button>
|
|
||||||
<button type="button" class="btn btn-default">Middle</button>
|
|
||||||
<button type="button" class="btn btn-default">Right</button>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="btn-groups-toolbar">Button toolbar</h2>
|
|
||||||
<p>Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-button-toolbar">
|
|
||||||
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
|
|
||||||
<div class="btn-group" role="group" aria-label="First group">
|
|
||||||
<button type="button" class="btn btn-default">1</button>
|
|
||||||
<button type="button" class="btn btn-default">2</button>
|
|
||||||
<button type="button" class="btn btn-default">3</button>
|
|
||||||
<button type="button" class="btn btn-default">4</button>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group" aria-label="Second group">
|
|
||||||
<button type="button" class="btn btn-default">5</button>
|
|
||||||
<button type="button" class="btn btn-default">6</button>
|
|
||||||
<button type="button" class="btn btn-default">7</button>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group" aria-label="Third group">
|
|
||||||
<button type="button" class="btn btn-default">8</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-toolbar" role="toolbar" aria-label="...">
|
|
||||||
<div class="btn-group" role="group" aria-label="...">...</div>
|
|
||||||
<div class="btn-group" role="group" aria-label="...">...</div>
|
|
||||||
<div class="btn-group" role="group" aria-label="...">...</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="btn-groups-sizing">Sizing</h2>
|
|
||||||
<p>Instead of applying button sizing classes to every button in a group, just add <code>.btn-group-*</code> to each <code>.btn-group</code>, including when nesting multiple groups.</p>
|
|
||||||
<div class="bs-example" data-example-id="button-group-sizing">
|
|
||||||
<div class="btn-group btn-group-lg" role="group" aria-label="Large button group">
|
|
||||||
<button type="button" class="btn btn-default">Left</button>
|
|
||||||
<button type="button" class="btn btn-default">Middle</button>
|
|
||||||
<button type="button" class="btn btn-default">Right</button>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="btn-group" role="group" aria-label="Default button group">
|
|
||||||
<button type="button" class="btn btn-default">Left</button>
|
|
||||||
<button type="button" class="btn btn-default">Middle</button>
|
|
||||||
<button type="button" class="btn btn-default">Right</button>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="btn-group btn-group-sm" role="group" aria-label="Small button group">
|
|
||||||
<button type="button" class="btn btn-default">Left</button>
|
|
||||||
<button type="button" class="btn btn-default">Middle</button>
|
|
||||||
<button type="button" class="btn btn-default">Right</button>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="btn-group btn-group-xs" role="group" aria-label="Extra-small button group">
|
|
||||||
<button type="button" class="btn btn-default">Left</button>
|
|
||||||
<button type="button" class="btn btn-default">Middle</button>
|
|
||||||
<button type="button" class="btn btn-default">Right</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group btn-group-lg" role="group" aria-label="...">...</div>
|
|
||||||
<div class="btn-group" role="group" aria-label="...">...</div>
|
|
||||||
<div class="btn-group btn-group-sm" role="group" aria-label="...">...</div>
|
|
||||||
<div class="btn-group btn-group-xs" role="group" aria-label="...">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="btn-groups-nested">Nesting</h2>
|
|
||||||
<p>Place a <code>.btn-group</code> within another <code>.btn-group</code> when you want dropdown menus mixed with a series of buttons.</p>
|
|
||||||
<div class="bs-example" data-example-id="button-group-nesting">
|
|
||||||
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
|
|
||||||
<button type="button" class="btn btn-default">1</button>
|
|
||||||
<button type="button" class="btn btn-default">2</button>
|
|
||||||
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button id="btnGroupDrop1" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group" role="group" aria-label="...">
|
|
||||||
<button type="button" class="btn btn-default">1</button>
|
|
||||||
<button type="button" class="btn btn-default">2</button>
|
|
||||||
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="btn-groups-vertical">Vertical variation</h2>
|
|
||||||
<p>Make a set of buttons appear vertically stacked rather than horizontally. <strong class="text-danger">Split button dropdowns are not supported here.</strong></p>
|
|
||||||
<div class="bs-example" data-example-id="vertical-button-group">
|
|
||||||
<div class="btn-group-vertical" role="group" aria-label="Vertical button group">
|
|
||||||
<button type="button" class="btn btn-default">Button</button>
|
|
||||||
<button type="button" class="btn btn-default">Button</button>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button id="btnGroupVerticalDrop1" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="btnGroupVerticalDrop1">
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<button type="button" class="btn btn-default">Button</button>
|
|
||||||
<button type="button" class="btn btn-default">Button</button>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button id="btnGroupVerticalDrop2" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="btnGroupVerticalDrop2">
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button id="btnGroupVerticalDrop3" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="btnGroupVerticalDrop3">
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button id="btnGroupVerticalDrop4" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="btnGroupVerticalDrop4">
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
<li><a href="#">Dropdown link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group-vertical" role="group" aria-label="...">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="btn-groups-justified">Justified button groups</h2>
|
|
||||||
<p>Make a group of buttons stretch at equal sizes to span the entire width of its parent. Also works with button dropdowns within the button group.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-btn-group-justified-dbl-border">
|
|
||||||
<h4>Handling borders</h4>
|
|
||||||
<p>Due to the specific HTML and CSS used to justify buttons (namely <code>display: table-cell</code>), the borders between them are doubled. In regular button groups, <code>margin-left: -1px</code> is used to stack the borders instead of removing them. However, <code>margin</code> doesn't work with <code>display: table-cell</code>. As a result, depending on your customizations to Bootstrap, you may wish to remove or re-color the borders.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-btn-group-ie8-border">
|
|
||||||
<h4>IE8 and borders</h4>
|
|
||||||
<p>Internet Explorer 8 doesn't render borders on buttons in a justified button group, whether it's on <code><a></code> or <code><button></code> elements. To get around that, wrap each button in another <code>.btn-group</code>.</p>
|
|
||||||
<p>See <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/12476">#12476</a> for more information.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4>With <code><a></code> elements</h4>
|
|
||||||
<p>Just wrap a series of <code>.btn</code>s in <code>.btn-group.btn-group-justified</code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-justified-button-group">
|
|
||||||
<div class="btn-group btn-group-justified" role="group" aria-label="Justified button group">
|
|
||||||
<a href="#" class="btn btn-default" role="button">Left</a>
|
|
||||||
<a href="#" class="btn btn-default" role="button">Middle</a>
|
|
||||||
<a href="#" class="btn btn-default" role="button">Right</a>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="btn-group btn-group-justified" role="group" aria-label="Justified button group with nested dropdown">
|
|
||||||
<a href="#" class="btn btn-default" role="button">Left</a>
|
|
||||||
<a href="#" class="btn btn-default" role="button">Middle</a>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown <span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group btn-group-justified" role="group" aria-label="...">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-btn-group-anchor-btn">
|
|
||||||
<h4>Links acting as buttons</h4>
|
|
||||||
<p>If the <code><a></code> elements are used to act as buttons – triggering in-page functionality, rather than navigating to another document or section within the current page – they should also be given an appropriate <code>role="button"</code>.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4>With <code><button></code> elements</h4>
|
|
||||||
<p>To use justified button groups with <code><button></code> elements, <strong class="text-danger">you must wrap each button in a button group</strong>. Most browsers don't properly apply our CSS for justification to <code><button></code> elements, but since we support button dropdowns, we can work around that.</p>
|
|
||||||
<div class="bs-example" data-example-id="button-tag-button-group-justified">
|
|
||||||
<div class="btn-group btn-group-justified" role="group" aria-label="Justified button group">
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button type="button" class="btn btn-default">Left</button>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button type="button" class="btn btn-default">Middle</button>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button type="button" class="btn btn-default">Right</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group btn-group-justified" role="group" aria-label="...">
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button type="button" class="btn btn-default">Left</button>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button type="button" class="btn btn-default">Middle</button>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<button type="button" class="btn btn-default">Right</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,156 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="dropdowns" class="page-header">Dropdowns</h1>
|
|
||||||
|
|
||||||
<p class="lead">Toggleable, contextual menu for displaying lists of links. Made interactive with the <a href="../javascript/#dropdowns">dropdown JavaScript plugin</a>.</p>
|
|
||||||
|
|
||||||
<h2 id="dropdowns-example">Example</h2>
|
|
||||||
<p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML.</p>
|
|
||||||
<div class="bs-example" data-example-id="static-dropdown">
|
|
||||||
<div class="dropdown clearfix">
|
|
||||||
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="dropdown">
|
|
||||||
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>Dropdown menus can be changed to expand upwards (instead of downwards) by adding <code>.dropup</code> to the parent.</p>
|
|
||||||
<div class="bs-example" data-example-id="static-dropup">
|
|
||||||
<div class="dropup clearfix">
|
|
||||||
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropup
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="dropup">
|
|
||||||
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropup
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="dropdowns-alignment">Alignment</h2>
|
|
||||||
<p>By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add <code>.dropdown-menu-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-dropdown-positioning">
|
|
||||||
<h4>May require additional positioning</h4>
|
|
||||||
<p>Dropdowns are automatically positioned via CSS within the normal flow of the document. This means dropdowns may be cropped by parents with certain <code>overflow</code> properties or appear out of bounds of the viewport. Address these issues on your own as they arise.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-dropdown-pull-right">
|
|
||||||
<h4>Deprecated <code>.pull-right</code> alignment</h4>
|
|
||||||
<p>As of v3.1.0, we've deprecated <code>.pull-right</code> on dropdown menus. To right-align a menu, use <code>.dropdown-menu-right</code>. Right-aligned nav components in the navbar use a mixin version of this class to automatically align the menu. To override it, use <code>.dropdown-menu-left</code>.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="dropdowns-headers">Headers</h2>
|
|
||||||
<p>Add a header to label sections of actions in any dropdown menu.</p>
|
|
||||||
<div class="bs-example">
|
|
||||||
<div class="dropdown clearfix">
|
|
||||||
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu3">
|
|
||||||
<li class="dropdown-header">Dropdown header</li>
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li class="dropdown-header">Dropdown header</li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu3">
|
|
||||||
...
|
|
||||||
<li class="dropdown-header">Dropdown header</li>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="dropdowns-divider">Divider</h2>
|
|
||||||
<p>Add a divider to separate series of links in a dropdown menu.</p>
|
|
||||||
<div class="bs-example">
|
|
||||||
<div class="dropdown clearfix">
|
|
||||||
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenuDivider" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuDivider">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuDivider">
|
|
||||||
...
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="dropdowns-disabled">Disabled menu items</h2>
|
|
||||||
<p>Add <code>.disabled</code> to a <code><li></code> in the dropdown to disable the link.</p>
|
|
||||||
<div class="bs-example">
|
|
||||||
<div class="dropdown clearfix">
|
|
||||||
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu4" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu4">
|
|
||||||
<li><a href="#">Regular link</a></li>
|
|
||||||
<li class="disabled"><a href="#">Disabled link</a></li>
|
|
||||||
<li><a href="#">Another link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu4">
|
|
||||||
<li><a href="#">Regular link</a></li>
|
|
||||||
<li class="disabled"><a href="#">Disabled link</a></li>
|
|
||||||
<li><a href="#">Another link</a></li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,95 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="icons" class="page-header">Icons</h1>
|
|
||||||
|
|
||||||
<h2 id="icons-glyphs">Available icons</h2>
|
|
||||||
<p>Includes {{ site.data.icons.size }} icons in font format.</p>
|
|
||||||
<div class="bmd-icons">
|
|
||||||
<ul class="bmd-icons-list">
|
|
||||||
{% for iconClassName in site.data.icons %}
|
|
||||||
<li>
|
|
||||||
<!--
|
|
||||||
<span class="glyphicon {{ iconClassName }}" aria-hidden="true"></span>
|
|
||||||
<span class="bmd-icon-class">glyphicon {{ iconClassName }}</span>
|
|
||||||
-->
|
|
||||||
<i class="{{ iconClassName }}" aria-hidden="true"></i>
|
|
||||||
<span class="bmd-icon-class">{{ iconClassName }}</span>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="icons-how-to-use">How to use</h2>
|
|
||||||
<p>For performance reasons, all icons require a base class and individual icon class. To use, place the following code just about anywhere. Be sure to leave a space between the icon and text for proper padding.</p>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-icons-dont-mix">
|
|
||||||
<h4>Don't mix with other components</h4>
|
|
||||||
<p>Icon classes cannot be directly combined with other components. They should not be used along with other classes on the same element. Instead, add a nested <code><span></code> and apply the icon classes to the <code><span></code>.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-icons-empty-only">
|
|
||||||
<h4>Only for use on empty elements</h4>
|
|
||||||
<p>Icon classes should only be used on elements that contain no text content and have no child elements.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-icons-location">
|
|
||||||
<h4>Changing the icon font location</h4>
|
|
||||||
<p>Bootstrap assumes icon font files will be located in the <code>../fonts/</code> directory, relative to the compiled CSS files. Moving or renaming those font files means updating the CSS in one of three ways:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Change the <code>@icon-font-path</code> and/or <code>@icon-font-name</code> variables in the source Less files.</li>
|
|
||||||
<li>Utilize the <a href="http://lesscss.org/usage/#command-line-usage-relative-urls">relative URLs option</a> provided by the Less compiler.</li>
|
|
||||||
<li>Change the <code>url()</code> paths in the compiled CSS.</li>
|
|
||||||
</ul>
|
|
||||||
<p>Use whatever option best suits your specific development setup.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-icons-accessibility">
|
|
||||||
<h4>Accessible icons</h4>
|
|
||||||
<p>Modern versions of assistive technologies will announce CSS generated content, as well as specific Unicode characters. To avoid unintended and confusing output in screen readers (particularly when icons are used purely for decoration), we hide them with the <code>aria-hidden="true"</code> attribute.</p>
|
|
||||||
<p>If you're using an icon to convey meaning (rather than only as a decorative element), ensure that this meaning is also conveyed to assistive technologies – for instance, include additional content, visually hidden with the <code>.sr-only</code> class.</p>
|
|
||||||
<p>If you're creating controls with no other text (such as a <code><button></code> that only contains an icon), you should always provide alternative content to identify the purpose of the control, so that it will make sense to users of assistive technologies. In this case, you could add an <code>aria-label</code> attribute on the control itself.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="icons-examples">Examples</h2>
|
|
||||||
<p>Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.</p>
|
|
||||||
<div class="bs-example" data-example-id="icons-general">
|
|
||||||
<div class="btn-toolbar" role="toolbar">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button type="button" class="btn btn-default" aria-label="Left Align"><span class="glyphicon glyphicon-align-left" aria-hidden="true"></span></button>
|
|
||||||
<button type="button" class="btn btn-default" aria-label="Center Align"><span class="glyphicon glyphicon-align-center" aria-hidden="true"></span></button>
|
|
||||||
<button type="button" class="btn btn-default" aria-label="Right Align"><span class="glyphicon glyphicon-align-right" aria-hidden="true"></span></button>
|
|
||||||
<button type="button" class="btn btn-default" aria-label="Justify"><span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="btn-toolbar" role="toolbar">
|
|
||||||
<button type="button" class="btn btn-default btn-lg"><span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star</button>
|
|
||||||
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star</button>
|
|
||||||
<button type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star</button>
|
|
||||||
<button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-default" aria-label="Left Align">
|
|
||||||
<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-default btn-lg">
|
|
||||||
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
|
|
||||||
</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>An icon used in an <a href="#alerts">alert</a> to convey that it's an error message, with additional <code>.sr-only</code> text to convey this hint to users of assistive technologies.</p>
|
|
||||||
<div class="bs-example" data-example-id="icons-accessibility">
|
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Error:</span>
|
|
||||||
Enter a valid email address
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Error:</span>
|
|
||||||
Enter a valid email address
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,365 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="input-groups" class="page-header">Input groups</h1>
|
|
||||||
|
|
||||||
<p class="lead">Extend form controls by adding text or buttons before, after, or on both sides of any text-based <code><input></code>. Use <code>.input-group</code> with an <code>.input-group-addon</code> or <code>.input-group-btn</code> to prepend or append elements to a single <code>.form-control</code>.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-inputgroup-text-input-only">
|
|
||||||
<h4>Textual <code><input></code>s only</h4>
|
|
||||||
<p>Avoid using <code><select></code> elements here as they cannot be fully styled in WebKit browsers.</p>
|
|
||||||
<p>Avoid using <code><textarea></code> elements here as their <code>rows</code> attribute will not be respected in some cases.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-inputgroup-container-body">
|
|
||||||
<h4>Tooltips & popovers in input groups require special setting</h4>
|
|
||||||
<p>When using tooltips or popovers on elements within an <code>.input-group</code>, you'll have to specify the option <code>container: 'body'</code> to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-inputgroup-dont-mix">
|
|
||||||
<h4>Don't mix with other components</h4>
|
|
||||||
<p>Do not mix form groups or grid column classes directly with input groups. Instead, nest the input group inside of the form group or grid-related element.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-inputgroup-form-labels">
|
|
||||||
<h4>Always add labels</h4>
|
|
||||||
<p>Screen readers will have trouble with your forms if you don't include a label for every input. For these input groups, ensure that any additional label or functionality is conveyed to assistive technologies.</p>
|
|
||||||
<p>The exact technique to be used (visible <code><label></code> elements, <code><label></code> elements hidden using the <code>.sr-only</code> class, or use of the <code>aria-label</code>, <code>aria-labelledby</code>, <code>aria-describedby</code>, <code>title</code> or <code>placeholder</code> attribute) and what additional information will need to be conveyed will vary depending on the exact type of interface widget you're implementing. The examples in this section provide a few suggested, case-specific approaches.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="input-groups-basic">Basic example</h2>
|
|
||||||
<p>Place one add-on or button on either side of an input. You may also place one on both sides of an input.</p>
|
|
||||||
<p><strong class="text-danger">We do not support multiple add-ons (<code>.input-group-addon</code> or <code>.input-group-btn</code>) on a single side.</strong></p>
|
|
||||||
<p><strong class="text-danger">We do not support multiple form-controls in a single input group.</strong></p>
|
|
||||||
<form class="bs-example bs-example-form" data-example-id="simple-input-groups">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon" id="basic-addon1">@</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1">
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2">
|
|
||||||
<span class="input-group-addon" id="basic-addon2">@example.com</span>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon">$</span>
|
|
||||||
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
|
|
||||||
<span class="input-group-addon">.00</span>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<label for="basic-url">Your vanity URL</label>
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon" id="basic-addon3">https://example.com/users/</span>
|
|
||||||
<input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon" id="basic-addon1">@</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2">
|
|
||||||
<span class="input-group-addon" id="basic-addon2">@example.com</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon">$</span>
|
|
||||||
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
|
|
||||||
<span class="input-group-addon">.00</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<label for="basic-url">Your vanity URL</label>
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon" id="basic-addon3">https://example.com/users/</span>
|
|
||||||
<input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="input-groups-sizing">Sizing</h2>
|
|
||||||
<p>Add the relative form sizing classes to the <code>.input-group</code> itself and contents within will automatically resize—no need for repeating the form control size classes on each element.</p>
|
|
||||||
<form class="bs-example bs-example-form" data-example-id="input-group-sizing">
|
|
||||||
<div class="input-group input-group-lg">
|
|
||||||
<span class="input-group-addon" id="sizing-addon1">@</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon1">
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon" id="sizing-addon2">@</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2">
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="input-group input-group-sm">
|
|
||||||
<span class="input-group-addon" id="sizing-addon3">@</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon3">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="input-group input-group-lg">
|
|
||||||
<span class="input-group-addon" id="sizing-addon1">@</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon1">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon" id="sizing-addon2">@</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group input-group-sm">
|
|
||||||
<span class="input-group-addon" id="sizing-addon3">@</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon3">
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="input-groups-checkboxes-radios">Checkboxes and radio addons</h2>
|
|
||||||
<p>Place any checkbox or radio option within an input group's addon instead of text.</p>
|
|
||||||
<form class="bs-example bs-example-form" data-example-id="input-group-with-checkbox-radio">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon">
|
|
||||||
<input type="checkbox" aria-label="Checkbox for following text input">
|
|
||||||
</span>
|
|
||||||
<input type="text" class="form-control" aria-label="Text input with checkbox">
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon">
|
|
||||||
<input type="radio" aria-label="Radio button for following text input">
|
|
||||||
</span>
|
|
||||||
<input type="text" class="form-control" aria-label="Text input with radio button">
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
</form>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon">
|
|
||||||
<input type="checkbox" aria-label="...">
|
|
||||||
</span>
|
|
||||||
<input type="text" class="form-control" aria-label="...">
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon">
|
|
||||||
<input type="radio" aria-label="...">
|
|
||||||
</span>
|
|
||||||
<input type="text" class="form-control" aria-label="...">
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="input-groups-buttons">Button addons</h2>
|
|
||||||
<p>Buttons in input groups are a bit different and require one extra level of nesting. Instead of <code>.input-group-addon</code>, you'll need to use <code>.input-group-btn</code> to wrap the buttons. This is required due to default browser styles that cannot be overridden.</p>
|
|
||||||
<form class="bs-example bs-example-form" data-example-id="input-group-with-button">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-default" type="button">Go!</button>
|
|
||||||
</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Search for...">
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Search for...">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-default" type="button">Go!</button>
|
|
||||||
</span>
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
</form>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-default" type="button">Go!</button>
|
|
||||||
</span>
|
|
||||||
<input type="text" class="form-control" placeholder="Search for...">
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Search for...">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-default" type="button">Go!</button>
|
|
||||||
</span>
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="input-groups-buttons-dropdowns">Buttons with dropdowns</h2>
|
|
||||||
<form class="bs-example bs-example-form" data-example-id="input-group-dropdowns">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<input type="text" class="form-control" aria-label="Text input with dropdown button">
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" aria-label="Text input with dropdown button">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu dropdown-menu-right">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
</form>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
<input type="text" class="form-control" aria-label="...">
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" aria-label="...">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu dropdown-menu-right">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /btn-group -->
|
|
||||||
</div><!-- /input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="input-groups-buttons-segmented">Segmented buttons</h2>
|
|
||||||
<form class="bs-example bs-example-form" data-example-id="input-group-segmented-buttons">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default">Action</button>
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<input type="text" class="form-control" aria-label="Text input with segmented button dropdown">
|
|
||||||
</div><!-- /.input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" aria-label="Text input with segmented button dropdown">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default">Action</button>
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
<span class="caret"></span>
|
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu dropdown-menu-right">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
</form>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<!-- Button and dropdown menu -->
|
|
||||||
</div>
|
|
||||||
<input type="text" class="form-control" aria-label="...">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" aria-label="...">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<!-- Button and dropdown menu -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="input-groups-buttons-multiple">Multiple buttons</h2>
|
|
||||||
<p>While you can only have one add-on per side, you can have multiple buttons inside a single <code>.input-group-btn</code>.</p>
|
|
||||||
<form class="bs-example bs-example-form" data-example-id="input-group-multiple-buttons">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default" aria-label="Bold"><span class="glyphicon glyphicon-bold"></span></button>
|
|
||||||
<button type="button" class="btn btn-default" aria-label="Italic"><span class="glyphicon glyphicon-italic"></span></button>
|
|
||||||
</div>
|
|
||||||
<input type="text" class="form-control" aria-label="Text input with multiple buttons">
|
|
||||||
</div><!-- /.input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" aria-label="Text input with multiple buttons">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button type="button" class="btn btn-default" aria-label="Help"><span class="glyphicon glyphicon-question-sign"></span></button>
|
|
||||||
<button type="button" class="btn btn-default">Action</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.input-group -->
|
|
||||||
</div><!-- /.col-lg-6 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
</form>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<!-- Buttons -->
|
|
||||||
</div>
|
|
||||||
<input type="text" class="form-control" aria-label="...">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control" aria-label="...">
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<!-- Buttons -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,27 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="jumbotron" class="page-header">Jumbotron</h1>
|
|
||||||
|
|
||||||
<p>A lightweight, flexible component that can optionally extend the entire viewport to showcase key content on your site.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-jumbotron">
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
|
|
||||||
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
<p>...</p>
|
|
||||||
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>To make the jumbotron full width, and without rounded corners, place it outside all <code>.container</code>s and instead add a <code>.container</code> within.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="jumbotron">
|
|
||||||
<div class="container">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,40 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="labels" class="page-header">Labels</h1>
|
|
||||||
|
|
||||||
<h2>Example</h2>
|
|
||||||
<div class="bs-example" data-example-id="labels-in-headings">
|
|
||||||
<h1>Example heading <span class="label label-default">New</span></h1>
|
|
||||||
<h2>Example heading <span class="label label-default">New</span></h2>
|
|
||||||
<h3>Example heading <span class="label label-default">New</span></h3>
|
|
||||||
<h4>Example heading <span class="label label-default">New</span></h4>
|
|
||||||
<h5>Example heading <span class="label label-default">New</span></h5>
|
|
||||||
<h6>Example heading <span class="label label-default">New</span></h6>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<h3>Example heading <span class="label label-default">New</span></h3>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2>Available variations</h2>
|
|
||||||
<p>Add any of the below mentioned modifier classes to change the appearance of a label.</p>
|
|
||||||
<div class="bs-example" data-example-id="label-variants">
|
|
||||||
<span class="label label-default">Default</span>
|
|
||||||
<span class="label label-primary">Primary</span>
|
|
||||||
<span class="label label-success">Success</span>
|
|
||||||
<span class="label label-info">Info</span>
|
|
||||||
<span class="label label-warning">Warning</span>
|
|
||||||
<span class="label label-danger">Danger</span>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<span class="label label-default">Default</span>
|
|
||||||
<span class="label label-primary">Primary</span>
|
|
||||||
<span class="label label-success">Success</span>
|
|
||||||
<span class="label label-info">Info</span>
|
|
||||||
<span class="label label-warning">Warning</span>
|
|
||||||
<span class="label label-danger">Danger</span>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-labels-inline-block">
|
|
||||||
<h4>Have tons of labels?</h4>
|
|
||||||
<p>Rendering problems can arise when you have dozens of inline labels within a narrow container, each containing its own <code>inline-block</code> element (like an icon). The way around this is setting <code>display: inline-block;</code>. For context and an example, <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/13219">see #13219</a>.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,188 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="list-group" class="page-header">List group</h1>
|
|
||||||
|
|
||||||
<p class="lead">List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.</p>
|
|
||||||
|
|
||||||
<h2 id="list-group-basic">Basic example</h2>
|
|
||||||
<p>The most basic list group is simply an unordered list with list items, and the proper classes. Build upon it with the options that follow, or your own CSS as needed.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-list-group">
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item">Cras justo odio</li>
|
|
||||||
<li class="list-group-item">Dapibus ac facilisis in</li>
|
|
||||||
<li class="list-group-item">Morbi leo risus</li>
|
|
||||||
<li class="list-group-item">Porta ac consectetur ac</li>
|
|
||||||
<li class="list-group-item">Vestibulum at eros</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item">Cras justo odio</li>
|
|
||||||
<li class="list-group-item">Dapibus ac facilisis in</li>
|
|
||||||
<li class="list-group-item">Morbi leo risus</li>
|
|
||||||
<li class="list-group-item">Porta ac consectetur ac</li>
|
|
||||||
<li class="list-group-item">Vestibulum at eros</li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="list-group-badges">Badges</h2>
|
|
||||||
<p>Add the badges component to any list group item and it will automatically be positioned on the right.</p>
|
|
||||||
<div class="bs-example" data-example-id="list-group-badges">
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="badge">14</span>
|
|
||||||
Cras justo odio
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="badge">2</span>
|
|
||||||
Dapibus ac facilisis in
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="badge">1</span>
|
|
||||||
Morbi leo risus
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="badge">14</span>
|
|
||||||
Cras justo odio
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="list-group-linked">Linked items</h2>
|
|
||||||
<p>Linkify list group items by using anchor tags instead of list items (that also means a parent <code><div></code> instead of an <code><ul></code>). No need for individual parents around each element.</p>
|
|
||||||
<div class="bs-example" data-example-id="list-group-anchors">
|
|
||||||
<div class="list-group">
|
|
||||||
<a href="#" class="list-group-item active">
|
|
||||||
Cras justo odio
|
|
||||||
</a>
|
|
||||||
<a href="#" class="list-group-item">Dapibus ac facilisis in</a>
|
|
||||||
<a href="#" class="list-group-item">Morbi leo risus</a>
|
|
||||||
<a href="#" class="list-group-item">Porta ac consectetur ac</a>
|
|
||||||
<a href="#" class="list-group-item">Vestibulum at eros</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="list-group">
|
|
||||||
<a href="#" class="list-group-item active">
|
|
||||||
Cras justo odio
|
|
||||||
</a>
|
|
||||||
<a href="#" class="list-group-item">Dapibus ac facilisis in</a>
|
|
||||||
<a href="#" class="list-group-item">Morbi leo risus</a>
|
|
||||||
<a href="#" class="list-group-item">Porta ac consectetur ac</a>
|
|
||||||
<a href="#" class="list-group-item">Vestibulum at eros</a>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="list-group-buttons">Button items</h2>
|
|
||||||
<p>List group items may be buttons instead of list items (that also means a parent <code><div></code> instead of an <code><ul></code>). No need for individual parents around each element. <strong class="text-danger">Don't use the standard <code>.btn</code> classes here.</strong></p>
|
|
||||||
<div class="bs-example" data-example-id="list-group-btns">
|
|
||||||
<div class="list-group">
|
|
||||||
<button type="button" class="list-group-item">Cras justo odio</button>
|
|
||||||
<button type="button" class="list-group-item">Dapibus ac facilisis in</button>
|
|
||||||
<button type="button" class="list-group-item">Morbi leo risus</button>
|
|
||||||
<button type="button" class="list-group-item">Porta ac consectetur ac</button>
|
|
||||||
<button type="button" class="list-group-item">Vestibulum at eros</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="list-group">
|
|
||||||
<button type="button" class="list-group-item">Cras justo odio</button>
|
|
||||||
<button type="button" class="list-group-item">Dapibus ac facilisis in</button>
|
|
||||||
<button type="button" class="list-group-item">Morbi leo risus</button>
|
|
||||||
<button type="button" class="list-group-item">Porta ac consectetur ac</button>
|
|
||||||
<button type="button" class="list-group-item">Vestibulum at eros</button>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="list-group-disabled">Disabled items</h2>
|
|
||||||
<p>Add <code>.disabled</code> to a <code>.list-group-item</code> to gray it out to appear disabled.</p>
|
|
||||||
<div class="bs-example" data-example-id="list-group-disabled">
|
|
||||||
<div class="list-group">
|
|
||||||
<a href="#" class="list-group-item disabled">
|
|
||||||
Cras justo odio
|
|
||||||
</a>
|
|
||||||
<a href="#" class="list-group-item">Dapibus ac facilisis in</a>
|
|
||||||
<a href="#" class="list-group-item">Morbi leo risus</a>
|
|
||||||
<a href="#" class="list-group-item">Porta ac consectetur ac</a>
|
|
||||||
<a href="#" class="list-group-item">Vestibulum at eros</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="list-group">
|
|
||||||
<a href="#" class="list-group-item disabled">
|
|
||||||
Cras justo odio
|
|
||||||
</a>
|
|
||||||
<a href="#" class="list-group-item">Dapibus ac facilisis in</a>
|
|
||||||
<a href="#" class="list-group-item">Morbi leo risus</a>
|
|
||||||
<a href="#" class="list-group-item">Porta ac consectetur ac</a>
|
|
||||||
<a href="#" class="list-group-item">Vestibulum at eros</a>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="list-group-contextual-classes">Contextual classes</h2>
|
|
||||||
<p>Use contextual classes to style list items, default or linked. Also includes <code>.active</code> state.</p>
|
|
||||||
<div class="bs-example" data-example-id="list-group-variants">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item list-group-item-success">Dapibus ac facilisis in</li>
|
|
||||||
<li class="list-group-item list-group-item-info">Cras sit amet nibh libero</li>
|
|
||||||
<li class="list-group-item list-group-item-warning">Porta ac consectetur ac</li>
|
|
||||||
<li class="list-group-item list-group-item-danger">Vestibulum at eros</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="list-group">
|
|
||||||
<a href="#" class="list-group-item list-group-item-success">Dapibus ac facilisis in</a>
|
|
||||||
<a href="#" class="list-group-item list-group-item-info">Cras sit amet nibh libero</a>
|
|
||||||
<a href="#" class="list-group-item list-group-item-warning">Porta ac consectetur ac</a>
|
|
||||||
<a href="#" class="list-group-item list-group-item-danger">Vestibulum at eros</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item list-group-item-success">Dapibus ac facilisis in</li>
|
|
||||||
<li class="list-group-item list-group-item-info">Cras sit amet nibh libero</li>
|
|
||||||
<li class="list-group-item list-group-item-warning">Porta ac consectetur ac</li>
|
|
||||||
<li class="list-group-item list-group-item-danger">Vestibulum at eros</li>
|
|
||||||
</ul>
|
|
||||||
<div class="list-group">
|
|
||||||
<a href="#" class="list-group-item list-group-item-success">Dapibus ac facilisis in</a>
|
|
||||||
<a href="#" class="list-group-item list-group-item-info">Cras sit amet nibh libero</a>
|
|
||||||
<a href="#" class="list-group-item list-group-item-warning">Porta ac consectetur ac</a>
|
|
||||||
<a href="#" class="list-group-item list-group-item-danger">Vestibulum at eros</a>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="list-group-custom-content">Custom content</h2>
|
|
||||||
<p>Add nearly any HTML within, even for linked list groups like the one below.</p>
|
|
||||||
<div class="bs-example" data-example-id="list-group-custom-content">
|
|
||||||
<div class="list-group">
|
|
||||||
<a href="#" class="list-group-item active">
|
|
||||||
<h4 class="list-group-item-heading">List group item heading</h4>
|
|
||||||
<p class="list-group-item-text">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
|
|
||||||
</a>
|
|
||||||
<a href="#" class="list-group-item">
|
|
||||||
<h4 class="list-group-item-heading">List group item heading</h4>
|
|
||||||
<p class="list-group-item-text">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
|
|
||||||
</a>
|
|
||||||
<a href="#" class="list-group-item">
|
|
||||||
<h4 class="list-group-item-heading">List group item heading</h4>
|
|
||||||
<p class="list-group-item-text">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="list-group">
|
|
||||||
<a href="#" class="list-group-item active">
|
|
||||||
<h4 class="list-group-item-heading">List group item heading</h4>
|
|
||||||
<p class="list-group-item-text">...</p>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,207 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="media" class="page-header">Media object</h1>
|
|
||||||
|
|
||||||
<p class="lead">Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.</p>
|
|
||||||
|
|
||||||
<h2 id="media-default">Default media</h2>
|
|
||||||
<p>The default media displays a media object (images, video, audio) to the left or right of a content block.</p>
|
|
||||||
<div class="bs-example" data-example-id="default-media">
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Media heading</h4>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Media heading</h4>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Nested media heading</h4>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Media heading</h4>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
|
|
||||||
</div>
|
|
||||||
<div class="media-right">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Media heading</h4>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
|
|
||||||
</div>
|
|
||||||
<div class="media-right">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.bs-example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" src="..." alt="...">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Media heading</h4>
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>The classes <code>.pull-left</code> and <code>.pull-right</code> also exist and were previously used as part of the media component, but are deprecated for that use as of v3.3.0. They are approximately equivalent to <code>.media-left</code> and <code>.media-right</code>, except that <code>.media-right</code> should be placed after the <code>.media-body</code> in the html.</p>
|
|
||||||
<h2 id="media-alignment">Media alignment</h2>
|
|
||||||
<p>The images or other media can be aligned top, middle, or bottom. The default is top aligned.</p>
|
|
||||||
<div class="bs-example" data-example-id="media-alignment">
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Top aligned media</h4>
|
|
||||||
<p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
|
|
||||||
<p>Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left media-middle">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Middle aligned media</h4>
|
|
||||||
<p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
|
|
||||||
<p>Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left media-bottom">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Bottom aligned media</h4>
|
|
||||||
<p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
|
|
||||||
<p>Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left media-middle">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" src="..." alt="...">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Middle aligned media</h4>
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="media-list">Media list</h2>
|
|
||||||
<p>With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).</p>
|
|
||||||
<div class="bs-example" data-example-id="media-list">
|
|
||||||
<ul class="media-list">
|
|
||||||
<li class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Media heading</h4>
|
|
||||||
<p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.</p>
|
|
||||||
<!-- Nested media object -->
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Nested media heading</h4>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
|
|
||||||
<!-- Nested media object -->
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Nested media heading</h4>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Nested media object -->
|
|
||||||
<div class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" data-src="holder.js/64x64" alt="Generic placeholder image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Nested media heading</h4>
|
|
||||||
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="media-list">
|
|
||||||
<li class="media">
|
|
||||||
<div class="media-left">
|
|
||||||
<a href="#">
|
|
||||||
<img class="media-object" src="..." alt="...">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="media-body">
|
|
||||||
<h4 class="media-heading">Media heading</h4>
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,461 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="navbar" class="page-header">Navbar</h1>
|
|
||||||
|
|
||||||
<h2 id="navbar-default">Default navbar</h2>
|
|
||||||
<p>Navbars are responsive meta components that serve as navigation headers for your application or site. They begin collapsed (and are toggleable) in mobile views and become horizontal as the available viewport width increases.</p>
|
|
||||||
<p><strong class="text-danger">Justified navbar nav links are currently not supported.</strong></p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navbar-overflow">
|
|
||||||
<h4>Overflowing content</h4>
|
|
||||||
<p>Since Bootstrap doesn't know how much space the content in your navbar needs, you might run into issues with content wrapping into a second row. To resolve this, you can:</p>
|
|
||||||
<ol type="a">
|
|
||||||
<li>Reduce the amount or width of navbar items.</li>
|
|
||||||
<li>Hide certain navbar items at certain screen sizes using <a href="../css/#responsive-utilities">responsive utility classes</a>.</li>
|
|
||||||
<li>Change the point at which your navbar switches between collapsed and horizontal mode. Customize the <code>@grid-float-breakpoint</code> variable or add your own media query.</li>
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-navbar-js">
|
|
||||||
<h4>Requires JavaScript plugin</h4>
|
|
||||||
<p>If JavaScript is disabled and the viewport is narrow enough that the navbar collapses, it will be impossible to expand the navbar and view the content within the <code>.navbar-collapse</code>.</p>
|
|
||||||
<p>The responsive navbar requires the <a href="../javascript/#collapse">collapse plugin</a> to be included in your version of Bootstrap.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-navbar-breakpoint">
|
|
||||||
<h4>Changing the collapsed mobile navbar breakpoint</h4>
|
|
||||||
<p>The navbar collapses into its vertical mobile view when the viewport is narrower than <code>@grid-float-breakpoint</code>, and expands into its horizontal non-mobile view when the viewport is at least <code>@grid-float-breakpoint</code> in width. Adjust this variable in the Less source to control when the navbar collapses/expands. The default value is <code>768px</code> (the smallest "small" or "tablet" screen).</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navbar-role">
|
|
||||||
<h4>Make navbars accessible</h4>
|
|
||||||
<p>Be sure to use a <code><nav></code> element or, if using a more generic element such as a <code><div></code>, add a <code>role="navigation"</code> to every navbar to explicitly identify it as a landmark region for users of assistive technologies.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-example" data-example-id="default-navbar">
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">One more separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<form class="navbar-form navbar-left" role="search">
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Search">
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-default">Submit</button>
|
|
||||||
</form>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.navbar-collapse -->
|
|
||||||
</div><!-- /.container-fluid -->
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">One more separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<form class="navbar-form navbar-left" role="search">
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Search">
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-default">Submit</button>
|
|
||||||
</form>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.navbar-collapse -->
|
|
||||||
</div><!-- /.container-fluid -->
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-brand-image">Brand image</h2>
|
|
||||||
<p>Replace the navbar brand with your own image by swapping the text for an <code><img></code>. Since the <code>.navbar-brand</code> has its own padding and height, you may need to override some CSS depending on your image.</p>
|
|
||||||
<div class="bs-example" data-example-id="navbar-with-image-brand">
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<a class="navbar-brand" href="#">
|
|
||||||
<img alt="Brand" width="20" height="20" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA81BMVEX///9VPnxWPXxWPXxWPXxWPXxWPXxWPXz///9hSYT6+vuFc6BXPn37+vz8+/z9/f2LeqWMe6aOfqiTg6uXiK5bQ4BZQX9iS4VdRYFdRYJfSINuWI5vWY9xXJF0YJR3Y5Z4ZZd5ZZd6Z5h9apq0qcW1qsW1q8a6sMqpnLyrn76tocCvpMGwpMJoUoprVYxeRoJjS4abjLGilLemmbrDutDFvdLPx9nX0eDa1OLb1uPd1+Td2OXe2eXh3Ofj3+nk4Orl4evp5u7u7PLv7fPx7/T08vb08/f19Pf29Pj39vn6+fuEcZ9YP35aQn/8/P1ZQH5fR4PINAOdAAAAB3RSTlMAIWWOw/P002ipnAAAAPhJREFUeF6NldWOhEAUBRvtRsfdfd3d3e3/v2ZPmGSWZNPDqScqqaSBSy4CGJbtSi2ubRkiwXRkBo6ZdJIApeEwoWMIS1JYwuZCW7hc6ApJkgrr+T/eW1V9uKXS5I5GXAjW2VAV9KFfSfgJpk+w4yXhwoqwl5AIGwp4RPgdK3XNHD2ETYiwe6nUa18f5jYSxle4vulw7/EtoCdzvqkPv3bn7M0eYbc7xFPXzqCrRCgH0Hsm/IjgTSb04W0i7EGjz+xw+wR6oZ1MnJ9TWrtToEx+4QfcZJ5X6tnhw+nhvqebdVhZUJX/oFcKvaTotUcvUnY188ue/n38AunzPPE8yg7bAAAAAElFTkSuQmCC">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<a class="navbar-brand" href="#">
|
|
||||||
<img alt="Brand" src="...">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-forms">Forms</h2>
|
|
||||||
<p>Place form content within <code>.navbar-form</code> for proper vertical alignment and collapsed behavior in narrow viewports. Use the alignment options to decide where it resides within the navbar content.</p>
|
|
||||||
<p>As a heads up, <code>.navbar-form</code> shares much of its code with <code>.form-inline</code> via mixin. <strong class="text-danger">Some form controls, like input groups, may require fixed widths to be show up properly within a navbar.</strong></p>
|
|
||||||
<div class="bs-example" data-example-id="navbar-form">
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
|
|
||||||
<form class="navbar-form navbar-left" role="search">
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Search">
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-default">Submit</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<form class="navbar-form navbar-left" role="search">
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Search">
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-default">Submit</button>
|
|
||||||
</form>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navbar-mobile-caveats">
|
|
||||||
<h4>Mobile device caveats</h4>
|
|
||||||
<p>There are some caveats regarding using form controls within fixed elements on mobile devices. <a href="../getting-started/#support-fixed-position-keyboards">See our browser support docs</a> for details.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navbar-form-labels">
|
|
||||||
<h4>Always add labels</h4>
|
|
||||||
<p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the <code>.sr-only</code> class. There are further alternative methods of providing a label for assistive technologies, such as the <code>aria-label</code>, <code>aria-labelledby</code> or <code>title</code> attribute. If none of these is present, screen readers may resort to using the <code>placeholder</code> attribute, if present, but note that use of <code>placeholder</code> as a replacement for other labelling methods is not advised.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-buttons">Buttons</h2>
|
|
||||||
<p>Add the <code>.navbar-btn</code> class to <code><button></code> elements not residing in a <code><form></code> to vertically center them in the navbar.</p>
|
|
||||||
<div class="bs-example" data-example-id="navbar-button">
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-3" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-3">
|
|
||||||
<button type="button" class="btn btn-default navbar-btn">Sign in</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-default navbar-btn">Sign in</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navbar-btn-context">
|
|
||||||
<h4>Context-specific usage</h4>
|
|
||||||
<p>Like the standard <a href="../css/#buttons">button classes</a>, <code>.navbar-btn</code> can be used on <code><a></code> and <code><input></code> elements. However, neither <code>.navbar-btn</code> nor the standard button classes should be used on <code><a></code> elements within <code>.navbar-nav</code>.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="navbar-text">Text</h2>
|
|
||||||
<p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code><p></code> tag for proper leading and color.</p>
|
|
||||||
<div class="bs-example" data-example-id="navbar-text">
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-4" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-4">
|
|
||||||
<p class="navbar-text">Signed in as Mark Otto</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p class="navbar-text">Signed in as Mark Otto</p>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-links">Non-nav links</h2>
|
|
||||||
<p>For folks using standard links that are not within the regular navbar navigation component, use the <code>.navbar-link</code> class to add the proper colors for the default and inverse navbar options.</p>
|
|
||||||
<div class="bs-example" data-example-id="navbar-link">
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-5" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-5">
|
|
||||||
<p class="navbar-text navbar-right">Signed in as <a href="#" class="navbar-link">Mark Otto</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p class="navbar-text navbar-right">Signed in as <a href="#" class="navbar-link">Mark Otto</a></p>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-component-alignment">Component alignment</h2>
|
|
||||||
<p>Align nav links, forms, buttons, or text, using the <code>.navbar-left</code> or <code>.navbar-right</code> utility classes. Both classes will add a CSS float in the specified direction. For example, to align nav links, put them in a separate <code><ul></code> with the respective utility class applied.</p>
|
|
||||||
<p>These classes are mixin-ed versions of <code>.pull-left</code> and <code>.pull-right</code>, but they're scoped to media queries for easier handling of navbar components across device sizes.</p>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navbar-right-align">
|
|
||||||
<h4>Right aligning multiple components</h4>
|
|
||||||
<p>Navbars currently have a limitation with multiple <code>.navbar-right</code> classes. To properly space content, we use negative margin on the last <code>.navbar-right</code> element. When there are multiple elements using that class, these margins don't work as intended.</p>
|
|
||||||
<p>We'll revisit this when we can rewrite that component in v4.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-fixed-top">Fixed to top</h2>
|
|
||||||
<p>Add <code>.navbar-fixed-top</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p>
|
|
||||||
<div class="bs-example bs-navbar-top-example" data-example-id="navbar-fixed-to-top">
|
|
||||||
<nav class="navbar navbar-default navbar-fixed-top">
|
|
||||||
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-6" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-6">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.navbar-collapse -->
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<nav class="navbar navbar-default navbar-fixed-top">
|
|
||||||
<div class="container">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-navbar-fixed-top-padding">
|
|
||||||
<h4>Body padding required</h4>
|
|
||||||
<p>The fixed navbar will overlay your other content, unless you add <code>padding</code> to the top of the <code><body></code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
body { padding-top: 70px; }
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>Make sure to include this <strong>after</strong> the core Bootstrap CSS.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-fixed-bottom">Fixed to bottom</h2>
|
|
||||||
<p>Add <code>.navbar-fixed-bottom</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p>
|
|
||||||
<div class="bs-example bs-navbar-bottom-example" data-example-id="navbar-fixed-to-bottom">
|
|
||||||
<nav class="navbar navbar-default navbar-fixed-bottom">
|
|
||||||
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-7" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-7">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.navbar-collapse -->
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<nav class="navbar navbar-default navbar-fixed-bottom">
|
|
||||||
<div class="container">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-navbar-fixed-bottom-padding">
|
|
||||||
<h4>Body padding required</h4>
|
|
||||||
<p>The fixed navbar will overlay your other content, unless you add <code>padding</code> to the bottom of the <code><body></code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
body { padding-bottom: 70px; }
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>Make sure to include this <strong>after</strong> the core Bootstrap CSS.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-static-top">Static top</h2>
|
|
||||||
<p>Create a full-width navbar that scrolls away with the page by adding <code>.navbar-static-top</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p>
|
|
||||||
<p>Unlike the <code>.navbar-fixed-*</code> classes, you do not need to change any padding on the <code>body</code>.</p>
|
|
||||||
<div class="bs-example bs-navbar-top-example" data-example-id="navbar-static-top">
|
|
||||||
<nav class="navbar navbar-default navbar-static-top">
|
|
||||||
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-8" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-8">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.navbar-collapse -->
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<nav class="navbar navbar-default navbar-static-top">
|
|
||||||
<div class="container">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-inverted">Inverted navbar</h2>
|
|
||||||
<p>Modify the look of the navbar by adding <code>.navbar-inverse</code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="inverted-navbar">
|
|
||||||
<nav class="navbar navbar-inverse">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-9" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Brand</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-9">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.navbar-collapse -->
|
|
||||||
</div><!-- /.container-fluid -->
|
|
||||||
</nav>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<nav class="navbar navbar-inverse">
|
|
||||||
...
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,189 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="nav" class="page-header">Navs</h1>
|
|
||||||
|
|
||||||
<p class="lead">Navs available in Bootstrap have shared markup, starting with the base <code>.nav</code> class, as well as shared states. Swap modifier classes to switch between each style.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-navs-tabs-plugin">
|
|
||||||
<h4>Using navs for tab panels requires JavaScript tabs plugin</h4>
|
|
||||||
<p>For tabs with tabbable areas, you must use the <a href="../javascript/#tabs">tabs JavaScript plugin</a>. The markup will also require additional <code>role</code> and ARIA attributes – see the plugin's <a href="../javascript/#tabs-usage">example markup</a> for further details.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navs-accessibility">
|
|
||||||
<h4>Make navs used as navigation accessible</h4>
|
|
||||||
<p>If you are using navs to provide a navigation bar, be sure to add a <code>role="navigation"</code> to the most logical parent container of the <code><ul></code>, or wrap a <code><nav></code> element around the whole navigation. Do not add the role to the <code><ul></code> itself, as this would prevent it from being announced as an actual list by assistive technologies.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="nav-tabs">Tabs</h2>
|
|
||||||
<p>Note the <code>.nav-tabs</code> class requires the <code>.nav</code> base class.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-nav-tabs">
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages</a></li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="nav-pills">Pills</h2>
|
|
||||||
<p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-nav-pills">
|
|
||||||
<ul class="nav nav-pills">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="nav nav-pills">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages</a></li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>Pills are also vertically stackable. Just add <code>.nav-stacked</code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-nav-stacked">
|
|
||||||
<ul class="nav nav-pills nav-stacked nav-pills-stacked-example">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="nav nav-pills nav-stacked">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="nav-justified">Justified</h2>
|
|
||||||
<p>Easily make tabs or pills equal widths of their parent at screens wider than 768px with <code>.nav-justified</code>. On smaller screens, the nav links are stacked.</p>
|
|
||||||
<p><strong class="text-danger">Justified navbar nav links are currently not supported.</strong></p>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navs-justified-safari">
|
|
||||||
<h4>Safari and responsive justified navs</h4>
|
|
||||||
<p>As of v8.0, Safari exhibits a bug in which resizing your browser horizontally causes rendering errors in the justified nav that are cleared upon refreshing. This bug is also shown in the <a href="../examples/justified-nav/">justified nav example</a>.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example" data-example-id="simple-nav-justified">
|
|
||||||
<ul class="nav nav-tabs nav-justified">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages</a></li>
|
|
||||||
</ul>
|
|
||||||
<br>
|
|
||||||
<ul class="nav nav-pills nav-justified">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#">Messages</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="nav nav-tabs nav-justified">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-pills nav-justified">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="nav-disabled-links">Disabled links</h2>
|
|
||||||
<p>For any nav component (tabs or pills), add <code>.disabled</code> for <strong>gray links and no hover effects</strong>.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-navs-anchor-disabled">
|
|
||||||
<h4>Link functionality not impacted</h4>
|
|
||||||
<p>This class will only change the <code><a></code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-example" data-example-id="disabled-nav-link">
|
|
||||||
<ul class="nav nav-pills">
|
|
||||||
<li role="presentation"><a href="#">Clickable link</a></li>
|
|
||||||
<li role="presentation"><a href="#">Clickable link</a></li>
|
|
||||||
<li role="presentation" class="disabled"><a href="#">Disabled link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="nav nav-pills">
|
|
||||||
...
|
|
||||||
<li role="presentation" class="disabled"><a href="#">Disabled link</a></li>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="nav-dropdowns">Using dropdowns</h2>
|
|
||||||
<p>Add dropdown menus with a little extra HTML and the <a href="../javascript/#dropdowns">dropdowns JavaScript plugin</a>.</p>
|
|
||||||
|
|
||||||
<h3>Tabs with dropdowns</h3>
|
|
||||||
<div class="bs-example" data-example-id="nav-tabs-with-dropdown">
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Help</a></li>
|
|
||||||
<li role="presentation" class="dropdown">
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown <span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
...
|
|
||||||
<li role="presentation" class="dropdown">
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown <span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Pills with dropdowns</h3>
|
|
||||||
<div class="bs-example" data-example-id="nav-pills-with-dropdown">
|
|
||||||
<ul class="nav nav-pills">
|
|
||||||
<li role="presentation" class="active"><a href="#">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#">Help</a></li>
|
|
||||||
<li role="presentation" class="dropdown">
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown <span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="nav nav-pills">
|
|
||||||
...
|
|
||||||
<li role="presentation" class="dropdown">
|
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown <span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="page-header" class="page-header">Page header</h1>
|
|
||||||
|
|
||||||
<p>A simple shell for an <code>h1</code> to appropriately space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code> element, as well as most other components (with additional styles).</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-page-header">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>Example page header <small>Subtext for header</small></h1>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>Example page header <small>Subtext for header</small></h1>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,197 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="pagination" class="page-header">Pagination</h1>
|
|
||||||
|
|
||||||
<p class="lead">Provide pagination links for your site or app with the multi-page pagination component, or the simpler <a href="#pagination-pager">pager alternative</a>.</p>
|
|
||||||
|
|
||||||
<h2 id="pagination-default">Default pagination</h2>
|
|
||||||
<p>Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-pagination">
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination">
|
|
||||||
<li>
|
|
||||||
<a href="#" aria-label="Previous">
|
|
||||||
<span aria-hidden="true">«</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#" aria-label="Next">
|
|
||||||
<span aria-hidden="true">»</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination">
|
|
||||||
<li>
|
|
||||||
<a href="#" aria-label="Previous">
|
|
||||||
<span aria-hidden="true">«</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#" aria-label="Next">
|
|
||||||
<span aria-hidden="true">»</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Disabled and active states</h3>
|
|
||||||
<p>Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.</p>
|
|
||||||
<div class="bs-example" data-example-id="disabled-active-pagination">
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination">
|
|
||||||
<li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
|
|
||||||
<li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#" aria-label="Next"><span aria-hidden="true">»</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination">
|
|
||||||
<li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
|
|
||||||
<li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>You can optionally swap out active or disabled anchors for <code><span></code>, or omit the anchor in the case of the previous/next arrows, to remove click functionality while retaining intended styles.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination">
|
|
||||||
<li class="disabled">
|
|
||||||
<span>
|
|
||||||
<span aria-hidden="true">«</span>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
<li class="active">
|
|
||||||
<span>1 <span class="sr-only">(current)</span></span>
|
|
||||||
</li>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Sizing</h3>
|
|
||||||
<p>Fancy larger or smaller pagination? Add <code>.pagination-lg</code> or <code>.pagination-sm</code> for additional sizes.</p>
|
|
||||||
<div class="bs-example" data-example-id="pagination-sizing">
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination pagination-lg">
|
|
||||||
<li><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#" aria-label="Next"><span aria-hidden="true">»</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination">
|
|
||||||
<li><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#" aria-label="Next"><span aria-hidden="true">»</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<nav>
|
|
||||||
<ul class="pagination pagination-sm">
|
|
||||||
<li><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#" aria-label="Next"><span aria-hidden="true">»</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav><ul class="pagination pagination-lg">...</ul></nav>
|
|
||||||
<nav><ul class="pagination">...</ul></nav>
|
|
||||||
<nav><ul class="pagination pagination-sm">...</ul></nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="pagination-pager">Pager</h2>
|
|
||||||
<p>Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.</p>
|
|
||||||
|
|
||||||
<h3>Default example</h3>
|
|
||||||
<p>By default, the pager centers links.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-pager">
|
|
||||||
<nav>
|
|
||||||
<ul class="pager">
|
|
||||||
<li><a href="#">Previous</a></li>
|
|
||||||
<li><a href="#">Next</a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav>
|
|
||||||
<ul class="pager">
|
|
||||||
<li><a href="#">Previous</a></li>
|
|
||||||
<li><a href="#">Next</a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Aligned links</h3>
|
|
||||||
<p>Alternatively, you can align each link to the sides:</p>
|
|
||||||
<div class="bs-example" data-example-id="aligned-pager-links">
|
|
||||||
<nav>
|
|
||||||
<ul class="pager">
|
|
||||||
<li class="previous"><a href="#"><span aria-hidden="true">←</span> Older</a></li>
|
|
||||||
<li class="next"><a href="#">Newer <span aria-hidden="true">→</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav>
|
|
||||||
<ul class="pager">
|
|
||||||
<li class="previous"><a href="#"><span aria-hidden="true">←</span> Older</a></li>
|
|
||||||
<li class="next"><a href="#">Newer <span aria-hidden="true">→</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Optional disabled state</h3>
|
|
||||||
<p>Pager links also use the general <code>.disabled</code> utility class from the pagination.</p>
|
|
||||||
<div class="bs-example" data-example-id="disabled-pager">
|
|
||||||
<nav>
|
|
||||||
<ul class="pager">
|
|
||||||
<li class="previous disabled"><a href="#"><span aria-hidden="true">←</span> Older</a></li>
|
|
||||||
<li class="next"><a href="#">Newer <span aria-hidden="true">→</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<nav>
|
|
||||||
<ul class="pager">
|
|
||||||
<li class="previous disabled"><a href="#"><span aria-hidden="true">←</span> Older</a></li>
|
|
||||||
<li class="next"><a href="#">Newer <span aria-hidden="true">→</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,279 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="panels" class="page-header">Panels</h1>
|
|
||||||
|
|
||||||
<p class="lead">While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.</p>
|
|
||||||
|
|
||||||
<h2 id="panels-basic">Basic example</h2>
|
|
||||||
<p>By default, all the <code>.panel</code> does is apply some basic border and padding to contain some content.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-panel">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-body">
|
|
||||||
Basic panel example
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-body">
|
|
||||||
Basic panel example
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="panels-heading">Panel with heading</h2>
|
|
||||||
<p>Easily add a heading container to your panel with <code>.panel-heading</code>. You may also include any <code><h1></code>-<code><h6></code> with a <code>.panel-title</code> class to add a pre-styled heading. However, the font sizes of <code><h1></code>-<code><h6></code> are overridden by <code>.panel-heading</code>.</p>
|
|
||||||
<p>For proper link coloring, be sure to place links in headings within <code>.panel-title</code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="panel-with-heading">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">Panel heading without title</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Panel title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">Panel heading without title</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Panel title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="panels-footer">Panel with footer</h2>
|
|
||||||
<p>Wrap buttons or secondary text in <code>.panel-footer</code>. Note that panel footers <strong>do not</strong> inherit colors and borders when using contextual variations as they are not meant to be in the foreground.</p>
|
|
||||||
<div class="bs-example" data-example-id="panel-with-footer">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
<div class="panel-footer">Panel footer</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
<div class="panel-footer">Panel footer</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="panels-alternatives">Contextual alternatives</h2>
|
|
||||||
<p>Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.</p>
|
|
||||||
<div class="bs-example" data-example-id="contextual-panels">
|
|
||||||
<div class="panel panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Panel title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-success">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Panel title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-info">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Panel title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-warning">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Panel title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-danger">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Panel title</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
Panel content
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="panel panel-primary">...</div>
|
|
||||||
<div class="panel panel-success">...</div>
|
|
||||||
<div class="panel panel-info">...</div>
|
|
||||||
<div class="panel panel-warning">...</div>
|
|
||||||
<div class="panel panel-danger">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="panels-tables">With tables</h2>
|
|
||||||
<p>Add any non-bordered <code>.table</code> within a panel for a seamless design. If there is a <code>.panel-body</code>, we add an extra border to the top of the table for separation.</p>
|
|
||||||
<div class="bs-example" data-example-id="table-within-panel">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<!-- Default panel contents -->
|
|
||||||
<div class="panel-heading">Panel heading</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Table -->
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>First Name</th>
|
|
||||||
<th>Last Name</th>
|
|
||||||
<th>Username</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Mark</td>
|
|
||||||
<td>Otto</td>
|
|
||||||
<td>@mdo</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Jacob</td>
|
|
||||||
<td>Thornton</td>
|
|
||||||
<td>@fat</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Larry</td>
|
|
||||||
<td>the Bird</td>
|
|
||||||
<td>@twitter</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<!-- Default panel contents -->
|
|
||||||
<div class="panel-heading">Panel heading</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>...</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Table -->
|
|
||||||
<table class="table">
|
|
||||||
...
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>If there is no panel body, the component moves from panel header to table without interruption.</p>
|
|
||||||
<div class="bs-example" data-example-id="panel-without-body-with-table">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<!-- Default panel contents -->
|
|
||||||
<div class="panel-heading">Panel heading</div>
|
|
||||||
|
|
||||||
<!-- Table -->
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>First Name</th>
|
|
||||||
<th>Last Name</th>
|
|
||||||
<th>Username</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Mark</td>
|
|
||||||
<td>Otto</td>
|
|
||||||
<td>@mdo</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Jacob</td>
|
|
||||||
<td>Thornton</td>
|
|
||||||
<td>@fat</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Larry</td>
|
|
||||||
<td>the Bird</td>
|
|
||||||
<td>@twitter</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<!-- Default panel contents -->
|
|
||||||
<div class="panel-heading">Panel heading</div>
|
|
||||||
|
|
||||||
<!-- Table -->
|
|
||||||
<table class="table">
|
|
||||||
...
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="panels-list-group">With list groups</h2>
|
|
||||||
<p>Easily include full-width <a href="#list-group">list groups</a> within any panel.</p>
|
|
||||||
<div class="bs-example" data-example-id="panel-with-list-group">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<!-- Default panel contents -->
|
|
||||||
<div class="panel-heading">Panel heading</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- List group -->
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item">Cras justo odio</li>
|
|
||||||
<li class="list-group-item">Dapibus ac facilisis in</li>
|
|
||||||
<li class="list-group-item">Morbi leo risus</li>
|
|
||||||
<li class="list-group-item">Porta ac consectetur ac</li>
|
|
||||||
<li class="list-group-item">Vestibulum at eros</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<!-- Default panel contents -->
|
|
||||||
<div class="panel-heading">Panel heading</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>...</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- List group -->
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item">Cras justo odio</li>
|
|
||||||
<li class="list-group-item">Dapibus ac facilisis in</li>
|
|
||||||
<li class="list-group-item">Morbi leo risus</li>
|
|
||||||
<li class="list-group-item">Porta ac consectetur ac</li>
|
|
||||||
<li class="list-group-item">Vestibulum at eros</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,214 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="progress" class="page-header">Progress bars</h1>
|
|
||||||
|
|
||||||
<p class="lead">Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-progress-animation-css3">
|
|
||||||
<h4>Cross-browser compatibility</h4>
|
|
||||||
<p>Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info">
|
|
||||||
<h4 id="callout-progress-csp">Content Security Policy (CSP) compatibility</h4>
|
|
||||||
<p>If your website has a <a href="https://developer.mozilla.org/en-US/docs/Web/Security/CSP">Content Security Policy (CSP)</a> which doesn't allow <code>style-src 'unsafe-inline'</code>, then you won't be able to use inline <code>style</code> attributes to set progress bar widths as shown in our examples below. Alternative methods for setting the widths that are compatible with strict CSPs include using a little custom JavaScript (that sets <code>element.style.width</code>) or using custom CSS classes.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="progress-basic">Basic example</h2>
|
|
||||||
<p>Default progress bar.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-progress-bar">
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
|
|
||||||
<span class="sr-only">60% Complete</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
|
|
||||||
<span class="sr-only">60% Complete</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="progress-label">With label</h2>
|
|
||||||
<p>Remove the <code><span></code> with <code>.sr-only</code> class from within the progress bar to show a visible percentage.</p>
|
|
||||||
<div class="bs-example" data-example-id="progress-bar-with-label">
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
|
|
||||||
60%
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
|
|
||||||
60%
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>To ensure that the label text remains legible even for low percentages, consider adding a <code>min-width</code> to the progress bar.</p>
|
|
||||||
<div class="bs-example" data-example-id="progress-bar-at-low-percentage">
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em;">
|
|
||||||
0%
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: 2%;">
|
|
||||||
2%
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em;">
|
|
||||||
0%
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: 2%;">
|
|
||||||
2%
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="progress-alternatives">Contextual alternatives</h2>
|
|
||||||
<p>Progress bars use some of the same button and alert classes for consistent styles.</p>
|
|
||||||
<div class="bs-example" data-example-id="contextual-progress-bar">
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
|
|
||||||
<span class="sr-only">40% Complete (success)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
|
|
||||||
<span class="sr-only">20% Complete</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
|
|
||||||
<span class="sr-only">60% Complete (warning)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
|
||||||
<span class="sr-only">80% Complete (danger)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
|
|
||||||
<span class="sr-only">40% Complete (success)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
|
|
||||||
<span class="sr-only">20% Complete</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
|
|
||||||
<span class="sr-only">60% Complete (warning)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
|
||||||
<span class="sr-only">80% Complete (danger)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="progress-striped">Striped</h2>
|
|
||||||
<p>Uses a gradient to create a striped effect. Not available in IE9 and below.</p>
|
|
||||||
<div class="bs-example" data-example-id="striped-progress-bar">
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
|
|
||||||
<span class="sr-only">40% Complete (success)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
|
|
||||||
<span class="sr-only">20% Complete</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
|
|
||||||
<span class="sr-only">60% Complete (warning)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
|
||||||
<span class="sr-only">80% Complete (danger)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
|
|
||||||
<span class="sr-only">40% Complete (success)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
|
|
||||||
<span class="sr-only">20% Complete</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
|
|
||||||
<span class="sr-only">60% Complete (warning)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
|
||||||
<span class="sr-only">80% Complete (danger)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="progress-animated">Animated</h2>
|
|
||||||
<p>Add <code>.active</code> to <code>.progress-bar-striped</code> to animate the stripes right to left. Not available in IE9 and below.</p>
|
|
||||||
<div class="bs-example" data-example-id="animated-progress-bar">
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%"><span class="sr-only">45% Complete</span></div>
|
|
||||||
</div>
|
|
||||||
<button type="button" class="btn btn-default bs-docs-activate-animated-progressbar" data-toggle="button" aria-pressed="false" autocomplete="off">Toggle animation</button>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
|
|
||||||
<span class="sr-only">45% Complete</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="progress-stacked">Stacked</h2>
|
|
||||||
<p>Place multiple bars into the same <code>.progress</code> to stack them.</p>
|
|
||||||
<div class="bs-example" data-example-id="stacked-progress-bar">
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success" style="width: 35%">
|
|
||||||
<span class="sr-only">35% Complete (success)</span>
|
|
||||||
</div>
|
|
||||||
<div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%">
|
|
||||||
<span class="sr-only">20% Complete (warning)</span>
|
|
||||||
</div>
|
|
||||||
<div class="progress-bar progress-bar-danger" style="width: 10%">
|
|
||||||
<span class="sr-only">10% Complete (danger)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success" style="width: 35%">
|
|
||||||
<span class="sr-only">35% Complete (success)</span>
|
|
||||||
</div>
|
|
||||||
<div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%">
|
|
||||||
<span class="sr-only">20% Complete (warning)</span>
|
|
||||||
</div>
|
|
||||||
<div class="progress-bar progress-bar-danger" style="width: 10%">
|
|
||||||
<span class="sr-only">10% Complete (danger)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,23 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="responsive-embed" class="page-header">Responsive embed</h1>
|
|
||||||
|
|
||||||
<p>Allow browsers to determine video or slideshow dimensions based on the width of their containing block by creating an intrinsic ratio that will properly scale on any device.</p>
|
|
||||||
<p>Rules are directly applied to <code><iframe></code>, <code><embed></code>, <code><video></code>, and <code><object></code> elements; optionally use an explicit descendant class <code>.embed-responsive-item</code> when you want to match the styling for other attributes.</p>
|
|
||||||
<p><strong>Pro-Tip!</strong> You don't need to include <code>frameborder="0"</code> in your <code><iframe></code>s as we override that for you.</p>
|
|
||||||
<div class="bs-example" data-example-id="responsive-embed-16by9-iframe-youtube">
|
|
||||||
<div class="embed-responsive embed-responsive-16by9">
|
|
||||||
<iframe class="embed-responsive-item" src="//www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- 16:9 aspect ratio -->
|
|
||||||
<div class="embed-responsive embed-responsive-16by9">
|
|
||||||
<iframe class="embed-responsive-item" src="..."></iframe>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 4:3 aspect ratio -->
|
|
||||||
<div class="embed-responsive embed-responsive-4by3">
|
|
||||||
<iframe class="embed-responsive-item" src="..."></iframe>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,94 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="thumbnails" class="page-header">Thumbnails</h1>
|
|
||||||
|
|
||||||
<p class="lead">Extend Bootstrap's <a href="../css/#grid">grid system</a> with the thumbnail component to easily display grids of images, videos, text, and more.</p>
|
|
||||||
<p>If you're looking for Pinterest-like presentation of thumbnails of varying heights and/or widths, you'll need to use a third-party plugin such as <a href="http://masonry.desandro.com">Masonry</a>, <a href="http://isotope.metafizzy.co">Isotope</a>, or <a href="http://salvattore.com">Salvattore</a>.</p>
|
|
||||||
|
|
||||||
<h2 id="thumbnails-default">Default example</h2>
|
|
||||||
<p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-thumbnails">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-md-3">
|
|
||||||
<a href="#" class="thumbnail">
|
|
||||||
<img data-src="holder.js/100%x180" alt="Generic placeholder thumbnail">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-3">
|
|
||||||
<a href="#" class="thumbnail">
|
|
||||||
<img data-src="holder.js/100%x180" alt="Generic placeholder thumbnail">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-3">
|
|
||||||
<a href="#" class="thumbnail">
|
|
||||||
<img data-src="holder.js/100%x180" alt="Generic placeholder thumbnail">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-3">
|
|
||||||
<a href="#" class="thumbnail">
|
|
||||||
<img data-src="holder.js/100%x180" alt="Generic placeholder thumbnail">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.bs-example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-md-3">
|
|
||||||
<a href="#" class="thumbnail">
|
|
||||||
<img src="..." alt="...">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="thumbnails-custom-content">Custom content</h2>
|
|
||||||
<p>With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.</p>
|
|
||||||
<div class="bs-example" data-example-id="thumbnails-with-custom-content">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6 col-md-4">
|
|
||||||
<div class="thumbnail">
|
|
||||||
<img data-src="holder.js/100%x200" alt="Generic placeholder thumbnail">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6 col-md-4">
|
|
||||||
<div class="thumbnail">
|
|
||||||
<img data-src="holder.js/100%x200" alt="Generic placeholder thumbnail">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6 col-md-4">
|
|
||||||
<div class="thumbnail">
|
|
||||||
<img data-src="holder.js/100%x200" alt="Generic placeholder thumbnail">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.bs-example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6 col-md-4">
|
|
||||||
<div class="thumbnail">
|
|
||||||
<img src="..." alt="...">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>...</p>
|
|
||||||
<p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,33 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="wells" class="page-header">Wells</h1>
|
|
||||||
|
|
||||||
<h2>Default well</h2>
|
|
||||||
<p>Use the well as a simple effect on an element to give it an inset effect.</p>
|
|
||||||
<div class="bs-example" data-example-id="default-well">
|
|
||||||
<div class="well">
|
|
||||||
Look, I'm in a well!
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="well">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
<h2>Optional classes</h2>
|
|
||||||
<p>Control padding and rounded corners with two optional modifier classes.</p>
|
|
||||||
<div class="bs-example" data-example-id="large-well">
|
|
||||||
<div class="well well-lg">
|
|
||||||
Look, I'm in a large well!
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="well well-lg">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-example" data-example-id="small-well">
|
|
||||||
<div class="well well-sm">
|
|
||||||
Look, I'm in a small well!
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="well well-sm">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,189 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="buttons" class="page-header">Buttons</h1>
|
|
||||||
|
|
||||||
<h2 id="buttons-tags">Button tags</h2>
|
|
||||||
<p>Use the button classes on an <code><a></code>, <code><button></code>, or <code><input></code> element.</p>
|
|
||||||
<form class="bs-example" data-example-id="btn-tags">
|
|
||||||
<a class="btn btn-default" href="#" role="button">Link</a>
|
|
||||||
<button class="btn btn-default" type="submit">Button</button>
|
|
||||||
<input class="btn btn-default" type="button" value="Input">
|
|
||||||
<input class="btn btn-default" type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
{% highlight html %}
|
|
||||||
<a class="btn btn-default" href="#" role="button">Link</a>
|
|
||||||
<button class="btn btn-default" type="submit">Button</button>
|
|
||||||
<input class="btn btn-default" type="button" value="Input">
|
|
||||||
<input class="btn btn-default" type="submit" value="Submit">
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-buttons-context-usage">
|
|
||||||
<h4>Context-specific usage</h4>
|
|
||||||
<p>While button classes can be used on <code><a></code> and <code><button></code> elements, only <code><button></code> elements are supported within our nav and navbar components.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-buttons-anchor-accessibility">
|
|
||||||
<h4>Links acting as buttons</h4>
|
|
||||||
<p>If the <code><a></code> elements are used to act as buttons – triggering in-page functionality, rather than navigating to another document or section within the current page – they should also be given an appropriate <code>role="button"</code>.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-buttons-ff-height">
|
|
||||||
<h4>Cross-browser rendering</h4>
|
|
||||||
<p>As a best practice, <strong>we highly recommend using the <code><button></code> element whenever possible</strong> to ensure matching cross-browser rendering.</p>
|
|
||||||
<p>Among other things, there's <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=697451">a bug in Firefox <30</a> that prevents us from setting the <code>line-height</code> of <code><input></code>-based buttons, causing them to not exactly match the height of other buttons on Firefox.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="buttons-options">Options</h2>
|
|
||||||
<p>Use any of the available button classes to quickly create a styled button.</p>
|
|
||||||
<div class="bs-example" data-example-id="btn-variants">
|
|
||||||
<button type="button" class="btn btn-default">Default</button>
|
|
||||||
<button type="button" class="btn btn-primary">Primary</button>
|
|
||||||
<button type="button" class="btn btn-success">Success</button>
|
|
||||||
<button type="button" class="btn btn-info">Info</button>
|
|
||||||
<button type="button" class="btn btn-warning">Warning</button>
|
|
||||||
<button type="button" class="btn btn-danger">Danger</button>
|
|
||||||
<button type="button" class="btn btn-link">Link</button>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Standard button -->
|
|
||||||
<button type="button" class="btn btn-default">Default</button>
|
|
||||||
|
|
||||||
<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
|
|
||||||
<button type="button" class="btn btn-primary">Primary</button>
|
|
||||||
|
|
||||||
<!-- Indicates a successful or positive action -->
|
|
||||||
<button type="button" class="btn btn-success">Success</button>
|
|
||||||
|
|
||||||
<!-- Contextual button for informational alert messages -->
|
|
||||||
<button type="button" class="btn btn-info">Info</button>
|
|
||||||
|
|
||||||
<!-- Indicates caution should be taken with this action -->
|
|
||||||
<button type="button" class="btn btn-warning">Warning</button>
|
|
||||||
|
|
||||||
<!-- Indicates a dangerous or potentially negative action -->
|
|
||||||
<button type="button" class="btn btn-danger">Danger</button>
|
|
||||||
|
|
||||||
<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
|
|
||||||
<button type="button" class="btn btn-link">Link</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-buttons-color-accessibility">
|
|
||||||
<h4>Conveying meaning to assistive technologies</h4>
|
|
||||||
<p>Using color to add meaning to a button only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (the visible text of the button), or is included through alternative means, such as additional text hidden with the <code>.sr-only</code> class.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="buttons-sizes">Sizes</h2>
|
|
||||||
<p>Fancy larger or smaller buttons? Add <code>.btn-lg</code>, <code>.btn-sm</code>, or <code>.btn-xs</code> for additional sizes.</p>
|
|
||||||
<div class="bs-example" data-example-id="btn-sizes">
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-primary btn-lg">Large button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-lg">Large button</button>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-primary">Default button</button>
|
|
||||||
<button type="button" class="btn btn-default">Default button</button>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-primary btn-sm">Small button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-sm">Small button</button>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-primary btn-xs">Extra small button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-xs">Extra small button</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-primary btn-lg">Large button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-lg">Large button</button>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-primary">Default button</button>
|
|
||||||
<button type="button" class="btn btn-default">Default button</button>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-primary btn-sm">Small button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-sm">Small button</button>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-primary btn-xs">Extra small button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-xs">Extra small button</button>
|
|
||||||
</p>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="block-btns">
|
|
||||||
<div class="well center-block" style="max-width: 400px;">
|
|
||||||
<button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-lg btn-block">Block level button</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-lg btn-block">Block level button</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="buttons-active">Active state</h2>
|
|
||||||
<p>Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. For <code><button></code> elements, this is done via <code>:active</code>. For <code><a></code> elements, it's done with <code>.active</code>. However, you may use <code>.active</code> on <code><button></code>s (and include the <code>aria-pressed="true"</code> attribute) should you need to replicate the active state programmatically.</p>
|
|
||||||
|
|
||||||
<h3>Button element</h3>
|
|
||||||
<p>No need to add <code>:active</code> as it's a pseudo-class, but if you need to force the same appearance, go ahead and add <code>.active</code>.</p>
|
|
||||||
<p class="bs-example" data-example-id="active-button-btns">
|
|
||||||
<button type="button" class="btn btn-primary btn-lg active">Primary button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-lg active">Button</button>
|
|
||||||
</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-primary btn-lg active">Primary button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-lg active">Button</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Anchor element</h3>
|
|
||||||
<p>Add the <code>.active</code> class to <code><a></code> buttons.</p>
|
|
||||||
<p class="bs-example" data-example-id="active-anchor-btns">
|
|
||||||
<a href="#" class="btn btn-primary btn-lg active" role="button">Primary link</a>
|
|
||||||
<a href="#" class="btn btn-default btn-lg active" role="button">Link</a>
|
|
||||||
</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<a href="#" class="btn btn-primary btn-lg active" role="button">Primary link</a>
|
|
||||||
<a href="#" class="btn btn-default btn-lg active" role="button">Link</a>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="buttons-disabled">Disabled state</h2>
|
|
||||||
<p>Make buttons look unclickable by fading them back with <code>opacity</code>.</p>
|
|
||||||
|
|
||||||
<h3>Button element</h3>
|
|
||||||
<p>Add the <code>disabled</code> attribute to <code><button></code> buttons.</p>
|
|
||||||
<p class="bs-example" data-example-id="disabled-button-btns">
|
|
||||||
<button type="button" class="btn btn-primary btn-lg" disabled="disabled">Primary button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-lg" disabled="disabled">Button</button>
|
|
||||||
</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-lg btn-primary" disabled="disabled">Primary button</button>
|
|
||||||
<button type="button" class="btn btn-default btn-lg" disabled="disabled">Button</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-buttons-ie-disabled">
|
|
||||||
<h4>Cross-browser compatibility</h4>
|
|
||||||
<p>If you add the <code>disabled</code> attribute to a <code><button></code>, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Anchor element</h3>
|
|
||||||
<p>Add the <code>.disabled</code> class to <code><a></code> buttons.</p>
|
|
||||||
<p class="bs-example" data-example-id="disabled-anchor-btns">
|
|
||||||
<a href="#" class="btn btn-primary btn-lg disabled" role="button">Primary link</a>
|
|
||||||
<a href="#" class="btn btn-default btn-lg disabled" role="button">Link</a>
|
|
||||||
</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<a href="#" class="btn btn-primary btn-lg disabled" role="button">Primary link</a>
|
|
||||||
<a href="#" class="btn btn-default btn-lg disabled" role="button">Link</a>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>
|
|
||||||
We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required.
|
|
||||||
</p>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-buttons-disabled-anchor">
|
|
||||||
<h4>Link functionality caveat</h4>
|
|
||||||
<p>This class uses <code>pointer-events: none</code> to try to disable the link functionality of <code><a></code>s, but that CSS property is not yet standardized and isn't fully supported in Opera 18 and below, or in Internet Explorer 11. In addition, even in browsers that do support <code>pointer-events: none</code>, keyboard navigation remains unaffected, meaning that sighted keyboard users and users of assistive technologies will still be able to activate these links. So to be safe, use custom JavaScript to disable such links.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
|
@ -1,52 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="code" class="page-header">Code</h1>
|
|
||||||
|
|
||||||
<h2 id="code-inline">Inline</h2>
|
|
||||||
<p>Wrap inline snippets of code with <code><code></code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="inline-code">
|
|
||||||
For example, <code><section></code> should be wrapped as inline.
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
For example, <code><section></code> should be wrapped as inline.
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="code-user-input">User input</h2>
|
|
||||||
<p>Use the <code><kbd></code> to indicate input that is typically entered via keyboard.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-kbd">
|
|
||||||
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
|
|
||||||
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
|
|
||||||
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="code-block">Basic block</h2>
|
|
||||||
<p>Use <code><pre></code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-pre">
|
|
||||||
<pre><p>Sample text here...</p></pre>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<pre><p>Sample text here...</p></pre>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>You may optionally add the <code>.pre-scrollable</code> class, which will set a max-height of 350px and provide a y-axis scrollbar.</p>
|
|
||||||
<h2 id="code-variables">Variables</h2>
|
|
||||||
<p>For indicating variables use the <code><var></code> tag.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-var">
|
|
||||||
<p><var>y</var> = <var>m</var><var>x</var> + <var>b</var></p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="code-sample-output">Sample output</h2>
|
|
||||||
<p>For indicating blocks sample output from a program use the <code><samp></code> tag.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-samp">
|
|
||||||
<p><samp>This text is meant to be treated as sample output from a computer program.</samp></p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<samp>This text is meant to be treated as sample output from a computer program.</samp>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,560 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="grid" class="page-header">Grid system</h1>
|
|
||||||
|
|
||||||
<p class="lead">Bootstrap includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes <a href="#grid-example-basic">predefined classes</a> for easy layout options, as well as powerful <a href="#grid-less">mixins for generating more semantic layouts</a>.</p>
|
|
||||||
|
|
||||||
<h2 id="grid-intro">Introduction</h2>
|
|
||||||
<p>Grid systems are used for creating page layouts through a series of rows and columns that house your content. Here's how the Bootstrap grid system works:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Rows must be placed within a <code>.container</code> (fixed-width) or <code>.container-fluid</code> (full-width) for proper alignment and padding.</li>
|
|
||||||
<li>Use rows to create horizontal groups of columns.</li>
|
|
||||||
<li>Content should be placed within columns, and only columns may be immediate children of rows.</li>
|
|
||||||
<li>Predefined grid classes like <code>.row</code> and <code>.col-xs-4</code> are available for quickly making grid layouts. Less mixins can also be used for more semantic layouts.</li>
|
|
||||||
<li>Columns create gutters (gaps between column content) via <code>padding</code>. That padding is offset in rows for the first and last column via negative margin on <code>.row</code>s.</li>
|
|
||||||
<li>The negative margin is why the examples below are outdented. It's so that content within grid columns is lined up with non-grid content.</li>
|
|
||||||
<li>Grid columns are created by specifying the number of twelve available columns you wish to span. For example, three equal columns would use three <code>.col-xs-4</code>.</li>
|
|
||||||
<li>If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.</li>
|
|
||||||
<li>Grid classes apply to devices with screen widths greater than or equal to the breakpoint sizes, and override grid classes targeted at smaller devices. Therefore, e.g. applying any <code>.col-md-*</code> class to an element will not only affect its styling on medium devices but also on large devices if a <code>.col-lg-*</code> class is not present.</li>
|
|
||||||
</ul>
|
|
||||||
<p>Look to the examples for applying these principles to your code.</p>
|
|
||||||
|
|
||||||
<h2 id="grid-media-queries">Media queries</h2>
|
|
||||||
<p>We use the following media queries in our Less files to create the key breakpoints in our grid system.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
/* Extra small devices (phones, less than 768px) */
|
|
||||||
/* No media query since this is the default in Bootstrap */
|
|
||||||
|
|
||||||
/* Small devices (tablets, 768px and up) */
|
|
||||||
@media (min-width: @screen-sm-min) { ... }
|
|
||||||
|
|
||||||
/* Medium devices (desktops, 992px and up) */
|
|
||||||
@media (min-width: @screen-md-min) { ... }
|
|
||||||
|
|
||||||
/* Large devices (large desktops, 1200px and up) */
|
|
||||||
@media (min-width: @screen-lg-min) { ... }
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>We occasionally expand on these media queries to include a <code>max-width</code> to limit CSS to a narrower set of devices.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
@media (max-width: @screen-xs-max) { ... }
|
|
||||||
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { ... }
|
|
||||||
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) { ... }
|
|
||||||
@media (min-width: @screen-lg-min) { ... }
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-options">Grid options</h2>
|
|
||||||
<p>See how aspects of the Bootstrap grid system work across multiple devices with a handy table.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th>
|
|
||||||
Extra small devices
|
|
||||||
<small>Phones (<768px)</small>
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Small devices
|
|
||||||
<small>Tablets (≥768px)</small>
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Medium devices
|
|
||||||
<small>Desktops (≥992px)</small>
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Large devices
|
|
||||||
<small>Desktops (≥1200px)</small>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row">Grid behavior</th>
|
|
||||||
<td>Horizontal at all times</td>
|
|
||||||
<td colspan="3">Collapsed to start, horizontal above breakpoints</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row">Container width</th>
|
|
||||||
<td>None (auto)</td>
|
|
||||||
<td>750px</td>
|
|
||||||
<td>970px</td>
|
|
||||||
<td>1170px</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row">Class prefix</th>
|
|
||||||
<td><code>.col-xs-</code></td>
|
|
||||||
<td><code>.col-sm-</code></td>
|
|
||||||
<td><code>.col-md-</code></td>
|
|
||||||
<td><code>.col-lg-</code></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row"># of columns</th>
|
|
||||||
<td colspan="4">12</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row">Column width</th>
|
|
||||||
<td class="text-muted">Auto</td>
|
|
||||||
<td>~62px</td>
|
|
||||||
<td>~81px</td>
|
|
||||||
<td>~97px</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row">Gutter width</th>
|
|
||||||
<td colspan="4">30px (15px on each side of a column)</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row">Nestable</th>
|
|
||||||
<td colspan="4">Yes</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row">Offsets</th>
|
|
||||||
<td colspan="4">Yes</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th class="text-nowrap" scope="row">Column ordering</th>
|
|
||||||
<td colspan="4">Yes</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="grid-example-basic">Example: Stacked-to-horizontal</h2>
|
|
||||||
<p>Using a single set of <code>.col-md-*</code> grid classes, you can create a basic grid system that starts out stacked on mobile devices and tablet devices (the extra small to small range) before becoming horizontal on desktop (medium) devices. Place grid columns in any <code>.row</code>.</p>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
</div>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-md-8">.col-md-8</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-md-6">.col-md-6</div>
|
|
||||||
<div class="col-md-6">.col-md-6</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
<div class="col-md-1">.col-md-1</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">.col-md-8</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">.col-md-6</div>
|
|
||||||
<div class="col-md-6">.col-md-6</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-example-fluid">Example: Fluid container</h2>
|
|
||||||
<p>Turn any fixed-width grid layout into a full-width layout by changing your outermost <code>.container</code> to <code>.container-fluid</code>.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-example-mixed">Example: Mobile and desktop</h2>
|
|
||||||
<p>Don't want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding <code>.col-xs-*</code> <code>.col-md-*</code> to your columns. See the example below for a better idea of how it all works.</p>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-xs-6">.col-xs-6</div>
|
|
||||||
<div class="col-xs-6">.col-xs-6</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Columns are always 50% wide, on mobile and desktop -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6">.col-xs-6</div>
|
|
||||||
<div class="col-xs-6">.col-xs-6</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-example-mixed-complete">Example: Mobile, tablet, desktop</h2>
|
|
||||||
<p>Build on the previous example by creating even more dynamic and powerful layouts with tablet <code>.col-sm-*</code> classes.</p>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-xs-12 col-sm-6 col-md-8">.col-xs-12 .col-sm-6 .col-md-8</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
|
|
||||||
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
|
|
||||||
<!-- Optional: clear the XS cols if their content doesn't match in height -->
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-12 col-sm-6 col-md-8">.col-xs-12 .col-sm-6 .col-md-8</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
|
|
||||||
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
|
|
||||||
<!-- Optional: clear the XS cols if their content doesn't match in height -->
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-example-wrapping">Example: Column wrapping</h2>
|
|
||||||
<p>If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.</p>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-xs-9">.col-xs-9</div>
|
|
||||||
<div class="col-xs-4">.col-xs-4<br>Since 9 + 4 = 13 > 12, this 4-column-wide div gets wrapped onto a new line as one contiguous unit.</div>
|
|
||||||
<div class="col-xs-6">.col-xs-6<br>Subsequent columns continue along the new line.</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-9">.col-xs-9</div>
|
|
||||||
<div class="col-xs-4">.col-xs-4<br>Since 9 + 4 = 13 > 12, this 4-column-wide div gets wrapped onto a new line as one contiguous unit.</div>
|
|
||||||
<div class="col-xs-6">.col-xs-6<br>Subsequent columns continue along the new line.</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-responsive-resets">Responsive column resets</h2>
|
|
||||||
<p>With the four tiers of grids available you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a <code>.clearfix</code> and our <a href="#responsive-utilities">responsive utility classes</a>.</p>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
.col-xs-6 .col-sm-3
|
|
||||||
<br>
|
|
||||||
Resize your viewport or check it out on your phone for an example.
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
|
|
||||||
|
|
||||||
<!-- Add the extra clearfix for only the required viewport -->
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
|
|
||||||
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
|
|
||||||
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
|
|
||||||
|
|
||||||
<!-- Add the extra clearfix for only the required viewport -->
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
|
|
||||||
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>In addition to column clearing at responsive breakpoints, you may need to <strong>reset offsets, pushes, or pulls</strong>. See this in action in <a href="../examples/grid/">the grid example</a>.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-5 col-md-6">.col-sm-5 .col-md-6</div>
|
|
||||||
<div class="col-sm-5 col-sm-offset-2 col-md-6 col-md-offset-0">.col-sm-5 .col-sm-offset-2 .col-md-6 .col-md-offset-0</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6 col-md-5 col-lg-6">.col-sm-6 .col-md-5 .col-lg-6</div>
|
|
||||||
<div class="col-sm-6 col-md-5 col-md-offset-2 col-lg-6 col-lg-offset-0">.col-sm-6 .col-md-5 .col-md-offset-2 .col-lg-6 .col-lg-offset-0</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="grid-offsetting">Offsetting columns</h2>
|
|
||||||
<p>Move columns to the right using <code>.col-md-offset-*</code> classes. These classes increase the left margin of a column by <code>*</code> columns. For example, <code>.col-md-offset-4</code> moves <code>.col-md-4</code> over four columns.</p>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
|
|
||||||
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
|
|
||||||
</div>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
|
|
||||||
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>You can also override offsets from lower grid tiers with <code>.col-*-offset-0</code> classes.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-sm-4">
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-sm-4">
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-0">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-nesting">Nesting columns</h2>
|
|
||||||
<p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-sm-*</code> columns within an existing <code>.col-sm-*</code> column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).</p>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-sm-9">
|
|
||||||
Level 1: .col-sm-9
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-xs-8 col-sm-6">
|
|
||||||
Level 2: .col-xs-8 .col-sm-6
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 col-sm-6">
|
|
||||||
Level 2: .col-xs-4 .col-sm-6
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-9">
|
|
||||||
Level 1: .col-sm-9
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-8 col-sm-6">
|
|
||||||
Level 2: .col-xs-8 .col-sm-6
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 col-sm-6">
|
|
||||||
Level 2: .col-xs-4 .col-sm-6
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-column-ordering">Column ordering</h2>
|
|
||||||
<p>Easily change the order of our built-in grid columns with <code>.col-md-push-*</code> and <code>.col-md-pull-*</code> modifier classes.</p>
|
|
||||||
<div class="row show-grid">
|
|
||||||
<div class="col-md-9 col-md-push-3">.col-md-9 .col-md-push-3</div>
|
|
||||||
<div class="col-md-3 col-md-pull-9">.col-md-3 .col-md-pull-9</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-9 col-md-push-3">.col-md-9 .col-md-push-3</div>
|
|
||||||
<div class="col-md-3 col-md-pull-9">.col-md-3 .col-md-pull-9</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="grid-less">Less mixins and variables</h2>
|
|
||||||
<p>In addition to <a href="#grid-example-basic">prebuilt grid classes</a> for fast layouts, Bootstrap includes Less variables and mixins for quickly generating your own simple, semantic layouts.</p>
|
|
||||||
|
|
||||||
<h3>Variables</h3>
|
|
||||||
<p>Variables determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
@grid-columns: 12;
|
|
||||||
@grid-gutter-width: 30px;
|
|
||||||
@grid-float-breakpoint: 768px;
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Mixins</h3>
|
|
||||||
<p>Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
// Creates a wrapper for a series of columns
|
|
||||||
.make-row(@gutter: @grid-gutter-width) {
|
|
||||||
// Then clear the floated columns
|
|
||||||
.clearfix();
|
|
||||||
|
|
||||||
@media (min-width: @screen-sm-min) {
|
|
||||||
margin-left: (@gutter / -2);
|
|
||||||
margin-right: (@gutter / -2);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Negative margin nested rows out to align the content of columns
|
|
||||||
.row {
|
|
||||||
margin-left: (@gutter / -2);
|
|
||||||
margin-right: (@gutter / -2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the extra small columns
|
|
||||||
.make-xs-column(@columns; @gutter: @grid-gutter-width) {
|
|
||||||
position: relative;
|
|
||||||
// Prevent columns from collapsing when empty
|
|
||||||
min-height: 1px;
|
|
||||||
// Inner gutter via padding
|
|
||||||
padding-left: (@gutter / 2);
|
|
||||||
padding-right: (@gutter / 2);
|
|
||||||
|
|
||||||
// Calculate width based on number of columns available
|
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
|
||||||
float: left;
|
|
||||||
width: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the small columns
|
|
||||||
.make-sm-column(@columns; @gutter: @grid-gutter-width) {
|
|
||||||
position: relative;
|
|
||||||
// Prevent columns from collapsing when empty
|
|
||||||
min-height: 1px;
|
|
||||||
// Inner gutter via padding
|
|
||||||
padding-left: (@gutter / 2);
|
|
||||||
padding-right: (@gutter / 2);
|
|
||||||
|
|
||||||
// Calculate width based on number of columns available
|
|
||||||
@media (min-width: @screen-sm-min) {
|
|
||||||
float: left;
|
|
||||||
width: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the small column offsets
|
|
||||||
.make-sm-column-offset(@columns) {
|
|
||||||
@media (min-width: @screen-sm-min) {
|
|
||||||
margin-left: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.make-sm-column-push(@columns) {
|
|
||||||
@media (min-width: @screen-sm-min) {
|
|
||||||
left: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.make-sm-column-pull(@columns) {
|
|
||||||
@media (min-width: @screen-sm-min) {
|
|
||||||
right: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the medium columns
|
|
||||||
.make-md-column(@columns; @gutter: @grid-gutter-width) {
|
|
||||||
position: relative;
|
|
||||||
// Prevent columns from collapsing when empty
|
|
||||||
min-height: 1px;
|
|
||||||
// Inner gutter via padding
|
|
||||||
padding-left: (@gutter / 2);
|
|
||||||
padding-right: (@gutter / 2);
|
|
||||||
|
|
||||||
// Calculate width based on number of columns available
|
|
||||||
@media (min-width: @screen-md-min) {
|
|
||||||
float: left;
|
|
||||||
width: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the medium column offsets
|
|
||||||
.make-md-column-offset(@columns) {
|
|
||||||
@media (min-width: @screen-md-min) {
|
|
||||||
margin-left: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.make-md-column-push(@columns) {
|
|
||||||
@media (min-width: @screen-md-min) {
|
|
||||||
left: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.make-md-column-pull(@columns) {
|
|
||||||
@media (min-width: @screen-md-min) {
|
|
||||||
right: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the large columns
|
|
||||||
.make-lg-column(@columns; @gutter: @grid-gutter-width) {
|
|
||||||
position: relative;
|
|
||||||
// Prevent columns from collapsing when empty
|
|
||||||
min-height: 1px;
|
|
||||||
// Inner gutter via padding
|
|
||||||
padding-left: (@gutter / 2);
|
|
||||||
padding-right: (@gutter / 2);
|
|
||||||
|
|
||||||
// Calculate width based on number of columns available
|
|
||||||
@media (min-width: @screen-lg-min) {
|
|
||||||
float: left;
|
|
||||||
width: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the large column offsets
|
|
||||||
.make-lg-column-offset(@columns) {
|
|
||||||
@media (min-width: @screen-lg-min) {
|
|
||||||
margin-left: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.make-lg-column-push(@columns) {
|
|
||||||
@media (min-width: @screen-lg-min) {
|
|
||||||
left: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.make-lg-column-pull(@columns) {
|
|
||||||
@media (min-width: @screen-lg-min) {
|
|
||||||
right: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Example usage</h3>
|
|
||||||
<p>You can modify the variables to your own custom values, or just use the mixins with their default values. Here's an example of using the default settings to create a two-column layout with a gap between.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.wrapper {
|
|
||||||
.make-row();
|
|
||||||
}
|
|
||||||
.content-main {
|
|
||||||
.make-lg-column(8);
|
|
||||||
}
|
|
||||||
.content-secondary {
|
|
||||||
.make-lg-column(3);
|
|
||||||
.make-lg-column-offset(1);
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="wrapper">
|
|
||||||
<div class="content-main">...</div>
|
|
||||||
<div class="content-secondary">...</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,207 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="helper-classes" class="page-header">Helper classes</h1>
|
|
||||||
|
|
||||||
<h3 id="helper-classes-colors">Contextual colors</h3>
|
|
||||||
<p>Convey meaning through color with a handful of emphasis utility classes. These may also be applied to links and will darken on hover just like our default link styles.</p>
|
|
||||||
<div class="bs-example" data-example-id="contextual-colors-helpers">
|
|
||||||
<p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
|
|
||||||
<p class="text-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
|
|
||||||
<p class="text-info">Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
|
|
||||||
<p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
|
|
||||||
<p class="text-danger">Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p class="text-muted">...</p>
|
|
||||||
<p class="text-primary">...</p>
|
|
||||||
<p class="text-success">...</p>
|
|
||||||
<p class="text-info">...</p>
|
|
||||||
<p class="text-warning">...</p>
|
|
||||||
<p class="text-danger">...</p>
|
|
||||||
{% endhighlight %}
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-helper-context-color-specificity">
|
|
||||||
<h4>Dealing with specificity</h4>
|
|
||||||
<p>Sometimes emphasis classes cannot be applied due to the specificity of another selector. In most cases, a sufficient workaround is to wrap your text in a <code><span></code> with the class.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-helper-context-color-accessibility">
|
|
||||||
<h4>Conveying meaning to assistive technologies</h4>
|
|
||||||
<p>Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (the contextual colors are only used to reinforce meaning that is already present in the text/markup), or is included through alternative means, such as additional text hidden with the <code>.sr-only</code> class.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 id="helper-classes-backgrounds">Contextual backgrounds</h3>
|
|
||||||
<p>Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes.</p>
|
|
||||||
<div class="bs-example bs-example-bg-classes" data-example-id="contextual-backgrounds-helpers">
|
|
||||||
<p class="bg-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<p class="bg-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
|
|
||||||
<p class="bg-info">Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
|
|
||||||
<p class="bg-warning">Etiam porta sem malesuada magna mollis euismod.</p>
|
|
||||||
<p class="bg-danger">Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p class="bg-primary">...</p>
|
|
||||||
<p class="bg-success">...</p>
|
|
||||||
<p class="bg-info">...</p>
|
|
||||||
<p class="bg-warning">...</p>
|
|
||||||
<p class="bg-danger">...</p>
|
|
||||||
{% endhighlight %}
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-helper-bg-specificity">
|
|
||||||
<h4>Dealing with specificity</h4>
|
|
||||||
<p>Sometimes contextual background classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element's content in a <code><div></code> with the class.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-helper-bg-accessibility">
|
|
||||||
<h4>Conveying meaning to assistive technologies</h4>
|
|
||||||
<p>As with <a href="#helper-classes-colors">contextual colors</a>, ensure that any meaning conveyed through color is also conveyed in a format that is not purely presentational.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 id="helper-classes-close">Close icon</h3>
|
|
||||||
<p>Use the generic close icon for dismissing content like modals and alerts.</p>
|
|
||||||
<div class="bs-example" data-example-id="close-icon">
|
|
||||||
<p><button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button></p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="helper-classes-carets">Carets</h3>
|
|
||||||
<p>Use carets to indicate dropdown functionality and direction. Note that the default caret will reverse automatically in <a href="../components/#btn-dropdowns-dropup">dropup menus</a>.</p>
|
|
||||||
<div class="bs-example" data-example-id="caret">
|
|
||||||
<span class="caret"></span>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<span class="caret"></span>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="helper-classes-floats">Quick floats</h3>
|
|
||||||
<p>Float an element to the left or right with a class. <code>!important</code> is included to avoid specificity issues. Classes can also be used as mixins.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="pull-left">...</div>
|
|
||||||
<div class="pull-right">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight scss %}
|
|
||||||
// Classes
|
|
||||||
.pull-left {
|
|
||||||
float: left !important;
|
|
||||||
}
|
|
||||||
.pull-right {
|
|
||||||
float: right !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage as mixins
|
|
||||||
.element {
|
|
||||||
.pull-left();
|
|
||||||
}
|
|
||||||
.another-element {
|
|
||||||
.pull-right();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-helper-pull-navbar">
|
|
||||||
<h4>Not for use in navbars</h4>
|
|
||||||
<p>To align components in navbars with utility classes, use <code>.navbar-left</code> or <code>.navbar-right</code> instead. <a href="../components/#navbar-component-alignment">See the navbar docs</a> for details.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="helper-classes-center">Center content blocks</h3>
|
|
||||||
<p>Set an element to <code>display: block</code> and center via <code>margin</code>. Available as a mixin and class.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="center-block">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight scss %}
|
|
||||||
// Class
|
|
||||||
.center-block {
|
|
||||||
display: block;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage as a mixin
|
|
||||||
.element {
|
|
||||||
.center-block();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="helper-classes-clearfix">Clearfix</h3>
|
|
||||||
<p>Easily clear <code>float</code>s by adding <code>.clearfix</code> <strong>to the parent element</strong>. Utilizes <a href="http://nicolasgallagher.com/micro-clearfix-hack/">the micro clearfix</a> as popularized by Nicolas Gallagher. Can also be used as a mixin.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Usage as a class -->
|
|
||||||
<div class="clearfix">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight scss %}
|
|
||||||
// Mixin itself
|
|
||||||
.clearfix() {
|
|
||||||
&:before,
|
|
||||||
&:after {
|
|
||||||
content: " ";
|
|
||||||
display: table;
|
|
||||||
}
|
|
||||||
&:after {
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage as a mixin
|
|
||||||
.element {
|
|
||||||
.clearfix();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="helper-classes-show-hide">Showing and hiding content</h3>
|
|
||||||
<p>Force an element to be shown or hidden (<strong>including for screen readers</strong>) with the use of <code>.show</code> and <code>.hidden</code> classes. These classes use <code>!important</code> to avoid specificity conflicts, just like the <a href="#helper-classes-floats">quick floats</a>. They are only available for block level toggling. They can also be used as mixins.</p>
|
|
||||||
<p><code>.hide</code> is available, but it does not always affect screen readers and is <strong>deprecated</strong> as of v3.0.1. Use <code>.hidden</code> or <code>.sr-only</code> instead.</p>
|
|
||||||
<p>Furthermore, <code>.invisible</code> can be used to toggle only the visibility of an element, meaning its <code>display</code> is not modified and the element can still affect the flow of the document.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="show">...</div>
|
|
||||||
<div class="hidden">...</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight scss %}
|
|
||||||
// Classes
|
|
||||||
.show {
|
|
||||||
display: block !important;
|
|
||||||
}
|
|
||||||
.hidden {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
.invisible {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage as mixins
|
|
||||||
.element {
|
|
||||||
.show();
|
|
||||||
}
|
|
||||||
.another-element {
|
|
||||||
.hidden();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="helper-classes-screen-readers">Screen reader and keyboard navigation content</h3>
|
|
||||||
<p>Hide an element to all devices <strong>except screen readers</strong> with <code>.sr-only</code>. Combine <code>.sr-only</code> with <code>.sr-only-focusable</code> to show the element again when it's focused (e.g. by a keyboard-only user). Necessary for following <a href="../getting-started/#accessibility">accessibility best practices</a>. Can also be used as mixins.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight scss %}
|
|
||||||
// Usage as a mixin
|
|
||||||
.skip-navigation {
|
|
||||||
.sr-only();
|
|
||||||
.sr-only-focusable();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="helper-classes-image-replacement">Image replacement</h3>
|
|
||||||
<p>Utilize the <code>.text-hide</code> class or mixin to help replace an element's text content with a background image.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<h1 class="text-hide">Custom heading</h1>
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight scss %}
|
|
||||||
// Usage as a mixin
|
|
||||||
.heading {
|
|
||||||
.text-hide();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,31 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="images" class="page-header">Images</h1>
|
|
||||||
|
|
||||||
<h2 id="images-responsive">Responsive images</h2>
|
|
||||||
<p>Images in Bootstrap 3 can be made responsive-friendly via the addition of the <code>.img-responsive</code> class. This applies <code>max-width: 100%;</code>, <code>height: auto;</code> and <code>display: block;</code> to the image so that it scales nicely to the parent element.</p>
|
|
||||||
<p>To center images which use the <code>.img-responsive</code> class, use <code>.center-block</code> instead of <code>.text-center</code>. <a href="../css/#helper-classes-center">See the helper classes section</a> for more details about <code>.center-block</code> usage.</p>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-images-ie-svg">
|
|
||||||
<h4>SVG images and IE 8-10</h4>
|
|
||||||
<p>In Internet Explorer 8-10, SVG images with <code>.img-responsive</code> are disproportionately sized. To fix this, add <code>width: 100% \9;</code> where necessary. Bootstrap doesn't apply this automatically as it causes complications to other image formats.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<img src="..." class="img-responsive" alt="Responsive image">
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="images-shapes">Image shapes</h2>
|
|
||||||
<p>Add classes to an <code><img></code> element to easily style images in any project.</p>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-images-ie-rounded-corners">
|
|
||||||
<h4>Cross-browser compatibility</h4>
|
|
||||||
<p>Keep in mind that Internet Explorer 8 lacks support for rounded corners.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example bs-example-images" data-example-id="image-shapes">
|
|
||||||
<img data-src="holder.js/140x140" class="img-rounded" alt="A generic square placeholder image with rounded corners">
|
|
||||||
<img data-src="holder.js/140x140" class="img-circle" alt="A generic square placeholder image where only the portion within the circle circumscribed about said square is visible">
|
|
||||||
<img data-src="holder.js/140x140" class="img-thumbnail" alt="A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera">
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<img src="..." alt="..." class="img-rounded">
|
|
||||||
<img src="..." alt="..." class="img-circle">
|
|
||||||
<img src="..." alt="..." class="img-thumbnail">
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,499 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="less" class="page-header">Using Less</h1>
|
|
||||||
|
|
||||||
<p class="lead">Bootstrap's CSS is built on Less, a preprocessor with additional functionality like variables, mixins, and functions for compiling CSS. Those looking to use the source Less files instead of our compiled CSS files can make use of the numerous variables and mixins we use throughout the framework.</p>
|
|
||||||
|
|
||||||
<p>Grid variables and mixins are covered <a href="#grid-less">within the Grid system section</a>.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="less-bootstrap">Compiling Bootstrap</h2>
|
|
||||||
<p>Bootstrap can be used in at least two ways: with the compiled CSS or with the source Less files. To compile the Less files, <a href="../getting-started/#grunt">consult the Getting Started section</a> for how to setup your development environment to run the necessary commands.</p>
|
|
||||||
<p>Third party compilation tools may work with Bootstrap, but they are not supported by our core team.</p>
|
|
||||||
|
|
||||||
<h2 id="less-variables">Variables</h2>
|
|
||||||
<p>Variables are used throughout the entire project as a way to centralize and share commonly used values like colors, spacing, or font stacks. For a complete breakdown, please see <a href="../customize/#less-variables-section">the Customizer</a>.</p>
|
|
||||||
|
|
||||||
<h3 id="less-variables-colors">Colors</h3>
|
|
||||||
<p>Easily make use of two color schemes: grayscale and semantic. Grayscale colors provide quick access to commonly used shades of black while semantic include various colors assigned to meaningful contextual values.</p>
|
|
||||||
<div class="bs-example">
|
|
||||||
<div class="color-swatches">
|
|
||||||
<div class="color-swatch gray-darker"></div>
|
|
||||||
<div class="color-swatch gray-dark"></div>
|
|
||||||
<div class="color-swatch gray"></div>
|
|
||||||
<div class="color-swatch gray-light"></div>
|
|
||||||
<div class="color-swatch gray-lighter"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight scss %}
|
|
||||||
@gray-darker: lighten(#000, 13.5%); // #222
|
|
||||||
@gray-dark: lighten(#000, 20%); // #333
|
|
||||||
@gray: lighten(#000, 33.5%); // #555
|
|
||||||
@gray-light: lighten(#000, 46.7%); // #777
|
|
||||||
@gray-lighter: lighten(#000, 93.5%); // #eee
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-example">
|
|
||||||
<div class="color-swatches">
|
|
||||||
<div class="color-swatch brand-primary"></div>
|
|
||||||
<div class="color-swatch brand-success"></div>
|
|
||||||
<div class="color-swatch brand-info"></div>
|
|
||||||
<div class="color-swatch brand-warning"></div>
|
|
||||||
<div class="color-swatch brand-danger"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight scss %}
|
|
||||||
@brand-primary: darken(#428bca, 6.5%); // #337ab7
|
|
||||||
@brand-success: #5cb85c;
|
|
||||||
@brand-info: #5bc0de;
|
|
||||||
@brand-warning: #f0ad4e;
|
|
||||||
@brand-danger: #d9534f;
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>Use any of these color variables as they are or reassign them to more meaningful variables for your project.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
// Use as-is
|
|
||||||
.masthead {
|
|
||||||
background-color: @brand-primary;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reassigned variables in Less
|
|
||||||
@alert-message-background: @brand-info;
|
|
||||||
.alert {
|
|
||||||
background-color: @alert-message-background;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-variables-scaffolding">Scaffolding</h3>
|
|
||||||
<p>A handful of variables for quickly customizing key elements of your site's skeleton.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
// Scaffolding
|
|
||||||
@body-bg: #fff;
|
|
||||||
@text-color: @black-50;
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-variables-links">Links</h3>
|
|
||||||
<p>Easily style your links with the right color with only one value.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
// Variables
|
|
||||||
@link-color: @brand-primary;
|
|
||||||
@link-hover-color: darken(@link-color, 15%);
|
|
||||||
|
|
||||||
// Usage
|
|
||||||
a {
|
|
||||||
color: @link-color;
|
|
||||||
text-decoration: none;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: @link-hover-color;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>Note that the <code>@link-hover-color</code> uses a function, another awesome tool from Less, to automagically create the right hover color. You can use <code>darken</code>, <code>lighten</code>, <code>saturate</code>, and <code>desaturate</code>.</p>
|
|
||||||
|
|
||||||
<h3 id="less-variables-typography">Typography</h3>
|
|
||||||
<p>Easily set your typeface, text size, leading, and more with a few quick variables. Bootstrap makes use of these as well to provide easy typographic mixins.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
||||||
@font-family-serif: Georgia, "Times New Roman", Times, serif;
|
|
||||||
@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
||||||
@font-family-base: @font-family-sans-serif;
|
|
||||||
|
|
||||||
@font-size-base: 14px;
|
|
||||||
@font-size-large: ceil((@font-size-base * 1.25)); // ~18px
|
|
||||||
@font-size-small: ceil((@font-size-base * 0.85)); // ~12px
|
|
||||||
|
|
||||||
@font-size-h1: floor((@font-size-base * 2.6)); // ~36px
|
|
||||||
@font-size-h2: floor((@font-size-base * 2.15)); // ~30px
|
|
||||||
@font-size-h3: ceil((@font-size-base * 1.7)); // ~24px
|
|
||||||
@font-size-h4: ceil((@font-size-base * 1.25)); // ~18px
|
|
||||||
@font-size-h5: @font-size-base;
|
|
||||||
@font-size-h6: ceil((@font-size-base * 0.85)); // ~12px
|
|
||||||
|
|
||||||
@line-height-base: 1.428571429; // 20/14
|
|
||||||
@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
|
|
||||||
|
|
||||||
@headings-font-family: inherit;
|
|
||||||
@headings-font-weight: 500;
|
|
||||||
@headings-line-height: 1.1;
|
|
||||||
@headings-color: inherit;
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-variables-icons">Icons</h3>
|
|
||||||
<p>Two quick variables for customizing the location and filename of your icons.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
@icon-font-path: "../fonts/";
|
|
||||||
@icon-font-name: "icons-halflings-regular";
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-variables-components">Components</h3>
|
|
||||||
<p>Components throughout Bootstrap make use of some default variables for setting common values. Here are the most commonly used.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
@padding-base-vertical: 6px;
|
|
||||||
@padding-base-horizontal: 12px;
|
|
||||||
|
|
||||||
@padding-large-vertical: 10px;
|
|
||||||
@padding-large-horizontal: 16px;
|
|
||||||
|
|
||||||
@padding-small-vertical: 5px;
|
|
||||||
@padding-small-horizontal: 10px;
|
|
||||||
|
|
||||||
@padding-xs-vertical: 1px;
|
|
||||||
@padding-xs-horizontal: 5px;
|
|
||||||
|
|
||||||
@line-height-large: 1.33;
|
|
||||||
@line-height-small: 1.5;
|
|
||||||
|
|
||||||
@border-radius-base: 4px;
|
|
||||||
@border-radius-large: 6px;
|
|
||||||
@border-radius-small: 3px;
|
|
||||||
|
|
||||||
@component-active-color: #fff;
|
|
||||||
@component-active-bg: @brand-primary;
|
|
||||||
|
|
||||||
@caret-width-base: 4px;
|
|
||||||
@caret-width-large: 5px;
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="less-mixins-vendor">Vendor mixins</h2>
|
|
||||||
<p>Vendor mixins are mixins to help support multiple browsers by including all relevant vendor prefixes in your compiled CSS.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="less-mixins-box-sizing">Box-sizing</h3>
|
|
||||||
<p>Reset your components' box model with a single mixin. For context, see this <a href="https://developer.mozilla.org/en-US/docs/CSS/box-sizing" target="_blank">helpful article from Mozilla</a>.</p>
|
|
||||||
<p>The mixin is <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixin internally until Bootstrap v4.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.box-sizing(@box-model) {
|
|
||||||
-webkit-box-sizing: @box-model; // Safari <= 5
|
|
||||||
-moz-box-sizing: @box-model; // Firefox <= 19
|
|
||||||
box-sizing: @box-model;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-rounded-corners">Rounded corners</h3>
|
|
||||||
<p>Today all modern browsers support the non-prefixed <code>border-radius</code> property. As such, there is no <code>.border-radius()</code> mixin, but Bootstrap does include shortcuts for quickly rounding two corners on a particular side of an object.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.border-top-radius(@radius) {
|
|
||||||
border-top-right-radius: @radius;
|
|
||||||
border-top-left-radius: @radius;
|
|
||||||
}
|
|
||||||
.border-right-radius(@radius) {
|
|
||||||
border-bottom-right-radius: @radius;
|
|
||||||
border-top-right-radius: @radius;
|
|
||||||
}
|
|
||||||
.border-bottom-radius(@radius) {
|
|
||||||
border-bottom-right-radius: @radius;
|
|
||||||
border-bottom-left-radius: @radius;
|
|
||||||
}
|
|
||||||
.border-left-radius(@radius) {
|
|
||||||
border-bottom-left-radius: @radius;
|
|
||||||
border-top-left-radius: @radius;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-box-shadow">Box (Drop) shadows</h3>
|
|
||||||
<p>If your target audience is using the latest and greatest browsers and devices, be sure to just use the <code>box-shadow</code> property on its own. If you need support for older Android (pre-v4) and iOS devices (pre-iOS 5), use the <strong>deprecated</strong> mixin to pick up the required <code>-webkit</code> prefix.</p>
|
|
||||||
<p>The mixin is <strong>deprecated</strong> as of v3.1.0, since Bootstrap doesn't officially support the outdated platforms that don't support the standard property. To preserve backwards-compatibility, Bootstrap will continue to use the mixin internally until Bootstrap v4.</p>
|
|
||||||
<p>Be sure to use <code>rgba()</code> colors in your box shadows so they blend as seamlessly as possible with backgrounds.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
|
|
||||||
-webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
|
|
||||||
box-shadow: @shadow;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-transitions">Transitions</h3>
|
|
||||||
<p>Multiple mixins for flexibility. Set all transition information with one, or specify a separate delay and duration as needed.</p>
|
|
||||||
<p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.transition(@transition) {
|
|
||||||
-webkit-transition: @transition;
|
|
||||||
transition: @transition;
|
|
||||||
}
|
|
||||||
.transition-property(@transition-property) {
|
|
||||||
-webkit-transition-property: @transition-property;
|
|
||||||
transition-property: @transition-property;
|
|
||||||
}
|
|
||||||
.transition-delay(@transition-delay) {
|
|
||||||
-webkit-transition-delay: @transition-delay;
|
|
||||||
transition-delay: @transition-delay;
|
|
||||||
}
|
|
||||||
.transition-duration(@transition-duration) {
|
|
||||||
-webkit-transition-duration: @transition-duration;
|
|
||||||
transition-duration: @transition-duration;
|
|
||||||
}
|
|
||||||
.transition-timing-function(@timing-function) {
|
|
||||||
-webkit-transition-timing-function: @timing-function;
|
|
||||||
transition-timing-function: @timing-function;
|
|
||||||
}
|
|
||||||
.transition-transform(@transition) {
|
|
||||||
-webkit-transition: -webkit-transform @transition;
|
|
||||||
-moz-transition: -moz-transform @transition;
|
|
||||||
-o-transition: -o-transform @transition;
|
|
||||||
transition: transform @transition;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-transformations">Transformations</h3>
|
|
||||||
<p>Rotate, scale, translate (move), or skew any object.</p>
|
|
||||||
<p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.rotate(@degrees) {
|
|
||||||
-webkit-transform: rotate(@degrees);
|
|
||||||
-ms-transform: rotate(@degrees); // IE9 only
|
|
||||||
transform: rotate(@degrees);
|
|
||||||
}
|
|
||||||
.scale(@ratio; @ratio-y...) {
|
|
||||||
-webkit-transform: scale(@ratio, @ratio-y);
|
|
||||||
-ms-transform: scale(@ratio, @ratio-y); // IE9 only
|
|
||||||
transform: scale(@ratio, @ratio-y);
|
|
||||||
}
|
|
||||||
.translate(@x; @y) {
|
|
||||||
-webkit-transform: translate(@x, @y);
|
|
||||||
-ms-transform: translate(@x, @y); // IE9 only
|
|
||||||
transform: translate(@x, @y);
|
|
||||||
}
|
|
||||||
.skew(@x; @y) {
|
|
||||||
-webkit-transform: skew(@x, @y);
|
|
||||||
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
|
|
||||||
transform: skew(@x, @y);
|
|
||||||
}
|
|
||||||
.translate3d(@x; @y; @z) {
|
|
||||||
-webkit-transform: translate3d(@x, @y, @z);
|
|
||||||
transform: translate3d(@x, @y, @z);
|
|
||||||
}
|
|
||||||
|
|
||||||
.rotateX(@degrees) {
|
|
||||||
-webkit-transform: rotateX(@degrees);
|
|
||||||
-ms-transform: rotateX(@degrees); // IE9 only
|
|
||||||
transform: rotateX(@degrees);
|
|
||||||
}
|
|
||||||
.rotateY(@degrees) {
|
|
||||||
-webkit-transform: rotateY(@degrees);
|
|
||||||
-ms-transform: rotateY(@degrees); // IE9 only
|
|
||||||
transform: rotateY(@degrees);
|
|
||||||
}
|
|
||||||
.perspective(@perspective) {
|
|
||||||
-webkit-perspective: @perspective;
|
|
||||||
-moz-perspective: @perspective;
|
|
||||||
perspective: @perspective;
|
|
||||||
}
|
|
||||||
.perspective-origin(@perspective) {
|
|
||||||
-webkit-perspective-origin: @perspective;
|
|
||||||
-moz-perspective-origin: @perspective;
|
|
||||||
perspective-origin: @perspective;
|
|
||||||
}
|
|
||||||
.transform-origin(@origin) {
|
|
||||||
-webkit-transform-origin: @origin;
|
|
||||||
-moz-transform-origin: @origin;
|
|
||||||
-ms-transform-origin: @origin; // IE9 only
|
|
||||||
transform-origin: @origin;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-animations">Animations</h3>
|
|
||||||
<p>A single mixin for using all of CSS3's animation properties in one declaration and other mixins for individual properties.</p>
|
|
||||||
<p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.animation(@animation) {
|
|
||||||
-webkit-animation: @animation;
|
|
||||||
animation: @animation;
|
|
||||||
}
|
|
||||||
.animation-name(@name) {
|
|
||||||
-webkit-animation-name: @name;
|
|
||||||
animation-name: @name;
|
|
||||||
}
|
|
||||||
.animation-duration(@duration) {
|
|
||||||
-webkit-animation-duration: @duration;
|
|
||||||
animation-duration: @duration;
|
|
||||||
}
|
|
||||||
.animation-timing-function(@timing-function) {
|
|
||||||
-webkit-animation-timing-function: @timing-function;
|
|
||||||
animation-timing-function: @timing-function;
|
|
||||||
}
|
|
||||||
.animation-delay(@delay) {
|
|
||||||
-webkit-animation-delay: @delay;
|
|
||||||
animation-delay: @delay;
|
|
||||||
}
|
|
||||||
.animation-iteration-count(@iteration-count) {
|
|
||||||
-webkit-animation-iteration-count: @iteration-count;
|
|
||||||
animation-iteration-count: @iteration-count;
|
|
||||||
}
|
|
||||||
.animation-direction(@direction) {
|
|
||||||
-webkit-animation-direction: @direction;
|
|
||||||
animation-direction: @direction;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-opacity">Opacity</h3>
|
|
||||||
<p>Set the opacity for all browsers and provide a <code>filter</code> fallback for IE8.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.opacity(@opacity) {
|
|
||||||
opacity: @opacity;
|
|
||||||
// IE8 filter
|
|
||||||
@opacity-ie: (@opacity * 100);
|
|
||||||
filter: ~"alpha(opacity=@{opacity-ie})";
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-placeholder">Placeholder text</h3>
|
|
||||||
<p>Provide context for form controls within each field.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.placeholder(@color: @input-color-placeholder) {
|
|
||||||
&::-moz-placeholder { color: @color; } // Firefox
|
|
||||||
&:-ms-input-placeholder { color: @color; } // Internet Explorer 10+
|
|
||||||
&::-webkit-input-placeholder { color: @color; } // Safari and Chrome
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-columns">Columns</h3>
|
|
||||||
<p>Generate columns via CSS within a single element.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.content-columns(@width; @count; @gap) {
|
|
||||||
-webkit-column-width: @width;
|
|
||||||
-moz-column-width: @width;
|
|
||||||
column-width: @width;
|
|
||||||
-webkit-column-count: @count;
|
|
||||||
-moz-column-count: @count;
|
|
||||||
column-count: @count;
|
|
||||||
-webkit-column-gap: @gap;
|
|
||||||
-moz-column-gap: @gap;
|
|
||||||
column-gap: @gap;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-gradients">Gradients</h3>
|
|
||||||
<p>Easily turn any two colors into a background gradient. Get more advanced and set a direction, use three colors, or use a radial gradient. With a single mixin you get all the prefixed syntaxes you'll need.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
#gradient > .vertical(#333; #000);
|
|
||||||
#gradient > .horizontal(#333; #000);
|
|
||||||
#gradient > .radial(#333; #000);
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>You can also specify the angle of a standard two-color, linear gradient:</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
#gradient > .directional(#333; #000; 45deg);
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>If you need a barber-stripe style gradient, that's easy, too. Just specify a single color and we'll overlay a translucent white stripe.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
#gradient > .striped(#333; 45deg);
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>Up the ante and use three colors instead. Set the first color, the second color, the second color's color stop (a percentage value like 25%), and the third color with these mixins:</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
#gradient > .vertical-three-colors(#777; #333; 25%; #000);
|
|
||||||
#gradient > .horizontal-three-colors(#777; #333; 25%; #000);
|
|
||||||
{% endhighlight %}
|
|
||||||
<p><strong>Heads up!</strong> Should you ever need to remove a gradient, be sure to remove any IE-specific <code>filter</code> you may have added. You can do that by using the <code>.reset-filter()</code> mixin alongside <code>background-image: none;</code>.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="less-mixins-utility">Utility mixins</h2>
|
|
||||||
<p>Utility mixins are mixins that combine otherwise unrelated CSS properties to achieve a specific goal or task.</p>
|
|
||||||
|
|
||||||
<h3 id="less-mixins-clearfix">Clearfix</h3>
|
|
||||||
<p>Forget adding <code>class="clearfix"</code> to any element and instead add the <code>.clearfix()</code> mixin where appropriate. Uses the <a href="http://nicolasgallagher.com/micro-clearfix-hack/" target="_blank">micro clearfix</a> from <a href="https://twitter.com/necolas" target="_blank">Nicolas Gallagher</a>.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
// Mixin
|
|
||||||
.clearfix() {
|
|
||||||
&:before,
|
|
||||||
&:after {
|
|
||||||
content: " ";
|
|
||||||
display: table;
|
|
||||||
}
|
|
||||||
&:after {
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage
|
|
||||||
.container {
|
|
||||||
.clearfix();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-centering">Horizontal centering</h3>
|
|
||||||
<p>Quickly center any element within its parent. <strong>Requires <code>width</code> or <code>max-width</code> to be set.</strong></p>
|
|
||||||
{% highlight scss %}
|
|
||||||
// Mixin
|
|
||||||
.center-block() {
|
|
||||||
display: block;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage
|
|
||||||
.container {
|
|
||||||
width: 940px;
|
|
||||||
.center-block();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-sizing">Sizing helpers</h3>
|
|
||||||
<p>Specify the dimensions of an object more easily.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
// Mixins
|
|
||||||
.size(@width; @height) {
|
|
||||||
width: @width;
|
|
||||||
height: @height;
|
|
||||||
}
|
|
||||||
.square(@size) {
|
|
||||||
.size(@size; @size);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage
|
|
||||||
.image { .size(400px; 300px); }
|
|
||||||
.avatar { .square(48px); }
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-resizable">Resizable textareas</h3>
|
|
||||||
<p>Easily configure the resize options for any textarea, or any other element. Defaults to normal browser behavior (<code>both</code>).</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.resizable(@direction: both) {
|
|
||||||
// Options: horizontal, vertical, both
|
|
||||||
resize: @direction;
|
|
||||||
// Safari fix
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-truncating">Truncating text</h3>
|
|
||||||
<p>Easily truncate text with an ellipsis with a single mixin. <strong>Requires element to be <code>block</code> or <code>inline-block</code> level.</strong></p>
|
|
||||||
{% highlight scss %}
|
|
||||||
// Mixin
|
|
||||||
.text-overflow() {
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage
|
|
||||||
.branch-name {
|
|
||||||
display: inline-block;
|
|
||||||
max-width: 200px;
|
|
||||||
.text-overflow();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="less-mixins-retina-images">Retina images</h3>
|
|
||||||
<p>Specify two image paths and the @1x image dimensions, and Bootstrap will provide an @2x media query. <strong>If you have many images to serve, consider writing your retina image CSS manually in a single media query.</strong></p>
|
|
||||||
{% highlight scss %}
|
|
||||||
.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
|
|
||||||
background-image: url("@{file-1x}");
|
|
||||||
|
|
||||||
@media
|
|
||||||
only screen and (-webkit-min-device-pixel-ratio: 2),
|
|
||||||
only screen and ( min--moz-device-pixel-ratio: 2),
|
|
||||||
only screen and ( -o-min-device-pixel-ratio: 2/1),
|
|
||||||
only screen and ( min-device-pixel-ratio: 2),
|
|
||||||
only screen and ( min-resolution: 192dpi),
|
|
||||||
only screen and ( min-resolution: 2dppx) {
|
|
||||||
background-image: url("@{file-2x}");
|
|
||||||
background-size: @width-1x @height-1x;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Usage
|
|
||||||
.jumbotron {
|
|
||||||
.img-retina("/img/bg-1x.png", "/img/bg-2x.png", 100px, 100px);
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,52 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="overview" class="page-header">Overview</h1>
|
|
||||||
|
|
||||||
<p class="lead">Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development.</p>
|
|
||||||
|
|
||||||
<h2 id="overview-doctype">HTML5 doctype</h2>
|
|
||||||
<p>Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
...
|
|
||||||
</html>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="overview-mobile">Mobile first</h2>
|
|
||||||
<p>With Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. With Bootstrap 3, we've rewritten the project to be mobile friendly from the start. Instead of adding on optional mobile styles, they're baked right into the core. In fact, <strong>Bootstrap is mobile first</strong>. Mobile first styles can be found throughout the entire library instead of in separate files.</p>
|
|
||||||
<p>To ensure proper rendering and touch zooming, <strong>add the viewport meta tag</strong> to your <code><head></code>.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>You can disable zooming capabilities on mobile devices by adding <code>user-scalable=no</code> to the viewport meta tag. This disables zooming, meaning users are only able to scroll, and results in your site feeling a bit more like a native application. Overall, we don't recommend this on every site, so use caution!</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="overview-type-links">Typography and links</h2>
|
|
||||||
<p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Set <code>background-color: #fff;</code> on the <code>body</code></li>
|
|
||||||
<li>Use the <code>@font-family-base</code>, <code>@font-size-base</code>, and <code>@line-height-base</code> attributes as our typographic base</li>
|
|
||||||
<li>Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code></li>
|
|
||||||
</ul>
|
|
||||||
<p>These styles can be found within <code>scaffolding.less</code>.</p>
|
|
||||||
|
|
||||||
<h2 id="overview-normalize">Normalize.css</h2>
|
|
||||||
<p>For improved cross-browser rendering, we use <a href="http://necolas.github.io/normalize.css/" target="_blank">Normalize.css</a>, a project by <a href="https://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="https://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p>
|
|
||||||
|
|
||||||
<h2 id="overview-container">Containers</h2>
|
|
||||||
<p>Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to <code>padding</code> and more, neither container is nestable.</p>
|
|
||||||
<p>Use <code>.container</code> for a responsive fixed width container.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="container">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>Use <code>.container-fluid</code> for a full width container, spanning the entire width of your viewport.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="container-fluid">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,258 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="responsive-utilities" class="page-header">Responsive utilities</h1>
|
|
||||||
|
|
||||||
<p class="lead">For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.</p>
|
|
||||||
<p>Try to use these on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="responsive-utilities-classes">Available classes</h2>
|
|
||||||
<p>Use a single or combination of the available classes for toggling content across viewport breakpoints.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped responsive-utilities">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th>
|
|
||||||
Extra small devices
|
|
||||||
<small>Phones (<768px)</small>
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Small devices
|
|
||||||
<small>Tablets (≥768px)</small>
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Medium devices
|
|
||||||
<small>Desktops (≥992px)</small>
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Large devices
|
|
||||||
<small>Desktops (≥1200px)</small>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.visible-xs-*</code></th>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.visible-sm-*</code></th>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.visible-md-*</code></th>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.visible-lg-*</code></th>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.hidden-xs</code></th>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.hidden-sm</code></th>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.hidden-md</code></th>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.hidden-lg</code></th>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>As of v3.2.0, the <code>.visible-*-*</code> classes for each breakpoint come in three variations, one for each CSS <code>display</code> property value listed below.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Group of classes</th>
|
|
||||||
<th>CSS <code>display</code></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.visible-*-block</code></th>
|
|
||||||
<td><code>display: block;</code></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.visible-*-inline</code></th>
|
|
||||||
<td><code>display: inline;</code></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.visible-*-inline-block</code></th>
|
|
||||||
<td><code>display: inline-block;</code></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<p>So, for extra small (<code>xs</code>) screens for example, the available <code>.visible-*-*</code> classes are: <code>.visible-xs-block</code>, <code>.visible-xs-inline</code>, and <code>.visible-xs-inline-block</code>.</p>
|
|
||||||
<p>The classes <code>.visible-xs</code>, <code>.visible-sm</code>, <code>.visible-md</code>, and <code>.visible-lg</code> also exist, but are <strong>deprecated as of v3.2.0</strong>. They are approximately equivalent to <code>.visible-*-block</code>, except with additional special cases for toggling <code><table></code>-related elements.</p>
|
|
||||||
|
|
||||||
<h2 id="responsive-utilities-print">Print classes</h2>
|
|
||||||
<p>Similar to the regular responsive classes, use these for toggling content for print.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped responsive-utilities">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Classes</th>
|
|
||||||
<th>Browser</th>
|
|
||||||
<th>Print</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
<code>.visible-print-block</code><br>
|
|
||||||
<code>.visible-print-inline</code><br>
|
|
||||||
<code>.visible-print-inline-block</code>
|
|
||||||
</th>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>.hidden-print</code></th>
|
|
||||||
<td class="is-visible">Visible</td>
|
|
||||||
<td class="is-hidden">Hidden</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<p>The class <code>.visible-print</code> also exists but is <strong>deprecated</strong> as of v3.2.0. It is approximately equivalent to <code>.visible-print-block</code>, except with additional special cases for <code><table></code>-related elements.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="responsive-utilities-tests">Test cases</h2>
|
|
||||||
<p>Resize your browser or load on different devices to test the responsive utility classes.</p>
|
|
||||||
|
|
||||||
<h3>Visible on...</h3>
|
|
||||||
<p>Green checkmarks indicate the element <strong>is visible</strong> in your current viewport.</p>
|
|
||||||
<div class="row responsive-utilities-test visible-on">
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
<span class="hidden-xs">Extra small</span>
|
|
||||||
<span class="visible-xs-block">✔ Visible on x-small</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
<span class="hidden-sm">Small</span>
|
|
||||||
<span class="visible-sm-block">✔ Visible on small</span>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
<span class="hidden-md">Medium</span>
|
|
||||||
<span class="visible-md-block">✔ Visible on medium</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
<span class="hidden-lg">Large</span>
|
|
||||||
<span class="visible-lg-block">✔ Visible on large</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row responsive-utilities-test visible-on">
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-xs hidden-sm">Extra small and small</span>
|
|
||||||
<span class="visible-xs-block visible-sm-block">✔ Visible on x-small and small</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-md hidden-lg">Medium and large</span>
|
|
||||||
<span class="visible-md-block visible-lg-block">✔ Visible on medium and large</span>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-xs hidden-md">Extra small and medium</span>
|
|
||||||
<span class="visible-xs-block visible-md-block">✔ Visible on x-small and medium</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-sm hidden-lg">Small and large</span>
|
|
||||||
<span class="visible-sm-block visible-lg-block">✔ Visible on small and large</span>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-xs hidden-lg">Extra small and large</span>
|
|
||||||
<span class="visible-xs-block visible-lg-block">✔ Visible on x-small and large</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-sm hidden-md">Small and medium</span>
|
|
||||||
<span class="visible-sm-block visible-md-block">✔ Visible on small and medium</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Hidden on...</h3>
|
|
||||||
<p>Here, green checkmarks also indicate the element <strong>is hidden</strong> in your current viewport.</p>
|
|
||||||
<div class="row responsive-utilities-test hidden-on">
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
<span class="hidden-xs">Extra small</span>
|
|
||||||
<span class="visible-xs-block">✔ Hidden on x-small</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
<span class="hidden-sm">Small</span>
|
|
||||||
<span class="visible-sm-block">✔ Hidden on small</span>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
<span class="hidden-md">Medium</span>
|
|
||||||
<span class="visible-md-block">✔ Hidden on medium</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-sm-3">
|
|
||||||
<span class="hidden-lg">Large</span>
|
|
||||||
<span class="visible-lg-block">✔ Hidden on large</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row responsive-utilities-test hidden-on">
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-xs hidden-sm">Extra small and small</span>
|
|
||||||
<span class="visible-xs-block visible-sm-block">✔ Hidden on x-small and small</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-md hidden-lg">Medium and large</span>
|
|
||||||
<span class="visible-md-block visible-lg-block">✔ Hidden on medium and large</span>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-xs hidden-md">Extra small and medium</span>
|
|
||||||
<span class="visible-xs-block visible-md-block">✔ Hidden on x-small and medium</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-sm hidden-lg">Small and large</span>
|
|
||||||
<span class="visible-sm-block visible-lg-block">✔ Hidden on small and large</span>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs-block"></div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-xs hidden-lg">Extra small and large</span>
|
|
||||||
<span class="visible-xs-block visible-lg-block">✔ Hidden on x-small and large</span>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<span class="hidden-sm hidden-md">Small and medium</span>
|
|
||||||
<span class="visible-sm-block visible-md-block">✔ Hidden on small and medium</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,52 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="sass" class="page-header">Using Sass</h1>
|
|
||||||
<p class="lead">While Bootstrap is built on Less, it also has an <a href="{{ site.sass_repo }}">official Sass port</a>. We maintain it in a separate GitHub repository and handle updates with a conversion script.</p>
|
|
||||||
|
|
||||||
<h2 id="sass-contents">What's included</h2>
|
|
||||||
<p>Since the Sass port has a separate repo and serves a slightly different audience, the contents of the project differ greatly from the main Bootstrap project. This ensures the Sass port is as compatible with as many Sass-based systems as possible.</p>
|
|
||||||
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Path</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>lib/</code></th>
|
|
||||||
<td>Ruby gem code (Sass configuration, Rails and Compass integrations)</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>tasks/</code></th>
|
|
||||||
<td>Converter scripts (turning upstream Less to Sass)</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>test/</code></th>
|
|
||||||
<td>Compilation tests</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>templates/</code></th>
|
|
||||||
<td>Compass package manifest</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>vendor/assets/</code></th>
|
|
||||||
<td>Sass, JavaScript, and font files</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>Rakefile</code></th>
|
|
||||||
<td>Internal tasks, such as rake and convert</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<p>Visit the <a href="{{ site.sass_repo }}">Sass port's GitHub repository</a> to see these files in action.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="sass-installation">Installation</h2>
|
|
||||||
<p>For information on how to install and use Bootstrap for Sass, consult the <a href="{{ site.sass_repo }}">GitHub repository readme</a>. It's the most up to date source and includes information for use with Rails, Compass, and standard Sass projects.</p>
|
|
||||||
<p>
|
|
||||||
<a class="btn btn-lg btn-outline" href="{{ site.sass_repo }}">Bootstrap for Sass</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
|
@ -1,467 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="tables" class="page-header">Tables</h1>
|
|
||||||
|
|
||||||
<h2 id="tables-example">Basic example</h2>
|
|
||||||
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-table">
|
|
||||||
<table class="table">
|
|
||||||
<caption>Optional table caption.</caption>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>First Name</th>
|
|
||||||
<th>Last Name</th>
|
|
||||||
<th>Username</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Mark</td>
|
|
||||||
<td>Otto</td>
|
|
||||||
<td>@mdo</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Jacob</td>
|
|
||||||
<td>Thornton</td>
|
|
||||||
<td>@fat</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Larry</td>
|
|
||||||
<td>the Bird</td>
|
|
||||||
<td>@twitter</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<table class="table">
|
|
||||||
...
|
|
||||||
</table>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="tables-striped">Striped rows</h2>
|
|
||||||
<p>Use <code>.table-striped</code> to add zebra-striping to any table row within the <code><tbody></code>.</p>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-tables-striped-ie8">
|
|
||||||
<h4>Cross-browser compatibility</h4>
|
|
||||||
<p>Striped tables are styled via the <code>:nth-child</code> CSS selector, which is not available in Internet Explorer 8.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example" data-example-id="striped-table">
|
|
||||||
<table class="table table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>First Name</th>
|
|
||||||
<th>Last Name</th>
|
|
||||||
<th>Username</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Mark</td>
|
|
||||||
<td>Otto</td>
|
|
||||||
<td>@mdo</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Jacob</td>
|
|
||||||
<td>Thornton</td>
|
|
||||||
<td>@fat</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Larry</td>
|
|
||||||
<td>the Bird</td>
|
|
||||||
<td>@twitter</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<table class="table table-striped">
|
|
||||||
...
|
|
||||||
</table>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="tables-bordered">Bordered table</h2>
|
|
||||||
<p>Add <code>.table-bordered</code> for borders on all sides of the table and cells.</p>
|
|
||||||
<div class="bs-example" data-example-id="bordered-table">
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>First Name</th>
|
|
||||||
<th>Last Name</th>
|
|
||||||
<th>Username</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Mark</td>
|
|
||||||
<td>Otto</td>
|
|
||||||
<td>@mdo</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Jacob</td>
|
|
||||||
<td>Thornton</td>
|
|
||||||
<td>@fat</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Larry</td>
|
|
||||||
<td>the Bird</td>
|
|
||||||
<td>@twitter</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<table class="table table-bordered">
|
|
||||||
...
|
|
||||||
</table>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="tables-hover-rows">Hover rows</h2>
|
|
||||||
<p>Add <code>.table-hover</code> to enable a hover state on table rows within a <code><tbody></code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="hoverable-table">
|
|
||||||
<table class="table table-hover">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>First Name</th>
|
|
||||||
<th>Last Name</th>
|
|
||||||
<th>Username</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Mark</td>
|
|
||||||
<td>Otto</td>
|
|
||||||
<td>@mdo</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Jacob</td>
|
|
||||||
<td>Thornton</td>
|
|
||||||
<td>@fat</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Larry</td>
|
|
||||||
<td>the Bird</td>
|
|
||||||
<td>@twitter</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<table class="table table-hover">
|
|
||||||
...
|
|
||||||
</table>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="tables-condensed">Condensed table</h2>
|
|
||||||
<p>Add <code>.table-condensed</code> to make tables more compact by cutting cell padding in half.</p>
|
|
||||||
<div class="bs-example" data-example-id="condensed-table">
|
|
||||||
<table class="table table-condensed">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>First Name</th>
|
|
||||||
<th>Last Name</th>
|
|
||||||
<th>Username</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Mark</td>
|
|
||||||
<td>Otto</td>
|
|
||||||
<td>@mdo</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Jacob</td>
|
|
||||||
<td>Thornton</td>
|
|
||||||
<td>@fat</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td colspan="2">Larry the Bird</td>
|
|
||||||
<td>@twitter</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<table class="table table-condensed">
|
|
||||||
...
|
|
||||||
</table>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="tables-contextual-classes">Contextual classes</h2>
|
|
||||||
<p>Use contextual classes to color table rows or individual cells.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<colgroup>
|
|
||||||
<col class="col-xs-1">
|
|
||||||
<col class="col-xs-7">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Class</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
<code>.active</code>
|
|
||||||
</th>
|
|
||||||
<td>Applies the hover color to a particular row or cell</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
<code>.success</code>
|
|
||||||
</th>
|
|
||||||
<td>Indicates a successful or positive action</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
<code>.info</code>
|
|
||||||
</th>
|
|
||||||
<td>Indicates a neutral informative change or action</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
<code>.warning</code>
|
|
||||||
</th>
|
|
||||||
<td>Indicates a warning that might need attention</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
<code>.danger</code>
|
|
||||||
</th>
|
|
||||||
<td>Indicates a dangerous or potentially negative action</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example" data-example-id="contextual-table">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>Column heading</th>
|
|
||||||
<th>Column heading</th>
|
|
||||||
<th>Column heading</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr class="active">
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="success">
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">4</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="info">
|
|
||||||
<th scope="row">5</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">6</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="warning">
|
|
||||||
<th scope="row">7</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">8</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="danger">
|
|
||||||
<th scope="row">9</th>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
<td>Column content</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- On rows -->
|
|
||||||
<tr class="active">...</tr>
|
|
||||||
<tr class="success">...</tr>
|
|
||||||
<tr class="warning">...</tr>
|
|
||||||
<tr class="danger">...</tr>
|
|
||||||
<tr class="info">...</tr>
|
|
||||||
|
|
||||||
<!-- On cells (`td` or `th`) -->
|
|
||||||
<tr>
|
|
||||||
<td class="active">...</td>
|
|
||||||
<td class="success">...</td>
|
|
||||||
<td class="warning">...</td>
|
|
||||||
<td class="danger">...</td>
|
|
||||||
<td class="info">...</td>
|
|
||||||
</tr>
|
|
||||||
{% endhighlight %}
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-tables-context-accessibility">
|
|
||||||
<h4>Conveying meaning to assistive technologies</h4>
|
|
||||||
<p>Using color to add meaning to a table row or individual cell only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (the visible text in the relevant table row/cell), or is included through alternative means, such as additional text hidden with the <code>.sr-only</code> class.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="tables-responsive">Responsive tables</h2>
|
|
||||||
<p>Create responsive tables by wrapping any <code>.table</code> in <code>.table-responsive</code> to make them scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-tables-responsive-overflow">
|
|
||||||
<h4>Vertical clipping/truncation</h4>
|
|
||||||
<p>Responsive tables make use of <code>overflow-y: hidden</code>, which clips off any content that goes beyond the bottom or top edges of the table. In particular, this can clip off dropdown menus and other third-party widgets.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-tables-responsive-ff-fieldset">
|
|
||||||
<h4>Firefox and fieldsets</h4>
|
|
||||||
<p>Firefox has some awkward fieldset styling involving <code>width</code> that interferes with the responsive table. This cannot be overriden without a Firefox-specific hack that we <strong>don't</strong> provide in Bootstrap:</p>
|
|
||||||
{% highlight css %}
|
|
||||||
@-moz-document url-prefix() {
|
|
||||||
fieldset { display: table-cell; }
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>For more information, read <a href="https://stackoverflow.com/questions/17408815/fieldset-resizes-wrong-appears-to-have-unremovable-min-width-min-content/17863685#17863685">this Stack Overflow answer</a>.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-example" data-example-id="simple-responsive-table">
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>#</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
<th>Table heading</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">1</th>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">2</th>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">3</th>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
<td>Table cell</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table">
|
|
||||||
...
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,461 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="type" class="page-header">Typography</h1>
|
|
||||||
|
|
||||||
<!-- Headings -->
|
|
||||||
<h2 id="type-headings">Headings</h2>
|
|
||||||
<p>All HTML headings, <code><h1></code> through <code><h6></code>, are available. <code>.h1</code> through <code>.h6</code> classes are also available, for when you want to match the font styling of a heading but still want your text to be displayed inline.</p>
|
|
||||||
<div class="bs-example bs-example-type" data-example-id="simple-headings">
|
|
||||||
<table class="table">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td><h1>h1. Bootstrap heading</h1></td>
|
|
||||||
<td class="type-info">Semibold 36px</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h2>h2. Bootstrap heading</h2></td>
|
|
||||||
<td class="type-info">Semibold 30px</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h3>h3. Bootstrap heading</h3></td>
|
|
||||||
<td class="type-info">Semibold 24px</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h4>h4. Bootstrap heading</h4></td>
|
|
||||||
<td class="type-info">Semibold 18px</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h5>h5. Bootstrap heading</h5></td>
|
|
||||||
<td class="type-info">Semibold 14px</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h6>h6. Bootstrap heading</h6></td>
|
|
||||||
<td class="type-info">Semibold 12px</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<h1>h1. Bootstrap heading</h1>
|
|
||||||
<h2>h2. Bootstrap heading</h2>
|
|
||||||
<h3>h3. Bootstrap heading</h3>
|
|
||||||
<h4>h4. Bootstrap heading</h4>
|
|
||||||
<h5>h5. Bootstrap heading</h5>
|
|
||||||
<h6>h6. Bootstrap heading</h6>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>Create lighter, secondary text in any heading with a generic <code><small></code> tag or the <code>.small</code> class.</p>
|
|
||||||
<div class="bs-example bs-example-type" data-example-id="small-headings">
|
|
||||||
<table class="table">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td><h1>h1. Bootstrap heading <small>Secondary text</small></h1></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h2>h2. Bootstrap heading <small>Secondary text</small></h2></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h3>h3. Bootstrap heading <small>Secondary text</small></h3></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h4>h4. Bootstrap heading <small>Secondary text</small></h4></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h5>h5. Bootstrap heading <small>Secondary text</small></h5></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><h6>h6. Bootstrap heading <small>Secondary text</small></h6></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<h1>h1. Bootstrap heading <small>Secondary text</small></h1>
|
|
||||||
<h2>h2. Bootstrap heading <small>Secondary text</small></h2>
|
|
||||||
<h3>h3. Bootstrap heading <small>Secondary text</small></h3>
|
|
||||||
<h4>h4. Bootstrap heading <small>Secondary text</small></h4>
|
|
||||||
<h5>h5. Bootstrap heading <small>Secondary text</small></h5>
|
|
||||||
<h6>h6. Bootstrap heading <small>Secondary text</small></h6>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Body copy -->
|
|
||||||
<h2 id="type-body-copy">Body copy</h2>
|
|
||||||
<p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>1.428</strong>. This is applied to the <code><body></code> and all paragraphs. In addition, <code><p></code> (paragraphs) receive a bottom margin of half their computed line-height (10px by default).</p>
|
|
||||||
<div class="bs-example" data-example-id="body-copy">
|
|
||||||
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
|
|
||||||
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
||||||
<p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p>...</p>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<!-- Body copy .lead -->
|
|
||||||
<h3>Lead body copy</h3>
|
|
||||||
<p>Make a paragraph stand out by adding <code>.lead</code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="lead-copy">
|
|
||||||
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p class="lead">...</p>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<!-- Using Less -->
|
|
||||||
<h3>Built with Less</h3>
|
|
||||||
<p>The typographic scale is based on two Less variables in <strong>variables.less</strong>: <code>@font-size-base</code> and <code>@line-height-base</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p>
|
|
||||||
|
|
||||||
<!-- Inline text elements -->
|
|
||||||
<h2 id="type-inline-text">Inline text elements</h2>
|
|
||||||
<h3>Marked text</h3>
|
|
||||||
<p>For highlighting a run of text due to its relevance in another context, use the <code><mark></code> tag.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-mark">
|
|
||||||
<p>You can use the mark tag to <mark>highlight</mark> text.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
You can use the mark tag to <mark>highlight</mark> text.
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Deleted text</h3>
|
|
||||||
<p>For indicating blocks of text that have been deleted use the <code><del></code> tag.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-del">
|
|
||||||
<p><del>This line of text is meant to be treated as deleted text.</del></p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<del>This line of text is meant to be treated as deleted text.</del>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Strikethrough text</h3>
|
|
||||||
<p>For indicating blocks of text that are no longer relevant use the <code><s></code> tag.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-s">
|
|
||||||
<p><s>This line of text is meant to be treated as no longer accurate.</s></p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<s>This line of text is meant to be treated as no longer accurate.</s>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Inserted text</h3>
|
|
||||||
<p>For indicating additions to the document use the <code><ins></code> tag.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-ins">
|
|
||||||
<p><ins>This line of text is meant to be treated as an addition to the document.</ins></p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ins>This line of text is meant to be treated as an addition to the document.</ins>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Underlined text</h3>
|
|
||||||
<p>To underline text use the <code><u></code> tag.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-u">
|
|
||||||
<p><u>This line of text will render as underlined</u></p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<u>This line of text will render as underlined</u>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>Make use of HTML's default emphasis tags with lightweight styles.</p>
|
|
||||||
|
|
||||||
<h3>Small text</h3>
|
|
||||||
<p>For de-emphasizing inline or blocks of text, use the <code><small></code> tag to set text at 85% the size of the parent. Heading elements receive their own <code>font-size</code> for nested <code><small></code> elements.</p>
|
|
||||||
<p>You may alternatively use an inline element with <code>.small</code> in place of any <code><small></code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-small">
|
|
||||||
<p><small>This line of text is meant to be treated as fine print.</small></p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<small>This line of text is meant to be treated as fine print.</small>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Bold</h3>
|
|
||||||
<p>For emphasizing a snippet of text with a heavier font-weight.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-strong">
|
|
||||||
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<strong>rendered as bold text</strong>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Italics</h3>
|
|
||||||
<p>For emphasizing a snippet of text with italics.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-em">
|
|
||||||
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<em>rendered as italicized text</em>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-type-b-i-elems">
|
|
||||||
<h4>Alternate elements</h4>
|
|
||||||
<p>Feel free to use <code><b></code> and <code><i></code> in HTML5. <code><b></code> is meant to highlight words or phrases without conveying additional importance while <code><i></code> is mostly for voice, technical terms, etc.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="type-alignment">Alignment classes</h2>
|
|
||||||
<p>Easily realign text to components with text alignment classes.</p>
|
|
||||||
<div class="bs-example" data-example-id="text-alignment">
|
|
||||||
<p class="text-left">Left aligned text.</p>
|
|
||||||
<p class="text-center">Center aligned text.</p>
|
|
||||||
<p class="text-right">Right aligned text.</p>
|
|
||||||
<p class="text-justify">Justified text.</p>
|
|
||||||
<p class="text-nowrap">No wrap text.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p class="text-left">Left aligned text.</p>
|
|
||||||
<p class="text-center">Center aligned text.</p>
|
|
||||||
<p class="text-right">Right aligned text.</p>
|
|
||||||
<p class="text-justify">Justified text.</p>
|
|
||||||
<p class="text-nowrap">No wrap text.</p>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="type-transformation">Transformation classes</h2>
|
|
||||||
<p>Transform text in components with text capitalization classes.</p>
|
|
||||||
<div class="bs-example" data-example-id="text-capitalization">
|
|
||||||
<p class="text-lowercase">Lowercased text.</p>
|
|
||||||
<p class="text-uppercase">Uppercased text.</p>
|
|
||||||
<p class="text-capitalize">Capitalized text.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<p class="text-lowercase">Lowercased text.</p>
|
|
||||||
<p class="text-uppercase">Uppercased text.</p>
|
|
||||||
<p class="text-capitalize">Capitalized text.</p>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<!-- Abbreviations -->
|
|
||||||
<h2 id="type-abbreviations">Abbreviations</h2>
|
|
||||||
<p>Stylized implementation of HTML's <code><abbr></code> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover and to users of assistive technologies.</p>
|
|
||||||
|
|
||||||
<h3>Basic abbreviation</h3>
|
|
||||||
<div class="bs-example" data-example-id="simple-abbr">
|
|
||||||
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<abbr title="attribute">attr</abbr>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Initialism</h3>
|
|
||||||
<p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-initialism">
|
|
||||||
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Addresses -->
|
|
||||||
<h2 id="type-addresses">Addresses</h2>
|
|
||||||
<p>Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <code><br></code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-address">
|
|
||||||
<address>
|
|
||||||
<strong>Twitter, Inc.</strong><br>
|
|
||||||
1355 Market Street, Suite 900<br>
|
|
||||||
San Francisco, CA 94103<br>
|
|
||||||
<abbr title="Phone">P:</abbr> (123) 456-7890
|
|
||||||
</address>
|
|
||||||
<address>
|
|
||||||
<strong>Full Name</strong><br>
|
|
||||||
<a href="mailto:#">first.last@example.com</a>
|
|
||||||
</address>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<address>
|
|
||||||
<strong>Twitter, Inc.</strong><br>
|
|
||||||
1355 Market Street, Suite 900<br>
|
|
||||||
San Francisco, CA 94103<br>
|
|
||||||
<abbr title="Phone">P:</abbr> (123) 456-7890
|
|
||||||
</address>
|
|
||||||
|
|
||||||
<address>
|
|
||||||
<strong>Full Name</strong><br>
|
|
||||||
<a href="mailto:#">first.last@example.com</a>
|
|
||||||
</address>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Blockquotes -->
|
|
||||||
<h2 id="type-blockquotes">Blockquotes</h2>
|
|
||||||
<p>For quoting blocks of content from another source within your document.</p>
|
|
||||||
|
|
||||||
<h3>Default blockquote</h3>
|
|
||||||
<p>Wrap <code><blockquote></code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes, we recommend a <code><p></code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-blockquote">
|
|
||||||
<blockquote>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
|
||||||
</blockquote>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<blockquote>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
|
||||||
</blockquote>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Blockquote options</h3>
|
|
||||||
<p>Style and content changes for simple variations on a standard <code><blockquote></code>.</p>
|
|
||||||
|
|
||||||
<h4>Naming a source</h4>
|
|
||||||
<p>Add a <code><footer></code> for identifying the source. Wrap the name of the source work in <code><cite></code>.</p>
|
|
||||||
<div class="bs-example" data-example-id="blockquote-cite">
|
|
||||||
<blockquote>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
|
||||||
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
|
|
||||||
</blockquote>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<blockquote>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
|
||||||
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
|
|
||||||
</blockquote>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4>Alternate displays</h4>
|
|
||||||
<p>Add <code>.blockquote-reverse</code> for a blockquote with right-aligned content.</p>
|
|
||||||
<div class="bs-example" style="overflow: hidden;" data-example-id="blockquote-reverse">
|
|
||||||
<blockquote class="blockquote-reverse">
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
|
||||||
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
|
|
||||||
</blockquote>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<blockquote class="blockquote-reverse">
|
|
||||||
...
|
|
||||||
</blockquote>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Lists -->
|
|
||||||
<h2 id="type-lists">Lists</h2>
|
|
||||||
|
|
||||||
<h3>Unordered</h3>
|
|
||||||
<p>A list of items in which the order does <em>not</em> explicitly matter.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-ul">
|
|
||||||
<ul>
|
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
|
||||||
<li>Consectetur adipiscing elit</li>
|
|
||||||
<li>Integer molestie lorem at massa</li>
|
|
||||||
<li>Facilisis in pretium nisl aliquet</li>
|
|
||||||
<li>Nulla volutpat aliquam velit
|
|
||||||
<ul>
|
|
||||||
<li>Phasellus iaculis neque</li>
|
|
||||||
<li>Purus sodales ultricies</li>
|
|
||||||
<li>Vestibulum laoreet porttitor sem</li>
|
|
||||||
<li>Ac tristique libero volutpat at</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>Faucibus porta lacus fringilla vel</li>
|
|
||||||
<li>Aenean sit amet erat nunc</li>
|
|
||||||
<li>Eget porttitor lorem</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul>
|
|
||||||
<li>...</li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Ordered</h3>
|
|
||||||
<p>A list of items in which the order <em>does</em> explicitly matter.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-ol">
|
|
||||||
<ol>
|
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
|
||||||
<li>Consectetur adipiscing elit</li>
|
|
||||||
<li>Integer molestie lorem at massa</li>
|
|
||||||
<li>Facilisis in pretium nisl aliquet</li>
|
|
||||||
<li>Nulla volutpat aliquam velit</li>
|
|
||||||
<li>Faucibus porta lacus fringilla vel</li>
|
|
||||||
<li>Aenean sit amet erat nunc</li>
|
|
||||||
<li>Eget porttitor lorem</li>
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ol>
|
|
||||||
<li>...</li>
|
|
||||||
</ol>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Unstyled</h3>
|
|
||||||
<p>Remove the default <code>list-style</code> and left margin on list items (immediate children only). <strong>This only applies to immediate children list items</strong>, meaning you will need to add the class for any nested lists as well.</p>
|
|
||||||
<div class="bs-example" data-example-id="unstyled-list">
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
|
||||||
<li>Consectetur adipiscing elit</li>
|
|
||||||
<li>Integer molestie lorem at massa</li>
|
|
||||||
<li>Facilisis in pretium nisl aliquet</li>
|
|
||||||
<li>Nulla volutpat aliquam velit
|
|
||||||
<ul>
|
|
||||||
<li>Phasellus iaculis neque</li>
|
|
||||||
<li>Purus sodales ultricies</li>
|
|
||||||
<li>Vestibulum laoreet porttitor sem</li>
|
|
||||||
<li>Ac tristique libero volutpat at</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>Faucibus porta lacus fringilla vel</li>
|
|
||||||
<li>Aenean sit amet erat nunc</li>
|
|
||||||
<li>Eget porttitor lorem</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li>...</li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Inline</h3>
|
|
||||||
<p>Place all list items on a single line with <code>display: inline-block;</code> and some light padding.</p>
|
|
||||||
<div class="bs-example" data-example-id="list-inline">
|
|
||||||
<ul class="list-inline">
|
|
||||||
<li>Lorem ipsum</li>
|
|
||||||
<li>Phasellus iaculis</li>
|
|
||||||
<li>Nulla volutpat</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<ul class="list-inline">
|
|
||||||
<li>...</li>
|
|
||||||
</ul>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Description</h3>
|
|
||||||
<p>A list of terms with their associated descriptions.</p>
|
|
||||||
<div class="bs-example" data-example-id="simple-dl">
|
|
||||||
<dl>
|
|
||||||
<dt>Description lists</dt>
|
|
||||||
<dd>A description list is perfect for defining terms.</dd>
|
|
||||||
<dt>Euismod</dt>
|
|
||||||
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
|
|
||||||
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
|
|
||||||
<dt>Malesuada porta</dt>
|
|
||||||
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<dl>
|
|
||||||
<dt>...</dt>
|
|
||||||
<dd>...</dd>
|
|
||||||
</dl>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4>Horizontal description</h4>
|
|
||||||
<p>Make terms and descriptions in <code><dl></code> line up side-by-side. Starts off stacked like default <code><dl></code>s, but when the navbar expands, so do these.</p>
|
|
||||||
<div class="bs-example" data-example-id="horizontal-dl">
|
|
||||||
<dl class="dl-horizontal">
|
|
||||||
<dt>Description lists</dt>
|
|
||||||
<dd>A description list is perfect for defining terms.</dd>
|
|
||||||
<dt>Euismod</dt>
|
|
||||||
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
|
|
||||||
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
|
|
||||||
<dt>Malesuada porta</dt>
|
|
||||||
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
|
||||||
<dt>Felis euismod semper eget lacinia</dt>
|
|
||||||
<dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<dl class="dl-horizontal">
|
|
||||||
<dt>...</dt>
|
|
||||||
<dd>...</dd>
|
|
||||||
</dl>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-type-dl-truncate">
|
|
||||||
<h4>Auto-truncating</h4>
|
|
||||||
<p>Horizontal description lists will truncate terms that are too long to fit in the left column with <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,82 +0,0 @@
|
||||||
<!-- Footer
|
|
||||||
================================================== -->
|
|
||||||
<footer class="bs-docs-footer" role="contentinfo">
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<ul class="bs-docs-footer-links">
|
|
||||||
<li><a href="{{ site.repo }}">GitHub</a></li>
|
|
||||||
<li><a href="../getting-started/#examples">Examples</a></li>
|
|
||||||
<li><a href="../about/">About</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<p>Designed and built by <a href="https://github.com/FezVrasta" target="_blank">@FezVrasta</a>. Maintained with the help of <a href="https://github.com/FezVrasta/bootstrap-material-design/graphs/contributors">our contributors</a>.</p>
|
|
||||||
|
|
||||||
<p>Code licensed <a rel="license" href="https://github.com/fezvrasta/bootstrap-material-design/blob/master/LICENSE" target="_blank">MIT</a>, docs <a rel="license" href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
|
||||||
================================================== -->
|
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
|
||||||
<script>window.jQuery || document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script>
|
|
||||||
|
|
||||||
<!-- Bootstrap -->
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>
|
|
||||||
<!-- Sliders -->
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/noUiSlider/6.2.0/jquery.nouislider.min.js"></script>
|
|
||||||
<!-- Dropdown.js -->
|
|
||||||
<script src="https://cdn.rawgit.com/FezVrasta/dropdown.js/master/jquery.dropdown.js"></script>
|
|
||||||
|
|
||||||
<!-- BMD -->
|
|
||||||
{% if site.github %}
|
|
||||||
<script src="../dist/js/material.min.js"></script>
|
|
||||||
<script src="../dist/js/ripples.min.js"></script>
|
|
||||||
{% else %}
|
|
||||||
<script src="../dist/js/material.js"></script>
|
|
||||||
<script src="../dist/js/ripples.js"></script>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$(function () {
|
|
||||||
$.material.init();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{% if site.github %}
|
|
||||||
<script src="../assets/js/docs.min.js"></script>
|
|
||||||
{% else %}
|
|
||||||
{% for file in site.data.configBridge.paths.docsJs %}
|
|
||||||
<script src="{{ file }}"></script>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.slug == "customize" %}
|
|
||||||
<script>var __configBridge = {{ site.data.configBridge.config | jsonify }}</script>
|
|
||||||
{% if site.github %}
|
|
||||||
<script src="../assets/js/customize.min.js"></script>
|
|
||||||
{% else %}
|
|
||||||
{% for file in site.data.configBridge.paths.customizerJs %}
|
|
||||||
<script src="{{ file }}"></script>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- Analytics
|
|
||||||
================================================== -->
|
|
||||||
<!--<script>-->
|
|
||||||
<!--var _gauges = _gauges || [];-->
|
|
||||||
<!--(function() {-->
|
|
||||||
<!--var t = document.createElement('script');-->
|
|
||||||
<!--t.async = true;-->
|
|
||||||
<!--t.id = 'gauges-tracker';-->
|
|
||||||
<!--t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');-->
|
|
||||||
<!--t.src = '//secure.gaug.es/track.js';-->
|
|
||||||
<!--var s = document.getElementsByTagName('script')[0];-->
|
|
||||||
<!--s.parentNode.insertBefore(t, s);-->
|
|
||||||
<!--})();-->
|
|
||||||
<!--</script>-->
|
|
|
@ -1,37 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="accessibility" class="page-header">Accessibility</h1>
|
|
||||||
<p class="lead">Bootstrap follows common web standards and—with minimal extra effort—can be used to create sites that are accessible to those using <abbr title="Assistive Technology" class="initialism">AT</abbr>.</p>
|
|
||||||
|
|
||||||
<h2>Skip navigation</h2>
|
|
||||||
<p>If your navigation contains many links and comes before the main content in the DOM, add a <code>Skip to main content</code> link before the navigation (for a simple explanation, see this <a href="http://a11yproject.com/posts/skip-nav-links/">A11Y Project article on skip navigation links</a>). Using the <code>.sr-only</code> class will visually hide the skip link, and the <code>.sr-only-focusable</code> class will ensure that the link becomes visible once focused (for sighted keyboard users).</p>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-skiplinks">
|
|
||||||
<p>Due to long-standing shortcomings/bugs in Chrome (see <a href="https://code.google.com/p/chromium/issues/detail?id=262171" title="Chromium bug tracker - Issue 262171: Focus should cycle from named anchor">issue 262171 in the Chromium bug tracker</a>) and Internet Explorer (see this article on <a href="http://accessibleculture.org/articles/2010/05/in-page-links/">in-page links and focus order</a>), you will need to make sure that the target of your skip link is at least programmatically focusable by adding <code>tabindex="-1"</code>.</p>
|
|
||||||
<p>In addition, you may want to explicitly suppress a visible focus indication on the target (particularly as Chrome currently also sets focus on elements with <code>tabindex="-1"</code> when they are clicked with the mouse) with <code>#content:focus { outline: none; }</code>.</p>
|
|
||||||
<p>Note that this bug will also affect any other in-page links your site may be using, rendering them useless for keyboard users. You may consider adding a similar stop-gap fix to all other named anchors / fragment identifiers that act as link targets.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<body>
|
|
||||||
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
|
|
||||||
...
|
|
||||||
<div class="container" id="content" tabindex="-1">
|
|
||||||
<!-- The main page content -->
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2>Nested headings</h2>
|
|
||||||
<p>When nesting headings (<code><h1></code> - <code><h6></code>), your primary document header should be an <code><h1></code>. Subsequent headings should make logical use of <code><h2></code> - <code><h6></code> such that screen readers can construct a table of contents for your pages.</p>
|
|
||||||
<p>Learn more at <a href="http://squizlabs.github.io/HTML_CodeSniffer/Standards/Section508/">HTML CodeSniffer</a> and <a href="http://accessibility.psu.edu/headings">Penn State's AccessAbility</a>.</p>
|
|
||||||
|
|
||||||
<h2>Color contrast</h2>
|
|
||||||
<p>Currently, some of the default color combinations available in Bootstrap (such as the various <a href="../css/#buttons">styled button</a> classes, some of the code highlighting colors used for <a href="../css/#code-block">basic code blocks</a>, the <code>.bg-primary</code> <a href="../css/#helper-classes-backgrounds">contextual background</a> helper class, and the default link color when used on a white background) have a low contrast ratio (below the <a href="http://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast">recommended ratio of 4.5:1</a>). This can cause problems to users with low vision or who are color blind. These default colors may need to be modified to increase their contrast and legibility.</p>
|
|
||||||
|
|
||||||
<h2>Additional resources</h2>
|
|
||||||
<ul>
|
|
||||||
<li><a href="https://github.com/squizlabs/HTML_CodeSniffer">"HTML Codesniffer" bookmarklet for identifying accessibility issues</a></li>
|
|
||||||
<li><a href="https://chrome.google.com/webstore/detail/accessibility-developer-t/fpkknkljclfencbdbgkenhalefipecmb?hl=en">Chrome's Accessibility Developer Tools extension</a></li>
|
|
||||||
<li><a href="http://www.paciellogroup.com/resources/contrastanalyser/">Colour Contrast Analyser</a>
|
|
||||||
<li><a href="http://a11yproject.com/">The A11Y Project</a></li>
|
|
||||||
<li><a href="https://developer.mozilla.org/en-US/docs/Accessibility">MDN accessibility documentation</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
|
@ -1,210 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="support" class="page-header">Browser and device support</h1>
|
|
||||||
<p class="lead">Bootstrap is built to work best in the latest desktop and mobile browsers, meaning older browsers might display differently styled, though fully functional, renderings of certain components.</p>
|
|
||||||
|
|
||||||
<h2 id="support-browsers">Supported browsers</h2>
|
|
||||||
<p>Specifically, we support the <strong>latest versions</strong> of the following browsers and platforms. On Windows, <strong>we support Internet Explorer 8-11</strong>. More specific support information is provided below.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td></td>
|
|
||||||
<th>Chrome</th>
|
|
||||||
<th>Firefox</th>
|
|
||||||
<th>Internet Explorer</th>
|
|
||||||
<th>Opera</th>
|
|
||||||
<th>Safari</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">Android</th>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-muted" rowspan="3" style="vertical-align: middle;">N/A</td>
|
|
||||||
<td class="text-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Not Supported</td>
|
|
||||||
<td class="text-muted">N/A</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">iOS</th>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-muted">N/A</td>
|
|
||||||
<td class="text-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Not Supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">Mac OS X</th>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">Windows</th>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
<td class="text-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Not Supported</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<p>Unofficially, Bootstrap should look and behave well enough in Chromium and Chrome for Linux, Firefox for Linux, and Internet Explorer 7, though they are not officially supported.</p>
|
|
||||||
<p>For a list of some of the browser bugs that Bootstrap has to grapple with, see our <a href="../browser-bugs/">Wall of browser bugs</a>.</p>
|
|
||||||
|
|
||||||
<h2 id="support-ie8-ie9">Internet Explorer 8 and 9</h2>
|
|
||||||
<p>Internet Explorer 8 and 9 are also supported, however, please be aware that some CSS3 properties and HTML5 elements are not fully supported by these browsers. In addition, <strong>Internet Explorer 8 requires the use of <a href="https://github.com/scottjehl/Respond">Respond.js</a> to enable media query support.</strong></p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="col-xs-4">Feature</th>
|
|
||||||
<th class="col-xs-4">Internet Explorer 8</th>
|
|
||||||
<th class="col-xs-4">Internet Explorer 9</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>border-radius</code></th>
|
|
||||||
<td class="text-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Not supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>box-shadow</code></th>
|
|
||||||
<td class="text-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Not supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>transform</code></th>
|
|
||||||
<td class="text-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Not supported</td>
|
|
||||||
<td class="text-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Supported, with <code>-ms</code> prefix</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>transition</code></th>
|
|
||||||
<td colspan="2" class="text-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Not supported</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><code>placeholder</code></th>
|
|
||||||
<td colspan="2" class="text-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Not supported</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>Visit <a href="http://caniuse.com/">Can I use...</a> for details on browser support of CSS3 and HTML5 features.</p>
|
|
||||||
|
|
||||||
<h2 id="support-ie8-respondjs">Internet Explorer 8 and Respond.js</h2>
|
|
||||||
<p>Beware of the following caveats when using Respond.js in your development and production environments for Internet Explorer 8.</p>
|
|
||||||
<h3 id="respond-js-x-domain">Respond.js and cross-domain CSS</h3>
|
|
||||||
<p>Using Respond.js with CSS hosted on a different (sub)domain (for example, on a CDN) requires some additional setup. <a href="https://github.com/scottjehl/Respond/blob/master/README.md#cdnx-domain-setup">See the Respond.js docs</a> for details.</p>
|
|
||||||
<h3 id="respond-file-proto">Respond.js and <code>file://</code></h3>
|
|
||||||
<p>Due to browser security rules, Respond.js doesn't work with pages viewed via the <code>file://</code> protocol (like when opening a local HTML file). To test responsive features in IE8, view your pages over HTTP(S). <a href="https://github.com/scottjehl/Respond/blob/master/README.md#support--caveats">See the Respond.js docs</a> for details.</p>
|
|
||||||
<h3 id="respond-import">Respond.js and <code>@import</code></h3>
|
|
||||||
<p>Respond.js doesn't work with CSS that's referenced via <code>@import</code>. In particular, some Drupal configurations are known to use <code>@import</code>. <a href="https://github.com/scottjehl/Respond/blob/master/README.md#support--caveats">See the Respond.js docs</a> for details.</p>
|
|
||||||
|
|
||||||
<h2 id="support-ie8-box-sizing">Internet Explorer 8 and box-sizing</h2>
|
|
||||||
<p>IE8 does not fully support <code>box-sizing: border-box;</code> when combined with <code>min-width</code>, <code>max-width</code>, <code>min-height</code>, or <code>max-height</code>. For that reason, as of v3.0.1, we no longer use <code>max-width</code> on <code>.container</code>s.</p>
|
|
||||||
|
|
||||||
<h2 id="support-ie8-font-face">Internet Explorer 8 and @font-face</h2>
|
|
||||||
<p>IE8 has some issues with <code>@font-face</code> when combined with <code>:before</code>. Bootstrap uses that combination with its Glyphicons. If a page is cached, and loaded without the mouse over the window (i.e. hit the refresh button or load something in an iframe) then the page gets rendered before the font loads. Hovering over the page (body) will show some of the icons and hovering over the remaining icons will show those as well. <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/13863">See issue #13863</a> for details.</p>
|
|
||||||
|
|
||||||
<h2 id="support-ie-compatibility-modes">IE Compatibility modes</h2>
|
|
||||||
<p>Bootstrap is not supported in the old Internet Explorer compatibility modes. To be sure you're using the latest rendering mode for IE, consider including the appropriate <code><meta></code> tag in your pages:</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>Confirm the document mode by opening the debugging tools: press <kbd>F12</kbd> and check the "Document Mode".</p>
|
|
||||||
<p>This tag is included in all of Bootstrap's documentation and examples to ensure the best rendering possible in each supported version of Internet Explorer.</p>
|
|
||||||
<p>See <a href="https://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge">this StackOverflow question</a> for more information.</p>
|
|
||||||
|
|
||||||
<h2 id="support-ie10-width">Internet Explorer 10 in Windows 8 and Windows Phone 8</h2>
|
|
||||||
<p>Internet Explorer 10 doesn't differentiate <strong>device width</strong> from <strong>viewport width</strong>, and thus doesn't properly apply the media queries in Bootstrap's CSS. Normally you'd just add a quick snippet of CSS to fix this:</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
@-ms-viewport { width: device-width; }
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>However, this doesn't work for devices running Windows Phone 8 versions older than <a href="http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/10/14/introducing-windows-phone-preview-for-developers.aspx">Update 3 (a.k.a. GDR3)</a>, as it causes such devices to show a mostly desktop view instead of narrow "phone" view. To address this, you'll need to <strong>include the following CSS and JavaScript to work around the bug</strong>.</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
@-webkit-viewport { width: device-width; }
|
|
||||||
@-moz-viewport { width: device-width; }
|
|
||||||
@-ms-viewport { width: device-width; }
|
|
||||||
@-o-viewport { width: device-width; }
|
|
||||||
@viewport { width: device-width; }
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
{% highlight js %}
|
|
||||||
// Copyright 2014-2015 Twitter, Inc.
|
|
||||||
// Licensed under MIT (https://github.com/fezvrasta/bootstrap-material-design/blob/master/LICENSE)
|
|
||||||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
|
||||||
var msViewportStyle = document.createElement('style')
|
|
||||||
msViewportStyle.appendChild(
|
|
||||||
document.createTextNode(
|
|
||||||
'@-ms-viewport{width:auto!important}'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
document.querySelector('head').appendChild(msViewportStyle)
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>For more information and usage guidelines, read <a href="http://timkadlec.com/2013/01/windows-phone-8-and-device-width/">Windows Phone 8 and Device-Width</a>.</p>
|
|
||||||
<p>As a heads up, we include this in all of Bootstrap's documentation and examples as a demonstration.</p>
|
|
||||||
|
|
||||||
<h2 id="support-safari-percentages">Safari percent rounding</h2>
|
|
||||||
<p>The rendering engine of versions of Safari prior to v7.1 for OS X and Safari for iOS v8.0 had some trouble with the number of decimal places used in our <code>.col-*-1</code> grid classes. So if you had 12 individual grid columns, you'd notice that they came up short compared to other rows of columns. Besides upgrading Safari/iOS, you have some options for workarounds:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Add <code>.pull-right</code> to your last grid column to get the hard-right alignment</li>
|
|
||||||
<li>Tweak your percentages manually to get the perfect rounding for Safari (more difficult than the first option)</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2 id="support-fixed-position-keyboards">Modals, navbars, and virtual keyboards</h2>
|
|
||||||
<h3>Overflow and scrolling</h3>
|
|
||||||
<p>Support for <code>overflow: hidden</code> on the <code><body></code> element is quite limited in iOS and Android. To that end, when you scroll past the top or bottom of a modal in either of those devices' browsers, the <code><body></code> content will begin to scroll.</p>
|
|
||||||
<h3>Virtual keyboards</h3>
|
|
||||||
<p>Also, note that if you're using a fixed navbar or using inputs within a modal, iOS has a rendering bug that doesn't update the position of fixed elements when the virtual keyboard is triggered. A few workarounds for this include transforming your elements to <code>position: absolute</code> or invoking a timer on focus to try to correct the positioning manually. This is not handled by Bootstrap, so it is up to you to decide which solution is best for your application.</p>
|
|
||||||
<h3>Navbar Dropdowns</h3>
|
|
||||||
<p>The <code>.dropdown-backdrop</code> element isn't used on iOS in the nav because of the complexity of z-indexing. Thus, to close dropdowns in navbars, you must directly click the dropdown element (or <a href="https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile">any other element which will fire a click event in iOS</a>).</p>
|
|
||||||
|
|
||||||
<h2 id="support-browser-zooming">Browser zooming</h2>
|
|
||||||
<p>Page zooming inevitably presents rendering artifacts in some components, both in Bootstrap and the rest of the web. Depending on the issue, we may be able to fix it (search first and then open an issue if need be). However, we tend to ignore these as they often have no direct solution other than hacky workarounds.</p>
|
|
||||||
|
|
||||||
<h2 id="support-sticky-hover-mobile">Sticky <code>:hover</code>/<code>:focus</code> on mobile</h2>
|
|
||||||
<p>Even though real hovering isn't possible on most touchscreens, most mobile browsers emulate hovering support and make <code>:hover</code> "sticky". In other words, <code>:hover</code> styles start applying after tapping an element and only stop applying after the user taps some other element. This can cause Bootstrap's <code>:hover</code> states to become unwantedly "stuck" on such browsers. Some mobile browsers also make <code>:focus</code> similarly sticky. There is currently no simple workaround for these issues other than removing such styles entirely.</p>
|
|
||||||
|
|
||||||
<h2 id="support-printing">Printing</h2>
|
|
||||||
<p>Even in some modern browsers, printing can be quirky.</p>
|
|
||||||
<p>In particular, as of Chrome v32 and regardless of margin settings, Chrome uses a viewport width significantly narrower than the physical paper size when resolving media queries while printing a webpage. This can result in Bootstrap's extra-small grid being unexpectedly activated when printing. <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/12078">See #12078 for some details.</a> Suggested workarounds:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Embrace the extra-small grid and make sure your page looks acceptable under it.</li>
|
|
||||||
<li>Customize the values of the <code>@screen-*</code> Less variables so that your printer paper is considered larger than extra-small.</li>
|
|
||||||
<li>Add custom media queries to change the grid size breakpoints for print media only.</li>
|
|
||||||
</ul>
|
|
||||||
<p>Also, as of Safari v8.0, fixed-width <code>.container</code>s can cause Safari to use an unusually small font size when printing. See <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/14868">#14868</a> for more details. One potential workaround for this is adding the following CSS:</p>
|
|
||||||
{% highlight css %}
|
|
||||||
@media print {
|
|
||||||
.container {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="support-android-stock-browser">Android stock browser</h2>
|
|
||||||
<p>Out of the box, Android 4.1 (and even some newer releases apparently) ship with the Browser app as the default web browser of choice (as opposed to Chrome). Unfortunately, the Browser app has lots of bugs and inconsistencies with CSS in general.</p>
|
|
||||||
<h3>Select menus</h3>
|
|
||||||
<p>On <code><select></code> elements, the Android stock browser will not display the side controls if there is a <code>border-radius</code> and/or <code>border</code> applied. (See <a href="https://stackoverflow.com/questions/14744437/html-select-box-not-showing-drop-down-arrow-on-android-version-4-0-when-set-with">this StackOverflow question</a> for details.) Use the snippet of code below to remove the offending CSS and render the <code><select></code> as an unstyled element on the Android stock browser. The user agent sniffing avoids interference with Chrome, Safari, and Mozilla browsers.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<script>
|
|
||||||
$(function () {
|
|
||||||
var nua = navigator.userAgent
|
|
||||||
var isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1)
|
|
||||||
if (isAndroid) {
|
|
||||||
$('select.form-control').removeClass('form-control').css('width', '100%')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>Want to see an example? <a href="http://jsbin.com/kuvoz/1">Check out this JS Bin demo.</a></p>
|
|
||||||
|
|
||||||
<h2 id="support-validators">Validators</h2>
|
|
||||||
<p>In order to provide the best possible experience to old and buggy browsers, Bootstrap uses <a href="http://browserhacks.com">CSS browser hacks</a> in several places to target special CSS to certain browser versions in order to work around bugs in the browsers themselves. These hacks understandably cause CSS validators to complain that they are invalid. In a couple places, we also use bleeding-edge CSS features that aren't yet fully standardized, but these are used purely for progressive enhancement.</p>
|
|
||||||
<p>These validation warnings don't matter in practice since the non-hacky portion of our CSS does fully validate and the hacky portions don't interfere with the proper functioning of the non-hacky portion, hence why we deliberately ignore these particular warnings.</p>
|
|
||||||
<p>Our HTML docs likewise have some trivial and inconsequential HTML validation warnings due to our inclusion of a workaround for <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=654072">a certain Firefox bug</a>.</p>
|
|
||||||
</div>
|
|
|
@ -1,13 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="community" class="page-header">Community</h1>
|
|
||||||
|
|
||||||
<p class="lead">Stay up to date on the development of Bootstrap and reach out to the community with these helpful resources.</p>
|
|
||||||
<ul>
|
|
||||||
<li>Read and subscribe to <a href="http://blog.getbootstrap.com/">The Official Bootstrap Blog</a>.</li>
|
|
||||||
<li>Chat with fellow Bootstrappers using IRC in the <code>irc.freenode.net</code> server, in the <a href="irc://irc.freenode.net/%23bootstrap">##bootstrap channel</a>.</li>
|
|
||||||
<li>For help using Bootstrap, ask on <a href="https://stackoverflow.com/questions/tagged/twitter-bootstrap-3">StackOverflow using the tag <code>twitter-bootstrap-3</code></a>.</li>
|
|
||||||
<li>Developers should use the keyword <code>bootstrap</code> on packages which modify or add to the functionality of Bootstrap when distributing through <a href="https://www.npmjs.com/browse/keyword/bootstrap">npm</a> or similar delivery mechanisms for maximum discoverability.</li>
|
|
||||||
<li>Find inspiring examples of people building with Bootstrap at the <a href="http://expo.getbootstrap.com">Bootstrap Expo</a>.</li>
|
|
||||||
</ul>
|
|
||||||
<p>You can also follow <a href="https://twitter.com/getbootstrap">@getbootstrap on Twitter</a> for the latest gossip and awesome music videos.</p>
|
|
||||||
</div>
|
|
|
@ -1,22 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="disable-responsive" class="page-header">Disabling responsiveness</h1>
|
|
||||||
|
|
||||||
<p class="lead">Bootstrap automatically adapts your pages for various screen sizes.
|
|
||||||
Here's how to disable this feature so your page works like <a href="../examples/non-responsive/">this non-responsive example</a>.</p>
|
|
||||||
|
|
||||||
<h2>Steps to disable page responsiveness</h2>
|
|
||||||
<ol>
|
|
||||||
<li>Omit the viewport <code><meta></code> mentioned in <a href="../css/#overview-mobile">the CSS docs</a></li>
|
|
||||||
<li>Override the <code>width</code> on the <code>.container</code> for each grid tier with a single width, for example <code>width: 970px !important;</code> Be sure that this comes after the default Bootstrap CSS. You can optionally avoid the <code>!important</code> with media queries or some selector-fu.</li>
|
|
||||||
<li>If using navbars, remove all navbar collapsing and expanding behavior.</li>
|
|
||||||
<li>For grid layouts, use <code>.col-xs-*</code> classes in addition to, or in place of, the medium/large ones. Don't worry, the extra-small device grid scales to all resolutions.</li>
|
|
||||||
</ol>
|
|
||||||
<p>You'll still need Respond.js for IE8 (since our media queries are still there and need to be processed).
|
|
||||||
This disables the "mobile site" aspects of Bootstrap.</p>
|
|
||||||
|
|
||||||
<h2>Bootstrap template with responsiveness disabled</h2>
|
|
||||||
<p>We've applied these steps to an example. Read its source code to see the specific changes implemented.</p>
|
|
||||||
<p>
|
|
||||||
<a href="../examples/non-responsive/" class="btn btn-primary">View non-responsive example</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
|
@ -1,63 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="download" class="page-header">Download</h1>
|
|
||||||
|
|
||||||
<p class="lead">Bootstrap (currently v{{ site.current_version }}) has a few easy ways to quickly get started, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.</p>
|
|
||||||
|
|
||||||
<div class="row bs-downloads">
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<h3 id="download-bootstrap">Bootstrap</h3>
|
|
||||||
<p>Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.</p>
|
|
||||||
<p>
|
|
||||||
<a href="{{ site.download.dist }}" class="btn btn-lg btn-outline" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download compiled');">Download Bootstrap</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<h3 id="download-source">Source code</h3>
|
|
||||||
<p>Source Less, JavaScript, and font files, along with our docs. <strong>Requires a Less compiler and <a href="#grunt">some setup.</a></strong></p>
|
|
||||||
<p>
|
|
||||||
<a href="{{ site.download.source }}" class="btn btn-lg btn-outline" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download source');">Download source</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<h3 id="download-sass">Sass</h3>
|
|
||||||
<p><a href="{{ site.sass_repo }}">Bootstrap ported from Less to Sass</a> for easy inclusion in Rails, Compass, or Sass-only projects.</p>
|
|
||||||
<p>
|
|
||||||
<a href="{{ site.download.sass }}" class="btn btn-lg btn-outline" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Sass');">Download Sass</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="download-cdn">Bootstrap CDN</h2>
|
|
||||||
<p>The folks over at <a href="https://www.maxcdn.com/">MaxCDN</a> graciously provide CDN support for Bootstrap's CSS and JavaScript. Just use these <a href="https://www.bootstrapcdn.com/">Bootstrap CDN</a> links.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Latest compiled and minified CSS -->
|
|
||||||
<link rel="stylesheet" href="{{ site.cdn.css }}" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
|
|
||||||
|
|
||||||
<!-- Optional theme -->
|
|
||||||
<link rel="stylesheet" href="{{ site.cdn.css_theme }}" integrity="{{ site.cdn.css_theme_hash }}" crossorigin="anonymous">
|
|
||||||
|
|
||||||
<!-- Latest compiled and minified JavaScript -->
|
|
||||||
<script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="download-bower">Install with Bower</h2>
|
|
||||||
<p>You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using <a href="http://bower.io">Bower</a>:</p>
|
|
||||||
{% highlight bash %}$ bower install bootstrap{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="download-npm">Install with npm</h2>
|
|
||||||
<p>You can also install Bootstrap using <a href="https://www.npmjs.com">npm</a>:</p>
|
|
||||||
{% highlight bash %}$ npm install bootstrap{% endhighlight %}
|
|
||||||
<p><code>require('bootstrap')</code> will load all of Bootstrap's jQuery plugins onto the jQuery object. The <code>bootstrap</code> module itself does not export anything. You can manually load Bootstrap's jQuery plugins individually by loading the <code>/js/*.js</code> files under the package's top-level directory.</p>
|
|
||||||
<p>Bootstrap's <code>package.json</code> contains some additional metadata under the following keys:</p>
|
|
||||||
<ul>
|
|
||||||
<li><code>less</code> - path to Bootstrap's main <a href="http://lesscss.org">Less</a> source file</li>
|
|
||||||
<li><code>style</code> - path to Bootstrap's non-minified CSS that's been precompiled using the default settings (no customization)</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2 id="download-composer">Install with Composer</h2>
|
|
||||||
<p>You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using <a href="https://getcomposer.org">Composer</a>:</p>
|
|
||||||
{% highlight bash %}$ composer require twbs/bootstrap{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="download-autoprefixer">Autoprefixer required for Less/Sass</h2>
|
|
||||||
<p>Bootstrap uses <a href="https://github.com/postcss/autoprefixer">Autoprefixer</a> to deal with <a href="http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm">CSS vendor prefixes</a>. If you're compiling Bootstrap from its Less/Sass source and not using our Gruntfile, you'll need to integrate Autoprefixer into your build process yourself. If you're using precompiled Bootstrap or using our Gruntfile, you don't need to worry about this because Autoprefixer is already integrated into our Gruntfile.</p>
|
|
||||||
</div>
|
|
|
@ -1,161 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="examples" class="page-header">Examples</h1>
|
|
||||||
|
|
||||||
<p class="lead">Build on the basic template above with Bootstrap's many components. We encourage you to customize and adapt Bootstrap to suit your individual project's needs.</p>
|
|
||||||
|
|
||||||
<p>Get the source code for every example below by <a href="{{ site.download.source }}">downloading the Bootstrap repository</a>. Examples can be found in the <code>docs/examples/</code> directory.</p>
|
|
||||||
|
|
||||||
<h2 id="examples-framework">Using the framework</h2>
|
|
||||||
<div class="row bs-examples">
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/starter-template/">
|
|
||||||
<img src="../examples/screenshots/starter-template.jpg" alt="Starter template example">
|
|
||||||
</a>
|
|
||||||
<h3>Starter template</h3>
|
|
||||||
<p>Nothing but the basics: compiled CSS and JavaScript along with a container.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/theme/">
|
|
||||||
<img src="../examples/screenshots/theme.jpg" alt="Bootstrap theme example">
|
|
||||||
</a>
|
|
||||||
<h3>Bootstrap theme</h3>
|
|
||||||
<p>Load the optional Bootstrap theme for a visually enhanced experience.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/grid/">
|
|
||||||
<img src="../examples/screenshots/grid.jpg" alt="Multiple grids example">
|
|
||||||
</a>
|
|
||||||
<h3>Grids</h3>
|
|
||||||
<p>Multiple examples of grid layouts with all four tiers, nesting, and more.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/jumbotron/">
|
|
||||||
<img src="../examples/screenshots/jumbotron.jpg" alt="Jumbotron example">
|
|
||||||
</a>
|
|
||||||
<h3>Jumbotron</h3>
|
|
||||||
<p>Build around the jumbotron with a navbar and some basic grid columns.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/jumbotron-narrow/">
|
|
||||||
<img src="../examples/screenshots/jumbotron-narrow.jpg" alt="Narrow jumbotron example">
|
|
||||||
</a>
|
|
||||||
<h3>Narrow jumbotron</h3>
|
|
||||||
<p>Build a more custom page by narrowing the default container and jumbotron.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="examples-navbars">Navbars in action</h2>
|
|
||||||
<div class="row bs-examples">
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/navbar/">
|
|
||||||
<img src="../examples/screenshots/navbar.jpg" alt="Navbar example">
|
|
||||||
</a>
|
|
||||||
<h3>Navbar</h3>
|
|
||||||
<p>Super basic template that includes the navbar along with some additional content.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/navbar-static-top/">
|
|
||||||
<img src="../examples/screenshots/navbar-static.jpg" alt="Static top navbar example">
|
|
||||||
</a>
|
|
||||||
<h3>Static top navbar</h3>
|
|
||||||
<p>Super basic template with a static top navbar along with some additional content.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/navbar-fixed-top/">
|
|
||||||
<img src="../examples/screenshots/navbar-fixed.jpg" alt="Fixed navbar example">
|
|
||||||
</a>
|
|
||||||
<h3>Fixed navbar</h3>
|
|
||||||
<p>Super basic template with a fixed top navbar along with some additional content.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="examples-custom">Custom components</h2>
|
|
||||||
<div class="row bs-examples">
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/cover/">
|
|
||||||
<img src="../examples/screenshots/cover.jpg" alt="A one-page template example">
|
|
||||||
</a>
|
|
||||||
<h3>Cover</h3>
|
|
||||||
<p>A one-page template for building simple and beautiful home pages.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/carousel/">
|
|
||||||
<img src="../examples/screenshots/carousel.jpg" alt="Carousel example">
|
|
||||||
</a>
|
|
||||||
<h3>Carousel</h3>
|
|
||||||
<p>Customize the navbar and carousel, then add some new components.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/blog/">
|
|
||||||
<img src="../examples/screenshots/blog.jpg" alt="Blog layout example">
|
|
||||||
</a>
|
|
||||||
<h3>Blog</h3>
|
|
||||||
<p>Simple two-column blog layout with custom navigation, header, and type.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/dashboard/">
|
|
||||||
<img src="../examples/screenshots/dashboard.jpg" alt="Dashboard example">
|
|
||||||
</a>
|
|
||||||
<h3>Dashboard</h3>
|
|
||||||
<p>Basic structure for an admin dashboard with fixed sidebar and navbar.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/signin/">
|
|
||||||
<img src="../examples/screenshots/sign-in.jpg" alt="Sign-in page example">
|
|
||||||
</a>
|
|
||||||
<h3>Sign-in page</h3>
|
|
||||||
<p>Custom form layout and design for a simple sign in form.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/justified-nav/">
|
|
||||||
<img src="../examples/screenshots/justified-nav.jpg" alt="Justified nav example">
|
|
||||||
</a>
|
|
||||||
<h3>Justified nav</h3>
|
|
||||||
<p>Create a custom navbar with justified links. Heads up! <a href="../components/#nav-justified">Not too Safari friendly.</a></p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/sticky-footer/">
|
|
||||||
<img src="../examples/screenshots/sticky-footer.jpg" alt="Sticky footer example">
|
|
||||||
</a>
|
|
||||||
<h3>Sticky footer</h3>
|
|
||||||
<p>Attach a footer to the bottom of the viewport when the content is shorter than it.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/sticky-footer-navbar/">
|
|
||||||
<img src="../examples/screenshots/sticky-footer-navbar.jpg" alt="Sticky footer with navbar example">
|
|
||||||
</a>
|
|
||||||
<h3>Sticky footer with navbar</h3>
|
|
||||||
<p>Attach a footer to the bottom of the viewport with a fixed navbar at the top.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="examples-experiments">Experiments</h2>
|
|
||||||
<div class="row bs-examples">
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/non-responsive/">
|
|
||||||
<img src="../examples/screenshots/non-responsive.jpg" alt="Non-responsive example">
|
|
||||||
</a>
|
|
||||||
<h3>Non-responsive Bootstrap</h3>
|
|
||||||
<p>Easily disable the responsiveness of Bootstrap <a href="#disable-responsive">per our docs</a>.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/offcanvas/">
|
|
||||||
<img src="../examples/screenshots/offcanvas.jpg" alt="Off-canvas navigation example">
|
|
||||||
</a>
|
|
||||||
<h3>Off-canvas</h3>
|
|
||||||
<p>Build a toggleable off-canvas navigation menu for use with Bootstrap.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,35 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="grunt" class="page-header">Compiling CSS and JavaScript</h1>
|
|
||||||
|
|
||||||
<p class="lead">Bootstrap uses <a href="http://gruntjs.com">Grunt</a> for its build system, with convenient methods for working with the framework. It's how we compile our code, run tests, and more.</p>
|
|
||||||
|
|
||||||
<h2 id="grunt-installing">Installing Grunt</h2>
|
|
||||||
<p>To install Grunt, you must <strong>first <a href="https://nodejs.org/download/">download and install node.js</a></strong> (which includes npm). npm stands for <a href="https://www.npmjs.com/">node packaged modules</a> and is a way to manage development dependencies through node.js.</p>
|
|
||||||
|
|
||||||
Then, from the command line:
|
|
||||||
<ol>
|
|
||||||
<li>Install <code>grunt-cli</code> globally with <code>npm install -g grunt-cli</code>.</li>
|
|
||||||
<li>Navigate to the root <code>/bootstrap/</code> directory, then run <code>npm install</code>. npm will look at the <a href="https://github.com/fezvrasta/bootstrap-material-design/blob/master/package.json"><code>package.json</code></a> file and automatically install the necessary local dependencies listed there.</li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
<p>When completed, you'll be able to run the various Grunt commands provided from the command line.</p>
|
|
||||||
|
|
||||||
<h2 id="grunt-commands">Available Grunt commands</h2>
|
|
||||||
<h3><code>grunt dist</code> (Just compile CSS and JavaScript)</h3>
|
|
||||||
<p>Regenerates the <code>/dist/</code> directory with compiled and minified CSS and JavaScript files. As a Bootstrap user, this is normally the command you want.</p>
|
|
||||||
|
|
||||||
<h3><code>grunt watch</code> (Watch)</h3>
|
|
||||||
<p>Watches the Less source files and automatically recompiles them to CSS whenever you save a change.</p>
|
|
||||||
|
|
||||||
<h3><code>grunt test</code> (Run tests)</h3>
|
|
||||||
<p>Runs <a href="http://jshint.com">JSHint</a> and runs the <a href="http://qunitjs.com">QUnit</a> tests headlessly in <a href="http://phantomjs.org">PhantomJS</a>.</p>
|
|
||||||
|
|
||||||
<h3><code>grunt docs</code> (Build & test the docs assets)</h3>
|
|
||||||
<p>Builds and tests CSS, JavaScript, and other assets which are used when running the documentation locally via <code>jekyll serve</code>.</p>
|
|
||||||
|
|
||||||
<h3><code>grunt</code> (Build absolutely everything and run tests)</h3>
|
|
||||||
<p>Compiles and minifies CSS and JavaScript, builds the documentation website, runs the HTML5 validator against the docs, regenerates the Customizer assets, and more. Requires <a href="http://jekyllrb.com/docs/installation/">Jekyll</a>. Usually only necessary if you're hacking on Bootstrap itself.</p>
|
|
||||||
|
|
||||||
<h2 id="grunt-troubleshooting">Troubleshooting</h2>
|
|
||||||
<p>Should you encounter problems with installing dependencies or running Grunt commands, first delete the <code>/node_modules/</code> directory generated by npm. Then, rerun <code>npm install</code>.</p>
|
|
||||||
</div>
|
|
|
@ -1,34 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="license-faqs" class="page-header">License FAQs</h1>
|
|
||||||
<p class="lead">Bootstrap is released under the MIT license and is copyright {{ site.time | date: "%Y" }} Twitter. Boiled down to smaller chunks, it can be described with the following conditions.</p>
|
|
||||||
|
|
||||||
<h2>It requires you to:</h2>
|
|
||||||
<ul>
|
|
||||||
<li>Keep the license and copyright notice included in Bootstrap's CSS and JavaScript files when you use them in your works</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2>It permits you to:</h2>
|
|
||||||
<ul>
|
|
||||||
<li>Freely download and use Bootstrap, in whole or in part, for personal, private, company internal, or commercial purposes</li>
|
|
||||||
<li>Use Bootstrap in packages or distributions that you create</li>
|
|
||||||
<li>Modify the source code</li>
|
|
||||||
<li>Grant a sublicense to modify and distribute Bootstrap to third parties not included in the license</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2>It forbids you to:</h2>
|
|
||||||
<ul>
|
|
||||||
<li>Hold the authors and license owners liable for damages as Bootstrap is provided without warranty</li>
|
|
||||||
<li>Hold the creators or copyright holders of Bootstrap liable</li>
|
|
||||||
<li>Redistribute any piece of Bootstrap without proper attribution</li>
|
|
||||||
<li>Use any marks owned by Twitter in any way that might state or imply that Twitter endorses your distribution</li>
|
|
||||||
<li>Use any marks owned by Twitter in any way that might state or imply that you created the Twitter software in question</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2>It does not require you to:</h2>
|
|
||||||
<ul>
|
|
||||||
<li>Include the source of Bootstrap itself, or of any modifications you may have made to it, in any redistribution you may assemble that includes it</li>
|
|
||||||
<li>Submit changes that you make to Bootstrap back to the Bootstrap project (though such feedback is encouraged)</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<p>The full Bootstrap license is located <a href="{{ site.repo }}/blob/master/LICENSE">in the project repository</a> for more information.</p>
|
|
||||||
</div>
|
|
|
@ -1,37 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="template" class="page-header">Basic template</h1>
|
|
||||||
|
|
||||||
<p class="lead">Start with this basic HTML template, or modify <a href="#examples">these examples</a>. We hope you'll customize our templates and examples, adapting them to suit your needs.</p>
|
|
||||||
|
|
||||||
<p>Copy the HTML below to begin working with a minimal Bootstrap document.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
|
||||||
<title>Bootstrap 101 Template</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap -->
|
|
||||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
|
|
||||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
|
||||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
|
||||||
<script src="js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,51 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="third-parties" class="page-header">Third party support</h1>
|
|
||||||
<p class="lead">While we don't officially support any third party plugins or add-ons, we do offer some useful advice to help avoid potential issues in your projects.</p>
|
|
||||||
|
|
||||||
<h2 id="third-box-sizing">Box-sizing</h2>
|
|
||||||
<p>Some third party software, including Google Maps and Google Custom Search Engine, conflict with Bootstrap due to <code>* { box-sizing: border-box; }</code>, a rule which makes it so <code>padding</code> does not affect the final computed width of an element. Learn more about <a href="https://css-tricks.com/box-sizing/">box model and sizing at CSS Tricks</a>.</p>
|
|
||||||
<p>Depending on the context, you may override as-needed (Option 1) or reset the box-sizing for entire regions (Option 2).</p>
|
|
||||||
{% highlight scss %}
|
|
||||||
/* Box-sizing resets
|
|
||||||
*
|
|
||||||
* Reset individual elements or override regions to avoid conflicts due to
|
|
||||||
* global box model settings of Bootstrap. Two options, individual overrides and
|
|
||||||
* region resets, are available as plain CSS and uncompiled Less formats.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Option 1A: Override a single element's box model via CSS */
|
|
||||||
.element {
|
|
||||||
-webkit-box-sizing: content-box;
|
|
||||||
-moz-box-sizing: content-box;
|
|
||||||
box-sizing: content-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Option 1B: Override a single element's box model by using a Bootstrap Less mixin */
|
|
||||||
.element {
|
|
||||||
.box-sizing(content-box);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Option 2A: Reset an entire region via CSS */
|
|
||||||
.reset-box-sizing,
|
|
||||||
.reset-box-sizing *,
|
|
||||||
.reset-box-sizing *:before,
|
|
||||||
.reset-box-sizing *:after {
|
|
||||||
-webkit-box-sizing: content-box;
|
|
||||||
-moz-box-sizing: content-box;
|
|
||||||
box-sizing: content-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Option 2B: Reset an entire region with a custom Less mixin */
|
|
||||||
.reset-box-sizing {
|
|
||||||
&,
|
|
||||||
*,
|
|
||||||
*:before,
|
|
||||||
*:after {
|
|
||||||
.box-sizing(content-box);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.element {
|
|
||||||
.reset-box-sizing();
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="tools" class="page-header">Tools</h1>
|
|
||||||
|
|
||||||
<h2 id="tools-bootlint">Bootlint</h2>
|
|
||||||
<p><strong><a href="https://github.com/twbs/bootlint">Bootlint</a></strong> is the official Bootstrap HTML <a href="http://en.wikipedia.org/wiki/Lint_(software)">linter</a> tool. It automatically checks for several common HTML mistakes in webpages that are using Bootstrap in a fairly "vanilla" way. Vanilla Bootstrap's components/widgets require their parts of the DOM to conform to certain structures. Bootlint checks that instances of Bootstrap components have correctly-structured HTML. Consider adding Bootlint to your Bootstrap web development toolchain so that none of the common mistakes slow down your project's development.</p>
|
|
||||||
</div>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="translations" class="page-header">Translations</h1>
|
|
||||||
|
|
||||||
<p class="lead">Community members have translated Bootstrap's documentation into various languages. None are officially supported and they may not always be up to date.</p>
|
|
||||||
<ul>
|
|
||||||
{% for language in site.data.translations %}
|
|
||||||
<li><a href="{{ language.url }}" hreflang="{{ language.code }}">{{ language.description }} ({{ language.name }})</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
<p><strong class="text-danger">We don't help organize or host translations, we just link to them.</strong></p>
|
|
||||||
<p>Finished a new or better translation? Open a pull request to add it to our list.</p>
|
|
||||||
</div>
|
|
|
@ -1,55 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="whats-included" class="page-header">What's included</h1>
|
|
||||||
|
|
||||||
<p class="lead">Bootstrap is downloadable in two forms, within which you'll find the following directories and files, logically grouping common resources and providing both compiled and minified variations.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="jquery-required">
|
|
||||||
<h4>jQuery required</h4>
|
|
||||||
<p>Please note that <strong>all JavaScript plugins require jQuery</strong> to be included, as shown in the <a href="#template">starter template</a>. <a href="{{ site.repo }}/blob/v{{ site.current_version }}/bower.json">Consult our <code>bower.json</code></a> to see which versions of jQuery are supported.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="whats-included-precompiled">Precompiled Bootstrap</h2>
|
|
||||||
<p>Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:</p>
|
|
||||||
<!-- NOTE: This info is intentionally duplicated in the README.
|
|
||||||
Copy any changes made here over to the README too. -->
|
|
||||||
{% highlight bash %}
|
|
||||||
bootstrap/
|
|
||||||
├── css/
|
|
||||||
│ ├── bootstrap.css
|
|
||||||
│ ├── bootstrap.css.map
|
|
||||||
│ ├── bootstrap.min.css
|
|
||||||
│ ├── bootstrap.min.css.map
|
|
||||||
│ ├── bootstrap-theme.css
|
|
||||||
│ ├── bootstrap-theme.css.map
|
|
||||||
│ ├── bootstrap-theme.min.css
|
|
||||||
│ └── bootstrap-theme.min.css.map
|
|
||||||
├── js/
|
|
||||||
│ ├── bootstrap.js
|
|
||||||
│ └── bootstrap.min.js
|
|
||||||
└── fonts/
|
|
||||||
├── icons-halflings-regular.eot
|
|
||||||
├── icons-halflings-regular.svg
|
|
||||||
├── icons-halflings-regular.ttf
|
|
||||||
├── icons-halflings-regular.woff
|
|
||||||
└── icons-halflings-regular.woff2
|
|
||||||
{% endhighlight %}
|
|
||||||
<!-- NOTE: This info is intentionally duplicated in the README.
|
|
||||||
Copy any changes made here over to the README too. -->
|
|
||||||
<p>This is the most basic form of Bootstrap: precompiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). CSS <a href="https://developer.chrome.com/devtools/docs/css-preprocessors">source maps</a> (<code>bootstrap.*.map</code>) are available for use with certain browsers' developer tools. Fonts from Icons are included, as is the optional Bootstrap theme.</p>
|
|
||||||
|
|
||||||
<h2 id="whats-included-source">Bootstrap source code</h2>
|
|
||||||
<p>The Bootstrap source code download includes the precompiled CSS, JavaScript, and font assets, along with source Less, JavaScript, and documentation. More specifically, it includes the following and more:</p>
|
|
||||||
{% highlight bash %}
|
|
||||||
bootstrap/
|
|
||||||
├── less/
|
|
||||||
├── js/
|
|
||||||
├── fonts/
|
|
||||||
├── dist/
|
|
||||||
│ ├── css/
|
|
||||||
│ ├── js/
|
|
||||||
│ └── fonts/
|
|
||||||
└── docs/
|
|
||||||
└── examples/
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>The <code>less/</code>, <code>js/</code>, and <code>fonts/</code> are the source code for our CSS, JS, and icon fonts (respectively). The <code>dist/</code> folder includes everything listed in the precompiled download section above. The <code>docs/</code> folder includes the source code for our documentation, and <code>examples/</code> of Bootstrap usage. Beyond that, any other included file provides support for packages, license information, and development.</p>
|
|
||||||
</div>
|
|
|
@ -1,68 +0,0 @@
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="Material Design for Bootstrap">
|
|
||||||
<meta name="keywords" content="Material Design for Bootstrap, Less, Sass">
|
|
||||||
|
|
||||||
<title>
|
|
||||||
{% if page.layout == "home" %}
|
|
||||||
{{ page.title }}
|
|
||||||
{% else %}
|
|
||||||
{{ page.title }} · Bootstrap Material Design
|
|
||||||
{% endif %}
|
|
||||||
</title>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- BMD CSS -->
|
|
||||||
<!-- Bootstrap Material Design fonts -->
|
|
||||||
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
|
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
||||||
|
|
||||||
|
|
||||||
<!--<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">-->
|
|
||||||
|
|
||||||
{% if site.github %}
|
|
||||||
<link href="../dist/css/material-fullpalette.min.css" rel="stylesheet">
|
|
||||||
{% else %}
|
|
||||||
<link href="../dist/css/bootstrap-material-design.css" rel="stylesheet">
|
|
||||||
{% endif %}
|
|
||||||
<link href="../dist/css/ripples.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
{% if page.slug == "css" or page.slug == "components" or page.slug == "js" %}
|
|
||||||
<!-- Optional Bootstrap Theme -->
|
|
||||||
<!--{% if site.github %}-->
|
|
||||||
<!--<link href="data:text/css;charset=utf-8," data-href="../dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">-->
|
|
||||||
<!--{% else %}-->
|
|
||||||
<!--<link href="data:text/css;charset=utf-8," data-href="../dist/css/bootstrap-theme.css" rel="stylesheet" id="bs-theme-stylesheet">-->
|
|
||||||
<!--{% endif %}-->
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- Documentation extras -->
|
|
||||||
{% if site.github %}
|
|
||||||
<link href="../assets/css/docs.min.css" rel="stylesheet">
|
|
||||||
{% else %}
|
|
||||||
<link href="../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
|
|
||||||
<link href="../assets/css/src/pygments-manni.css" rel="stylesheet">
|
|
||||||
<link href="../assets/css/src/docs.css" rel="stylesheet">
|
|
||||||
{% endif %}
|
|
||||||
<!--[if lt IE 9]><script src="../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
|
||||||
<script src="../assets/js/ie-emulation-modes-warning.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
<!-- Favicons -->
|
|
||||||
<!--<link rel="apple-touch-icon" href="/apple-touch-icon.png">-->
|
|
||||||
<!--<link rel="icon" href="/favicon.ico">-->
|
|
||||||
|
|
||||||
<!--<script>-->
|
|
||||||
<!--(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){-->
|
|
||||||
<!--(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),-->
|
|
||||||
<!--m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)-->
|
|
||||||
<!--})(window,document,'script','//www.google-analytics.com/analytics.js','ga');-->
|
|
||||||
<!--ga('create', 'UA-146052-10', 'getbootstrap.com');-->
|
|
||||||
<!--ga('send', 'pageview');-->
|
|
||||||
<!--</script>-->
|
|
|
@ -1,129 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="affix" class="page-header">Affix <small>affix.js</small></h1>
|
|
||||||
|
|
||||||
<h2 id="affix-examples">Example</h2>
|
|
||||||
<p>The affix plugin toggles <code>position: fixed;</code> on and off, emulating the effect found with <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position#Sticky_positioning"><code>position: sticky;</code></a>. The subnavigation on the right is a live demo of the affix plugin.</p>
|
|
||||||
|
|
||||||
<hr class="bs-docs-separator">
|
|
||||||
|
|
||||||
<h2 id="affix-usage">Usage</h2>
|
|
||||||
<p>Use the affix plugin via data attributes or manually with your own JavaScript. <strong class="text-danger">In both situations, you must provide CSS for the positioning and width of your affixed content.</strong></p>
|
|
||||||
<p>Note: Do not use the affix plugin on an element contained in a relatively positioned element, such as a pulled or pushed column, due to a <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/12126">Safari rendering bug</a>.</p>
|
|
||||||
|
|
||||||
<h3>Positioning via CSS</h3>
|
|
||||||
<p>The affix plugin toggles between three classes, each representing a particular state: <code>.affix</code>, <code>.affix-top</code>, and <code>.affix-bottom</code>. You must provide the styles, with the exception of <code>position: fixed;</code> on <code>.affix</code>, for these classes yourself (independent of this plugin) to handle the actual positions.</p>
|
|
||||||
<p>Here's how the affix plugin works:</p>
|
|
||||||
<ol>
|
|
||||||
<li>To start, the plugin adds <code>.affix-top</code> to indicate the element is in its top-most position. At this point no CSS positioning is required.</li>
|
|
||||||
<li>Scrolling past the element you want affixed should trigger the actual affixing. This is where <code>.affix</code> replaces <code>.affix-top</code> and sets <code>position: fixed;</code> (provided by Bootstrap's CSS).</li>
|
|
||||||
<li>If a bottom offset is defined, scrolling past it should replace <code>.affix</code> with <code>.affix-bottom</code>. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add <code>position: absolute;</code> when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.</li>
|
|
||||||
</ol>
|
|
||||||
<p>Follow the above steps to set your CSS for either of the usage options below.</p>
|
|
||||||
|
|
||||||
<h3>Via data attributes</h3>
|
|
||||||
<p>To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Use offsets to define when to toggle the pinning of an element.</p>
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
<div data-spy="affix" data-offset-top="60" data-offset-bottom="200">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Via JavaScript</h3>
|
|
||||||
<p>Call the affix plugin via JavaScript:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myAffix').affix({
|
|
||||||
offset: {
|
|
||||||
top: 100,
|
|
||||||
bottom: function () {
|
|
||||||
return (this.bottom = $('.footer').outerHeight(true))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="affix-options">Options</h3>
|
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
|
|
||||||
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped js-options-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>type</th>
|
|
||||||
<th>default</th>
|
|
||||||
<th>description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>offset</td>
|
|
||||||
<td>number | function | object</td>
|
|
||||||
<td>10</td>
|
|
||||||
<td>Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both top and bottom directions. To provide a unique, bottom and top offset just provide an object <code>offset: { top: 10 }</code> or <code>offset: { top: 10, bottom: 5 }</code>. Use a function when you need to dynamically calculate an offset.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>target</td>
|
|
||||||
<td>selector | node | jQuery element</td>
|
|
||||||
<td>the <code>window</code> object</td>
|
|
||||||
<td>Specifies the target element of the affix.</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
|
|
||||||
<h3 id="affix-methods">Methods</h3>
|
|
||||||
|
|
||||||
<h4><code>.affix(options)</code></h4>
|
|
||||||
<p>Activates your content as affixed content. Accepts an optional options <code>object</code>.</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myAffix').affix({
|
|
||||||
offset: 15
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.affix('checkPosition')</code></h4>
|
|
||||||
<p>Recalculates the state of the affix based on the dimensions, position, and scroll position of the relevant elements. The <code>.affix</code>, <code>.affix-top</code>, and <code>.affix-bottom</code> classes are added to or removed from the affixed content according to the new state. This method needs to be called whenever the dimensions of the affixed content or the target element are changed, to ensure correct positioning of the affixed content.</p>
|
|
||||||
{% highlight js %}$('#myAffix').affix('checkPosition'){% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="affix-events">Events</h3>
|
|
||||||
<p>Bootstrap's affix plugin exposes a few events for hooking into affix functionality.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>affix.bs.affix</td>
|
|
||||||
<td>This event fires immediately before the element has been affixed.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>affixed.bs.affix</td>
|
|
||||||
<td>This event is fired after the element has been affixed.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>affix-top.bs.affix</td>
|
|
||||||
<td>This event fires immediately before the element has been affixed-top.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>affixed-top.bs.affix</td>
|
|
||||||
<td>This event is fired after the element has been affixed-top.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>affix-bottom.bs.affix</td>
|
|
||||||
<td>This event fires immediately before the element has been affixed-bottom.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>affixed-bottom.bs.affix</td>
|
|
||||||
<td>This event is fired after the element has been affixed-bottom.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
</div>
|
|
|
@ -1,73 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="alerts" class="page-header">Alert messages <small>alert.js</small></h1>
|
|
||||||
|
|
||||||
<h2 id="alerts-examples">Example alerts</h2>
|
|
||||||
<p>Add dismiss functionality to all alert messages with this plugin.</p>
|
|
||||||
<p>When using a <code>.close</code> button, it must be the first child of the <code>.alert-dismissible</code> and no text content may come before it in the markup.</p>
|
|
||||||
<div class="bs-example bs-example-standalone" data-example-id="dismissible-alert-js">
|
|
||||||
<div class="alert alert-warning alert-dismissible fade in" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible fade in" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4>Oh snap! You got an error!</h4>
|
|
||||||
<p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>
|
|
||||||
<p>
|
|
||||||
<button type="button" class="btn btn-danger">Take this action</button>
|
|
||||||
<button type="button" class="btn btn-default">Or do this</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="alerts-usage">Usage</h2>
|
|
||||||
|
|
||||||
<p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality. Closing an alert removes it from the DOM.</p>
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>To have your alerts use animation when closing, make sure they have the <code>.fade</code> and <code>.in</code> classes already applied to them.</p>
|
|
||||||
|
|
||||||
<h3 id="alerts-methods">Methods</h3>
|
|
||||||
|
|
||||||
<h4><code>$().alert()</code></h4>
|
|
||||||
<p>Makes an alert listen for click events on descendant elements which have the <code>data-dismiss="alert"</code> attribute. (Not necessary when using the data-api's auto-initialization.)</p>
|
|
||||||
|
|
||||||
<h4><code>$().alert('close')</code></h4>
|
|
||||||
<p>Closes an alert by removing it from the DOM. If the <code>.fade</code> and <code>.in</code> classes are present on the element, the alert will fade out before it is removed.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="alerts-events">Events</h3>
|
|
||||||
<p>Bootstrap's alert plugin exposes a few events for hooking into alert functionality.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>close.bs.alert</td>
|
|
||||||
<td>This event fires immediately when the <code>close</code> instance method is called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>closed.bs.alert</td>
|
|
||||||
<td>This event is fired when the alert has been closed (will wait for CSS transitions to complete).</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myAlert').on('closed.bs.alert', function () {
|
|
||||||
// do something…
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,139 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="buttons" class="page-header">Buttons <small>button.js</small></h1>
|
|
||||||
|
|
||||||
<p class="lead">Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-buttons-ff-autocomplete">
|
|
||||||
<h4>Cross-browser compatibility</h4>
|
|
||||||
<p><a href="https://github.com/fezvrasta/bootstrap-material-design/issues/793">Firefox persists form control states (disabledness and checkedness) across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>. See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=654072">Mozilla bug #654072</a>.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="buttons-stateful">Stateful</h2>
|
|
||||||
<p>Add <code>data-loading-text="Loading..."</code> to use a loading state on a button.</p>
|
|
||||||
<p><strong class="text-danger">This feature is deprecated since v3.3.5 and has been removed in v4.</strong></p>
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-buttons-state-names">
|
|
||||||
<h4>Use whichever state you like!</h4>
|
|
||||||
<p>For the sake of this demonstration, we are using <code>data-loading-text</code> and <code>$().button('loading')</code>, but that's not the only state you can use. <a href="#buttons-methods">See more on this below in the <code>$().button(string)</code> documentation</a>.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example">
|
|
||||||
<button type="button" id="loading-example-btn" data-loading-text="Loading..." class="btn btn-primary" autocomplete="off">
|
|
||||||
Loading state
|
|
||||||
</button>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" id="myButton" data-loading-text="Loading..." class="btn btn-primary" autocomplete="off">
|
|
||||||
Loading state
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$('#myButton').on('click', function () {
|
|
||||||
var $btn = $(this).button('loading')
|
|
||||||
// business logic...
|
|
||||||
$btn.button('reset')
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="buttons-single-toggle">Single toggle</h2>
|
|
||||||
<p>Add <code>data-toggle="button"</code> to activate toggling on a single button.</p>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-buttons-single-pretoggled">
|
|
||||||
<h4>Pre-toggled buttons need <code>.active</code> and <code>aria-pressed="true"</code></h4>
|
|
||||||
<p>For pre-toggled buttons, you must add the <code>.active</code> class and the <code>aria-pressed="true"</code> attribute to the <code>button</code> yourself.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example">
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false" autocomplete="off">
|
|
||||||
Single toggle
|
|
||||||
</button>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false" autocomplete="off">
|
|
||||||
Single toggle
|
|
||||||
</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="buttons-checkbox-radio">Checkbox / Radio</h2>
|
|
||||||
<p>Add <code>data-toggle="buttons"</code> to a <code>.btn-group</code> containing checkbox or radio inputs to enable toggling in their respective styles.</p>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-buttons-multi-preselected">
|
|
||||||
<h4>Preselected options need <code>.active</code></h4>
|
|
||||||
<p>For preselected options, you must add the <code>.active</code> class to the input's <code>label</code> yourself.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-buttons-only-click">
|
|
||||||
<h4>Visual checked state only updated on click</h4>
|
|
||||||
<p>If the checked state of a checkbox button is updated without firing a <code>click</code> event on the button (e.g. via <code><input type="reset"></code> or via setting the <code>checked</code> property of the input), you will need to toggle the <code>.active</code> class on the input's <code>label</code> yourself.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example" data-example-id="buttons-checkbox">
|
|
||||||
<div class="btn-group" data-toggle="buttons">
|
|
||||||
<label class="btn btn-primary active">
|
|
||||||
<input type="checkbox" checked autocomplete="off"> Checkbox 1 (pre-checked)
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="checkbox" autocomplete="off"> Checkbox 2
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="checkbox" autocomplete="off"> Checkbox 3
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group" data-toggle="buttons">
|
|
||||||
<label class="btn btn-primary active">
|
|
||||||
<input type="checkbox" autocomplete="off" checked> Checkbox 1 (pre-checked)
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="checkbox" autocomplete="off"> Checkbox 2
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="checkbox" autocomplete="off"> Checkbox 3
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-example" data-example-id="buttons-radio">
|
|
||||||
<div class="btn-group" data-toggle="buttons">
|
|
||||||
<label class="btn btn-primary active">
|
|
||||||
<input type="radio" name="options" id="option1" autocomplete="off" checked> Radio 1 (preselected)
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="radio" name="options" id="option2" autocomplete="off"> Radio 2
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="radio" name="options" id="option3" autocomplete="off"> Radio 3
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group" data-toggle="buttons">
|
|
||||||
<label class="btn btn-primary active">
|
|
||||||
<input type="radio" name="options" id="option1" autocomplete="off" checked> Radio 1 (preselected)
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="radio" name="options" id="option2" autocomplete="off"> Radio 2
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="radio" name="options" id="option3" autocomplete="off"> Radio 3
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="buttons-methods">Methods</h2>
|
|
||||||
<h4><code>$().button('toggle')</code></h4>
|
|
||||||
<p>Toggles push state. Gives the button the appearance that it has been activated.</p>
|
|
||||||
|
|
||||||
<h4><code>$().button('reset')</code></h4>
|
|
||||||
<p>Resets button state - swaps text to original text. <strong>This method is asynchronous and returns before the resetting has actually completed.</strong></p>
|
|
||||||
|
|
||||||
<h4><code>$().button(string)</code></h4>
|
|
||||||
<p>Swaps text to any data defined text state.</p>
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" id="myStateButton" data-complete-text="finished!" class="btn btn-primary" autocomplete="off">
|
|
||||||
...
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$('#myStateButton').on('click', function () {
|
|
||||||
$(this).button('complete') // button text will be "finished!"
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,260 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="carousel" class="page-header">Carousel <small>carousel.js</small></h1>
|
|
||||||
|
|
||||||
<p>A slideshow component for cycling through elements, like a carousel. <strong>Nested carousels are not supported.</strong></p>
|
|
||||||
|
|
||||||
<h2 id="carousel-examples">Examples</h2>
|
|
||||||
<div class="bs-example" data-example-id="simple-carousel">
|
|
||||||
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
|
||||||
<ol class="carousel-indicators">
|
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
|
||||||
</ol>
|
|
||||||
<div class="carousel-inner" role="listbox">
|
|
||||||
<div class="item active">
|
|
||||||
<img data-src="holder.js/900x500/auto/#777:#555/text:First slide" alt="First slide">
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<img data-src="holder.js/900x500/auto/#666:#444/text:Second slide" alt="Second slide">
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<img data-src="holder.js/900x500/auto/#555:#333/text:Third slide" alt="Third slide">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
|
||||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Previous</span>
|
|
||||||
</a>
|
|
||||||
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
|
||||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Next</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
|
||||||
<!-- Indicators -->
|
|
||||||
<ol class="carousel-indicators">
|
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
<!-- Wrapper for slides -->
|
|
||||||
<div class="carousel-inner" role="listbox">
|
|
||||||
<div class="item active">
|
|
||||||
<img src="..." alt="...">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<img src="..." alt="...">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Controls -->
|
|
||||||
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
|
||||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Previous</span>
|
|
||||||
</a>
|
|
||||||
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
|
||||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Next</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-carousel-accessibility">
|
|
||||||
<h4>Accessibility issue</h4>
|
|
||||||
<p>The carousel component is generally not compliant with accessibility standards. If you need to be compliant, please consider other options for presenting your content.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-carousel-transitions">
|
|
||||||
<h4>Transition animations not supported in Internet Explorer 8 & 9</h4>
|
|
||||||
<p>Bootstrap exclusively uses CSS3 for its animations, but Internet Explorer 8 & 9 don't support the necessary CSS properties. Thus, there are no slide transition animations when using these browsers. We have intentionally decided not to include jQuery-based fallbacks for the transitions.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-carousel-active">
|
|
||||||
<h4>Initial active element required</h4>
|
|
||||||
<p>The <code>.active</code> class needs to be added to one of the slides. Otherwise, the carousel will not be visible.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-carousel-without-icons">
|
|
||||||
<h4>Glyphicon icons not necessary</h4>
|
|
||||||
<p>The <code>.glyphicon .glyphicon-chevron-left</code> and <code>.glyphicon .glyphicon-chevron-right</code> classes are not necessarily needed for the controls. Bootstrap provides <code>.icon-prev</code> and <code>.icon-next</code> as plain unicode alternatives.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Optional captions</h3>
|
|
||||||
<p>Add captions to your slides easily with the <code>.carousel-caption</code> element within any <code>.item</code>. Place just about any optional HTML within there and it will be automatically aligned and formatted.</p>
|
|
||||||
<div class="bs-example" data-example-id="carousel-with-captions">
|
|
||||||
<div id="carousel-example-captions" class="carousel slide" data-ride="carousel">
|
|
||||||
<ol class="carousel-indicators">
|
|
||||||
<li data-target="#carousel-example-captions" data-slide-to="0" class="active"></li>
|
|
||||||
<li data-target="#carousel-example-captions" data-slide-to="1"></li>
|
|
||||||
<li data-target="#carousel-example-captions" data-slide-to="2"></li>
|
|
||||||
</ol>
|
|
||||||
<div class="carousel-inner" role="listbox">
|
|
||||||
<div class="item active">
|
|
||||||
<img data-src="holder.js/900x500/auto/#777:#777" alt="First slide image">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
<h3>First slide label</h3>
|
|
||||||
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<img data-src="holder.js/900x500/auto/#666:#666" alt="Second slide image">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
<h3>Second slide label</h3>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<img data-src="holder.js/900x500/auto/#555:#555" alt="Third slide image">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
<h3>Third slide label</h3>
|
|
||||||
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<a class="left carousel-control" href="#carousel-example-captions" role="button" data-slide="prev">
|
|
||||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Previous</span>
|
|
||||||
</a>
|
|
||||||
<a class="right carousel-control" href="#carousel-example-captions" role="button" data-slide="next">
|
|
||||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Next</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="item">
|
|
||||||
<img src="..." alt="...">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
<h3>...</h3>
|
|
||||||
<p>...</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="carousel-usage">Usage</h2>
|
|
||||||
|
|
||||||
<h3>Multiple carousels</h3>
|
|
||||||
<p>Carousels require the use of an <code>id</code> on the outermost container (the <code>.carousel</code>) for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's <code>id</code>, be sure to update the relevant controls.</p>
|
|
||||||
|
|
||||||
<h3>Via data attributes</h3>
|
|
||||||
<p>Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to its current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which shifts the slide position to a particular index beginning with <code>0</code>.</p>
|
|
||||||
<p>The <code>data-ride="carousel"</code> attribute is used to mark a carousel as animating starting at page load. <strong class="text-danger">It cannot be used in combination with (redundant and unnecessary) explicit JavaScript initialization of the same carousel.</strong></p>
|
|
||||||
|
|
||||||
<h3>Via JavaScript</h3>
|
|
||||||
<p>Call carousel manually with:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('.carousel').carousel()
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="carousel-options">Options</h3>
|
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped js-options-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>type</th>
|
|
||||||
<th>default</th>
|
|
||||||
<th>description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>interval</td>
|
|
||||||
<td>number</td>
|
|
||||||
<td>5000</td>
|
|
||||||
<td>The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>pause</td>
|
|
||||||
<td>string</td>
|
|
||||||
<td>"hover"</td>
|
|
||||||
<td>Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>wrap</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>true</td>
|
|
||||||
<td>Whether the carousel should cycle continuously or have hard stops.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>keyboard</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>true</td>
|
|
||||||
<td>Whether the carousel should react to keyboard events.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
|
|
||||||
<h3 id="carousel-methods">Methods</h3>
|
|
||||||
|
|
||||||
<h4><code>.carousel(options)</code></h4>
|
|
||||||
<p>Initializes the carousel with an optional options <code>object</code> and starts cycling through items.</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('.carousel').carousel({
|
|
||||||
interval: 2000
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.carousel('cycle')</code></h4>
|
|
||||||
<p>Cycles through the carousel items from left to right.</p>
|
|
||||||
|
|
||||||
<h4><code>.carousel('pause')</code></h4>
|
|
||||||
<p>Stops the carousel from cycling through items.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h4><code>.carousel(number)</code></h4>
|
|
||||||
<p>Cycles the carousel to a particular frame (0 based, similar to an array).</p>
|
|
||||||
|
|
||||||
<h4><code>.carousel('prev')</code></h4>
|
|
||||||
<p>Cycles to the previous item.</p>
|
|
||||||
|
|
||||||
<h4><code>.carousel('next')</code></h4>
|
|
||||||
<p>Cycles to the next item.</p>
|
|
||||||
|
|
||||||
<h3 id="carousel-events">Events</h3>
|
|
||||||
<p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
|
|
||||||
<p>Both events have the following additional properties:</p>
|
|
||||||
<ul>
|
|
||||||
<li><code>direction</code>: The direction in which the carousel is sliding (either <code>"left"</code> or <code>"right"</code>).</li>
|
|
||||||
<li><code>relatedTarget</code>: The DOM element that is being slid into place as the active item.</li>
|
|
||||||
</ul>
|
|
||||||
<p>All carousel events are fired at the carousel itself (i.e. at the <code><div class="carousel"></code>).</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>slide.bs.carousel</td>
|
|
||||||
<td>This event fires immediately when the <code>slide</code> instance method is invoked.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>slid.bs.carousel</td>
|
|
||||||
<td>This event is fired when the carousel has completed its slide transition.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myCarousel').on('slide.bs.carousel', function () {
|
|
||||||
// do something…
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,277 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="collapse" class="page-header">Collapse <small>collapse.js</small></h1>
|
|
||||||
|
|
||||||
<p class="lead">Flexible plugin that utilizes a handful of classes for easy toggle behavior.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-collapse-dependency">
|
|
||||||
<h4>Plugin dependency</h4>
|
|
||||||
<p>Collapse requires the <a href="#transitions">transitions plugin</a> to be included in your version of Bootstrap.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="collapse-example">Example</h2>
|
|
||||||
<p>Click the buttons below to show and hide another element via class changes:</p>
|
|
||||||
<ul>
|
|
||||||
<li><code>.collapse</code> hides content</li>
|
|
||||||
<li><code>.collapsing</code> is applied during transitions</li>
|
|
||||||
<li><code>.collapse.in</code> shows content</li>
|
|
||||||
</ul>
|
|
||||||
<p>You can use a link with the <code>href</code> attribute, or a button with the <code>data-target</code> attribute. In both cases, the <code>data-toggle="collapse"</code> is required.</p>
|
|
||||||
|
|
||||||
<div class="bs-example">
|
|
||||||
<p>
|
|
||||||
<a class="btn btn-primary" role="button" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
|
|
||||||
Link with href
|
|
||||||
</a>
|
|
||||||
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
|
|
||||||
Button with data-target
|
|
||||||
</button>
|
|
||||||
</p>
|
|
||||||
<div class="collapse" id="collapseExample">
|
|
||||||
<div class="well">
|
|
||||||
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.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<a class="btn btn-primary" role="button" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
|
|
||||||
Link with href
|
|
||||||
</a>
|
|
||||||
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
|
|
||||||
Button with data-target
|
|
||||||
</button>
|
|
||||||
<div class="collapse" id="collapseExample">
|
|
||||||
<div class="well">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="collapse-example-accordion">Accordion example</h2>
|
|
||||||
<p>Extend the default collapse behavior to create an accordion with the panel component.</p>
|
|
||||||
|
|
||||||
<div class="bs-example" data-example-id="collapse-accordion">
|
|
||||||
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading" role="tab" id="headingOne">
|
|
||||||
<h4 class="panel-title">
|
|
||||||
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
|
||||||
Collapsible Group Item #1
|
|
||||||
</a>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
|
|
||||||
<div class="panel-body">
|
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading" role="tab" id="headingTwo">
|
|
||||||
<h4 class="panel-title">
|
|
||||||
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
|
||||||
Collapsible Group Item #2
|
|
||||||
</a>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
|
|
||||||
<div class="panel-body">
|
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading" role="tab" id="headingThree">
|
|
||||||
<h4 class="panel-title">
|
|
||||||
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
|
|
||||||
Collapsible Group Item #3
|
|
||||||
</a>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
|
|
||||||
<div class="panel-body">
|
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading" role="tab" id="headingOne">
|
|
||||||
<h4 class="panel-title">
|
|
||||||
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
|
||||||
Collapsible Group Item #1
|
|
||||||
</a>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
|
|
||||||
<div class="panel-body">
|
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading" role="tab" id="headingTwo">
|
|
||||||
<h4 class="panel-title">
|
|
||||||
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
|
||||||
Collapsible Group Item #2
|
|
||||||
</a>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
|
|
||||||
<div class="panel-body">
|
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading" role="tab" id="headingThree">
|
|
||||||
<h4 class="panel-title">
|
|
||||||
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
|
|
||||||
Collapsible Group Item #3
|
|
||||||
</a>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
|
|
||||||
<div class="panel-body">
|
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>It's also possible to swap out <code>.panel-body</code>s with <code>.list-group</code>s.</p>
|
|
||||||
|
|
||||||
<div class="panel-group" role="tablist">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading" role="tab" id="collapseListGroupHeading1">
|
|
||||||
<h4 class="panel-title">
|
|
||||||
<a class="collapsed" role="button" data-toggle="collapse" href="#collapseListGroup1" aria-expanded="false" aria-controls="collapseListGroup1">
|
|
||||||
Collapsible list group
|
|
||||||
</a>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div id="collapseListGroup1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading1">
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item">Bootply</li>
|
|
||||||
<li class="list-group-item">One itmus ac facilin</li>
|
|
||||||
<li class="list-group-item">Second eros</li>
|
|
||||||
</ul>
|
|
||||||
<div class="panel-footer">Footer</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-collapse-accessibility">
|
|
||||||
<h4>Make expand/collapse controls accessible</h4>
|
|
||||||
<p>Be sure to add <code>aria-expanded</code> to the control element. This attribute explicitly defines the current state of the collapsible element to screen readers and similar assistive technologies. If the collapsible element is closed by default, it should have a value of <code>aria-expanded="false"</code>. If you've set the collapsible element to be open by default using the <code>in</code> class, set <code>aria-expanded="true"</code> on the control instead. The plugin will automatically toggle this attribute based on whether or not the collapsible element has been opened or closed.</p>
|
|
||||||
<p>Additionally, if your control element is targetting a single collapsible element – i.e. the <code>data-target</code> attribute is pointing to an <code>id</code> selector – you may add an additional <code>aria-controls</code> attribute to the control element, containing the <code>id</code> of the collapsible element. Modern screen readers and similar assistive technologies make use of this attribute to provide users with additional shortcuts to navigate directly to the collapsible element itself.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="collapse-usage">Usage</h2>
|
|
||||||
<p>The collapse plugin utilizes a few classes to handle the heavy lifting:</p>
|
|
||||||
<ul>
|
|
||||||
<li><code>.collapse</code> hides the content</li>
|
|
||||||
<li><code>.collapse.in</code> shows the content</li>
|
|
||||||
<li><code>.collapsing</code> is added when the transition starts, and removed when it finishes</li>
|
|
||||||
</ul>
|
|
||||||
<p>These classes can be found in <code>component-animations.less</code>.</p>
|
|
||||||
|
|
||||||
<h3>Via data attributes</h3>
|
|
||||||
<p>Just add <code>data-toggle="collapse"</code> and a <code>data-target</code> to the element to automatically assign control of a collapsible element. The <code>data-target</code> attribute accepts a CSS selector to apply the collapse to. Be sure to add the class <code>collapse</code> to the collapsible element. If you'd like it to default open, add the additional class <code>in</code>.</p>
|
|
||||||
<p>To add accordion-like group management to a collapsible control, add the data attribute <code>data-parent="#selector"</code>. Refer to the demo to see this in action.</p>
|
|
||||||
|
|
||||||
<h3>Via JavaScript</h3>
|
|
||||||
<p>Enable manually with:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('.collapse').collapse()
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="collapse-options">Options</h3>
|
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped js-options-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>type</th>
|
|
||||||
<th>default</th>
|
|
||||||
<th>description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>parent</td>
|
|
||||||
<td>selector</td>
|
|
||||||
<td>false</td>
|
|
||||||
<td>If a selector is provided, then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior - this is dependent on the <code>panel</code> class)</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>toggle</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>true</td>
|
|
||||||
<td>Toggles the collapsible element on invocation</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
|
|
||||||
<h3 id="collapse-methods">Methods</h3>
|
|
||||||
|
|
||||||
<h4><code>.collapse(options)</code></h4>
|
|
||||||
<p>Activates your content as a collapsible element. Accepts an optional options <code>object</code>.</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myCollapsible').collapse({
|
|
||||||
toggle: false
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.collapse('toggle')</code></h4>
|
|
||||||
<p>Toggles a collapsible element to shown or hidden. <strong>Returns to the caller before the collapsible element has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.collapse</code> or <code>hidden.bs.collapse</code> event occurs).</p>
|
|
||||||
|
|
||||||
<h4><code>.collapse('show')</code></h4>
|
|
||||||
<p>Shows a collapsible element. <strong>Returns to the caller before the collapsible element has actually been shown</strong> (i.e. before the <code>shown.bs.collapse</code> event occurs).</p>
|
|
||||||
|
|
||||||
<h4><code>.collapse('hide')</code></h4>
|
|
||||||
<p>Hides a collapsible element. <strong>Returns to the caller before the collapsible element has actually been hidden</strong> (i.e. before the <code>hidden.bs.collapse</code> event occurs).</p>
|
|
||||||
|
|
||||||
<h3 id="collapse-events">Events</h3>
|
|
||||||
<p>Bootstrap's collapse class exposes a few events for hooking into collapse functionality.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>show.bs.collapse</td>
|
|
||||||
<td>This event fires immediately when the <code>show</code> instance method is called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>shown.bs.collapse</td>
|
|
||||||
<td>This event is fired when a collapse element has been made visible to the user (will wait for CSS transitions to complete).</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hide.bs.collapse</td>
|
|
||||||
<td>
|
|
||||||
This event is fired immediately when the <code>hide</code> method has been called.
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hidden.bs.collapse</td>
|
|
||||||
<td>This event is fired when a collapse element has been hidden from the user (will wait for CSS transitions to complete).</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myCollapsible').on('hidden.bs.collapse', function () {
|
|
||||||
// do something…
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,201 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="dropdowns" class="page-header">Dropdowns <small>dropdown.js</small></h1>
|
|
||||||
|
|
||||||
<h2 id="dropdowns-examples">Examples</h2>
|
|
||||||
<p>Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.</p>
|
|
||||||
|
|
||||||
<h3>Within a navbar</h3>
|
|
||||||
<div class="bs-example">
|
|
||||||
<nav id="navbar-example" class="navbar navbar-default navbar-static">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-collapse">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project Name</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse bs-example-js-navbar-collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="dropdown">
|
|
||||||
<a id="drop1" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="drop1">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a id="drop2" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="drop2">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li id="fat-menu" class="dropdown">
|
|
||||||
<a id="drop3" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="drop3">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.nav-collapse -->
|
|
||||||
</div><!-- /.container-fluid -->
|
|
||||||
</nav> <!-- /navbar-example -->
|
|
||||||
</div> <!-- /example -->
|
|
||||||
|
|
||||||
<h3>Within pills</h3>
|
|
||||||
<div class="bs-example">
|
|
||||||
<ul class="nav nav-pills" role="tablist">
|
|
||||||
<li role="presentation" class="active"><a href="#">Regular link</a></li>
|
|
||||||
<li role="presentation" class="dropdown">
|
|
||||||
<a id="drop4" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul id="menu1" class="dropdown-menu" aria-labelledby="drop4">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li role="presentation" class="dropdown">
|
|
||||||
<a id="drop5" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul id="menu2" class="dropdown-menu" aria-labelledby="drop5">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li role="presentation" class="dropdown">
|
|
||||||
<a id="drop6" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown
|
|
||||||
<span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
<ul id="menu3" class="dropdown-menu" aria-labelledby="drop6">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul> <!-- /pills -->
|
|
||||||
</div> <!-- /example -->
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="dropdowns-usage">Usage</h2>
|
|
||||||
<p>Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the <code>.open</code> class on the parent list item.</p>
|
|
||||||
<p>On mobile devices, opening a dropdown adds a <code>.dropdown-backdrop</code> as a tap area for closing dropdown menus when tapping outside the menu, a requirement for proper iOS support. <strong class="text-danger">This means that switching from an open dropdown menu to a different dropdown menu requires an extra tap on mobile.</strong></p>
|
|
||||||
<p>Note: The <code>data-toggle="dropdown"</code> attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it.</p>
|
|
||||||
|
|
||||||
<h3>Via data attributes</h3>
|
|
||||||
<p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="dropdown">
|
|
||||||
<button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown trigger
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dLabel">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>To keep URLs intact with link buttons, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="dropdown">
|
|
||||||
<a id="dLabel" data-target="#" href="http://example.com" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
||||||
Dropdown trigger
|
|
||||||
<span class="caret"></span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="dLabel">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Via JavaScript</h3>
|
|
||||||
<p>Call the dropdowns via JavaScript:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('.dropdown-toggle').dropdown()
|
|
||||||
{% endhighlight %}
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-dropdowns-data-required">
|
|
||||||
<h4><code>data-toggle="dropdown"</code> still required</h4>
|
|
||||||
<p>Regardless of whether you call your dropdown via JavaScript or instead use the data-api, <code>data-toggle="dropdown"</code> is always required to be present on the dropdown's trigger element.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 id="dropdowns-options">Options</h3>
|
|
||||||
<p><em>None</em></p>
|
|
||||||
|
|
||||||
<h3 id="dropdowns-methods">Methods</h3>
|
|
||||||
<h4><code>$().dropdown('toggle')</code></h4>
|
|
||||||
<p>Toggles the dropdown menu of a given navbar or tabbed navigation.</p>
|
|
||||||
|
|
||||||
<h3 id="dropdowns-events">Events</h3>
|
|
||||||
<p>All dropdown events are fired at the <code>.dropdown-menu</code>'s parent element.</p>
|
|
||||||
<p>All dropdown events have a <code>relatedTarget</code> property, whose value is the toggling anchor element.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>show.bs.dropdown</td>
|
|
||||||
<td>This event fires immediately when the show instance method is called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>shown.bs.dropdown</td>
|
|
||||||
<td>This event is fired when the dropdown has been made visible to the user (will wait for CSS transitions, to complete).</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hide.bs.dropdown</td>
|
|
||||||
<td>This event is fired immediately when the hide instance method has been called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hidden.bs.dropdown</td>
|
|
||||||
<td>This event is fired when the dropdown has finished being hidden from the user (will wait for CSS transitions, to complete).</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- ./bs-table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myDropdown').on('show.bs.dropdown', function () {
|
|
||||||
// do something…
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,520 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="modals" class="page-header">Modals <small>modal.js</small></h1>
|
|
||||||
<p>Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-stacked-modals">
|
|
||||||
<h4>Multiple open modals not supported</h4>
|
|
||||||
<p>Be sure not to open a modal while another is still visible. Showing more than one modal at a time requires custom code.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-modal-markup-placement">
|
|
||||||
<h4>Modal markup placement</h4>
|
|
||||||
<p>Always try to place a modal's HTML code in a top-level position in your document to avoid other components affecting the modal's appearance and/or functionality.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-modal-mobile-caveats">
|
|
||||||
<h4>Mobile device caveats</h4>
|
|
||||||
<p>There are some caveats regarding using modals on mobile devices. <a href="../getting-started/#support-fixed-position-keyboards">See our browser support docs</a> for details.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><strong class="text-danger">Due to how HTML5 defines its semantics, the <code>autofocus</code> HTML attribute has no effect in Bootstrap modals.</strong> To achieve the same effect, use some custom JavaScript:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myModal').on('shown.bs.modal', function () {
|
|
||||||
$('#myInput').focus()
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="modals-examples">Examples</h2>
|
|
||||||
|
|
||||||
<h3>Static example</h3>
|
|
||||||
<p>A rendered modal with header, body, and set of actions in the footer.</p>
|
|
||||||
<div class="bs-example bs-example-modal" data-example-id="static-modal">
|
|
||||||
<div class="modal" tabindex="-1" role="dialog">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title">Modal title</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<p>One fine body…</p>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="button" class="btn btn-primary">Save changes</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="modal fade" tabindex="-1" role="dialog">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title">Modal title</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<p>One fine body…</p>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="button" class="btn btn-primary">Save changes</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Live demo</h3>
|
|
||||||
<p>Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.</p>
|
|
||||||
<!-- sample modal content -->
|
|
||||||
<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<h4>Text in a modal</h4>
|
|
||||||
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
|
|
||||||
|
|
||||||
<h4>Popover in a modal</h4>
|
|
||||||
<p>This <a href="#" role="button" class="btn btn-default popover-test" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">button</a> should trigger a popover on click.</p>
|
|
||||||
|
|
||||||
<h4>Tooltips in a modal</h4>
|
|
||||||
<p><a href="#" class="tooltip-test" title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip">that link</a> should have tooltips on hover.</p>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h4>Overflowing text to show scroll behavior</h4>
|
|
||||||
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
||||||
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
||||||
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
||||||
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
||||||
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
||||||
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
||||||
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
||||||
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
||||||
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="button" class="btn btn-primary">Save changes</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
<div class="bs-example bs-example-padded-bottom">
|
|
||||||
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
|
|
||||||
Launch demo modal
|
|
||||||
</button>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Button trigger modal -->
|
|
||||||
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
|
|
||||||
Launch demo modal
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<!-- Modal -->
|
|
||||||
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="button" class="btn btn-primary">Save changes</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-modal-accessibility">
|
|
||||||
<h4>Make modals accessible</h4>
|
|
||||||
<p>Be sure to add <code>role="dialog"</code> and <code>aria-labelledby="..."</code>, referencing the modal title, to <code>.modal</code>, and <code>role="document"</code> to the <code>.modal-dialog</code> itself.</p>
|
|
||||||
<p>Additionally, you may give a description of your modal dialog with <code>aria-describedby</code> on <code>.modal</code>.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-modal-youtube">
|
|
||||||
<h4>Embedding YouTube videos</h4>
|
|
||||||
<p>Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. <a href="https://stackoverflow.com/questions/18622508/bootstrap-3-and-youtube-in-modal">See this helpful Stack Overflow post</a> for more information.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="modals-sizes">Optional sizes</h2>
|
|
||||||
<p>Modals have two optional sizes, available via modifier classes to be placed on a <code>.modal-dialog</code>.</p>
|
|
||||||
<div class="bs-example">
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Large modal</button>
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- Large modal -->
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Large modal</button>
|
|
||||||
|
|
||||||
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
|
|
||||||
<div class="modal-dialog modal-lg">
|
|
||||||
<div class="modal-content">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Small modal -->
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>
|
|
||||||
|
|
||||||
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
|
|
||||||
<div class="modal-dialog modal-sm">
|
|
||||||
<div class="modal-content">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<!-- Modal content for the above example -->
|
|
||||||
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
|
|
||||||
<div class="modal-dialog modal-lg">
|
|
||||||
<div class="modal-content">
|
|
||||||
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title" id="myLargeModalLabel">Large modal</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
|
|
||||||
<div class="modal-dialog modal-sm">
|
|
||||||
<div class="modal-content">
|
|
||||||
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title" id="mySmallModalLabel">Small modal</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
<h2 id="modals-remove-animation">Remove animation</h2>
|
|
||||||
<p>For modals that simply appear rather than fade in to view, remove the <code>.fade</code> class from your modal markup.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="modal" tabindex="-1" role="dialog" aria-labelledby="...">
|
|
||||||
...
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="modals-grid-system">Using the grid system</h2>
|
|
||||||
<p>To take advantage of the Bootstrap grid system within a modal, just nest <code>.row</code>s within the <code>.modal-body</code> and then use the normal grid system classes.</p>
|
|
||||||
<!-- sample modal content -->
|
|
||||||
<div id="gridSystemModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="gridModalLabel">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title" id="gridModalLabel">Modal title</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
|
|
||||||
<div class="col-md-2 col-md-offset-4">.col-md-2 .col-md-offset-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-9">
|
|
||||||
Level 1: .col-sm-9
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-8 col-sm-6">
|
|
||||||
Level 2: .col-xs-8 .col-sm-6
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 col-sm-6">
|
|
||||||
Level 2: .col-xs-4 .col-sm-6
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="button" class="btn btn-primary">Save changes</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
<div class="bs-example bs-example-padded-bottom">
|
|
||||||
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#gridSystemModal">
|
|
||||||
Launch demo modal
|
|
||||||
</button>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title" id="gridSystemModalLabel">Modal title</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
|
|
||||||
<div class="col-md-2 col-md-offset-4">.col-md-2 .col-md-offset-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-9">
|
|
||||||
Level 1: .col-sm-9
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-8 col-sm-6">
|
|
||||||
Level 2: .col-xs-8 .col-sm-6
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 col-sm-6">
|
|
||||||
Level 2: .col-xs-4 .col-sm-6
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="button" class="btn btn-primary">Save changes</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="modals-related-target">Varying modal content based on trigger button</h2>
|
|
||||||
<p>Have a bunch of buttons that all trigger the same modal, just with slightly different contents? Use <code>event.relatedTarget</code> and <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes">HTML <code>data-*</code> attributes</a> (possibly <a href="http://api.jquery.com/data/">via jQuery</a>) to vary the contents of the modal depending on which button was clicked. See the Modal Events docs for details on <code>relatedTarget</code>,</p>
|
|
||||||
<div class="bs-example">
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo">Open modal for @mdo</button>
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@fat">Open modal for @fat</button>
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@getbootstrap">Open modal for @getbootstrap</button>
|
|
||||||
...more buttons...
|
|
||||||
|
|
||||||
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title" id="exampleModalLabel">New message</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="recipient-name" class="control-label">Recipient:</label>
|
|
||||||
<input type="text" class="form-control" id="recipient-name">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="message-text" class="control-label">Message:</label>
|
|
||||||
<textarea class="form-control" id="message-text"></textarea>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="button" class="btn btn-primary">Send message</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
</div><!-- /.bs-example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo">Open modal for @mdo</button>
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@fat">Open modal for @fat</button>
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@getbootstrap">Open modal for @getbootstrap</button>
|
|
||||||
...more buttons...
|
|
||||||
|
|
||||||
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title" id="exampleModalLabel">New message</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="recipient-name" class="control-label">Recipient:</label>
|
|
||||||
<input type="text" class="form-control" id="recipient-name">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="message-text" class="control-label">Message:</label>
|
|
||||||
<textarea class="form-control" id="message-text"></textarea>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
||||||
<button type="button" class="btn btn-primary">Send message</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight js %}
|
|
||||||
$('#exampleModal').on('show.bs.modal', function (event) {
|
|
||||||
var button = $(event.relatedTarget) // Button that triggered the modal
|
|
||||||
var recipient = button.data('whatever') // Extract info from data-* attributes
|
|
||||||
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
|
|
||||||
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
|
|
||||||
var modal = $(this)
|
|
||||||
modal.find('.modal-title').text('New message to ' + recipient)
|
|
||||||
modal.find('.modal-body input').val(recipient)
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="modals-usage">Usage</h2>
|
|
||||||
<p>The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds <code>.modal-open</code> to the <code><body></code> to override default scrolling behavior and generates a <code>.modal-backdrop</code> to provide a click area for dismissing shown modals when clicking outside the modal.</p>
|
|
||||||
|
|
||||||
<h3>Via data attributes</h3>
|
|
||||||
<p>Activate a modal without writing JavaScript. Set <code>data-toggle="modal"</code> on a controller element, like a button, along with a <code>data-target="#foo"</code> or <code>href="#foo"</code> to target a specific modal to toggle.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" data-toggle="modal" data-target="#myModal">Launch modal</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Via JavaScript</h3>
|
|
||||||
<p>Call a modal with id <code>myModal</code> with a single line of JavaScript:</p>
|
|
||||||
{% highlight js %}$('#myModal').modal(options){% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="modals-options">Options</h3>
|
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped js-options-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>type</th>
|
|
||||||
<th>default</th>
|
|
||||||
<th>description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>backdrop</td>
|
|
||||||
<td>boolean or the string <code>'static'</code></td>
|
|
||||||
<td>true</td>
|
|
||||||
<td>Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>keyboard</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>true</td>
|
|
||||||
<td>Closes the modal when escape key is pressed</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>show</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>true</td>
|
|
||||||
<td>Shows the modal when initialized.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>remote</td>
|
|
||||||
<td>path</td>
|
|
||||||
<td>false</td>
|
|
||||||
<td>
|
|
||||||
<p><strong class="text-danger">This option is deprecated since v3.3.0 and has been removed in v4.</strong> We recommend instead using client-side templating or a data binding framework, or calling <a href="http://api.jquery.com/load/">jQuery.load</a> yourself.</p>
|
|
||||||
<p>If a remote URL is provided, <strong>content will be loaded one time</strong> via jQuery's <code>load</code> method and injected into the <code>.modal-content</code> div. If you're using the data-api, you may alternatively use the <code>href</code> attribute to specify the remote source. An example of this is shown below:</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<a data-toggle="modal" href="remote.html" data-target="#modal">Click me</a>
|
|
||||||
{% endhighlight %}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
|
|
||||||
<h3 id="modals-methods">Methods</h3>
|
|
||||||
|
|
||||||
<h4><code>.modal(options)</code></h4>
|
|
||||||
<p>Activates your content as a modal. Accepts an optional options <code>object</code>.</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myModal').modal({
|
|
||||||
keyboard: false
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.modal('toggle')</code></h4>
|
|
||||||
<p>Manually toggles a modal. <strong>Returns to the caller before the modal has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.modal</code> or <code>hidden.bs.modal</code> event occurs).</p>
|
|
||||||
{% highlight js %}$('#myModal').modal('toggle'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.modal('show')</code></h4>
|
|
||||||
<p>Manually opens a modal. <strong>Returns to the caller before the modal has actually been shown</strong> (i.e. before the <code>shown.bs.modal</code> event occurs).</p>
|
|
||||||
{% highlight js %}$('#myModal').modal('show'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.modal('hide')</code></h4>
|
|
||||||
<p>Manually hides a modal. <strong>Returns to the caller before the modal has actually been hidden</strong> (i.e. before the <code>hidden.bs.modal</code> event occurs).</p>
|
|
||||||
{% highlight js %}$('#myModal').modal('hide'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.modal('handleUpdate')</code></h4>
|
|
||||||
<p>Readjusts the modal's positioning to counter a scrollbar in case one should appear, which would make the modal jump to the left.</p>
|
|
||||||
<p>Only needed when the height of the modal changes while it is open.</p>
|
|
||||||
{% highlight js %}$('#myModal').modal('handleUpdate'){% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="modals-events">Events</h3>
|
|
||||||
<p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
|
|
||||||
<p>All modal events are fired at the modal itself (i.e. at the <code><div class="modal"></code>).</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>show.bs.modal</td>
|
|
||||||
<td>This event fires immediately when the <code>show</code> instance method is called. If caused by a click, the clicked element is available as the <code>relatedTarget</code> property of the event.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>shown.bs.modal</td>
|
|
||||||
<td>This event is fired when the modal has been made visible to the user (will wait for CSS transitions to complete). If caused by a click, the clicked element is available as the <code>relatedTarget</code> property of the event.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hide.bs.modal</td>
|
|
||||||
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hidden.bs.modal</td>
|
|
||||||
<td>This event is fired when the modal has finished being hidden from the user (will wait for CSS transitions to complete).</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>loaded.bs.modal</td>
|
|
||||||
<td>This event is fired when the modal has loaded content using the <code>remote</code> option.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myModal').on('hidden.bs.modal', function (e) {
|
|
||||||
// do something...
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,86 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="js-overview" class="page-header">Overview</h1>
|
|
||||||
|
|
||||||
<h2 id="js-individual-compiled">Individual or compiled</h2>
|
|
||||||
<p>Plugins can be included individually (using Bootstrap's individual <code>*.js</code> files), or all at once (using <code>bootstrap.js</code> or the minified <code>bootstrap.min.js</code>).</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-overview-not-both">
|
|
||||||
<h4>Using the compiled JavaScript</h4>
|
|
||||||
<p>Both <code>bootstrap.js</code> and <code>bootstrap.min.js</code> contain all plugins in a single file. Include only one.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-overview-dependencies">
|
|
||||||
<h4>Plugin dependencies</h4>
|
|
||||||
<p>Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that all plugins depend on jQuery (this means jQuery must be included <strong>before</strong> the plugin files). <a href="{{ site.repo }}/blob/v{{ site.current_version }}/bower.json">Consult our <code>bower.json</code></a> to see which versions of jQuery are supported.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="js-data-attrs">Data attributes</h2>
|
|
||||||
<p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first-class API and should be your first consideration when using a plugin.</p>
|
|
||||||
|
|
||||||
<p>That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the document namespaced with <code>data-api</code>. This looks like this:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$(document).off('.data-api')
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>Alternatively, to target a specific plugin, just include the plugin's name as a namespace along with the data-api namespace like this:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$(document).off('.alert.data-api')
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-overview-single-data">
|
|
||||||
<h4>Only one plugin per element via data attributes</h4>
|
|
||||||
<p>Don't use data attributes from multiple plugins on the same element. For example, a button cannot both have a tooltip and toggle a modal. To accomplish this, use a wrapping element.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="js-programmatic-api">Programmatic API</h2>
|
|
||||||
<p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('.btn.danger').button('toggle').addClass('fat')
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myModal').modal() // initialized with defaults
|
|
||||||
$('#myModal').modal({ keyboard: false }) // initialized with no keyboard
|
|
||||||
$('#myModal').modal('show') // initializes and invokes show immediately
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>Each plugin also exposes its raw constructor on a <code>Constructor</code> property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel="popover"]').data('popover')</code>.</p>
|
|
||||||
|
|
||||||
<h4>Default settings</h4>
|
|
||||||
<p>You can change the default settings for a plugin by modifying the plugin's <code>Constructor.DEFAULTS</code> object:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$.fn.modal.Constructor.DEFAULTS.keyboard = false // changes default for the modal plugin's `keyboard` option to false
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="js-noconflict">No conflict</h2>
|
|
||||||
<p>Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call <code>.noConflict</code> on the plugin you wish to revert the value of.</p>
|
|
||||||
{% highlight js %}
|
|
||||||
var bootstrapButton = $.fn.button.noConflict() // return $.fn.button to previously assigned value
|
|
||||||
$.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Bootstrap functionality
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="js-events">Events</h2>
|
|
||||||
<p>Bootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and its past participle form (ex. <code>shown</code>) is triggered on the completion of an action.</p>
|
|
||||||
<p>As of 3.0.0, all Bootstrap events are namespaced.</p>
|
|
||||||
<p>All infinitive events provide <code>preventDefault</code> functionality. This provides the ability to stop the execution of an action before it starts.</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myModal').on('show.bs.modal', function (e) {
|
|
||||||
if (!data) return e.preventDefault() // stops modal from being shown
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="js-version-nums">Version numbers</h2>
|
|
||||||
<p>The version of each of Bootstrap's jQuery plugins can be accessed via the <code>VERSION</code> property of the plugin's constructor. For example, for the tooltip plugin:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$.fn.tooltip.Constructor.VERSION // => "{{ site.current_version }}"
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h2 id="js-disabled">No special fallbacks when JavaScript is disabled</h2>
|
|
||||||
<p>Bootstrap's plugins don't fall back particularly gracefully when JavaScript is disabled. If you care about the user experience in this case, use <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript"><code><noscript></code></a> to explain the situation (and how to re-enable JavaScript) to your users, and/or add your own custom fallbacks.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-third-party-libs">
|
|
||||||
<h4>Third-party libraries</h4>
|
|
||||||
<p><strong>Bootstrap does not officially support third-party JavaScript libraries</strong> like Prototype or jQuery UI. Despite <code>.noConflict</code> and namespaced events, there may be compatibility problems that you need to fix on your own.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,309 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="popovers" class="page-header">Popovers <small>popover.js</small></h1>
|
|
||||||
|
|
||||||
<p>Add small overlays of content, like those on the iPad, to any element for housing secondary information.</p>
|
|
||||||
<p>Popovers whose both title and content are zero-length are never displayed.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-popover-needs-tooltip">
|
|
||||||
<h4>Plugin dependency</h4>
|
|
||||||
<p>Popovers require the <a href="#tooltips">tooltip plugin</a> to be included in your version of Bootstrap.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-popover-opt-in">
|
|
||||||
<h4>Opt-in functionality</h4>
|
|
||||||
<p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>.</p>
|
|
||||||
<p>One way to initialize all popovers on a page would be to select them by their <code>data-toggle</code> attribute:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$(function () {
|
|
||||||
$('[data-toggle="popover"]').popover()
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-popover-groups">
|
|
||||||
<h4>Popovers in button groups, input groups, and tables require special setting</h4>
|
|
||||||
<p>When using popovers on elements within a <code>.btn-group</code> or an <code>.input-group</code>, or on table-related elements (<code><td></code>, <code><th></code>, <code><tr></code>, <code><thead></code>, <code><tbody></code>, <code><tfoot></code>), you'll have to specify the option <code>container: 'body'</code> (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the popover is triggered).</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-popover-hidden">
|
|
||||||
<h4>Don't try to show popovers on hidden elements</h4>
|
|
||||||
<p>Invoking <code>$(...).popover('show')</code> when the target element is <code>display: none;</code> will cause the popover to be incorrectly positioned.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-popover-disabled">
|
|
||||||
<h4>Popovers on disabled elements require wrapper elements</h4>
|
|
||||||
<p>To add a popover to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code><div></code> and apply the popover to that <code><div></code> instead.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-popover-multiline">
|
|
||||||
<h4>Multiple-line links</h4>
|
|
||||||
<p>Sometimes you want to add a popover to a hyperlink that wraps multiple lines. The default behavior of the popover plugin is to center it horizontally and vertically. Add <code>white-space: nowrap;</code> to your anchors to avoid this.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="popovers-examples">Examples</h2>
|
|
||||||
<h3>Static popover</h3>
|
|
||||||
<p>Four options are available: top, right, bottom, and left aligned.</p>
|
|
||||||
<div class="bs-example bs-example-popover" data-example-id="static-popovers">
|
|
||||||
<div class="popover top">
|
|
||||||
<div class="arrow"></div>
|
|
||||||
<h3 class="popover-title">Popover top</h3>
|
|
||||||
<div class="popover-content">
|
|
||||||
<p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="popover right">
|
|
||||||
<div class="arrow"></div>
|
|
||||||
<h3 class="popover-title">Popover right</h3>
|
|
||||||
<div class="popover-content">
|
|
||||||
<p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="popover bottom">
|
|
||||||
<div class="arrow"></div>
|
|
||||||
<h3 class="popover-title">Popover bottom</h3>
|
|
||||||
|
|
||||||
<div class="popover-content">
|
|
||||||
<p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="popover left">
|
|
||||||
<div class="arrow"></div>
|
|
||||||
<h3 class="popover-title">Popover left</h3>
|
|
||||||
<div class="popover-content">
|
|
||||||
<p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Live demo</h3>
|
|
||||||
<div class="bs-example bs-example-padded-bottom">
|
|
||||||
<button type="button" class="btn btn-lg btn-danger bs-docs-popover" data-toggle="popover" title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-lg btn-danger" data-toggle="popover" title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4>Four directions</h4>
|
|
||||||
<div class="bs-example popover-demo">
|
|
||||||
<div class="bs-example-popovers">
|
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on right
|
|
||||||
</button>
|
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on top
|
|
||||||
</button>
|
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on bottom
|
|
||||||
</button>
|
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on left
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on left
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on top
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus
|
|
||||||
sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on bottom
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on right
|
|
||||||
</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4>Dismiss on next click</h4>
|
|
||||||
<p>Use the <code>focus</code> trigger to dismiss popovers on the next click that the user makes.</p>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-popover-dismiss-click">
|
|
||||||
<h4>Specific markup required for dismiss-on-next-click</h4>
|
|
||||||
<p>For proper cross-browser and cross-platform behavior, you must use the <code><a></code> tag, <i>not</i> the <code><button></code> tag, and you also must include the <code>role="button"</code> and <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#tabindex"><code>tabindex</code></a> attributes.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example bs-example-padded-bottom">
|
|
||||||
<a tabindex="0" class="btn btn-lg btn-danger bs-docs-popover" role="button" data-toggle="popover" data-trigger="focus" title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<a tabindex="0" class="btn btn-lg btn-danger" role="button" data-toggle="popover" data-trigger="focus" title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="popovers-usage">Usage</h2>
|
|
||||||
<p>Enable popovers via JavaScript:</p>
|
|
||||||
{% highlight js %}$('#example').popover(options){% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="popovers-options">Options</h3>
|
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped js-options-table js-options-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Type</th>
|
|
||||||
<th>Default</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>animation</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>true</td>
|
|
||||||
<td>Apply a CSS fade transition to the popover</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>container</td>
|
|
||||||
<td>string | false</td>
|
|
||||||
<td>false</td>
|
|
||||||
<td>
|
|
||||||
<p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>content</td>
|
|
||||||
<td>string | function</td>
|
|
||||||
<td>''</td>
|
|
||||||
<td>
|
|
||||||
<p>Default content value if <code>data-content</code> attribute isn't present.</p>
|
|
||||||
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>delay</td>
|
|
||||||
<td>number | object</td>
|
|
||||||
<td>0</td>
|
|
||||||
<td>
|
|
||||||
<p>Delay showing and hiding the popover (ms) - does not apply to manual trigger type</p>
|
|
||||||
<p>If a number is supplied, delay is applied to both hide/show</p>
|
|
||||||
<p>Object structure is: <code>delay: { "show": 500, "hide": 100 }</code></p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>html</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>false</td>
|
|
||||||
<td>Insert HTML into the popover. If false, jQuery's <code>text</code> method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>placement</td>
|
|
||||||
<td>string | function</td>
|
|
||||||
<td>'right'</td>
|
|
||||||
<td>
|
|
||||||
<p>How to position the popover - top | bottom | left | right | auto.<br>When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right.</p>
|
|
||||||
<p>When a function is used to determine the placement, it is called with the popover DOM node as its first argument and the triggering element DOM node as its second. The <code>this</code> context is set to the popover instance.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>selector</td>
|
|
||||||
<td>string</td>
|
|
||||||
<td>false</td>
|
|
||||||
<td>If a selector is provided, popover objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added. See <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/4215">this</a> and <a href="http://jsbin.com/zopod/1/edit">an informative example</a>.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>template</td>
|
|
||||||
<td>string</td>
|
|
||||||
<td><code>'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'</code></td>
|
|
||||||
<td>
|
|
||||||
<p>Base HTML to use when creating the popover.</p>
|
|
||||||
<p>The popover's <code>title</code> will be injected into the <code>.popover-title</code>.</p>
|
|
||||||
<p>The popover's <code>content</code> will be injected into the <code>.popover-content</code>.</p>
|
|
||||||
<p><code>.arrow</code> will become the popover's arrow.</p>
|
|
||||||
<p>The outermost wrapper element should have the <code>.popover</code> class.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>title</td>
|
|
||||||
<td>string | function</td>
|
|
||||||
<td>''</td>
|
|
||||||
<td>
|
|
||||||
<p>Default title value if <code>title</code> attribute isn't present.</p>
|
|
||||||
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>trigger</td>
|
|
||||||
<td>string</td>
|
|
||||||
<td>'click'</td>
|
|
||||||
<td>How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. <code>manual</code> cannot be combined with any other trigger.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>viewport</td>
|
|
||||||
<td>string | object | function</td>
|
|
||||||
<td>{ selector: 'body', padding: 0 }</td>
|
|
||||||
<td>
|
|
||||||
<p>Keeps the popover within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p>
|
|
||||||
<p>If a function is given, it is called with the triggering element DOM node as its only argument. The <code>this</code> context is set to the popover instance.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-popover-data">
|
|
||||||
<h4>Data attributes for individual popovers</h4>
|
|
||||||
<p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 id="popovers-methods">Methods</h3>
|
|
||||||
<h4><code>$().popover(options)</code></h4>
|
|
||||||
<p>Initializes popovers for an element collection.</p>
|
|
||||||
|
|
||||||
<h4><code>.popover('show')</code></h4>
|
|
||||||
<p>Reveals an element's popover. <strong>Returns to the caller before the popover has actually been shown</strong> (i.e. before the <code>shown.bs.popover</code> event occurs). This is considered a "manual" triggering of the popover. Popovers whose both title and content are zero-length are never displayed.</p>
|
|
||||||
{% highlight js %}$('#element').popover('show'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.popover('hide')</code></h4>
|
|
||||||
<p>Hides an element's popover. <strong>Returns to the caller before the popover has actually been hidden</strong> (i.e. before the <code>hidden.bs.popover</code> event occurs). This is considered a "manual" triggering of the popover.</p>
|
|
||||||
{% highlight js %}$('#element').popover('hide'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.popover('toggle')</code></h4>
|
|
||||||
<p>Toggles an element's popover. <strong>Returns to the caller before the popover has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.popover</code> or <code>hidden.bs.popover</code> event occurs). This is considered a "manual" triggering of the popover.</p>
|
|
||||||
{% highlight js %}$('#element').popover('toggle'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.popover('destroy')</code></h4>
|
|
||||||
<p>Hides and destroys an element's popover. Popovers that use delegation (which are created using <a href="#popovers-options">the <code>selector</code> option</a>) cannot be individually destroyed on descendant trigger elements.</p>
|
|
||||||
{% highlight js %}$('#element').popover('destroy'){% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="popovers-events">Events</h3>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>show.bs.popover</td>
|
|
||||||
<td>This event fires immediately when the <code>show</code> instance method is called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>shown.bs.popover</td>
|
|
||||||
<td>This event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hide.bs.popover</td>
|
|
||||||
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hidden.bs.popover</td>
|
|
||||||
<td>This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>inserted.bs.popover</td>
|
|
||||||
<td>This event is fired after the <code>show.bs.popover</code> event when the popover template has been added to the DOM.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myPopover').on('hidden.bs.popover', function () {
|
|
||||||
// do something…
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,151 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="scrollspy" class="page-header">ScrollSpy <small>scrollspy.js</small></h1>
|
|
||||||
|
|
||||||
<h2 id="scrollspy-examples">Example in navbar</h2>
|
|
||||||
<p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p>
|
|
||||||
<div class="bs-example" data-example-id="embedded-scrollspy">
|
|
||||||
<nav id="navbar-example2" class="navbar navbar-default navbar-static">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-scrollspy">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project Name</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse bs-example-js-navbar-scrollspy">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li><a href="#fat">@fat</a></li>
|
|
||||||
<li><a href="#mdo">@mdo</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" id="navbarDrop1" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDrop1">
|
|
||||||
<li><a href="#one">one</a></li>
|
|
||||||
<li><a href="#two">two</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="#three">three</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
<div data-spy="scroll" data-target="#navbar-example2" data-offset="0" class="scrollspy-example">
|
|
||||||
<h4 id="fat">@fat</h4>
|
|
||||||
<p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
|
|
||||||
<h4 id="mdo">@mdo</h4>
|
|
||||||
<p>Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.</p>
|
|
||||||
<h4 id="one">one</h4>
|
|
||||||
<p>Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.</p>
|
|
||||||
<h4 id="two">two</h4>
|
|
||||||
<p>In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.</p>
|
|
||||||
<h4 id="three">three</h4>
|
|
||||||
<p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
|
|
||||||
<p>Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="scrollspy-usage">Usage</h2>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-scrollspy-needs-nav">
|
|
||||||
<h4>Requires Bootstrap nav</h4>
|
|
||||||
<p>Scrollspy currently requires the use of a <a href="../components/#nav">Bootstrap nav component</a> for proper highlighting of active links.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-scrollspy-target-ids">
|
|
||||||
<h4>Resolvable ID targets required</h4>
|
|
||||||
<p>Navbar links must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the DOM like <code><div id="home"></div></code>.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-scrollspy-invisible-targets">
|
|
||||||
<h4>Non-<code>:visible</code> target elements ignored</h4>
|
|
||||||
<p>Target elements that are not <a href="http://api.jquery.com/visible-selector/"><code>:visible</code> according to jQuery</a> will be ignored and their corresponding nav items will never be highlighted.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Requires relative positioning</h3>
|
|
||||||
<p>No matter the implementation method, scrollspy requires the use of <code>position: relative;</code> on the element you're spying on. In most cases this is the <code><body></code>. When scrollspying on elements other than the <code><body></code>, be sure to have a <code>height</code> set and <code>overflow-y: scroll;</code> applied.</p>
|
|
||||||
|
|
||||||
<h3>Via data attributes</h3>
|
|
||||||
<p>To easily add scrollspy behavior to your topbar navigation, add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the <code><body></code>). Then add the <code>data-target</code> attribute with the ID or class of the parent element of any Bootstrap <code>.nav</code> component.</p>
|
|
||||||
{% highlight css %}
|
|
||||||
body {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
{% highlight html %}
|
|
||||||
<body data-spy="scroll" data-target="#navbar-example">
|
|
||||||
...
|
|
||||||
<div id="navbar-example">
|
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
...
|
|
||||||
</body>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Via JavaScript</h3>
|
|
||||||
<p>After adding <code>position: relative;</code> in your CSS, call the scrollspy via JavaScript:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('body').scrollspy({ target: '#navbar-example' })
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="scrollspy-methods">Methods</h3>
|
|
||||||
<h4><code>.scrollspy('refresh')</code></h4>
|
|
||||||
<p>When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('[data-spy="scroll"]').each(function () {
|
|
||||||
var $spy = $(this).scrollspy('refresh')
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3 id="scrollspy-options">Options</h3>
|
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped js-options-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>type</th>
|
|
||||||
<th>default</th>
|
|
||||||
<th>description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>offset</td>
|
|
||||||
<td>number</td>
|
|
||||||
<td>10</td>
|
|
||||||
<td>Pixels to offset from top when calculating position of scroll.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- ./bs-table-responsive -->
|
|
||||||
|
|
||||||
<h3 id="scrollspy-events">Events</h3>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>activate.bs.scrollspy</td>
|
|
||||||
<td>This event fires whenever a new item becomes activated by the scrollspy.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- ./bs-table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myScrollspy').on('activate.bs.scrollspy', function () {
|
|
||||||
// do something…
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,147 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="tabs" class="page-header">Togglable tabs <small>tab.js</small></h1>
|
|
||||||
|
|
||||||
<h2 id="tabs-examples">Example tabs</h2>
|
|
||||||
<p>Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus. <strong>Nested tabs are not supported.</strong></p>
|
|
||||||
<div class="bs-example bs-example-tabs" data-example-id="togglable-tabs">
|
|
||||||
<ul id="myTabs" class="nav nav-tabs" role="tablist">
|
|
||||||
<li role="presentation" class="active"><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#profile" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile">Profile</a></li>
|
|
||||||
<li role="presentation" class="dropdown">
|
|
||||||
<a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown" aria-controls="myTabDrop1-contents">Dropdown <span class="caret"></span></a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="myTabDrop1" id="myTabDrop1-contents">
|
|
||||||
<li><a href="#dropdown1" role="tab" id="dropdown1-tab" data-toggle="tab" aria-controls="dropdown1">@fat</a></li>
|
|
||||||
<li><a href="#dropdown2" role="tab" id="dropdown2-tab" data-toggle="tab" aria-controls="dropdown2">@mdo</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div id="myTabContent" class="tab-content">
|
|
||||||
<div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledBy="home-tab">
|
|
||||||
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p>
|
|
||||||
</div>
|
|
||||||
<div role="tabpanel" class="tab-pane fade" id="profile" aria-labelledBy="profile-tab">
|
|
||||||
<p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
|
|
||||||
</div>
|
|
||||||
<div role="tabpanel" class="tab-pane fade" id="dropdown1" aria-labelledBy="dropdown1-tab">
|
|
||||||
<p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
|
|
||||||
</div>
|
|
||||||
<div role="tabpanel" class="tab-pane fade" id="dropdown2" aria-labelledBy="dropdown2-tab">
|
|
||||||
<p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-tabs-extends-component">
|
|
||||||
<h4>Extends tabbed navigation</h4>
|
|
||||||
<p>This plugin extends the <a href="../components/#nav-tabs">tabbed navigation component</a> to add tabbable areas.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="tabs-usage">Usage</h2>
|
|
||||||
<p>Enable tabbable tabs via JavaScript (each tab needs to be activated individually):</p>
|
|
||||||
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myTabs a').click(function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
$(this).tab('show')
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>You can activate individual tabs in several ways:</p>
|
|
||||||
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myTabs a[href="#profile"]').tab('show') // Select tab by name
|
|
||||||
$('#myTabs a:first').tab('show') // Select first tab
|
|
||||||
$('#myTabs a:last').tab('show') // Select last tab
|
|
||||||
$('#myTabs li:eq(2) a').tab('show') // Select third tab (0-indexed)
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Markup</h3>
|
|
||||||
<p>You can activate a tab or pill navigation without writing any JavaScript by simply specifying <code>data-toggle="tab"</code> or <code>data-toggle="pill"</code> on an element. Adding the <code>nav</code> and <code>nav-tabs</code> classes to the tab <code>ul</code> will apply the Bootstrap <a href="../components/#nav-tabs">tab styling</a>, while adding the <code>nav</code> and <code>nav-pills</code> classes will apply <a href="../components/#nav-pills">pill styling</a>.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div>
|
|
||||||
|
|
||||||
<!-- Nav tabs -->
|
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
|
||||||
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
|
|
||||||
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
|
|
||||||
<li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
|
|
||||||
<li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<!-- Tab panes -->
|
|
||||||
<div class="tab-content">
|
|
||||||
<div role="tabpanel" class="tab-pane active" id="home">...</div>
|
|
||||||
<div role="tabpanel" class="tab-pane" id="profile">...</div>
|
|
||||||
<div role="tabpanel" class="tab-pane" id="messages">...</div>
|
|
||||||
<div role="tabpanel" class="tab-pane" id="settings">...</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Fade effect</h3>
|
|
||||||
<p>To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>. The first tab pane must also have <code>.in</code> to make the initial content visible.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="tab-content">
|
|
||||||
<div role="tabpanel" class="tab-pane fade in active" id="home">...</div>
|
|
||||||
<div role="tabpanel" class="tab-pane fade" id="profile">...</div>
|
|
||||||
<div role="tabpanel" class="tab-pane fade" id="messages">...</div>
|
|
||||||
<div role="tabpanel" class="tab-pane fade" id="settings">...</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="tabs-methods">Methods</h3>
|
|
||||||
<h4><code>$().tab</code></h4>
|
|
||||||
<p>
|
|
||||||
Activates a tab element and content container. Tab should have either a <code>data-target</code> or an <code>href</code> targeting a container node in the DOM. In the above examples, the tabs are the <code><a></code>s with <code>data-toggle="tab"</code> attributes.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h4><code>.tab('show')</code></h4>
|
|
||||||
<p>Selects the given tab and shows its associated content. Any other tab that was previously selected becomes unselected and its associated content is hidden. <strong>Returns to the caller before the tab pane has actually been shown</strong> (i.e. before the <code>shown.bs.tab</code> event occurs).</p>
|
|
||||||
{% highlight js %}$('#someTab').tab('show'){% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="tabs-events">Events</h3>
|
|
||||||
<p>When showing a new tab, the events fire in the following order:</p>
|
|
||||||
<ol>
|
|
||||||
<li><code>hide.bs.tab</code> (on the current active tab)</li>
|
|
||||||
<li><code>show.bs.tab</code> (on the to-be-shown tab)</li>
|
|
||||||
<li><code>hidden.bs.tab</code> (on the previous active tab, the same one as for the <code>hide.bs.tab</code> event)</li>
|
|
||||||
<li><code>shown.bs.tab</code> (on the newly-active just-shown tab, the same one as for the <code>show.bs.tab</code> event)</li>
|
|
||||||
</ol>
|
|
||||||
<p>If no tab was already active, then the <code>hide.bs.tab</code> and <code>hidden.bs.tab</code> events will not be fired.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>show.bs.tab</td>
|
|
||||||
<td>This event fires on tab show, but before the new tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>shown.bs.tab</td>
|
|
||||||
<td>This event fires on tab show after a tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hide.bs.tab</td>
|
|
||||||
<td>This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden). Use <code>event.target</code> and <code>event.relatedTarget</code> to target the current active tab and the new soon-to-be-active tab, respectively.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hidden.bs.tab</td>
|
|
||||||
<td>This event fires after a new tab is shown (and thus the previous active tab is hidden). Use <code>event.target</code> and <code>event.relatedTarget</code> to target the previous active tab and the new active tab, respectively.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
|
||||||
e.target // newly activated tab
|
|
||||||
e.relatedTarget // previous active tab
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,276 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="tooltips" class="page-header">Tooltips <small>tooltip.js</small></h1>
|
|
||||||
<p>Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.</p>
|
|
||||||
<p>Tooltips with zero-length titles are never displayed.</p>
|
|
||||||
|
|
||||||
<h2 id="tooltips-examples">Examples</h2>
|
|
||||||
<p>Hover over the links below to see tooltips:</p>
|
|
||||||
<div class="bs-example tooltip-demo">
|
|
||||||
<p>Tight pants next level keffiyeh <a href="#" data-toggle="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" data-toggle="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" data-toggle="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" data-toggle="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.</p>
|
|
||||||
</div><!-- /example -->
|
|
||||||
|
|
||||||
<h3>Static tooltip</h3>
|
|
||||||
<p>Four options are available: top, right, bottom, and left aligned.</p>
|
|
||||||
<div class="bs-example bs-example-tooltip" data-example-id="static-tooltips">
|
|
||||||
<div class="tooltip left" role="tooltip">
|
|
||||||
<div class="tooltip-arrow"></div>
|
|
||||||
<div class="tooltip-inner">
|
|
||||||
Tooltip on the left
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="tooltip top" role="tooltip">
|
|
||||||
<div class="tooltip-arrow"></div>
|
|
||||||
<div class="tooltip-inner">
|
|
||||||
Tooltip on the top
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="tooltip bottom" role="tooltip">
|
|
||||||
<div class="tooltip-arrow"></div>
|
|
||||||
<div class="tooltip-inner">
|
|
||||||
Tooltip on the bottom
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="tooltip right" role="tooltip">
|
|
||||||
<div class="tooltip-arrow"></div>
|
|
||||||
<div class="tooltip-inner">
|
|
||||||
Tooltip on the right
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Four directions</h3>
|
|
||||||
<div class="bs-example tooltip-demo">
|
|
||||||
<div class="bs-example-tooltips">
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</button>
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip on top">Tooltip on top</button>
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">Tooltip on bottom</button>
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="right" title="Tooltip on right">Tooltip on right</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</button>
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip on top">Tooltip on top</button>
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">Tooltip on bottom</button>
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="right" title="Tooltip on right">Tooltip on right</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger" id="callout-tooltip-opt-in">
|
|
||||||
<h4>Opt-in functionality</h4>
|
|
||||||
<p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>.</p>
|
|
||||||
<p>One way to initialize all tooltips on a page would be to select them by their <code>data-toggle</code> attribute:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$(function () {
|
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="tooltips-usage">Usage</h2>
|
|
||||||
<p>The tooltip plugin generates content and markup on demand, and by default places tooltips after their trigger element.</p>
|
|
||||||
<p>Trigger the tooltip via JavaScript:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$('#example').tooltip(options)
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Markup</h3>
|
|
||||||
<p>The required markup for a tooltip is only a <code>data</code> attribute and <code>title</code> on the HTML element you wish to have a tooltip. The generated markup of a tooltip is rather simple, though it does require a position (by default, set to <code>top</code> by the plugin).</p>
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
<!-- HTML to write -->
|
|
||||||
<a href="#" data-toggle="tooltip" title="Some tooltip text!">Hover over me</a>
|
|
||||||
|
|
||||||
<!-- Generated markup by the plugin -->
|
|
||||||
<div class="tooltip top" role="tooltip">
|
|
||||||
<div class="tooltip-arrow"></div>
|
|
||||||
<div class="tooltip-inner">
|
|
||||||
Some tooltip text!
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-tooltip-multiline">
|
|
||||||
<h4>Multiple-line links</h4>
|
|
||||||
<p>Sometimes you want to add a tooltip to a hyperlink that wraps multiple lines. The default behavior of the tooltip plugin is to center it horizontally and vertically. Add <code>white-space: nowrap;</code> to your anchors to avoid this.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-tooltip-groups">
|
|
||||||
<h4>Tooltips in button groups, input groups, and tables require special setting</h4>
|
|
||||||
<p>When using tooltips on elements within a <code>.btn-group</code> or an <code>.input-group</code>, or on table-related elements (<code><td></code>, <code><th></code>, <code><tr></code>, <code><thead></code>, <code><tbody></code>, <code><tfoot></code>), you'll have to specify the option <code>container: 'body'</code> (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip is triggered).</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-tooltip-hidden">
|
|
||||||
<h4>Don't try to show tooltips on hidden elements</h4>
|
|
||||||
<p>Invoking <code>$(...).tooltip('show')</code> when the target element is <code>display: none;</code> will cause the tooltip to be incorrectly positioned.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-tooltip-accessibility">
|
|
||||||
<h4>Accessible tooltips for keyboard and assistive technology users</h4>
|
|
||||||
<p>For users navigating with a keyboard, and in particular users of assistive technologies, you should only add tooltips to keyboard-focusable elements such as links, form controls, or any arbitrary element with a <code>tabindex="0"</code> attribute.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-tooltip-disabled">
|
|
||||||
<h4>Tooltips on disabled elements require wrapper elements</h4>
|
|
||||||
<p>To add a tooltip to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code><div></code> and apply the tooltip to that <code><div></code> instead.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 id="tooltips-options">Options</h3>
|
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped js-options-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Type</th>
|
|
||||||
<th>Default</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>animation</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>true</td>
|
|
||||||
<td>Apply a CSS fade transition to the tooltip</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>container</td>
|
|
||||||
<td>string | false</td>
|
|
||||||
<td>false</td>
|
|
||||||
<td>
|
|
||||||
<p>Appends the tooltip to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the tooltip in the flow of the document near the triggering element - which will prevent the tooltip from floating away from the triggering element during a window resize.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>delay</td>
|
|
||||||
<td>number | object</td>
|
|
||||||
<td>0</td>
|
|
||||||
<td>
|
|
||||||
<p>Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type</p>
|
|
||||||
<p>If a number is supplied, delay is applied to both hide/show</p>
|
|
||||||
<p>Object structure is: <code>delay: { "show": 500, "hide": 100 }</code></p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>html</td>
|
|
||||||
<td>boolean</td>
|
|
||||||
<td>false</td>
|
|
||||||
<td>Insert HTML into the tooltip. If false, jQuery's <code>text</code> method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>placement</td>
|
|
||||||
<td>string | function</td>
|
|
||||||
<td>'top'</td>
|
|
||||||
<td>
|
|
||||||
<p>How to position the tooltip - top | bottom | left | right | auto.<br>When "auto" is specified, it will dynamically reorient the tooltip. For example, if placement is "auto left", the tooltip will display to the left when possible, otherwise it will display right.</p>
|
|
||||||
<p>When a function is used to determine the placement, it is called with the tooltip DOM node as its first argument and the triggering element DOM node as its second. The <code>this</code> context is set to the tooltip instance.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>selector</td>
|
|
||||||
<td>string</td>
|
|
||||||
<td>false</td>
|
|
||||||
<td>If a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have tooltips added. See <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/4215">this</a> and <a href="http://jsbin.com/zopod/1/edit">an informative example</a>.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>template</td>
|
|
||||||
<td>string</td>
|
|
||||||
<td><code>'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'</code></td>
|
|
||||||
<td>
|
|
||||||
<p>Base HTML to use when creating the tooltip.</p>
|
|
||||||
<p>The tooltip's <code>title</code> will be injected into the <code>.tooltip-inner</code>.</p>
|
|
||||||
<p><code>.tooltip-arrow</code> will become the tooltip's arrow.</p>
|
|
||||||
<p>The outermost wrapper element should have the <code>.tooltip</code> class.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>title</td>
|
|
||||||
<td>string | function</td>
|
|
||||||
<td>''</td>
|
|
||||||
<td>
|
|
||||||
<p>Default title value if <code>title</code> attribute isn't present.</p>
|
|
||||||
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the tooltip is attached to.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>trigger</td>
|
|
||||||
<td>string</td>
|
|
||||||
<td>'hover focus'</td>
|
|
||||||
<td>How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. <code>manual</code> cannot be combined with any other trigger.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>viewport</td>
|
|
||||||
<td>string | object | function</td>
|
|
||||||
<td>{ selector: 'body', padding: 0 }</td>
|
|
||||||
<td>
|
|
||||||
<p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p>
|
|
||||||
<p>If a function is given, it is called with the triggering element DOM node as its only argument. The <code>this</code> context is set to the tooltip instance.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
<div class="bs-callout bs-callout-info" id="callout-tooltip-data">
|
|
||||||
<h4>Data attributes for individual tooltips</h4>
|
|
||||||
<p>Options for individual tooltips can alternatively be specified through the use of data attributes, as explained above.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 id="tooltips-methods">Methods</h3>
|
|
||||||
|
|
||||||
<h4><code>$().tooltip(options)</code></h4>
|
|
||||||
<p>Attaches a tooltip handler to an element collection.</p>
|
|
||||||
|
|
||||||
<h4><code>.tooltip('show')</code></h4>
|
|
||||||
<p>Reveals an element's tooltip. <strong>Returns to the caller before the tooltip has actually been shown</strong> (i.e. before the <code>shown.bs.tooltip</code> event occurs). This is considered a "manual" triggering of the tooltip. Tooltips with zero-length titles are never displayed.</p>
|
|
||||||
{% highlight js %}$('#element').tooltip('show'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.tooltip('hide')</code></h4>
|
|
||||||
<p>Hides an element's tooltip. <strong>Returns to the caller before the tooltip has actually been hidden</strong> (i.e. before the <code>hidden.bs.tooltip</code> event occurs). This is considered a "manual" triggering of the tooltip.</p>
|
|
||||||
{% highlight js %}$('#element').tooltip('hide'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.tooltip('toggle')</code></h4>
|
|
||||||
<p>Toggles an element's tooltip. <strong>Returns to the caller before the tooltip has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.tooltip</code> or <code>hidden.bs.tooltip</code> event occurs). This is considered a "manual" triggering of the tooltip.</p>
|
|
||||||
{% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}
|
|
||||||
|
|
||||||
<h4><code>.tooltip('destroy')</code></h4>
|
|
||||||
<p>Hides and destroys an element's tooltip. Tooltips that use delegation (which are created using <a href="#tooltips-options">the <code>selector</code> option</a>) cannot be individually destroyed on descendant trigger elements.</p>
|
|
||||||
{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
|
|
||||||
|
|
||||||
<h3 id="tooltips-events">Events</h3>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-bordered table-striped bs-events-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Event Type</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>show.bs.tooltip</td>
|
|
||||||
<td>This event fires immediately when the <code>show</code> instance method is called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>shown.bs.tooltip</td>
|
|
||||||
<td>This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hide.bs.tooltip</td>
|
|
||||||
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>hidden.bs.tooltip</td>
|
|
||||||
<td>This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>inserted.bs.tooltip</td>
|
|
||||||
<td>This event is fired after the <code>show.bs.tooltip</code> event when the tooltip template has been added to the DOM.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div><!-- /.table-responsive -->
|
|
||||||
{% highlight js %}
|
|
||||||
$('#myTooltip').on('hidden.bs.tooltip', function () {
|
|
||||||
// do something…
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="transitions" class="page-header">Transitions <small>transition.js</small></h1>
|
|
||||||
|
|
||||||
<h2>About transitions</h2>
|
|
||||||
<p>For simple transition effects, include <code>transition.js</code> once alongside the other JS files. If you're using the compiled (or minified) <code>bootstrap.js</code>, there is no need to include this—it's already there.</p>
|
|
||||||
|
|
||||||
<h2>What's inside</h2>
|
|
||||||
<p>Transition.js is a basic helper for <code>transitionEnd</code> events as well as a CSS transition emulator. It's used by the other plugins to check for CSS transition support and to catch hanging transitions.</p>
|
|
||||||
|
|
||||||
<h2>Disabling transitions</h2>
|
|
||||||
<p>Transitions can be globally disabled using the following JavaScript snippet, which must come after <code>transition.js</code> (or <code>bootstrap.js</code> or <code>bootstrap.min.js</code>, as the case may be) has loaded:</p>
|
|
||||||
{% highlight js %}
|
|
||||||
$.support.transition = false
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#history">History</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#team">Team</a>
|
|
||||||
</li>
|
|
|
@ -1,146 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#icons">Icons</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#icons-glyphs">Available glyphs</a></li>
|
|
||||||
<li><a href="#icons-how-to-use">How to use</a></li>
|
|
||||||
<li><a href="#icons-examples">Examples</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#dropdowns">Dropdowns</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#dropdowns-example">Example</a></li>
|
|
||||||
<li><a href="#dropdowns-alignment">Alignment</a></li>
|
|
||||||
<li><a href="#dropdowns-headers">Headers</a></li>
|
|
||||||
<li><a href="#dropdowns-divider">Divider</a></li>
|
|
||||||
<li><a href="#dropdowns-disabled">Disabled menu items</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#btn-groups">Button groups</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#btn-groups-single">Basic example</a></li>
|
|
||||||
<li><a href="#btn-groups-toolbar">Button toolbar</a></li>
|
|
||||||
<li><a href="#btn-groups-sizing">Sizing</a></li>
|
|
||||||
<li><a href="#btn-groups-nested">Nesting</a></li>
|
|
||||||
<li><a href="#btn-groups-vertical">Vertical variation</a></li>
|
|
||||||
<li><a href="#btn-groups-justified">Justified button groups</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#btn-dropdowns">Button dropdowns</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#btn-dropdowns-single">Single button dropdowns</a></li>
|
|
||||||
<li><a href="#btn-dropdowns-split">Split button dropdowns</a></li>
|
|
||||||
<li><a href="#btn-dropdowns-sizing">Sizing</a></li>
|
|
||||||
<li><a href="#btn-dropdowns-dropup">Dropup variation</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#input-groups">Input groups</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#input-groups-basic">Basic example</a></li>
|
|
||||||
<li><a href="#input-groups-sizing">Sizing</a></li>
|
|
||||||
<li><a href="#input-groups-checkboxes-radios">Checkbox and radios addons</a></li>
|
|
||||||
<li><a href="#input-groups-buttons">Button addons</a></li>
|
|
||||||
<li><a href="#input-groups-buttons-dropdowns">Buttons with dropdowns</a></li>
|
|
||||||
<li><a href="#input-groups-buttons-segmented">Segmented buttons</a></li>
|
|
||||||
<li><a href="#input-groups-buttons-multiple">Multiple buttons</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#nav">Navs</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#nav-tabs">Tabs</a></li>
|
|
||||||
<li><a href="#nav-pills">Pills</a></li>
|
|
||||||
<li><a href="#nav-justified">Justified</a></li>
|
|
||||||
<li><a href="#nav-disabled-links">Disabled links</a></li>
|
|
||||||
<li><a href="#nav-dropdowns">Using dropdowns</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#navbar">Navbar</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#navbar-default">Default navbar</a></li>
|
|
||||||
<li><a href="#navbar-brand-image">Brand image</a></li>
|
|
||||||
<li><a href="#navbar-forms">Forms</a></li>
|
|
||||||
<li><a href="#navbar-buttons">Buttons</a></li>
|
|
||||||
<li><a href="#navbar-text">Text</a></li>
|
|
||||||
<li><a href="#navbar-links">Non-nav links</a></li>
|
|
||||||
<li><a href="#navbar-component-alignment">Component alignment</a></li>
|
|
||||||
<li><a href="#navbar-fixed-top">Fixed to top</a></li>
|
|
||||||
<li><a href="#navbar-fixed-bottom">Fixed to bottom</a></li>
|
|
||||||
<li><a href="#navbar-static-top">Static top</a></li>
|
|
||||||
<li><a href="#navbar-inverted">Inverted navbar</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#breadcrumbs">Breadcrumbs</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#pagination">Pagination</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#pagination-default">Default pagination</a></li>
|
|
||||||
<li><a href="#pagination-pager">Pager</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#labels">Labels</a></li>
|
|
||||||
<li><a href="#badges">Badges</a></li>
|
|
||||||
<li><a href="#jumbotron">Jumbotron</a></li>
|
|
||||||
<li><a href="#page-header">Page header</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#thumbnails">Thumbnails</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#thumbnails-default">Default example</a></li>
|
|
||||||
<li><a href="#thumbnails-custom-content">Custom content</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#alerts">Alerts</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#alerts-examples">Examples</a></li>
|
|
||||||
<li><a href="#alerts-dismissible">Dismissible alerts</a></li>
|
|
||||||
<li><a href="#alerts-links">Links in alerts</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#progress">Progress bars</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#progress-basic">Basic example</a></li>
|
|
||||||
<li><a href="#progress-label">With label</a></li>
|
|
||||||
<li><a href="#progress-alternatives">Contextual alternatives</a></li>
|
|
||||||
<li><a href="#progress-striped">Striped</a></li>
|
|
||||||
<li><a href="#progress-animated">Animated</a></li>
|
|
||||||
<li><a href="#progress-stacked">Stacked</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#media">Media object</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#media-default">Default media</a></li>
|
|
||||||
<li><a href="#media-list">Media list</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#list-group">List group</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#list-group-basic">Basic example</a></li>
|
|
||||||
<li><a href="#list-group-badges">Badges</a></li>
|
|
||||||
<li><a href="#list-group-linked">Linked items</a></li>
|
|
||||||
<li><a href="#list-group-buttons">Button items</a></li>
|
|
||||||
<li><a href="#list-group-disabled">Disabled items</a></li>
|
|
||||||
<li><a href="#list-group-contextual-classes">Contextual classes</a></li>
|
|
||||||
<li><a href="#list-group-custom-content">Custom content</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#panels">Panels</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#panels-basic">Basic example</a></li>
|
|
||||||
<li><a href="#panels-heading">Panel with heading</a></li>
|
|
||||||
<li><a href="#panels-footer">Panel with footer</a></li>
|
|
||||||
<li><a href="#panels-alternatives">Contextual alternatives</a></li>
|
|
||||||
<li><a href="#panels-tables">With tables</a>
|
|
||||||
<li><a href="#panels-list-group">With list groups</a>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#responsive-embed">Responsive embed</a></li>
|
|
||||||
<li><a href="#wells">Wells</a></li>
|
|
|
@ -1,136 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#overview">Overview</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#overview-doctype">HTML5 doctype</a></li>
|
|
||||||
<li><a href="#overview-mobile">Mobile first</a></li>
|
|
||||||
<li><a href="#overview-type-links">Typography and links</a></li>
|
|
||||||
<li><a href="#overview-normalize">Normalize.css</a></li>
|
|
||||||
<li><a href="#overview-container">Containers</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#grid">Grid system</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#grid-intro">Introduction</a></li>
|
|
||||||
<li><a href="#grid-media-queries">Media queries</a></li>
|
|
||||||
<li><a href="#grid-options">Grid options</a></li>
|
|
||||||
<li><a href="#grid-example-basic">Ex: Stacked-to-horizontal</a></li>
|
|
||||||
<li><a href="#grid-example-fluid">Ex: Fluid container</a></li>
|
|
||||||
<li><a href="#grid-example-mixed">Ex: Mobile and desktop</a></li>
|
|
||||||
<li><a href="#grid-example-mixed-complete">Ex: Mobile, tablet, desktop</a></li>
|
|
||||||
<li><a href="#grid-example-wrapping">Ex: Column wrapping</a></li>
|
|
||||||
<li><a href="#grid-responsive-resets">Responsive column resets</a></li>
|
|
||||||
<li><a href="#grid-offsetting">Offsetting columns</a></li>
|
|
||||||
<li><a href="#grid-nesting">Nesting columns</a></li>
|
|
||||||
<li><a href="#grid-column-ordering">Column ordering</a></li>
|
|
||||||
<li><a href="#grid-less">Less mixins and variables</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#type">Typography</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#type-headings">Headings</a></li>
|
|
||||||
<li><a href="#type-body-copy">Body copy</a></li>
|
|
||||||
<li><a href="#type-inline-text">Inline text elements</a></li>
|
|
||||||
<li><a href="#type-alignment">Alignment classes</a></li>
|
|
||||||
<li><a href="#type-transformation">Transformation classes</a></li>
|
|
||||||
<li><a href="#type-abbreviations">Abbreviations</a></li>
|
|
||||||
<li><a href="#type-addresses">Addresses</a></li>
|
|
||||||
<li><a href="#type-blockquotes">Blockquotes</a></li>
|
|
||||||
<li><a href="#type-lists">Lists</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#code">Code</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#code-inline">Inline</a></li>
|
|
||||||
<li><a href="#code-user-input">User input</a></li>
|
|
||||||
<li><a href="#code-block">Basic block</a></li>
|
|
||||||
<li><a href="#code-variables">Variables</a></li>
|
|
||||||
<li><a href="#code-sample-output">Sample output</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#tables">Tables</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#tables-example">Basic example</a></li>
|
|
||||||
<li><a href="#tables-striped">Striped rows</a></li>
|
|
||||||
<li><a href="#tables-bordered">Bordered table</a></li>
|
|
||||||
<li><a href="#tables-hover-rows">Hover rows</a></li>
|
|
||||||
<li><a href="#tables-condensed">Condensed table</a></li>
|
|
||||||
<li><a href="#tables-contextual-classes">Contextual classes</a></li>
|
|
||||||
<li><a href="#tables-responsive">Responsive tables</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#forms">Forms</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#forms-example">Basic example</a></li>
|
|
||||||
<li><a href="#forms-inline">Inline form</a></li>
|
|
||||||
<li><a href="#forms-horizontal">Horizontal form</a></li>
|
|
||||||
<li><a href="#forms-controls">Supported controls</a></li>
|
|
||||||
<li><a href="#forms-controls-static">Static control</a></li>
|
|
||||||
<li><a href="#forms-control-focus">Focus state</a></li>
|
|
||||||
<li><a href="#forms-control-disabled">Disabled state</a></li>
|
|
||||||
<li><a href="#forms-control-readonly">Readonly state</a></li>
|
|
||||||
<li><a href="#forms-help-text">Help text</a></li>
|
|
||||||
<li><a href="#forms-control-validation">Validation states</a></li>
|
|
||||||
<li><a href="#forms-control-sizes">Control sizing</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#buttons">Buttons</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#buttons-tags">Button tags</a></li>
|
|
||||||
<li><a href="#buttons-options">Options</a></li>
|
|
||||||
<li><a href="#buttons-sizes">Sizes</a></li>
|
|
||||||
<li><a href="#buttons-active">Active state</a></li>
|
|
||||||
<li><a href="#buttons-disabled">Disabled state</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#images">Images</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#images-responsive">Responsive images</a></li>
|
|
||||||
<li><a href="#images-shapes">Image shapes</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#helper-classes">Helper classes</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#helper-classes-colors">Contextual colors</a></li>
|
|
||||||
<li><a href="#helper-classes-backgrounds">Contextual backgrounds</a></li>
|
|
||||||
<li><a href="#helper-classes-close">Close icon</a></li>
|
|
||||||
<li><a href="#helper-classes-carets">Carets</a></li>
|
|
||||||
<li><a href="#helper-classes-floats">Quick floats</a></li>
|
|
||||||
<li><a href="#helper-classes-center">Center content blocks</a></li>
|
|
||||||
<li><a href="#helper-classes-clearfix">Clearfix</a></li>
|
|
||||||
<li><a href="#helper-classes-show-hide">Showing and hiding content</a></li>
|
|
||||||
<li><a href="#helper-classes-screen-readers">Screen reader and keyboard navigation content</a></li>
|
|
||||||
<li><a href="#helper-classes-image-replacement">Image replacement</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#responsive-utilities">Responsive utilities</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#responsive-utilities-classes">Available classes</a></li>
|
|
||||||
<li><a href="#responsive-utilities-print">Print classes</a></li>
|
|
||||||
<li><a href="#responsive-utilities-tests">Test cases</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#less">Using Less</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#less-bootstrap">Compiling Bootstrap</a></li>
|
|
||||||
<li><a href="#less-variables">Variables</a></li>
|
|
||||||
<li><a href="#less-mixins-vendor">Vendor mixins</a></li>
|
|
||||||
<li><a href="#less-mixins-utility">Utility mixins</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#sass">Using Sass</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#sass-contents">What's included</a></li>
|
|
||||||
<li><a href="#sass-installation">Installation</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
|
@ -1,47 +0,0 @@
|
||||||
|
|
||||||
<!-- NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.-->
|
|
||||||
<li><a href="#import-drop-target">Import</a></li>
|
|
||||||
<li><a href="#less">Less components</a></li>
|
|
||||||
<li><a href="#plugins">jQuery plugins</a></li>
|
|
||||||
<li><a href="#less-variables">Less variables</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#colors">Colors</a></li>
|
|
||||||
<li><a href="#scaffolding">Scaffolding</a></li>
|
|
||||||
<li><a href="#typography">Typography</a></li>
|
|
||||||
<li><a href="#iconography">Iconography</a></li>
|
|
||||||
<li><a href="#components">Components</a></li>
|
|
||||||
<li><a href="#tables">Tables</a></li>
|
|
||||||
<li><a href="#buttons">Buttons</a></li>
|
|
||||||
<li><a href="#forms">Forms</a></li>
|
|
||||||
<li><a href="#dropdowns">Dropdowns</a></li>
|
|
||||||
<li><a href="#media-queries-breakpoints">Media queries breakpoints</a></li>
|
|
||||||
<li><a href="#grid-system">Grid system</a></li>
|
|
||||||
<li><a href="#container-sizes">Container sizes</a></li>
|
|
||||||
<li><a href="#navbar">Navbar</a></li>
|
|
||||||
<li><a href="#navs">Navs</a></li>
|
|
||||||
<li><a href="#tabs">Tabs</a></li>
|
|
||||||
<li><a href="#pills">Pills</a></li>
|
|
||||||
<li><a href="#pagination">Pagination</a></li>
|
|
||||||
<li><a href="#pager">Pager</a></li>
|
|
||||||
<li><a href="#jumbotron">Jumbotron</a></li>
|
|
||||||
<li><a href="#form-states-and-alerts">Form states and alerts</a></li>
|
|
||||||
<li><a href="#tooltips">Tooltips</a></li>
|
|
||||||
<li><a href="#popovers">Popovers</a></li>
|
|
||||||
<li><a href="#labels">Labels</a></li>
|
|
||||||
<li><a href="#modals">Modals</a></li>
|
|
||||||
<li><a href="#alerts">Alerts</a></li>
|
|
||||||
<li><a href="#progress-bars">Progress bars</a></li>
|
|
||||||
<li><a href="#list-group">List group</a></li>
|
|
||||||
<li><a href="#panels">Panels</a></li>
|
|
||||||
<li><a href="#thumbnails">Thumbnails</a></li>
|
|
||||||
<li><a href="#wells">Wells</a></li>
|
|
||||||
<li><a href="#badges">Badges</a></li>
|
|
||||||
<li><a href="#breadcrumbs">Breadcrumbs</a></li>
|
|
||||||
<li><a href="#carousel">Carousel</a></li>
|
|
||||||
<li><a href="#close">Close</a></li>
|
|
||||||
<li><a href="#code">Code</a></li>
|
|
||||||
<li><a href="#type">Type</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#download">Download</a></li>
|
|
||||||
<!-- NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.-->
|
|
|
@ -1,76 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#download">Download</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#whats-included">What's included</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#whats-included-precompiled">Precompiled</a></li>
|
|
||||||
<li><a href="#whats-included-source">Source code</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#grunt">Compiling CSS and JavaScript</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#grunt-installing">Installing Grunt</a></li>
|
|
||||||
<li><a href="#grunt-commands">Available Grunt commands</a></li>
|
|
||||||
<li><a href="#grunt-troubleshooting">Troubleshooting</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#template">Basic template</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#examples">Examples</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#examples-framework">Using the framework</a></li>
|
|
||||||
<li><a href="#examples-navbars">Navbars in action</a></li>
|
|
||||||
<li><a href="#examples-custom">Custom components</a></li>
|
|
||||||
<li><a href="#examples-experiments">Experiments</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#tools">Tools</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#tools-bootlint">Bootlint</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#community">Community</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#disable-responsive">Disabling responsiveness</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#migration">Migrating from 2.x to 3.0</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#support">Browser and device support</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#support-browsers">Supported browsers</a></li>
|
|
||||||
<li><a href="#support-ie8-ie9">Internet Explorer 8-9</a></li>
|
|
||||||
<li><a href="#support-ie8-respondjs">IE8 and Respond.js</a></li>
|
|
||||||
<li><a href="#support-ie8-box-sizing">IE8 and box-sizing</a></li>
|
|
||||||
<li><a href="#support-ie8-font-face">IE8 and @font-face</a></li>
|
|
||||||
<li><a href="#support-ie-compatibility-modes">IE Compatibility modes</a></li>
|
|
||||||
<li><a href="#support-ie10-width">IE10 and Windows (Phone) 8</a></li>
|
|
||||||
<li><a href="#support-safari-percentages">Safari percent rounding</a></li>
|
|
||||||
<li><a href="#support-fixed-position-keyboards">Modals, navbars, and virtual keyboards</a></li>
|
|
||||||
<li><a href="#support-browser-zooming">Browser zooming</a></li>
|
|
||||||
<li><a href="#support-sticky-hover-mobile">Sticky :hover/:focus on mobile</a></li>
|
|
||||||
<li><a href="#support-printing">Printing</a></li>
|
|
||||||
<li><a href="#support-android-stock-browser">Android stock browser</a></li>
|
|
||||||
<li><a href="#support-validators">Validators</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#third-parties">Third party support</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#accessibility">Accessibility</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#license-faqs">License FAQs</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#translations">Translations</a>
|
|
||||||
</li>
|
|
|
@ -1,124 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#js-overview">Overview</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#js-individual-compiled">Individual or compiled</a></li>
|
|
||||||
<li><a href="#js-data-attrs">Data attributes</a></li>
|
|
||||||
<li><a href="#js-programmatic-api">Programmatic API</a></li>
|
|
||||||
<li><a href="#js-noconflict">No conflict</a></li>
|
|
||||||
<li><a href="#js-events">Events</a></li>
|
|
||||||
<li><a href="#js-version-nums">Version numbers</a></li>
|
|
||||||
<li><a href="#js-disabled">When JavaScript is disabled</a></li>
|
|
||||||
<li><a href="#callout-third-party-libs">Third-party libraries</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#transitions">Transitions</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#modals">Modal</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#modals-examples">Examples</a></li>
|
|
||||||
<li><a href="#modals-sizes">Sizes</a></li>
|
|
||||||
<li><a href="#modals-remove-animation">Remove animation</a></li>
|
|
||||||
<li><a href="#modals-related-target">Varying content based on trigger button</a></li>
|
|
||||||
<li><a href="#modals-usage">Usage</a></li>
|
|
||||||
<li><a href="#modals-options">Options</a></li>
|
|
||||||
<li><a href="#modals-methods">Methods</a></li>
|
|
||||||
<li><a href="#modals-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#dropdowns">Dropdown</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#dropdowns-examples">Examples</a></li>
|
|
||||||
<li><a href="#dropdowns-usage">Usage</a></li>
|
|
||||||
<li><a href="#dropdowns-methods">Methods</a></li>
|
|
||||||
<li><a href="#dropdowns-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#scrollspy">Scrollspy</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#scrollspy-examples">Examples</a></li>
|
|
||||||
<li><a href="#scrollspy-usage">Usage</a></li>
|
|
||||||
<li><a href="#scrollspy-methods">Methods</a></li>
|
|
||||||
<li><a href="#scrollspy-options">Options</a></li>
|
|
||||||
<li><a href="#scrollspy-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#tabs">Tab</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#tabs-examples">Examples</a></li>
|
|
||||||
<li><a href="#tabs-usage">Usage</a></li>
|
|
||||||
<li><a href="#tabs-methods">Methods</a></li>
|
|
||||||
<li><a href="#tabs-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#tooltips">Tooltip</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#tooltips-examples">Examples</a></li>
|
|
||||||
<li><a href="#tooltips-usage">Usage</a></li>
|
|
||||||
<li><a href="#tooltips-options">Options</a></li>
|
|
||||||
<li><a href="#tooltips-methods">Methods</a></li>
|
|
||||||
<li><a href="#tooltips-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#popovers">Popover</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#popovers-examples">Examples</a></li>
|
|
||||||
<li><a href="#popovers-usage">Usage</a></li>
|
|
||||||
<li><a href="#popovers-options">Options</a></li>
|
|
||||||
<li><a href="#popovers-methods">Methods</a></li>
|
|
||||||
<li><a href="#popovers-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#alerts">Alert</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#alerts-examples">Examples</a></li>
|
|
||||||
<li><a href="#alerts-usage">Usage</a></li>
|
|
||||||
<li><a href="#alerts-methods">Methods</a></li>
|
|
||||||
<li><a href="#alerts-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#buttons">Button</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#buttons-stateful">Stateful</a></li>
|
|
||||||
<li><a href="#buttons-single-toggle">Single toggle</a></li>
|
|
||||||
<li><a href="#buttons-checkbox-radio">Checkbox / Radio</a></li>
|
|
||||||
<li><a href="#buttons-methods">Methods</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#collapse">Collapse</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#collapse-example">Example</a></li>
|
|
||||||
<li><a href="#collapse-example-accordion">Accordion example</a></li>
|
|
||||||
<li><a href="#collapse-usage">Usage</a></li>
|
|
||||||
<li><a href="#collapse-options">Options</a></li>
|
|
||||||
<li><a href="#collapse-methods">Methods</a></li>
|
|
||||||
<li><a href="#collapse-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#carousel">Carousel</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#carousel-examples">Examples</a></li>
|
|
||||||
<li><a href="#carousel-usage">Usage</a></li>
|
|
||||||
<li><a href="#carousel-options">Options</a></li>
|
|
||||||
<li><a href="#carousel-methods">Methods</a></li>
|
|
||||||
<li><a href="#carousel-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#affix">Affix</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#affix-examples">Examples</a></li>
|
|
||||||
<li><a href="#affix-usage">Usage</a></li>
|
|
||||||
<li><a href="#affix-options">Options</a></li>
|
|
||||||
<li><a href="#affix-methods">Methods</a></li>
|
|
||||||
<li><a href="#affix-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
|
@ -1,36 +0,0 @@
|
||||||
<header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a href="../" class="navbar-brand">Bootstrap Material Design</a>
|
|
||||||
</div>
|
|
||||||
<nav id="bs-navbar" class="collapse navbar-collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li{% if page.slug == "getting-started" %} class="active"{% endif %}>
|
|
||||||
<a href="../getting-started/">Getting started</a>
|
|
||||||
</li>
|
|
||||||
<li{% if page.slug == "css" %} class="active"{% endif %}>
|
|
||||||
<a href="../css/">CSS</a>
|
|
||||||
</li>
|
|
||||||
<li{% if page.slug == "components" %} class="active"{% endif %}>
|
|
||||||
<a href="../components/">Components</a>
|
|
||||||
</li>
|
|
||||||
<li{% if page.slug == "js" %} class="active"{% endif %}>
|
|
||||||
<a href="../javascript/">JavaScript</a>
|
|
||||||
</li>
|
|
||||||
<!--<li{% if page.slug == "customize" %} class="active"{% endif %}>-->
|
|
||||||
<!--<a href="../customize/">Customize</a>-->
|
|
||||||
<!--</li>-->
|
|
||||||
</ul>
|
|
||||||
<!--<ul class="nav navbar-nav navbar-right">-->
|
|
||||||
<!--<li><a href="{{ site.expo }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Expo');">Expo</a></li>-->
|
|
||||||
<!--<li><a href="{{ site.blog }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Blog');">Blog</a></li>-->
|
|
||||||
<!--</ul>-->
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#classes">Major class changes</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#new">What's new</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#dropped">What's removed</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#notes">Additional notes</a>
|
|
||||||
</li>
|
|
|
@ -1,17 +0,0 @@
|
||||||
// NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.
|
|
||||||
li
|
|
||||||
a(href='#import-drop-target') Import
|
|
||||||
li
|
|
||||||
a(href='#less') Less components
|
|
||||||
li
|
|
||||||
a(href='#plugins') jQuery plugins
|
|
||||||
li
|
|
||||||
a(href='#less-variables') Less variables
|
|
||||||
ul.nav
|
|
||||||
each section in sections
|
|
||||||
if section.customizable
|
|
||||||
li
|
|
||||||
a(href='#'+section.id)= section.heading
|
|
||||||
li
|
|
||||||
a(href='#download') Download
|
|
||||||
// NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.
|
|
|
@ -1,25 +0,0 @@
|
||||||
// NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.jade template.
|
|
||||||
each section in sections
|
|
||||||
if section.customizable
|
|
||||||
h2(id=section.id)= section.heading
|
|
||||||
if section.docstring
|
|
||||||
p!= section.docstring.html
|
|
||||||
each subsection in section.subsections
|
|
||||||
if subsection.heading
|
|
||||||
h3(id=subsection.id)= subsection.heading
|
|
||||||
div.row
|
|
||||||
each variable, index in subsection.variables
|
|
||||||
if index > 0 && index % 3 === 0
|
|
||||||
div.clearfix
|
|
||||||
div.col-xs-4
|
|
||||||
label(for="input-" + variable.name)= variable.name
|
|
||||||
- var helpId = "help-block-" + variable.name
|
|
||||||
input.form-control(
|
|
||||||
id="input-" + variable.name
|
|
||||||
type="text"
|
|
||||||
aria-describedby=variable.docstring ? helpId : undefined
|
|
||||||
value=variable.defaultValue
|
|
||||||
data-var=variable.name)
|
|
||||||
if variable.docstring
|
|
||||||
p.help-block(id=helpId)!= variable.docstring.html
|
|
||||||
// NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.jade template.
|
|
|
@ -1,64 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Meta, title, CSS, favicons, etc. -->
|
|
||||||
{% include header.html %}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<a id="skippy" class="sr-only sr-only-focusable" href="#content"><div class="container"><span class="skiplink-text">Skip to main content</span></div></a>
|
|
||||||
|
|
||||||
<!-- Docs master nav -->
|
|
||||||
{% include nav/main.html %}
|
|
||||||
|
|
||||||
<!-- Docs page layout -->
|
|
||||||
<div class="bs-docs-header" id="content" tabindex="-1">
|
|
||||||
<div class="container">
|
|
||||||
<h1>{{ page.title }}</h1>
|
|
||||||
<p>{{ page.lead }}</p>
|
|
||||||
{% include ads.html %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container bs-docs-container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-{% if page.fullwidth == true %}12{% else %}9{% endif %}" role="main">
|
|
||||||
{{ content }}
|
|
||||||
</div>
|
|
||||||
{% unless page.fullwidth == true %}
|
|
||||||
<div class="col-md-3" role="complementary">
|
|
||||||
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm">
|
|
||||||
<ul class="nav bs-docs-sidenav">
|
|
||||||
{% if page.slug == "getting-started" %}
|
|
||||||
{% include nav/getting-started.html %}
|
|
||||||
{% elsif page.slug == "css" %}
|
|
||||||
{% include nav/css.html %}
|
|
||||||
{% elsif page.slug == "components" %}
|
|
||||||
{% include nav/components.html %}
|
|
||||||
{% elsif page.slug == "js" %}
|
|
||||||
{% include nav/javascript.html %}
|
|
||||||
{% elsif page.slug == "customize" %}
|
|
||||||
{% include nav/customize.html %}
|
|
||||||
{% elsif page.slug == "about" %}
|
|
||||||
{% include nav/about.html %}
|
|
||||||
{% elsif page.slug == "migration" %}
|
|
||||||
{% include nav/migration.html %}
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
<a class="back-to-top" href="#top">
|
|
||||||
Back to top
|
|
||||||
</a>
|
|
||||||
{% if page.slug == "css" or page.slug == "components" or page.slug == "js" %}
|
|
||||||
<a href="#" class="bs-docs-theme-toggle" role="button">
|
|
||||||
Preview theme
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{% endunless %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% include footer.html %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,18 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Meta, title, CSS, favicons, etc. -->
|
|
||||||
{% include header.html %}
|
|
||||||
</head>
|
|
||||||
<body class="bs-docs-home">
|
|
||||||
<a id="skippy" class="sr-only sr-only-focusable" href="#content"><div class="container"><span class="skiplink-text">Skip to main content</span></div></a>
|
|
||||||
|
|
||||||
<!-- Docs master nav -->
|
|
||||||
{% include nav/main.html %}
|
|
||||||
|
|
||||||
<!-- Page content of course! -->
|
|
||||||
{{ content }}
|
|
||||||
|
|
||||||
{% include footer.html %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,9 +0,0 @@
|
||||||
require 'yaml'
|
|
||||||
|
|
||||||
module Bridge
|
|
||||||
class Generator < Jekyll::Generator
|
|
||||||
def generate(site)
|
|
||||||
site.data["configBridge"] = YAML.load_file("./grunt/configBridge.json")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,25 +0,0 @@
|
||||||
module Jekyll
|
|
||||||
module BugFilter
|
|
||||||
def bugify(input)
|
|
||||||
upstream_map = {
|
|
||||||
"Bootstrap " => "https://github.com/twbs/bootstrap/issues/",
|
|
||||||
"IE" => ["https://connect.microsoft.com/IE/feedback/details/", "IE bug"],
|
|
||||||
"Mozilla" => ["https://bugzilla.mozilla.org/show_bug.cgi?id=", "Mozilla bug"],
|
|
||||||
"Chromium" => ["https://code.google.com/p/chromium/issues/detail?id=", "Chromium issue"],
|
|
||||||
"WebKit" => ["https://bugs.webkit.org/show_bug.cgi?id=", "WebKit bug"],
|
|
||||||
"Safari" => ["https://openradar.appspot.com/", "Apple Safari Radar"],
|
|
||||||
"Normalize" => ["https://github.com/necolas/normalize.css/issues/", "Normalize"]
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream_map.each do |key, data|
|
|
||||||
url = data.is_a?(Array) ? data[0] : data
|
|
||||||
label = data.is_a?(Array) ? "#{data[1]} " : ""
|
|
||||||
input = input.gsub(/#{key}#(\d+)/, "<a href=\"#{url}\\1\">#{label}#\\1</a>")
|
|
||||||
end
|
|
||||||
|
|
||||||
return input
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
Liquid::Template.register_filter(Jekyll::BugFilter)
|
|
|
@ -1,37 +0,0 @@
|
||||||
---
|
|
||||||
layout: default
|
|
||||||
title: About
|
|
||||||
slug: about
|
|
||||||
lead: "Learn about the project's history and meet the maintaining teams."
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
||||||
<!-- History
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="history" class="page-header">History</h1>
|
|
||||||
|
|
||||||
<p class="lead">Originally created by FezVrasta</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Team
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<h1 id="team" class="page-header">Team</h1>
|
|
||||||
|
|
||||||
<p class="lead">BMD is maintained by the FezVrasta and a small group of invaluable core contributors, with the support and involvement of our community.</p>
|
|
||||||
|
|
||||||
<div class="list-group bs-team">
|
|
||||||
{% for member in site.data.core-team %}
|
|
||||||
<div class="list-group-item">
|
|
||||||
<iframe class="github-btn" src="https://ghbtns.com/github-btn.html?user={{ member.user }}&type=follow"></iframe>
|
|
||||||
<a class="team-member" href="https://github.com/{{ member.user }}">
|
|
||||||
<img src="https://secure.gravatar.com/avatar/{{ member.gravatar }}.jpg?s=32" alt="@{{ member.user }} avatar" width="32" height="32">
|
|
||||||
<strong>{{ member.name }}</strong> <small>@{{ member.user }}</small>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<p>Get involved with BMD development by <a href="https://github.com/fezvrasta/bootstrap-material-design/issues/new">opening an issue</a> or submitting a pull request. Read our <a href="https://github.com/fezvrasta/bootstrap-material-design/blob/master/CONTRIBUTING.md">contributing guidelines</a> for information on how we develop.</p>
|
|
||||||
</div>
|
|
|
@ -1,20 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
||||||
viewBox="0 180 612 612" enable-background="new 0 180 612 612" xml:space="preserve">
|
|
||||||
<g id="outline" sodipodi:docname="twitter_bootstrap_logo.svg" inkscape:version="0.48.1 r9760" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape">
|
|
||||||
<g id="bg_1_">
|
|
||||||
<path fill="#FFFFFF" d="M510,186c25.5,0,49.6,10,67.8,28.2S606,256.5,606,282v408c0,25.5-10,49.6-28.2,67.8S535.5,786,510,786H102
|
|
||||||
c-25.5,0-49.6-10-67.8-28.2S6,715.5,6,690V282c0-25.5,10-49.6,28.2-67.8S76.5,186,102,186H510 M510,180H102
|
|
||||||
C45.9,180,0,225.9,0,282v408c0,56.1,45.9,102,102,102h408c56.1,0,102-45.9,102-102V282C612,225.9,566.1,180,510,180L510,180z"/>
|
|
||||||
</g>
|
|
||||||
<g id="B_2_" enable-background="new ">
|
|
||||||
<path fill="#FFFFFF" d="M166.3,313h173.5c32,0,57.7,7.3,77,22s29,36.8,29,66.5c0,18-4.4,33.4-13.2,46.2
|
|
||||||
c-8.8,12.8-21.4,22.8-37.8,29.8v1c22,4.7,38.7,15.1,50,31.2c11.3,16.2,17,36.4,17,60.8c0,14-2.5,27.1-7.5,39.2
|
|
||||||
c-5,12.2-12.8,22.7-23.5,31.5s-24.3,15.8-41,21s-36.5,7.8-59.5,7.8h-164L166.3,313L166.3,313z M228.8,462.5h102
|
|
||||||
c15,0,27.5-4.2,37.5-12.8s15-20.8,15-36.8c0-18-4.5-30.7-13.5-38s-22-11-39-11h-102L228.8,462.5L228.8,462.5z M228.8,619h110.5
|
|
||||||
c19,0,33.8-4.9,44.2-14.8c10.5-9.8,15.8-23.8,15.8-41.8c0-17.7-5.2-31.2-15.8-40.8s-25.2-14.2-44.2-14.2H228.8V619z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.8 KiB |
|
@ -1,18 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
||||||
viewBox="0 180 612 612" enable-background="new 0 180 612 612" xml:space="preserve">
|
|
||||||
<g id="punchout" sodipodi:docname="twitter_bootstrap_logo.svg" inkscape:version="0.48.1 r9760" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape">
|
|
||||||
<g>
|
|
||||||
<path fill="#FFFFFF" d="M383.5,521.8c-10.5-9.5-25.2-14.2-44.2-14.2H228.8V619h110.5c19,0,33.8-4.9,44.2-14.8
|
|
||||||
c10.5-9.8,15.8-23.8,15.8-41.8C399.2,544.8,394,531.2,383.5,521.8z"/>
|
|
||||||
<path fill="#FFFFFF" d="M368.2,449.8c10-8.5,15-20.8,15-36.8c0-18-4.5-30.7-13.5-38s-22-11-39-11h-102v98.5h102
|
|
||||||
C345.7,462.5,358.2,458.2,368.2,449.8z"/>
|
|
||||||
<path fill="#FFFFFF" d="M510,180H102C45.9,180,0,225.9,0,282v408c0,56.1,45.9,102,102,102h408c56.1,0,102-45.9,102-102V282
|
|
||||||
C612,225.9,566.1,180,510,180z M454.2,609.8c-5,12.2-12.8,22.7-23.5,31.5s-24.3,15.8-41,21s-36.5,7.8-59.5,7.8h-164V313h173.5
|
|
||||||
c32,0,57.7,7.3,77,22s29,36.8,29,66.5c0,18-4.4,33.4-13.2,46.2c-8.8,12.8-21.4,22.8-37.8,29.8v1c22,4.7,38.7,15.1,50,31.2
|
|
||||||
c11.3,16.2,17,36.4,17,60.8C461.7,584.5,459.2,597.6,454.2,609.8z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.6 KiB |
|
@ -1,17 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
||||||
viewBox="0 0 612 612" enable-background="new 0 0 612 612" xml:space="preserve">
|
|
||||||
<g id="solid" sodipodi:docname="twitter_bootstrap_logo.svg" inkscape:version="0.48.1 r9760" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape">
|
|
||||||
<path id="bg" fill="#563D7C" d="M612,510c0,56.1-45.9,102-102,102H102C45.9,612,0,566.1,0,510V102C0,45.9,45.9,0,102,0h408
|
|
||||||
c56.1,0,102,45.9,102,102V510z"/>
|
|
||||||
<g id="B" enable-background="new ">
|
|
||||||
<path fill="#FFFFFF" d="M166.3,133h173.5c32,0,57.7,7.3,77,22s29,36.8,29,66.5c0,18-4.4,33.4-13.2,46.2
|
|
||||||
c-8.8,12.8-21.4,22.8-37.8,29.8v1c22,4.7,38.7,15.1,50,31.2c11.3,16.2,17,36.4,17,60.8c0,14-2.5,27.1-7.5,39.2
|
|
||||||
c-5,12.2-12.8,22.7-23.5,31.5s-24.3,15.8-41,21s-36.5,7.8-59.5,7.8h-164L166.3,133L166.3,133z M228.8,282.5h102
|
|
||||||
c15,0,27.5-4.2,37.5-12.8s15-20.8,15-36.8c0-18-4.5-30.7-13.5-38s-22-11-39-11h-102L228.8,282.5L228.8,282.5z M228.8,439h110.5
|
|
||||||
c19,0,33.8-4.9,44.2-14.8c10.5-9.8,15.8-23.8,15.8-41.8c0-17.7-5.2-31.2-15.8-40.8s-25.2-14.2-44.2-14.2H228.8V439z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.6 KiB |
6
docs/assets/css/docs.min.css
vendored
6
docs/assets/css/docs.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,15 +0,0 @@
|
||||||
/*!
|
|
||||||
* IE10 viewport hack for Surface/desktop Windows 8 bug
|
|
||||||
* Copyright 2014-2015 Twitter, Inc.
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* See the Getting Started docs for more information:
|
|
||||||
* http://getbootstrap.com/getting-started/#support-ie10-width
|
|
||||||
*/
|
|
||||||
@-webkit-viewport { width: device-width; }
|
|
||||||
@-moz-viewport { width: device-width; }
|
|
||||||
@-ms-viewport { width: device-width; }
|
|
||||||
@-o-viewport { width: device-width; }
|
|
||||||
@viewport { width: device-width; }
|
|
|
@ -1,87 +0,0 @@
|
||||||
/*
|
|
||||||
* Carbon ads
|
|
||||||
*
|
|
||||||
* Single display ad that shows on all pages (except homepage) in page headers.
|
|
||||||
* The hella `!important` is required for any pre-set property.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.carbonad {
|
|
||||||
width: auto !important;
|
|
||||||
height: auto !important;
|
|
||||||
padding: 20px !important;
|
|
||||||
margin: 30px -15px -31px !important;
|
|
||||||
overflow: hidden; /* clearfix */
|
|
||||||
font-size: 13px !important;
|
|
||||||
line-height: 16px !important;
|
|
||||||
text-align: left;
|
|
||||||
background: transparent !important;
|
|
||||||
border: solid #866ab3 !important;
|
|
||||||
border-width: 1px 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.carbonad-img {
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.carbonad-text,
|
|
||||||
.carbonad-tag {
|
|
||||||
display: block !important;
|
|
||||||
float: none !important;
|
|
||||||
width: auto !important;
|
|
||||||
height: auto !important;
|
|
||||||
margin-left: 145px !important;
|
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.carbonad-text {
|
|
||||||
padding-top: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.carbonad-tag {
|
|
||||||
color: inherit !important;
|
|
||||||
text-align: left !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.carbonad-text a,
|
|
||||||
.carbonad-tag a {
|
|
||||||
color: #fff !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.carbonad #azcarbon > img {
|
|
||||||
display: none; /* hide what I assume are tracking images */
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 480px) {
|
|
||||||
.carbonad {
|
|
||||||
width: 330px !important;
|
|
||||||
margin: 20px auto !important;
|
|
||||||
border-width: 1px !important;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-masthead .carbonad {
|
|
||||||
margin: 50px auto 0 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.carbonad {
|
|
||||||
margin-right: 0 !important;
|
|
||||||
margin-left: 0 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
|
||||||
.carbonad {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 15px; /* 15px instead of 0 since box-sizing */
|
|
||||||
width: 330px !important;
|
|
||||||
padding: 15px !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-masthead .carbonad {
|
|
||||||
position: static;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,51 +0,0 @@
|
||||||
/*
|
|
||||||
* AnchorJS Styles
|
|
||||||
*/
|
|
||||||
.anchorjs-link {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
.anchorjs-link {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
*:hover > .anchorjs-link {
|
|
||||||
opacity: .75;
|
|
||||||
-webkit-transition: color .16s linear;
|
|
||||||
-o-transition: color .16s linear;
|
|
||||||
transition: color .16s linear;
|
|
||||||
}
|
|
||||||
|
|
||||||
*:hover > .anchorjs-link:hover,
|
|
||||||
.anchorjs-link:focus {
|
|
||||||
text-decoration: none;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Fancy skip link
|
|
||||||
*
|
|
||||||
* Make it look a bit less "bare bones"
|
|
||||||
* Also includes focus suppression for the Chrome tabindex="-1" workaround
|
|
||||||
*/
|
|
||||||
|
|
||||||
#skippy {
|
|
||||||
display: block;
|
|
||||||
padding: 1em;
|
|
||||||
color: #fff;
|
|
||||||
background-color: @site-color-base;
|
|
||||||
outline: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#skippy .skiplink-text {
|
|
||||||
padding: .5em;
|
|
||||||
outline: 1px dotted;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content:focus {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
|
@ -1,77 +0,0 @@
|
||||||
/*
|
|
||||||
* Brand guidelines
|
|
||||||
*
|
|
||||||
* Extra styles for displaying wordmarks, logos, etc.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Logo series wrapper */
|
|
||||||
.bs-brand-logos {
|
|
||||||
display: table;
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
overflow: hidden;
|
|
||||||
color: @site-color-dark;
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Individual items */
|
|
||||||
.bs-brand-item {
|
|
||||||
padding: 60px 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-brand-item + .bs-brand-item {
|
|
||||||
border-top: 1px solid #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-brand-logos .inverse {
|
|
||||||
color: #fff;
|
|
||||||
background-color: @site-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Heading content within */
|
|
||||||
.bs-brand-item h1,
|
|
||||||
.bs-brand-item h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-brand-item .bs-docs-booticon {
|
|
||||||
margin-right: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Make the icons stand out on what is/isn't okay */
|
|
||||||
.bs-brand-item .glyphicon {
|
|
||||||
width: 30px;
|
|
||||||
height: 30px;
|
|
||||||
margin: 10px auto -10px;
|
|
||||||
line-height: 30px;
|
|
||||||
color: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-brand-item .glyphicon-ok {
|
|
||||||
background-color: #5cb85c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-brand-item .glyphicon-remove {
|
|
||||||
background-color: #d9534f;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bs-brand-item {
|
|
||||||
display: table-cell;
|
|
||||||
width: 1%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-brand-item + .bs-brand-item {
|
|
||||||
border-top: 0;
|
|
||||||
border-left: 1px solid #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-brand-item h1 {
|
|
||||||
font-size: 60px;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,59 +0,0 @@
|
||||||
|
|
||||||
/*
|
|
||||||
* Callouts
|
|
||||||
*
|
|
||||||
* Not quite alerts, but custom and helpful notes for folks reading the docs.
|
|
||||||
* Requires a base and modifier class.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Common styles for all types */
|
|
||||||
.bs-callout {
|
|
||||||
padding: 20px;
|
|
||||||
margin: 20px 0;
|
|
||||||
border: 1px solid #eee;
|
|
||||||
border-left-width: 5px;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-callout h4 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-callout p:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-callout code {
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tighten up space between multiple callouts */
|
|
||||||
.bs-callout + .bs-callout {
|
|
||||||
margin-top: -5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Variations */
|
|
||||||
.bs-callout-danger {
|
|
||||||
border-left-color: #ce4844;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-callout-danger h4 {
|
|
||||||
color: #ce4844;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-callout-warning {
|
|
||||||
border-left-color: #aa6708;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-callout-warning h4 {
|
|
||||||
color: #aa6708;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-callout-info {
|
|
||||||
border-left-color: #1b809e;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-callout-info h4 {
|
|
||||||
color: #1b809e;
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* ZeroClipboard styles
|
|
||||||
*/
|
|
||||||
|
|
||||||
.zero-clipboard {
|
|
||||||
position: relative;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-clipboard {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
z-index: 10;
|
|
||||||
display: block;
|
|
||||||
padding: 5px 8px;
|
|
||||||
font-size: 12px;
|
|
||||||
color: #767676;
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: #fff;
|
|
||||||
border: 1px solid #e1e1e8;
|
|
||||||
border-radius: 0 4px 0 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-clipboard-hover {
|
|
||||||
color: #fff;
|
|
||||||
background-color: @site-color-dark;
|
|
||||||
border-color: @site-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.zero-clipboard {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example + .zero-clipboard .btn-clipboard {
|
|
||||||
top: -16px;
|
|
||||||
border-top-right-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* Code snippets
|
|
||||||
*
|
|
||||||
* Generated via Pygments and Jekyll, these are snippets of HTML, CSS, and JS.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.highlight {
|
|
||||||
padding: 9px 14px;
|
|
||||||
margin-bottom: 14px;
|
|
||||||
background-color: #f7f7f9;
|
|
||||||
border: 1px solid #e1e1e8;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlight pre {
|
|
||||||
padding: 0;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
word-break: normal;
|
|
||||||
white-space: nowrap;
|
|
||||||
background-color: transparent;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlight pre code {
|
|
||||||
font-size: inherit;
|
|
||||||
color: #333; /* Effectively the base text color */
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlight pre code:first-child {
|
|
||||||
display: inline-block;
|
|
||||||
padding-right: 45px;
|
|
||||||
}
|
|
|
@ -1,83 +0,0 @@
|
||||||
/*
|
|
||||||
* Color swatches
|
|
||||||
*
|
|
||||||
* Color swatches and associated values for our grayscale and brand colors.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.color-swatches {
|
|
||||||
margin: 0 -5px;
|
|
||||||
overflow: hidden; /* clearfix */
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatch {
|
|
||||||
float: left;
|
|
||||||
width: 60px;
|
|
||||||
height: 60px;
|
|
||||||
margin: 0 5px;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.color-swatch {
|
|
||||||
width: 100px;
|
|
||||||
height: 100px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Framework colors */
|
|
||||||
.color-swatches .gray-darker {
|
|
||||||
background-color: #222;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .gray-dark {
|
|
||||||
background-color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .gray {
|
|
||||||
background-color: #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .gray-light {
|
|
||||||
background-color: #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .gray-lighter {
|
|
||||||
background-color: #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .brand-primary {
|
|
||||||
background-color: #337ab7;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .brand-success {
|
|
||||||
background-color: #5cb85c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .brand-warning {
|
|
||||||
background-color: #f0ad4e;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .brand-danger {
|
|
||||||
background-color: #d9534f;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .brand-info {
|
|
||||||
background-color: #5bc0de;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Docs colors */
|
|
||||||
.color-swatches .bs-purple {
|
|
||||||
background-color: @site-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .bs-purple-light {
|
|
||||||
background-color: #c7bfd3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .bs-purple-lighter {
|
|
||||||
background-color: #e5e1ea;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatches .bs-gray {
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
}
|
|
|
@ -1,133 +0,0 @@
|
||||||
/*
|
|
||||||
* Customizer
|
|
||||||
*
|
|
||||||
* Since this is so form control heavy, we have quite a few styles to customize
|
|
||||||
* the display of inputs, headings, and more. Also included are all the download
|
|
||||||
* buttons and actions.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.bs-customizer .toggle {
|
|
||||||
float: right;
|
|
||||||
margin-top: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Headings and form contrls */
|
|
||||||
.bs-customizer label {
|
|
||||||
margin-top: 10px;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer h2 {
|
|
||||||
padding-top: 30px;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer h3 {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer h4 {
|
|
||||||
margin-top: 15px;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer .bs-callout h4 {
|
|
||||||
margin-top: 0; /* lame, but due to specificity we have to duplicate */
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer input[type="text"] {
|
|
||||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
||||||
background-color: #fafafa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer .help-block {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* For the variables, use regular weight */
|
|
||||||
#less-section label {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Downloads */
|
|
||||||
.bs-customize-download .btn-outline {
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Error handling */
|
|
||||||
.bs-customizer-alert {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
left: 0;
|
|
||||||
z-index: 1030;
|
|
||||||
padding: 15px 0;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #d9534f;
|
|
||||||
border-bottom: 1px solid #b94441;
|
|
||||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
|
|
||||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer-alert .close {
|
|
||||||
margin-top: -4px;
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer-alert p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer-alert .glyphicon {
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customizer-alert pre {
|
|
||||||
margin: 10px 0 0;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #a83c3a;
|
|
||||||
border-color: #973634;
|
|
||||||
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
|
||||||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-dropzone {
|
|
||||||
position: relative;
|
|
||||||
padding: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
color: #777;
|
|
||||||
text-align: center;
|
|
||||||
border: 2px dashed #eee;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-dropzone .import-header {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-dropzone .glyphicon-download-alt {
|
|
||||||
font-size: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-dropzone hr {
|
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-dropzone .lead {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*.bs-dropzone*/
|
|
||||||
#import-manual-trigger {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-dropzone p:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
|
@ -1,372 +0,0 @@
|
||||||
|
|
||||||
/*
|
|
||||||
* Examples
|
|
||||||
*
|
|
||||||
* Linked docs examples.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.bs-examples .thumbnail {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-examples h4 {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-examples p {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
.bs-examples {
|
|
||||||
margin-right: -10px;
|
|
||||||
margin-left: -10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-examples > [class^="col-"] {
|
|
||||||
padding-right: 10px;
|
|
||||||
padding-left: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Examples
|
|
||||||
*
|
|
||||||
* Isolated sections of example content for each component or feature. Usually
|
|
||||||
* followed by a code snippet.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.bs-example {
|
|
||||||
position: relative;
|
|
||||||
padding: 45px 15px 15px;
|
|
||||||
margin: 0 -15px 15px;
|
|
||||||
border-color: #e5e5e5 #eee #eee;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 1px 0;
|
|
||||||
-webkit-box-shadow: inset 0 3px 6px rgba(0, 0, 0, .05);
|
|
||||||
box-shadow: inset 0 3px 6px rgba(0, 0, 0, .05);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Echo out a label for the example */
|
|
||||||
.bs-example:after {
|
|
||||||
position: absolute;
|
|
||||||
top: 15px;
|
|
||||||
left: 15px;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #959595;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
content: "Example";
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-padded-bottom {
|
|
||||||
padding-bottom: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tweak display of the code snippets when following an example */
|
|
||||||
.bs-example + .highlight,
|
|
||||||
.bs-example + .zero-clipboard + .highlight {
|
|
||||||
margin: -15px -15px 15px;
|
|
||||||
border-width: 0 0 1px;
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Make the examples and snippets not full-width */
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bs-example {
|
|
||||||
margin-right: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
background-color: #fff;
|
|
||||||
border-color: #ddd;
|
|
||||||
border-width: 1px;
|
|
||||||
border-radius: 4px 4px 0 0;
|
|
||||||
-webkit-box-shadow: none;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example + .highlight,
|
|
||||||
.bs-example + .zero-clipboard + .highlight {
|
|
||||||
margin-top: -16px;
|
|
||||||
margin-right: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
border-width: 1px;
|
|
||||||
border-bottom-right-radius: 4px;
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-standalone {
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Undo width of container */
|
|
||||||
.bs-example .container {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tweak content of examples for optimum awesome */
|
|
||||||
.bs-example > p:last-child,
|
|
||||||
.bs-example > ul:last-child,
|
|
||||||
.bs-example > ol:last-child,
|
|
||||||
.bs-example > blockquote:last-child,
|
|
||||||
.bs-example > .form-control:last-child,
|
|
||||||
.bs-example > .table:last-child,
|
|
||||||
.bs-example > .navbar:last-child,
|
|
||||||
.bs-example > .jumbotron:last-child,
|
|
||||||
.bs-example > .alert:last-child,
|
|
||||||
.bs-example > .panel:last-child,
|
|
||||||
.bs-example > .list-group:last-child,
|
|
||||||
.bs-example > .well:last-child,
|
|
||||||
.bs-example > .progress:last-child,
|
|
||||||
.bs-example > .table-responsive:last-child > .table {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example > p > .close {
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Typography */
|
|
||||||
.bs-example-type .table .type-info {
|
|
||||||
color: #767676;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-type .table td {
|
|
||||||
padding: 15px 0;
|
|
||||||
border-color: #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-type .table tr:first-child td {
|
|
||||||
border-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-type h1,
|
|
||||||
.bs-example-type h2,
|
|
||||||
.bs-example-type h3,
|
|
||||||
.bs-example-type h4,
|
|
||||||
.bs-example-type h5,
|
|
||||||
.bs-example-type h6 {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Contextual background colors */
|
|
||||||
.bs-example-bg-classes p {
|
|
||||||
padding: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Images */
|
|
||||||
.bs-example > .img-circle,
|
|
||||||
.bs-example > .img-rounded,
|
|
||||||
.bs-example > .img-thumbnail {
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tables */
|
|
||||||
.bs-example > .table-responsive > .table {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Buttons */
|
|
||||||
.bs-example > .btn,
|
|
||||||
.bs-example > .btn-group {
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example > .btn-toolbar + .btn-toolbar {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Forms */
|
|
||||||
.bs-example-control-sizing select,
|
|
||||||
.bs-example-control-sizing input[type="text"] + input[type="text"] {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-form .input-group {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example > textarea.form-control {
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* List groups */
|
|
||||||
.bs-example > .list-group {
|
|
||||||
max-width: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Navbars */
|
|
||||||
.bs-example .navbar:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.bs-navbar-top-example,
|
|
||||||
.bs-navbar-bottom-example {
|
|
||||||
z-index: 1;
|
|
||||||
padding: 0;
|
|
||||||
overflow: hidden; /* cut the drop shadows off */
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-top-example .navbar-header,
|
|
||||||
.bs-navbar-bottom-example .navbar-header {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-top-example .navbar-fixed-top,
|
|
||||||
.bs-navbar-bottom-example .navbar-fixed-bottom {
|
|
||||||
position: relative;
|
|
||||||
margin-right: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-top-example {
|
|
||||||
padding-bottom: 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-top-example:after {
|
|
||||||
top: auto;
|
|
||||||
bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-top-example .navbar-fixed-top {
|
|
||||||
top: -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-bottom-example {
|
|
||||||
padding-top: 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-bottom-example .navbar-fixed-bottom {
|
|
||||||
bottom: -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-bottom-example .navbar {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bs-navbar-top-example .navbar-fixed-top,
|
|
||||||
.bs-navbar-bottom-example .navbar-fixed-bottom {
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Pagination */
|
|
||||||
.bs-example .pagination {
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Pager */
|
|
||||||
.bs-example > .pager {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Example modals */
|
|
||||||
.bs-example-modal {
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-modal .modal {
|
|
||||||
position: relative;
|
|
||||||
top: auto;
|
|
||||||
right: auto;
|
|
||||||
bottom: auto;
|
|
||||||
left: auto;
|
|
||||||
z-index: 1;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-modal .modal-dialog {
|
|
||||||
left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Example dropdowns */
|
|
||||||
.bs-example > .dropdown > .dropdown-toggle {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example > .dropdown > .dropdown-menu {
|
|
||||||
position: static;
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
clear: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Example tabbable tabs */
|
|
||||||
.bs-example-tabs .nav-tabs {
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tooltips */
|
|
||||||
.bs-example-tooltips {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-tooltips > .btn {
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-tooltip .tooltip {
|
|
||||||
position: relative;
|
|
||||||
display: inline-block;
|
|
||||||
margin: 10px 20px;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Popovers */
|
|
||||||
.bs-example-popover {
|
|
||||||
padding-bottom: 24px;
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example-popover .popover {
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
float: left;
|
|
||||||
width: 260px;
|
|
||||||
margin: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Scrollspy demo on fixed height div */
|
|
||||||
.scrollspy-example {
|
|
||||||
position: relative;
|
|
||||||
height: 200px;
|
|
||||||
margin-top: 10px;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example > .nav-pills-stacked-example {
|
|
||||||
max-width: 300px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Simple collapse example */
|
|
||||||
#collapseExample .well {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Don't wrap event names in Events tables in JS plugin docs */
|
|
||||||
.bs-events-table > thead > tr > th:first-child,
|
|
||||||
.bs-events-table > tbody > tr > td:first-child {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-events-table > thead > tr > th:first-child {
|
|
||||||
width: 150px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.js-options-table > thead > tr > th:nth-child(1),
|
|
||||||
.js-options-table > thead > tr > th:nth-child(2) {
|
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.js-options-table > thead > tr > th:nth-child(3) {
|
|
||||||
width: 50px;
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
|
|
||||||
/*
|
|
||||||
* Featured sites
|
|
||||||
*
|
|
||||||
* Homepage thumbnails from the Expo.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.bs-docs-featured-sites {
|
|
||||||
margin-right: -1px;
|
|
||||||
margin-left: -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featured-sites .col-xs-6 {
|
|
||||||
padding: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featured-sites .img-responsive {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bs-docs-featured-sites .col-sm-3:first-child img {
|
|
||||||
border-top-left-radius: 4px;
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featured-sites .col-sm-3:last-child img {
|
|
||||||
border-top-right-radius: 4px;
|
|
||||||
border-bottom-right-radius: 4px;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,82 +0,0 @@
|
||||||
/*
|
|
||||||
* Homepage featurettes
|
|
||||||
*
|
|
||||||
* Reasons to use Bootstrap, entries from the Expo, and more.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.bs-docs-featurette {
|
|
||||||
padding-top: 40px;
|
|
||||||
padding-bottom: 40px;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.5;
|
|
||||||
color: #555;
|
|
||||||
text-align: center;
|
|
||||||
background-color: #fff;
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette + .bs-docs-footer {
|
|
||||||
margin-top: 0;
|
|
||||||
border-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette-title {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
font-size: 30px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.half-rule {
|
|
||||||
width: 100px;
|
|
||||||
margin: 40px auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette h3 {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette-img {
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette-img:hover {
|
|
||||||
color: #337ab7;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette-img img {
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 480px) {
|
|
||||||
.bs-docs-featurette .img-responsive {
|
|
||||||
margin-top: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bs-docs-featurette {
|
|
||||||
padding-top: 100px;
|
|
||||||
padding-bottom: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette-title {
|
|
||||||
font-size: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette .lead {
|
|
||||||
max-width: 80%;
|
|
||||||
margin-right: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-featurette .img-responsive {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* Footer
|
|
||||||
*
|
|
||||||
* Separated section of content at the bottom of all pages, save the homepage.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.bs-docs-footer {
|
|
||||||
padding-top: 50px;
|
|
||||||
padding-bottom: 50px;
|
|
||||||
margin-top: 100px;
|
|
||||||
color: #99979c;
|
|
||||||
text-align: center;
|
|
||||||
background-color: @site-color-footer;
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-footer-links {
|
|
||||||
padding-left: 0;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
li {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
li + li {
|
|
||||||
margin-left: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bs-docs-footer {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-footer p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,20 +0,0 @@
|
||||||
/*
|
|
||||||
* Grid examples
|
|
||||||
*
|
|
||||||
* Highlight the grid columns within the docs so folks can see their padding,
|
|
||||||
* alignment, sizing, etc.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.show-grid {
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.show-grid [class^="col-"] {
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
background-color: #eee;
|
|
||||||
background-color: rgba(86, 61, 124, .15);
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border: 1px solid rgba(86, 61, 124, .2);
|
|
||||||
}
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user