0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Commit Graph

47 Commits

Author SHA1 Message Date
XhmikosR
294fcddeac
docs css: minor cleanup (#29266) 2019-08-18 16:57:25 +03:00
Martijn Cuppens
8e26010d06 docs: fix tap targets (#29272) 2019-08-18 16:29:23 +03:00
XhmikosR
dd383ff27b Move favicon.ico and apple-touch-icon.png in hugo mounts. 2019-08-17 13:17:59 +03:00
XhmikosR
ecaefed920
Remove unneeded Stylelint suppressions. (#29222) 2019-08-07 17:26:04 +03:00
Mark Otto
d94148bf50
Responsive containers (follow-up to #29095) (#29118)
* Follow-up to #29095

This PR fixes the responsive containers that were added in #29095, originally stubbed out in #25631. Apologies to @browner12 for getting that wrong.

Fixes #25631.

* update navbar as well because we cannot reset all containers uniformly

* Update navbars example to include container-xl example to ensure containers match

* rewrite responsive containers docs, add table of max-widths

* Update container docs
- Move table up to the intro
- Remove the container example because it's actually hella confusing
- Update and link to grid example as a demo instead
2019-08-05 12:12:16 -07:00
Johann-S
dcba526775 remove underscore for static methods 2019-07-29 11:34:12 +02:00
XhmikosR
d39aa6f676
Update docs vendor libs (#29134)
* Update bs-custom-file-input.min.js to v1.3.2.
* Update anchor.min.js to v4.2.0.
2019-07-26 10:17:51 +03:00
Mark Otto
172d580db3 Fix busted hover/focus on sidebar 2019-07-25 10:25:39 +03:00
Mark Otto
3adcf3a954 Restore 7rem so that the sidebar is balanced on top and bottom 2019-07-25 10:25:39 +03:00
Martijn Cuppens
2f4f15c018 Sidebar theming tweaks 2019-07-25 10:25:39 +03:00
Mark Otto
0d1e259ecf Increase navbar link brightness for slightly better color contrast 2019-07-25 10:25:39 +03:00
Mark Otto
94693f899c Split up docs _nav.scss
- _navbar.scss for all main navbar code
- new _subnav.scss to move all subnav styles into
2019-07-25 10:25:39 +03:00
Mark Otto
2494140689 Restore height and overflow on docs sidebar 2019-07-25 10:25:39 +03:00
Martijn Cuppens
b2ae6a6a94 Apply at-mixin-argumentless-call-parentheses: always stylelint rule 2019-07-24 10:31:49 +03:00
Mark Otto
114a0ee193 Rebuild the dist to pickup new utilities file (#29105)
Dist after adding new utils file
2019-07-24 09:13:50 +03:00
Johann-S
a76c13589d fix docs bad use of private methods to change title of our tooltips (#29111) 2019-07-23 16:18:41 +03:00
XhmikosR
025f69cb20 Fix subnavbar active style. 2019-07-22 17:13:44 +03:00
XhmikosR
3521947611 Disable the !default rule for our docs variables. 2019-07-22 17:13:44 +03:00
XhmikosR
8780d9360a Use the background shorthand. 2019-07-22 17:13:44 +03:00
XhmikosR
3f27053c44 docs: use the escape_svg function. 2019-07-22 17:13:44 +03:00
Martijn Cuppens
b4c4223409 Remove card columns in favor of masonry grid 2019-07-22 16:08:58 +03:00
Mark Otto
e7890d1562 Move search styles, prep for responsive containers in docs 2019-07-21 21:44:32 -07:00
Mark Otto
5a0be01e3e Make subnav and sidebar work on mobile too 2019-07-21 21:44:32 -07:00
Mark Otto
956cbbc6b7 make docs navbar more usable on mobile 2019-07-21 21:44:32 -07:00
Mark Otto
b08d2b6adc Add :focus to all new :hover selectors 2019-07-21 21:44:32 -07:00
Mark Otto
634344c003
v4/v5: Add responsive containers (#29095)
* create responsive containers

provide more flexibility and allow the user to determine when containers switch from fluid to fixed width.

* fix the base container code

this commit fixes the non-media portion of the generated CSS. I learned about the `@extends` directive and was able to put it to good use.

I create a new temporary map that contains all the main `$container-max-widths` and join it to our 2 special cases of 'xs' and 'fluid'.  Then we loop through that and, with the appropriate infixes, extend our placeholder

* formatting for style

forgot to run my tests before the last push, i think these are better.

* finish incomplete comment

* fix the responsive containers

using the `@extend` directive I was able to clean up this code

* fix responsive containers in the navbar

mostly we just look through all of our breakpoints so we can include all of the responsive container classes in the tweaks we have to do for the navbar (redeclaring flex properties, don't double up on padding, etc)

* Simplify container extends

* Simplify navbar containers

* Rearrange, add comments, ensure everything is nested in $enable-grid-classes

* Reduce new CSS by using attribute selector

We avoid using `@extend` whenever possible, and this is more readable

* Update _grid.scss

* Update _navbar.scss

* Add docs for responsive containers, redesign the container layout page

* Add to the Grid example
2019-07-21 17:38:36 -07:00
XhmikosR
c0a1cfa075 SVGs: lowercase hex values. 2019-07-19 09:19:56 +03:00
XhmikosR
e09f306b6b Use has-children. 2019-07-17 16:21:47 +03:00
XhmikosR
cc2d55b8f2 Fix inline SVG. 2019-07-17 16:21:47 +03:00
Mark Otto
ebcc3ff9af Move sidebar icon to CSS 2019-07-17 16:21:47 +03:00
XhmikosR
e4dc6b84b1 Move inline JS to application.js. 2019-07-17 14:52:11 +03:00
XhmikosR
9be99c9b34 Ignore sw.js. 2019-07-17 14:52:11 +03:00
XhmikosR
ef98fbdb84 Fix application.js after aaf03bd 2019-07-17 14:52:11 +03:00
XhmikosR
d39977271c
Fix bootstrap-themes.png. (#29061)
For some reason the old image was bad quality.
2019-07-17 14:36:14 +03:00
Mark Otto
39c4ca3970 dist v5 2019-07-12 16:56:26 -05:00
Mark Otto
aaf03bdc9e
v5: Forms update (#28450)
* Initial spike of consolidated form checks

* Stub out forms rearrangement

- Prepping to drop non-custom file and range inputs
- Prepping to merge custom and native checks and radios (with switches)
- Prepping to merge custom select with form select
- Moving docs arround so forms has it's own area given volume of CSS

* Move input group Sass file to forms subdir

* Start to split and move the docs around

* Simpler imports

* Copyediting

* delete overview file

* Remove commented out code

* remove the custom-forms import

* rewrite flex-check as form-check, replace all custom properties

* Remove old forms doc

* stub out new subpage link section

* update migration guide

* Update nav, forms overview in page nav, and descriptions

* fix check bg position

* fix margin-top calculation

* rename .custom-select to .form-select

* Update validation styles for new checks

* add some vertical margin, fix inline checks

* fix docs examples

* better way to do this contents stuff, redo the toc while i'm at it

* page restyle for docs while here

* un-callout that, edit text

* redo padding on toc

* fix toc

* start to cleanup checks docs

* Rewrite Markdown tables into HTML

* Redesign tables, redo their docs

* Replace Open Iconic icons with custom Bootstrap icons

* Redesign the docs navbar, add a subheader, redo the sidebar

* Redesign docs homepage a bit

* Simplify table style overrides for docs tables

* Simplify docs typography for page titles and reading line length

* Stub out icons page

* Part of sidebar update, remove migration from nav.yml

* Move toc CSS to separate partial

* Change appearance of overview page

* fix sidebar arrow direction

* Add footer to docs layout

* Update descriptions

* Drop the .form-group class for margin utilities

* Remove lingering form-group-margin-bottom var

* improve footer spacing

* add headings to range page

* uncomment form range css

* Rename .custom-range to .form-range

* Drop unused docs var

* Uncomment the comment

* Remove unused variable

* Fix radio image sizing

* Reboot update: reset horizontal ul and ol padding

* de-dupe IDs

* tweak toc styles

* nvm, fix dropdown versions stuff

* remove sidebar nav toggle for now

* broken html

* fix more broken html, move css

* scss linting

* comment out broken helper docs

* scope styles

* scope styles

* Fixes #25540 and fixes #26407 for v5 only

* Update sidebar once more

* Match new sidenav order

* fix syntax error

* Rename custom-file to form-file, update paths, update migration docs for previous changes in #28696

* rename back

* fix size and alignment

* rename that back too
2019-07-12 16:52:33 -05:00
Martijn Cuppens
2ac2a5a91e Removal of one of the most iconic components of Bootstrap: the jumbotron (#28876) 2019-06-07 14:44:25 +03:00
Shohei Yoshida
543ff4e3e5 Clean component examples CSS (#28872)
* Remove unused classes/styles and use utilities instead of specific styles
* Use `getElementById` instead of `querySelector`
2019-06-06 09:04:48 +03:00
Mark Otto
1d4d9f8d89 Drop all hover mixins
Previously deprecated in v4.x, this clears out the now unused Sass option and removes some unused mixins. Arguably we could remove more, but I like the hover-focus mixin and we make extensive use of it across the project.
2019-05-08 20:58:07 +03:00
Johann-S
45a1954740 fix progress bar animation, remove forEach not needed currently 2019-05-05 17:45:39 +02:00
XhmikosR
091aa1e9fd
v5 dist (#28657) 2019-04-18 14:47:52 +03:00
XhmikosR
c6c9e322f7
_sidebar.scss: change ID to a class and type selector. (#28610) 2019-04-04 11:56:06 +03:00
XhmikosR
6672aea5a9
Remove http from docs search. (#28557)
We use only `https` for a few months now.
2019-03-26 12:49:45 +02:00
XhmikosR
6a82a2ebe8 Fix the chroma fix and use Sass more. 2019-03-13 19:22:59 +02:00
Bardi Harborow
6e16720b12 Workaround problematic Chroma bash highlighting. 2019-03-13 19:22:59 +02:00
XhmikosR
04a58887cd Update syntax highlighting styles to match the Chroma ones. 2019-03-13 19:22:59 +02:00
XhmikosR
d95d30029f Switch to Hugo.
No more Ruby dependency and most important more than 10 times less build time (at least on Windows)!
2019-03-13 19:22:59 +02:00