0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Commit Graph

192 Commits

Author SHA1 Message Date
Patrick H. Lauke
ea1d69c64b Make "Copy" buttons actual buttons
This makes them keyboard-accessible. For mouse users, the only change
here is that the focus outline will remain on the button once clicked
(in future, this can be solved with :focus-ring, but for now this would
require a polyfill). the tooltip is explicitly hidden on `mouseleave`,
so even though the `<button>` retains focus after clicking, the tooltip
won't stay visible once mouse user moves away.
the mouse hover styles have explicitly not been make to also apply to
:focus, so as to minimise the visual impact for
mouse users (though the tooltip remains visible)
 - but due to the default outline and the custom tooltip, it
should be fairly clear when keyboard users set focus to a copy button
too.
2017-04-16 13:57:33 -07:00
Pierre Vanduynslager
91b62941af Tabs/Scrollspy/.nav/.list-group/.active independent of markup (<nav>, .nav-item, <li> etc...) 2017-04-02 11:21:04 +02:00
Mark Otto
1a264be8b3 Redo semantic grid example and make it real in the docs 2017-03-26 13:23:49 -07:00
Mark Otto
b1b2cfbc9d fix markdown docs tables 2017-03-19 18:39:48 -07:00
Mark Otto
22ee8c1aee clear out docs css 2017-03-05 12:25:41 -08:00
Mark Otto
ed1de86794 Update spacer utilities (#22123)
* Drop -x and -y as they're all the same
- Also move -width to elsewhere in the vars because it makes no sense by spacers.
- Update values of -x and -y across main Sass and docs Sass.
* Update docs to reflect changes; link to spacing utils from options page
2017-03-05 12:20:44 -08:00
Geremia Taglialatela
2a45ca5106 Fix horizontal scrollbar appearing in docs (#21747)
On small screens (< 576px), all documentation pages containing
`.bd-example` styled tags, show the horizontal scrollbar because of a
wrong horizontal margin property.

This PR sets the horizontal margin on gutter width basis instead of rem.
2017-01-16 10:24:59 -08:00
Patrick H. Lauke
4adaa64d9a Add missing :focus styles
Double up :hover styles to also apply on :focus (particularly the
masthead button needs this, as otherwise it gives no visible indication
of being focused)
2017-01-14 22:54:55 +00:00
Mark Otto
f3d0fee91e fixes #21454 by revamping some docs styles for dropdowns 2017-01-03 19:24:24 -08:00
Mark Otto
f1229e8c47 autohide scrollbar for IE 2017-01-03 12:53:01 -08:00
Mark Otto
20b05e42e3 update rest of docs, remove navbar specific modifiers, fix docs example css 2017-01-02 11:48:51 -08:00
Nuno Arruda
c767a00d5d Update copyright years to 2017 2017-01-01 12:56:11 +11:00
Mark Otto
dac31ebf35 fixes #21445
remove broken example class from grid docs
2016-12-27 14:11:48 -08:00
Starsam80
7fdedbd5e6 Remove some leftover IE9/flex stuff 2016-12-25 15:32:34 -08:00
Mark Otto
6b419fdc3a nest modal examples css 2016-12-24 14:21:04 -08:00
Mark Otto
6fa6bf7123 add docs class for highlighting 2016-12-24 14:21:04 -08:00
Mark Otto
51f723d669 no more need for this 2016-12-22 16:52:25 -08:00
Mark Otto
d86a1dbfd4 redo custom docs navbar 2016-12-22 13:48:07 -08:00
Mark Otto
fd79471e8a override pos-f-t in examples 2016-12-22 13:48:07 -08:00
Mark Otto
c7be14d66b no need for this; we have max-width 100% on them now 2016-12-22 13:48:07 -08:00
Mark Otto
eb2e1102be Flexbox all the time (Drop IE9 support and remove $enable-flex option) (#21389)
* remove the $enable-flex variable option

* remove bootstrap-flex.css dist file and it's grunt task

* remove the separate flex css file for docs; it's all the same now

* remove flexbox docs (porting some to the main grid docs in next commit)

* clean up few grid docs bits to simplify copy, start to mention flexbox

* port relevant flexbox-grid.md content to grid.md

- clean up mixins
- update how it works section
- bring over sizing and alignment sections

* remove the $enable-flex from the options.md page

* update lead paragraph to mention flexbox

* update migration to mention loss of ie9 support

* remove mention of flexbox dist file

* clarify IE support

* making a note

* remove flexbox variant mentions from component docs

- updates docs for media object, navs, list group, and cards to consolidate docs
- no more need to callout flexbox variants since it's now the default

* remove $enable-flex if/else from sass files

* remove flex dist files

* update scss lint property order to account for flex properties

* linting

* change to numberless classes for autosizing, wrap in highlighting div

* bump gruntfile and postcss to ie10

* redo intro sections

* rearrange

* phew, redo hella grid docs

- rearrange all the things
- consolidate some bits

* remove reference to flexbox mode

* more border action for demo

* Make some changes to the .card's in .card-deck's to ensure footers align to the bottom
2016-12-21 20:26:17 -08:00
Starsam80
08e36a3cc9 Rename .col-xs to .col + some other cleanup (#21222)
* Use `breakpoint-min` instead of a counter

* Remove 'xs' from flexbox grid
2016-11-27 22:47:00 -08:00
Starsam80
8d031090d0 Rename .flex-xs-* and .flex-items-xs-* to .flex-* and .flex-items-* (#21218)
* Clean up _flex.scss a little

This commit just cleans up the formating of _flex.scss by changing
it so that it uses a single `@include media-breakpoint-up` instead
of multiple. It also aligns all of the CSS properties so it looks
a bit nicer.

* Remove `-xs` from flex classes
2016-11-27 15:19:27 -08:00
Mark Otto
095ea0b795 Border utilities (#21213)
* grunt

* add border utilities for removing borders

* clean up comments

* add basic border docs

* docs styles for border utils
2016-11-26 16:44:16 -08:00
Bardi Harborow
c104709193 Fix padding on .bg-faded demo. 2016-11-16 16:16:35 +11:00
Bardi Harborow
3ae450e74c Render bash and powershell prompts with ::before. 2016-10-10 14:31:34 +11:00
Bardi Harborow
2e69dfa8c1 Fix broken/redirected links, moving to HTTPS where possible. (#20557) 2016-10-03 09:55:59 -07:00
Kovah
0ef64d89f7 Add breakpoint-specific gutters. 2016-09-13 23:02:56 -05:00
Mark Otto
4a63dc62bf Update ads code and styles (also fixes #20477 in different way) 2016-08-21 22:38:08 -07:00
Mark Otto
7efdd7720a Fixes #20382: Import the flexbox utilities into the docs flex stylesheet 2016-07-30 10:36:14 -07:00
Mark Otto
8e9a9a5960 Enable flexbox grid CSS on our docs page
- Creates new flexbox grid Sass file in our docs assets
- Updates the Gruntfile to compile said new Sass file and minify the output
- Update notice on flexbox docs page for how it works
- Only enable compiled flexbox grid CSS in hosted docs site, not in dev (for easier and specific debugging of all flexbox features)
2016-07-26 21:09:39 -07:00
Mark Otto
2f38e5167d fix doubled up padding in docs navbar 2016-07-25 12:30:10 -07:00
XhmikosR
47dc87e6c7 Fix typo in comment.
[ci skip]
2016-07-20 10:07:31 +03:00
Mark Otto
7071fe9c1b Fixes #17089 a bit 2016-06-12 21:18:23 -07:00
Chris Rebert
a90b36918f Add "The Bootstrap Authors" to copyright notices (#19936)
❤️❤️❤️ https://github.com/twbs/bootstrap/graphs/contributors
2016-05-20 09:04:31 -07:00
Mark Otto
80144d74d7 Merge branch 'v4-dev' into v4-forms-cleanup 2016-04-08 20:55:19 -05:00
Teo Dell'Amico
a0a157db93 Finish killing .center-block; fixes #19443
Replace the leftover instances with .m-x-auto (and .d-block when necessary)
Closes #19665
Refs #19102
[skip sauce]
2016-04-06 15:55:27 -07:00
Mark Otto
1a011c34c3 don't shrink nav font-size 2016-03-21 22:59:26 -07:00
Mark Otto
d9acd09351 lighter active 2016-03-21 22:56:45 -07:00
Mark Otto
00e20c7aec Make active navbar link weight 500 again 2016-03-21 22:56:26 -07:00
Mark Otto
325c1d4c3c spacing in docs example" 2016-02-09 01:12:58 -08:00
Mark Otto
e06d6365f8 Strip out .err from our syntax highlighting styles because it fucks up our placeholders in code snippets 2016-02-06 15:32:00 -08:00
Mark Otto
f127bc68a3 Merge branch 'v4-dev' into v4-grid-redux 2016-02-06 12:29:06 -08:00
Mark Otto
03ec195974 linter overhaul 2016-02-06 12:28:18 -08:00
Mark Otto
d043fe4eb2 disable linter 2016-02-06 12:27:44 -08:00
Mark Otto
414997baa8 flip things around again, no more base class, try out some new stuff to keep responsive flex grid working 2016-02-06 10:51:59 -08:00
Mark Otto
94999c98cf simpler, more specific docs example css 2016-02-06 01:47:40 -08:00
Mark Otto
44bcaffb95 Tweak docs example CSS for flexbox grid cols 2016-02-06 01:30:31 -08:00
Mark Otto
9a645ef51a Ensure docs grid example highlighting for flexbox mode 2016-02-06 00:47:19 -08:00
Mark Otto
ba37c37615 Redo line-height globally
- Rename -height to -height-base to match other vars
- Drop use of -height across the board and rely on it to be inherited
- Adjust padding of .dropdown-header to account for different line-height of h6 heading element (this needs refactoring for variables and rems also)
2016-02-03 19:45:13 -08:00