Bootstrap4正式版發(fā)布!帶來(lái)新的示例和新的主題

Bootstrap 4.0.0 正式版現(xiàn)已發(fā)布,更新內(nèi)容方面,相對(duì)于之前的測(cè)試版,正式版沒有重大的改變,但做出了一些關(guān)鍵的改進(jìn),并解決了一些棘手的錯(cuò)誤,以及帶來(lái)新的示例和新的主題!
新的示例
幾乎每個(gè)示例都經(jīng)過穩(wěn)定的 v4 版本的重大修改,其中刪除了一些過時(shí)的示例,添加了一些新的示例,并且徹底改變了其他一些示例。
當(dāng)然,穩(wěn)定版中依然有一些已知的問題尚未修復(fù),預(yù)計(jì)在下一個(gè)小版本更新時(shí)會(huì)修復(fù),如 Input groups, validation, 和 rounded corners。
主題方面,Bootstrap 的主題今年將得到重大更新,官方表示將會(huì)推出十個(gè)全新的主題。當(dāng)前的目標(biāo)是第一季度推出的主題都建立在 Bootstrap 4 上(都沒有 v3 版本的)。
最新版下載地址:Bootstrap 4
Highlights
Brand new examples and overhauls for existing ones.
Additional border utilities have been added and the default border-color for them darkened from $gray-200 to $gray-300.
Pagination focus styles now match button and input focus state.
Added responsive .order-0 classes to reset column order.
Improved examples of form validation documentation by adding tooltip examples and more.
New documentation added for using our CSS variables to the Theming page.
Improved consistent across browsers when printing.
Sass map extends and docs
New and improved print display utilities
CSS
#24710: $component-active-bg and $component-active-color are partially useful.
#24821: Mixins form-control-focus and button-variant output invalid box-shadow value with shadows enabled.
#24915: Added new .order-last grid classes to match existing .grid-first ones.
#25021: Expand border utilities to include top, right, bottom, left.
#25035: Add variables for popover and tooltip font-size.
#25072: Move alert theme-color() levels to variables.
#25101: Extend $spacers and $sizes Sass maps the same way as we do our color maps to allow modifying, removing, and replacing key-value pairs.
#25117: Remove hardcoded value for navbar's .nav-link horizontal padding.
#25123: Darken $gray-600 by 10% for AA contrast.
#25137: Add .order-0 to the flexbox grid ordering helpers.
#25145: Update outline buttons to match default buttons—only show focus styles for the focused active state and not the normal active state.
#25149: Update pagination focus styles.
#25152: Reimplement input group addon support for textareas.
#25164: Improve printing cross-browser with the addition of new styles and variables.
#25167: Fixed color for disabled buttons.
#25169: Using the $custom-select-height variable to set the custom select height instead of $input-height.
#25173: Remove double borders for custom select and custom file.
#25177: Patch fractional viewport widths to work around Safari rounding bug.
#25210: Add validation feedback/tooltip support to .form-check-inputs.
#25250: Remove touch-action:manipulation click optimization.
#25264: Fix breakpoint mixins for custom breakpoint maps.
#25269: Prevent print utility display classes from overriding all other display utilities.
#25270: Deprecate hover media query shim and mixins.
#25279: Add direct children selectors to avoid cascading styles into a menu form.
#25308: Add display utilities to bootstrap-grid.scss.
#25317: Consistently use :disabled rather than [disabled] selector.
#25338: Use .list-group-item-action for list group item variant.
#25339: Outline button hover color.
JS
#25121: Allow nested structure for accordions.
#25146: Improve ESLint rules.
#25161: Multiple accordion support.
#25199: Check for window before window.QUnit.
Docs
#24751: Add Wall of Browser Bugs entry for Chrome SVG performance bug (#24673).
#24821: Mixins form-control-focus and button-variant output invalid box-shadow value with shadows enabled.
#24898: Overhaul existing and add new examples.
#24994: Add docs about active menu items.
#25071: Show JS button behaviors work on single buttons and button groups.
#25095: Add examples of disabled tooltip and popover triggers.
#25099: Wall of Browser Bugs: position:sticky support landed in MS Edge.
#25108: Update Theming docs for removing map items.
#25111: Add .modal-dialog-centered class to vertically centered modal example.
#25113: Update markup for new custom files in input groups.
#25115: Updated docs for translating "Browse" text into other languages.
#25116: Remove unnecessary align-middle class from Navbar docs.
#25138: docs: fix double copy button.
#25140: Move inline JS outside of HTML.
#25142: Fix overflow issue in IE.
#25143: Add tooltip and valid feedback validation examples.
#25144: Mention $custom-file-text change in Migration docs.
#25148: Document border utilities.
#25162: Remove incorrect roles from accordion, tweak/expand accessibility info, use buttons for accordion.
#25163: Expand keyboard advice for tooltips, clarify what manual trigger does in table.
#25165: Add new Approach docs page.
#25176: Add some documentation on using CSS variables to our Theming docs page.
#25229: Update browser compatibility note for position: sticky since Edge supports it now.
#25244: Fix invalid "constraint validation API" URL in docs.
#25261: Fix variable name in display utility class naming.
#25282: Use the SRI hashes for the live site's assets.
#25289: Add .list-group-flush` to list group docs.
#25302: Add example of a Spanish translation for custom file input.
#25325: Mention .input-group-text in migration docs for Beta 3.
#25355: Remove note about Opera 12 not supporting CSS3 animations.
Build
#25083, #25192: Update devDependencies and gems.
#25139: Add docs-github-serve script for local serving the github target.
Meta
#25080: Include JavaScript map files in NuGet packages.
相關(guān)文章
AI浪潮,人工智能賦能寫作 百家號(hào)發(fā)布ai“創(chuàng)作大腦”平臺(tái)
這篇文章主要介紹了AI浪潮,人工智能賦能寫作 百家號(hào)發(fā)布ai“創(chuàng)作大腦”平臺(tái),小編覺得還是挺不錯(cuò)的,具有一定借鑒價(jià)值,需要的朋友可以參考下2018-01-22聯(lián)通手機(jī)營(yíng)業(yè)廳App iOS版更新5.6.2版 國(guó)內(nèi)部分地區(qū)上線銷戶功能
聯(lián)通手機(jī)營(yíng)業(yè)廳App iOS版日前更新到了5.6.2版本,這次更新后的app已經(jīng)上線了銷戶這個(gè)功能,那么使用這個(gè)功能是如何銷戶的呢?下文中會(huì)有詳細(xì)的介紹2018-01-19- 這篇文章主要為大家分享了信息技術(shù)教師資格證面試真題最新考題,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2018-01-18
18年教師資格證筆試報(bào)名開始了 想成為一名信息技術(shù)老師千萬(wàn)不要錯(cuò)過
想成為一名信息技術(shù)老師的第一步就是需要參加教師資格證考試,并順利獲得教師資格證證書,本文小編就為大家分享了一份教師資格證考試的報(bào)名流程,感興趣的小伙伴們可以參考2018-01-18- 蘋果啟用微信公眾號(hào)無(wú)疑是在本地化方面邁出的一大步,與近些年在華大舉擴(kuò)張Apple Store門店、提升iCloud本地化響應(yīng)速度等措施齊頭并進(jìn)的是,微信公眾號(hào)無(wú)疑將會(huì)令A(yù)pple更直2018-01-18
搭載驍龍835處理器的筆記本可以完美運(yùn)行exe程序 性能媲美Intel
目前搭載驍龍835處理器的筆記本有聯(lián)想發(fā)布的Miix 630及惠普Envy x2和華碩Nova Go,這種筆記本已經(jīng)可以運(yùn)行Win32 exe程序,同時(shí)同時(shí)標(biāo)配4G LTE功能,續(xù)航能力也在20小時(shí)以上2018-01-18蘋果這是怎么了?蘋果罕見再遭評(píng)級(jí)下調(diào),股價(jià)在盤前交易中一度下跌0.3%
騰訊科技訊1月17日消息,華爾街的一家分析機(jī)構(gòu)預(yù)測(cè)稱,蘋果iPhone今年的表現(xiàn)將令人失望,甚至遭俄起訴蘋果公司,為此,該分析機(jī)構(gòu)下調(diào)了蘋果股票評(píng)級(jí),這也是蘋果股票評(píng)級(jí)2018-01-18- 近日,華為沒有爭(zhēng)取到與AT&T合作的機(jī)會(huì),并遭到美國(guó)對(duì)華為手機(jī)的大力封殺,那么,同為國(guó)產(chǎn)的中興卻為何能與AT&T合作呢?對(duì)此,本文就為大家進(jìn)行解答2018-01-17
谷歌悄然返華:中國(guó)大陸第三個(gè)辦公室落地深圳
近日,谷歌地圖網(wǎng)頁(yè)在國(guó)內(nèi)已可以正常訪問,越來(lái)越多的跡象顯示,八年前退出的谷歌正低調(diào)重返中國(guó)大陸,詳情請(qǐng)了解本文2018-01-17中國(guó)互聯(lián)網(wǎng)企業(yè)家首個(gè)!李彥宏登上時(shí)代周刊封面:榮獲創(chuàng)新者頭銜
這篇文章主要介紹了中國(guó)互聯(lián)網(wǎng)企業(yè)家首個(gè)!李彥宏登上時(shí)代周刊封面:榮獲創(chuàng)新者頭銜,小編覺得還是挺不錯(cuò)的,這里分享給大家,歡迎閱讀2018-01-20