Web 的 UI 框架,Foundation 6.0.4 發布

jopen 9年前發布 | 6K 次閱讀 Foundation

Foundation 是一個易用、強大而且靈活的框架,用于構建基于任何設備上的 Web 應用。提供多種 Web 上的 UI 組件,如表單、按鈕、Tabs 等等。

Foundation 6.0.4 發布,更新如下:

重大更新

Yes, there are a few. We're going to abuse semver a little bit at the beginning here while we massage the Sass API.

  • Renamed Sass function hasvalue() to has-value(). The old function name will be removed in Foundation 6.1.

    </li>

  • Removed Sass function v-align-center() in favor of vertical-center()—see below. v-align-center() will be removed in Foundation 6.1.

    </li> </ul>

    Sass 設置變化

    The following changes were made to _settings.scss. All new projects will get these changes automatically.

    • Removed $text-direction, which was a duplicate of $global-text-direction.

      </li>

    • Removed $global-namespace, which is non-functioning.

      </li>

    • Added $offcanvas-fixed-reveal: true.

      </li>

    • Added $dropdownmenu-border: 1px solid $medium-gray.

      </li> </ul> 新特性

      • Okay, it's not new new, but support for data-options as a way to pass parameters to JavaScript plugins is back.

        </li>

      • If an off-canvas menu is revealed on a larger screen, you have the choice to make the menu fixed position or not. This is handled by a new Sass variable, $offcanvas-fixed-reveal. The feature is enabled by default.

        </li>

      • We added a few new mixins for vertically and horizontally centering items in CSS. They use the position: absolute; plus transform: translate(-50%, -50%); trick we all know and love.

        </li>

        • vertical-center() will vertically align an element.

          </li>

        • horizontal-center() will horizontally align an element.

          </li>

        • absolute-center() will vertically and horizontally align an element.

          </li>

        • These functions replace the old vertical-center() and v-align-center() mixins, which did something similar, but were somewhat confusingly named.

          </li> </ul> </ul>

          Thanks to @HugoGiraudel for sharing his positioning mixins with us!

          Bug 修復

          • Added !default flags to components missing them.

            </li>

          • Dropdown menus were refactored to better handle click and hover states, and function much faster overall.

            </li>

          • Fixed pagination arrows not appearing on next/previous links.

            </li>

          • Fixed drilldown menus not working with RTL pages.

            </li>

          • Fixed z-index issues with revealed off-canvas menus, which prevented anything inside the menu from being clicked on.

            </li> </ul>

            下載頁面:v6.0.4


             本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
             轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
             本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!