Commit 90b19587 authored by Mark Otto's avatar Mark Otto
Browse files

Merge branch '3.0.0-wip' of github.com:twitter/bootstrap into 3.0.0-wip

parents a8391da4 61ea1ae9
main cleanup-floating-forms cssvar-function dependabot/npm_and_yarn/stylelint-and-stylelint-config-twbs-bootstrap-15.3.0 extend-snippets feat/data-target floating-always-visible floating-labels-icons fod-main-banner form-controls-with-icons gh-pages gh-pages-530-alpha2 github/fork/719media/patch-13 github/fork/719media/patch-14 github/fork/719media/patch-9 github/fork/ChellyAhmed/fix-typo-reboot.md github/fork/ChellyAhmed/offcanvas-scroll-back github/fork/CtrlAltLilith/main github/fork/Elysiome/offcanvas-optional-window-resizing github/fork/JanSargsyan/main github/fork/LunicLynx/support-different-line-height-for-buttons github/fork/Psixodelik/main github/fork/Ronid1/ronid1/offcanvas_static_backdrop github/fork/RyanBerliner/tooltip-accessibility github/fork/SantiagoPVazquez/Feature-default-border-bottom-to-dropdown-item github/fork/Sir-Genius/utils github/fork/Sumit-Singh-8/main github/fork/Viktor-VERA2020/offcanvas-slide github/fork/Zivangu9/input-group-for-form-control-plaintext github/fork/alpadev/alpadev/call-dispose-on-component-reinstantiation github/fork/astagi/fix/tree-shake-modules github/fork/compnerd/dark-accordion-icon github/fork/derSascha/dropdown-dont-close-on-input-click github/fork/dev-ph1l/main github/fork/donquixote/issue-33861-utl-mixin github/fork/florianlacreuse/mixin-make-row-gutter-y github/fork/gregorw/main github/fork/iteggmbh/transitionend-dispose-race github/fork/jdelStrother/patch-1 github/fork/jonnysp/form-floating github/fork/jonnysp/independent-offcanvas github/fork/jonnysp/theme-dark-on-card-and-modal-fix github/fork/josefdlange/floating-label-placeholder-opacity github/fork/julien-deramond/enhance-change-version.js github/fork/julien-deramond/main-jd-fix-offset-content github/fork/julien-deramond/main-jd-issue-with-utitlies github/fork/julien-deramond/main-xmr-pa11y-ci-jd-add-hideElements github/fork/kyletsang/fix-tooltip-padding github/fork/lacutah/CheckboxCenteringDocumentation github/fork/lekoala/patch-3 github/fork/louismaximepiton/main-kld-lmp-collapse-proposal github/fork/louismaximepiton/main-lmp-card-inner-border-radius-fix github/fork/louismaximepiton/main-lmp-carousel-multiple-images github/fork/louismaximepiton/main-lmp-css-var-init github/fork/louismaximepiton/main-lmp-disabled-floating-label-fix github/fork/louismaximepiton/main-lmp-input-range-fix github/fork/louismaximepiton/main-lmp-shift-color github/fork/louismaximepiton/main-lmp-table-active-tr-fix github/fork/maciek-szn/switch github/fork/michael-roth/feature/19964-multiple-tab-targets github/fork/mistic100/dom-utils github/fork/nkdas91/accordion github/fork/nstungcom/fix-missing-modal-open-class github/fork/oraliahdz/animation-utilities github/fork/pine3ree/patch-7 github/fork/pouwerkerk/unindent-scss-docs-shortcode github/fork/smares/smares-no-scolling-on-modal-close github/fork/tgm-git/patch-1 gs-forms gs-toasts-with-animated-progress-bar gs/add-history-helper gs/change-version-dir-on-docs gs/data-must-set-onlu-one-instance gs/docs/fix-drop-down-error gs/event-handler-2 gs/make-docs-js-build gs/make-simple-attribute-toggler gs/popover-fix-doc gs/provide-steConfig-method gs/scrollspy-smoothscroll-option-use-browser-history gs/streamline-jqueryInterface gs/support-drop-down-in-navbar gs/test-js-generic-trigger gs/try-web-components gs/tweak-collapse-js-selector gs/use-event-handler-in-cocmponent gs/use-rollup-replace-for-version jo-docs-thanks-page jo-ssr-friendly logical-props-spacing-utils main-fod-disabled-form-check-label main-fod-nested-accordion main-fod-simpler-table-structure main-fod-table-separator main-fod-utilities-contrast main-jd-abbr-title main-jd-add-chips main-jd-add-doc-for-sass-custom-colors main-jd-add-enable-host-to-handle-web-components main-jd-browserstack-fine-tune main-jd-browserstack-updates main-jd-docs-consistent-usage-of-css-sections-step-2 main-jd-fix-docs-headers-in-white main-jd-fix-highlight-docs-border-radius main-jd-fix-placeholder-color-background-params-for-img-markup main-jd-glossary-experiment main-jd-postcss-drop-empty-css-vars main-jd-proto-doc-astro main-jd-skip-navigation-component main-jd-stackblitz-for-examples main-jd-upgrade-browserlistrc main-jd-use-host main-lmp-dark-theme-customization main-lmp-handle-scroll-target main-lmp-tab-fix main-mc-opensearch main-xmr-bundlewatch-action main-xmr-eslint-plugin-compat main-xmr-hugo-docs-vendor main-xmr-hugo-rm-ver main-xmr-linkinator-prod main-xmr-min-mangle main-xmr-pa11y-ci more-darkmode-examples nested-dropdowns patrickhlauke-issue37428 patrickhlauke-use-of-color-tweaks pr/34102 pr/37590 previous-next-docs-links sticky-thead utilities-functions-mixin v3-dev v4-dev v4-dev-dropdown-hide-method v530-dev v6-postcss-custom-media v6-spinner-dots v6/gs/use-floating-ui-in-place-of-popper xmr/dev xmr/docs-png xmr/docs-svgs xmr/hugo-reorg-files xmr/js-2 xmr/markdownlint xmr/prepare-530-alpha2 xmr/xo v5.3.0-alpha1 v5.2.3 v5.2.2 v5.2.1 v5.2.0 v5.2.0-beta1 v5.1.3 v5.1.2 v5.1.1 v5.1.0 v5.0.2 v5.0.1 v5.0.0 v5.0.0-beta3 v5.0.0-beta2 v5.0.0-beta1 v5.0.0-alpha3 v5.0.0-alpha2 v5.0.0-alpha1 v4.6.2 v4.6.1 v4.6.0 v4.5.3 v4.5.2 v4.5.1 v4.5.0 v4.4.1 v4.4.0 v4.3.1 v4.3.0 v4.2.1 v4.2.0 v4.1.3 v4.1.2 v4.1.1 v4.1.0 v4.0.0 v4.0.0-beta.3 v4.0.0-beta.2 v4.0.0-beta v4.0.0-alpha.6 v4.0.0-alpha.5 v4.0.0-alpha.4 v4.0.0-alpha.3 v4.0.0-alpha.2 v4.0.0-alpha v3.4.1 v3.4.0 v3.3.7 v3.3.6 v3.3.5 v3.3.4 v3.3.2 v3.3.1 v3.3.0 v3.2.0 v3.1.1 v3.1.0 v3.0.3 v3.0.2 v3.0.1 v3.0.0 v3.0.0-rc.2 v3.0.0-rc1
10 merge requests!8635ignore Gruntfile.js in jekyll,!8339Fix broken links to navbar component in docs examples,!7674Clear float on all when navbar is collapsed - v3,!7775added some tests for tooltip title setter,!8157Close Me: Docs "Customize and Download" button fix,!7964commit fixes #7792,!8656Added rel="stylesheet" to CDN-Examples,!8527Inner properties move 1,!8245Interactive color picker - Closed: request against wrong branch,!7865Patch 2
Showing with 218 additions and 189 deletions
+218 -189
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<li><a href="#tables-example">Basic example</a></li> <li><a href="#tables-example">Basic example</a></li>
<li><a href="#tables-striped">Zebra striping</a></li> <li><a href="#tables-striped">Zebra striping</a></li>
<li><a href="#tables-bordered">Bordered tables</a></li> <li><a href="#tables-bordered">Bordered tables</a></li>
<li><a href="#tables-hover">Hover rows</a></li> <li><a href="#tables-hover-rows">Hover rows</a></li>
<li><a href="#tables-condensed">Condensed tables</a></li> <li><a href="#tables-condensed">Condensed tables</a></li>
<li><a href="#tables-row-classes">Contextual row classes</a></li> <li><a href="#tables-row-classes">Contextual row classes</a></li>
</ul> </ul>
......
...@@ -1013,8 +1013,6 @@ pre code { ...@@ -1013,8 +1013,6 @@ pre code {
table { table {
max-width: 100%; max-width: 100%;
background-color: transparent; background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
} }
th { th {
...@@ -3262,10 +3260,34 @@ button.close { ...@@ -3262,10 +3260,34 @@ button.close {
background-color: #eeeeee; background-color: #eeeeee;
} }
.nav > li.disabled > a {
color: #999999;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
color: #999999;
text-decoration: none;
cursor: default;
background-color: transparent;
}
.nav > li + .nav-header {
margin-top: 9px;
}
.nav > .pull-right { .nav > .pull-right {
float: right; float: right;
} }
.nav .divider {
height: 2px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
border-bottom: 1px solid #ffffff;
}
.nav-tabs { .nav-tabs {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
...@@ -3286,9 +3308,9 @@ button.close { ...@@ -3286,9 +3308,9 @@ button.close {
border-color: #eeeeee #eeeeee #dddddd; border-color: #eeeeee #eeeeee #dddddd;
} }
.nav-tabs > .active > a, .nav-tabs > li.active > a,
.nav-tabs > .active > a:hover, .nav-tabs > li.active > a:hover,
.nav-tabs > .active > a:focus { .nav-tabs > li.active > a:focus {
color: #555555; color: #555555;
cursor: default; cursor: default;
background-color: #ffffff; background-color: #ffffff;
...@@ -3296,6 +3318,27 @@ button.close { ...@@ -3296,6 +3318,27 @@ button.close {
border-bottom-color: transparent; border-bottom-color: transparent;
} }
.nav-tabs.nav-justified {
width: 100%;
border-bottom: 0;
}
.nav-tabs.nav-justified > li {
display: table-cell;
float: none;
width: 1%;
text-align: center;
}
.nav-tabs.nav-justified > li > a {
margin-right: 0;
border-bottom: 1px solid #ddd;
}
.nav-tabs.nav-justified > .active > a {
border-bottom-color: #ffffff;
}
.nav-pills > li { .nav-pills > li {
float: left; float: left;
} }
...@@ -3308,9 +3351,9 @@ button.close { ...@@ -3308,9 +3351,9 @@ button.close {
margin-left: 2px; margin-left: 2px;
} }
.nav-pills > .active > a, .nav-pills > li.active > a,
.nav-pills > .active > a:hover, .nav-pills > li.active > a:hover,
.nav-pills > .active > a:focus { .nav-pills > li.active > a:focus {
color: #fff; color: #fff;
background-color: #428bca; background-color: #428bca;
} }
...@@ -3335,34 +3378,6 @@ button.close { ...@@ -3335,34 +3378,6 @@ button.close {
text-align: center; text-align: center;
} }
.nav-justified.nav-tabs {
border-bottom: 0;
}
.nav-justified.nav-tabs > li > a {
border-bottom: 1px solid #ddd;
}
.nav-justified.nav-tabs > .active > a {
border-bottom-color: #ffffff;
}
.nav-justified > li > a {
margin-right: 0;
}
.nav > .disabled > a {
color: #999999;
}
.nav > .disabled > a:hover,
.nav > .disabled > a:focus {
color: #999999;
text-decoration: none;
cursor: default;
background-color: transparent;
}
.nav-header { .nav-header {
display: block; display: block;
padding: 3px 15px; padding: 3px 15px;
...@@ -3374,18 +3389,6 @@ button.close { ...@@ -3374,18 +3389,6 @@ button.close {
text-transform: uppercase; text-transform: uppercase;
} }
.nav li + .nav-header {
margin-top: 9px;
}
.nav .divider {
height: 2px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
border-bottom: 1px solid #ffffff;
}
.tabbable:before, .tabbable:before,
.tabbable:after { .tabbable:after {
display: table; display: table;
...@@ -4237,7 +4240,7 @@ button.close { ...@@ -4237,7 +4240,7 @@ button.close {
.pager .disabled > span { .pager .disabled > span {
color: #999999; color: #999999;
cursor: default; cursor: default;
background-color: #fff; background-color: #ffffff;
} }
.modal-open { .modal-open {
......
...@@ -12,25 +12,53 @@ ...@@ -12,25 +12,53 @@
padding-left: 0; // Override default ul/ol padding-left: 0; // Override default ul/ol
list-style: none; list-style: none;
.clearfix(); .clearfix();
} > li {
.nav > li { display: block;
display: block; > a {
} position: relative;
.nav > li > a { display: block;
position: relative; padding: 10px 15px;
display: block; &:hover,
padding: 10px 15px; &:focus {
} text-decoration: none;
.nav > li > a:hover, background-color: @grayLighter;
.nav > li > a:focus { }
text-decoration: none; }
background-color: @grayLighter;
} // Nav states and addons
// --------------------------------------------------
// Disabled state
// -------------------------
// Gray out text
&.disabled > a {
color: @grayLight;
}
// Nuke hover effects
&.disabled > a:hover,
&.disabled > a:focus {
color: @grayLight;
text-decoration: none;
background-color: transparent;
cursor: default;
}
// Space the headers out when they follow another list item (link)
&+ .nav-header {
margin-top: 9px;
}
}
// Redeclare pull classes because of specifity // Redeclare pull classes because of specifity
// Todo: consider making these utilities !important to avoid this bullshit // Todo: consider making these utilities !important to avoid this bullshit
.nav > .pull-right { > .pull-right {
float: right; float: right;
}
// Dividers (basically an hr) within the dropdown
.divider {
.nav-divider();
}
} }
...@@ -44,63 +72,79 @@ ...@@ -44,63 +72,79 @@
// Give the tabs something to sit on // Give the tabs something to sit on
.nav-tabs { .nav-tabs {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} > li {
.nav-tabs > li { float: left;
float: left; // Make the list-items overlay the bottom border
// Make the list-items overlay the bottom border margin-bottom: -1px;
margin-bottom: -1px;
} // Actual tabs (as links)
// Actual tabs (as links) > a {
.nav-tabs > li > a { margin-right: 2px;
margin-right: 2px; line-height: @line-height-base;
line-height: @line-height-base; border: 1px solid transparent;
border: 1px solid transparent; border-radius: @border-radius-base @border-radius-base 0 0;
border-radius: @border-radius-base @border-radius-base 0 0; &:hover {
&:hover { border-color: @grayLighter @grayLighter #ddd;
border-color: @grayLighter @grayLighter #ddd; }
}
// Active state, and it's :hover to override normal :hover
&.active > a,
&.active > a:hover,
&.active > a:focus {
color: @gray;
background-color: @body-bg;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default;
}
}
// pulling this in mainly for less shorthand
&.nav-justified {
.nav-justified;
.nav-tabs-justified;
} }
}
// Active state, and it's :hover to override normal :hover
.nav-tabs > .active > a,
.nav-tabs > .active > a:hover,
.nav-tabs > .active > a:focus {
color: @gray;
background-color: @body-bg;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default;
} }
// Pills // Pills
// ------------------------- // -------------------------
.nav-pills {
.nav-pills > li { > li {
float: left; float: left;
}
// Links rendered as pills
// Links rendered as pills > a {
.nav-pills > li > a { border-radius: 5px;
border-radius: 5px; }
} + li {
.nav-pills > li + li > a { > a {
margin-left: 2px; margin-left: 2px;
}
}
// Active state
&.active > a,
&.active > a:hover,
&.active > a:focus {
color: #fff;
background-color: @component-active-bg;
}
}
} }
// Active state
.nav-pills > .active > a,
.nav-pills > .active > a:hover,
.nav-pills > .active > a:focus {
color: #fff;
background-color: @component-active-bg;
}
// Stacked pills // Stacked pills
.nav-stacked > li { .nav-stacked {
float: none; > li {
} float: none;
.nav-stacked > li + li > a { + li {
margin-top: 2px; > a {
margin-left: 0; // no need for this gap between nav items margin-top: 2px;
margin-left: 0; // no need for this gap between nav items
}
}
}
} }
// Justified nav links // Justified nav links
...@@ -108,48 +152,30 @@ ...@@ -108,48 +152,30 @@
.nav-justified { .nav-justified {
width: 100%; width: 100%;
> li {
float: none;
display: table-cell;
width: 1%;
text-align: center;
}
} }
.nav-justified > li {
float: none;
display: table-cell;
width: 1%;
text-align: center;
}
// Move borders to anchors instead of bottom of list // Move borders to anchors instead of bottom of list
.nav-justified.nav-tabs { .nav-tabs-justified () {
border-bottom: 0; border-bottom: 0;
> li > a { > li > a {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
// Override margin from .nav-tabs
margin-right: 0;
} }
> .active > a { > .active > a {
border-bottom-color: @body-bg; border-bottom-color: @body-bg;
} }
}
// Override margin from .nav-tabs
.nav-justified > li > a {
margin-right: 0;
}
// Nav states and addons }
// --------------------------------------------------
// Disabled state
// -------------------------
// Gray out text
.nav > .disabled > a {
color: @grayLight;
}
// Nuke hover effects
.nav > .disabled > a:hover,
.nav > .disabled > a:focus {
color: @grayLight;
text-decoration: none;
background-color: transparent;
cursor: default;
}
// Nav headers (for dropdowns and lists) // Nav headers (for dropdowns and lists)
// ------------------------- // -------------------------
...@@ -164,15 +190,6 @@ ...@@ -164,15 +190,6 @@
text-shadow: 0 1px 0 rgba(255,255,255,.5); text-shadow: 0 1px 0 rgba(255,255,255,.5);
text-transform: uppercase; text-transform: uppercase;
} }
// Space them out when they follow another list item (link)
.nav li + .nav-header {
margin-top: 9px;
}
// Dividers (basically an hr) within the dropdown
.nav .divider {
.nav-divider();
}
......
...@@ -8,36 +8,47 @@ ...@@ -8,36 +8,47 @@
list-style: none; list-style: none;
text-align: center; text-align: center;
.clearfix(); .clearfix();
li {
display: inline;
> a,
> span {
display: inline-block;
padding: 5px 14px;
background-color: @pagination-bg;
border: 1px solid @pagination-border;
border-radius: 15px;
}
> a:hover,
> a:focus {
text-decoration: none;
background-color: @pagination-active-bg;
}
}
.next {
> a,
> span {
float: right;
}
}
.previous {
> a,
> span {
float: left;
}
}
.disabled {
> a,
> a:hover,
> a:focus,
> span {
color: @grayLight;
background-color: @pagination-bg;
cursor: default;
}
}
} }
.pager li {
display: inline;
}
.pager li > a,
.pager li > span {
display: inline-block;
padding: 5px 14px;
background-color: @pagination-bg;
border: 1px solid @pagination-border;
border-radius: 15px;
}
.pager li > a:hover,
.pager li > a:focus {
text-decoration: none;
background-color: @pagination-active-bg;
}
.pager .next > a,
.pager .next > span {
float: right;
}
.pager .previous > a,
.pager .previous > span {
float: left;
}
.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
color: @grayLight;
background-color: #fff;
cursor: default;
}
\ No newline at end of file
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
table { table {
max-width: 100%; max-width: 100%;
background-color: @table-bg; background-color: @table-bg;
border-collapse: collapse;
border-spacing: 0;
} }
th { th {
text-align: left; text-align: left;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment