mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-28 06:20:15 +02:00
Merge branch 'v4-dev' into v4-navbars
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-
|
||||
browser: >
|
||||
Microsoft Edge
|
||||
summary: >
|
||||
Visual artifacts in scrollable modal dialogs
|
||||
upstream_bug: >
|
||||
Edge#9011176
|
||||
origin: >
|
||||
Bootstrap#20755
|
||||
|
||||
-
|
||||
browser: >
|
||||
Microsoft Edge
|
||||
|
@@ -1,17 +1,17 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.">
|
||||
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
||||
|
||||
<title>
|
||||
{% if page.layout == "home" %}
|
||||
{{ page.title }}
|
||||
{% if page.title %}
|
||||
{{ page.title }} · {{ site.title }}
|
||||
{% else %}
|
||||
{{ page.title }} · Bootstrap
|
||||
{{ site.title }} · {{ site.description }}
|
||||
{% endif %}
|
||||
</title>
|
||||
|
||||
{% include social.html %}
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
{% if site.github %}
|
||||
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
31
docs/_includes/social.html
Normal file
31
docs/_includes/social.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!-- Twitter -->
|
||||
<meta name="twitter:site" content="@{{ site.twitter }}">
|
||||
<meta name="twitter:creator" content="@{{ site.twitter }}">
|
||||
|
||||
{% if page.title %}
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:title" content="{{ page.title }}">
|
||||
<meta name="twitter:description" content="{{ page.description }}">
|
||||
<meta name="twitter:image" content="{{ site.url }}{{ site.social_logo_path }}">
|
||||
{% else %}
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{{ site.title }}">
|
||||
<meta name="twitter:description" content="{{ site.description }}">
|
||||
<meta name="twitter:image" content="{{ site.url }}{{ site.social_image_path }}">
|
||||
{% endif %}
|
||||
|
||||
<!-- Facebook -->
|
||||
{% if page.title %}
|
||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
<meta property="og:description" content="{{ page.description }}">
|
||||
{% else %}
|
||||
<meta property="og:url" content="{{ site.url }}">
|
||||
<meta property="og:title" content="{{ site.title }}">
|
||||
<meta property="og:description" content="{{ site.description }}">
|
||||
{% endif %}
|
||||
<meta property="og:image" content="{{ site.url }}{{ site.social_image_path }}">
|
||||
|
||||
<!-- Meta -->
|
||||
<meta name="description" content="{{ site.description }}">
|
||||
<meta name="author" content="{{ site.authors }}">
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Brand guidelines
|
||||
description: Documentation and examples for Bootstrap's logo and brand usage guidelines.
|
||||
group: about
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: History
|
||||
description: A brief overview of the history of Bootstrap.
|
||||
group: about
|
||||
redirect_from: "/about/"
|
||||
---
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: License FAQs
|
||||
description: Commonly asked questions about Bootstrap's open source license.
|
||||
group: about
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Team
|
||||
description: An overview of the founding team and core contributors to Bootstrap.
|
||||
group: about
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Translations
|
||||
description: Links to community-translated Bootstrap documentation sites.
|
||||
group: about
|
||||
---
|
||||
|
||||
|
BIN
docs/assets/brand/bootstrap-social-logo.png
Normal file
BIN
docs/assets/brand/bootstrap-social-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
BIN
docs/assets/brand/bootstrap-social.png
Normal file
BIN
docs/assets/brand/bootstrap-social.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 330 KiB |
@@ -324,7 +324,7 @@
|
||||
|
||||
.highlight {
|
||||
padding: 1rem;
|
||||
margin: 1rem (-$grid-gutter-width / 2);
|
||||
margin: 1rem (-$grid-gutter-width-base / 2);
|
||||
background-color: #f7f7f9;
|
||||
|
||||
@include media-breakpoint-up(sm) {
|
||||
|
@@ -26,10 +26,10 @@
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
.col-sm-6:first-child {
|
||||
padding-right: ($grid-gutter-width * 1.5);
|
||||
padding-right: ($grid-gutter-width-base * 1.5);
|
||||
};
|
||||
.col-sm-6:last-child {
|
||||
padding-left: ($grid-gutter-width * 1.5);
|
||||
padding-left: ($grid-gutter-width-base * 1.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
.bd-masthead {
|
||||
position: relative;
|
||||
padding: 3rem ($grid-gutter-width / 2) 2rem;
|
||||
padding: 3rem ($grid-gutter-width-base / 2) 2rem;
|
||||
color: $bd-purple-light;
|
||||
text-align: center;
|
||||
background-image: linear-gradient(135deg, darken($bd-purple, 20%), $bd-purple, lighten(saturate($bd-purple, 5%), 15%));
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// scss-lint:disable ImportantRule
|
||||
|
||||
.bd-pageheader {
|
||||
padding: 2rem ($grid-gutter-width / 2);
|
||||
padding: 2rem ($grid-gutter-width-base / 2);
|
||||
margin-bottom: 1.5rem;
|
||||
color: $bd-purple-light;
|
||||
text-align: center;
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Alerts
|
||||
description: Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Breadcrumb
|
||||
description: Indicate the current page's location within a navigational hierarchy.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Button group
|
||||
description: Group a series of buttons together on a single line with the button group, and super-power them with JavaScript.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Buttons
|
||||
description: Use Bootstrap's custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
|
||||
group: components
|
||||
redirect_from: "/components/"
|
||||
---
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Cards
|
||||
description: Bootstrap Cards provide a flexible and extensible content container with multiple variants and options.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Carousel
|
||||
description: A slideshow component for cycling through elements—images or slides of text—like a carousel.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Collapse
|
||||
description: Toggle the visibility of content across your project with a few classes and our JavaScript plugins.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Dropdowns
|
||||
description: Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Forms
|
||||
description: Examples and usage guidelines for from controls, form layouts, and custom forms.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Input group
|
||||
description: Extend form controls with the input group.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Jumbotron
|
||||
description: Lightweight, flexible component for showcasing hero unit style content.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: List group
|
||||
description: Learn about Bootstrap's list group component for rendering series of related content.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Modal
|
||||
description: Learn how to use Bootstrap's modals to add dialog prompts to your site.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Navbar
|
||||
description: Documentation and examples for Bootstrap's powerful, responsive navigation header.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Navs
|
||||
description: Documentation and examples for how to use Bootstrap's included navigation components.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Pagination
|
||||
description: Documentation and examples for showing pagination links.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Popovers
|
||||
description: Documentation and examples for adding Bootstrap popovers to your site.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Progress
|
||||
description: Documentation and examples for using Bootstrap progress bars.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Scrollspy
|
||||
description: Documentation and examples for the scrollspy plugin with Bootstrap's navigation components.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Tags
|
||||
description: Documentation and examples for tags, our small label-badge component.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Tooltips
|
||||
description: Documentation and examples for adding custom Bootstrap tooltips with CSS and JavaScript.
|
||||
group: components
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Code
|
||||
description: Documentation and examples for displaying inline and multiline blocks of code with Bootstrap.
|
||||
group: content
|
||||
---
|
||||
|
||||
|
@@ -1,10 +1,11 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Figures
|
||||
description: Documentation and examples for displaying related images and text with the figure component in Bootstrap.
|
||||
group: content
|
||||
---
|
||||
|
||||
Anytime you need to display a piece of content—like an image—with an optional caption, consider using a `<figure>`.
|
||||
Anytime you need to display a piece of content—like an image with an optional caption, consider using a `<figure>`.
|
||||
|
||||
Use the included `.figure` , `.figure-img` and `.figure-caption` classes to provide some baseline styles for the HTML5 `<figure>` and `<figcaption>` elements. Images in figures have no explicit size, so be sure to add the `.img-fluid` class to your `<img>` to make it responsive.
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Images
|
||||
description: Documentation and examples for styling images with Bootstrap.
|
||||
group: content
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Reboot
|
||||
description: Documentation and examples for Reboot, Bootstrap's collection of element-specific CSS that builds on Normalize.css.
|
||||
group: content
|
||||
redirect_from: "/content/"
|
||||
---
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Tables
|
||||
description: Documentation and examples for styling tables with Bootstrap.
|
||||
group: content
|
||||
---
|
||||
|
||||
@@ -13,7 +14,7 @@ Due to the widespread use of tables across third-party widgets like calendars an
|
||||
|
||||
## Examples
|
||||
|
||||
Using the most basic table markup, here's how `.table`-based tables look in Bootstrap.
|
||||
Using the most basic table markup, here's how `.table`-based tables look in Bootstrap. **All table styles are inherited in Bootstrap 4**, meaning any nested tables will be styled in the same manner as the parent.
|
||||
|
||||
{% example html %}
|
||||
<table class="table">
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Typography
|
||||
description: Documentation and examples for Bootstrap typography, including global settings, body text, lists, and more.
|
||||
group: content
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Accessibility
|
||||
description: Learn how Bootstrap supports common web standards for making sites that are accessibile to those using assistive technology.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Best practices
|
||||
description: Learn about some of the best practices we've gathered from years of working on and using Bootstrap.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Browsers and devices
|
||||
description: Learn which browsers and devices are supported by Bootstrap.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Build tools
|
||||
description: Details on how to use Bootstrap's included build tools to compile source code, run tests, and more.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Contents
|
||||
description: Learn about what's included in Bootstrap's precompiled and source code directories.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Download
|
||||
description: Download Bootstrap's compiled CSS and JavaScript, source code, or include it with your favorite package manager.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Flexbox
|
||||
description: Learn how to enable flexbox support in Bootstrap 4 with the flick of a variable or the swap of a stylesheet.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Introduction
|
||||
description: Get started with Bootstrap using the Bootstrap CDN and a template starter page.
|
||||
group: getting-started
|
||||
redirect_from: "/getting-started/"
|
||||
---
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: JavaScript
|
||||
description: Learn about Bootstrap's JavaScript—how to include it, our data and programmatic API options, and more.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Customization options
|
||||
description: Customize Bootstrap with Sass variables, easily toggling global preferences with a quick recompile.
|
||||
group: getting-started
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
---
|
||||
layout: home
|
||||
title: Bootstrap · The world's most popular mobile-first and responsive front-end framework.
|
||||
---
|
||||
|
||||
<main class="bd-masthead" id="content">
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Flexbox grid system
|
||||
description: Documentation and examples for using Bootstrap's optional flexbox grid system.
|
||||
group: layout
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Grid system
|
||||
description: Documentation and examples for using Bootstrap's powerful, responsive, and mobile-first grid system.
|
||||
group: layout
|
||||
---
|
||||
|
||||
@@ -139,7 +140,15 @@ Variables and maps determine the number of columns, the gutter width, and the me
|
||||
|
||||
{% highlight scss %}
|
||||
$grid-columns: 12;
|
||||
$grid-gutter-width: 30px;
|
||||
$grid-gutter-width-base: 30px;
|
||||
|
||||
$grid-gutter-widths: (
|
||||
xs: $grid-gutter-width-base, // 30px
|
||||
sm: $grid-gutter-width-base, // 30px
|
||||
md: $grid-gutter-width-base, // 30px
|
||||
lg: $grid-gutter-width-base, // 30px
|
||||
xl: $grid-gutter-width-base // 30px
|
||||
)
|
||||
|
||||
$grid-breakpoints: (
|
||||
// Extra small screen / phone
|
||||
@@ -168,23 +177,27 @@ Mixins are used in conjunction with the grid variables to generate semantic CSS
|
||||
|
||||
{% highlight scss %}
|
||||
// Creates a wrapper for a series of columns
|
||||
@mixin make-row($gutter: $grid-gutter-width) {
|
||||
@mixin make-row($gutters: $grid-gutter-widths) {
|
||||
@if $enable-flex {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
} @else {
|
||||
@include clearfix();
|
||||
}
|
||||
margin-left: ($gutter / -2);
|
||||
margin-right: ($gutter / -2);
|
||||
|
||||
@each $breakpoint in map-keys($gutters) {
|
||||
@include media-breakpoint-up($breakpoint) {
|
||||
$gutter: map-get($gutters, $breakpoint);
|
||||
margin-right: ($gutter / -2);
|
||||
margin-left: ($gutter / -2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Make the element grid-ready (applying everything but the width)
|
||||
@mixin make-col-ready($gutter: $grid-gutter-width) {
|
||||
@mixin make-col-ready($gutters: $grid-gutter-widths) {
|
||||
position: relative;
|
||||
min-height: 1px; // Prevent collapsing
|
||||
padding-right: ($gutter / 2);
|
||||
padding-left: ($gutter / 2);
|
||||
|
||||
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
||||
// always setting `width: 100%;`. This works because we use `flex` values
|
||||
@@ -192,6 +205,14 @@ Mixins are used in conjunction with the grid variables to generate semantic CSS
|
||||
@if $enable-flex {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@each $breakpoint in map-keys($gutters) {
|
||||
@include media-breakpoint-up($breakpoint) {
|
||||
$gutter: map-get($gutters, $breakpoint);
|
||||
padding-right: ($gutter / 2);
|
||||
padding-left: ($gutter / 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin make-col($size, $columns: $grid-columns) {
|
||||
@@ -463,11 +484,18 @@ Using our built-in grid Sass variables and maps, it's possible to completely cus
|
||||
|
||||
### Columns and gutters
|
||||
|
||||
The number of grid columns and their horizontal padding (aka, gutters) can be modified via Sass variables. `$grid-columns` is used to generate the widths (in percent) of each individual column while `$grid-gutter-width` is divided evenly across `padding-left` and `padding-right` for the column gutters.
|
||||
The number of grid columns and their horizontal padding (aka, gutters) can be modified via Sass variables. `$grid-columns` is used to generate the widths (in percent) of each individual column while `$grid-gutter-widths` allows breakpoint-specific widths that are divided evenly across `padding-left` and `padding-right` for the column gutters.
|
||||
|
||||
{% highlight scss %}
|
||||
$grid-columns: 12;
|
||||
$grid-gutter-width: 30px;
|
||||
$grid-columns: 12 !default;
|
||||
$grid-gutter-width-base: 30px !default;
|
||||
$grid-gutter-widths: (
|
||||
xs: $grid-gutter-width-base,
|
||||
sm: $grid-gutter-width-base,
|
||||
md: $grid-gutter-width-base,
|
||||
lg: $grid-gutter-width-base,
|
||||
xl: $grid-gutter-width-base
|
||||
) !default;
|
||||
{% endhighlight %}
|
||||
|
||||
### Grid tiers
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Media object
|
||||
description: Documentation and examples for Bootstrap's media object to construct highly repetitive components like blog comments, tweets, and the like.
|
||||
group: layout
|
||||
---
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Overview
|
||||
description: Components and options for laying out your Bootstrap project, including wrapping containers, a powerful grid system, a flexible media object, and responsive utility classes.
|
||||
group: layout
|
||||
redirect_from: "/layout/"
|
||||
---
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Responsive utilities
|
||||
description: Use responsive display utility classes for showing and hiding content by device, via media query.
|
||||
group: layout
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user