From 2bda49b00e23190ef368127b7d1d8f2763f5d801 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Mon, 21 Mar 2016 09:56:51 -0500 Subject: [PATCH] Solves #886 v4 class and variable prefix renaming from mdb- to bmd- --- docs/_includes/nav-docs.html | 2 +- docs/assets/scss/mdb/_sidebar.scss | 2 +- docs/examples/dashboard/example.js | 14 +-- docs/examples/dashboard/example.scss | 6 +- docs/examples/dashboard/index.html | 28 +++--- docs/examples/drawer/index.html | 16 +-- docs/examples/signin/index.html | 6 +- docs/material-design/buttons.md | 70 ++++++------- docs/material-design/collapse-inline.md | 8 +- docs/material-design/drawers.md | 86 ++++++++-------- docs/material-design/forms.md | 56 +++++------ docs/material-design/labels.md | 20 ++-- docs/material-design/list-groups.md | 36 +++---- docs/material-design/menus.md | 28 +++--- docs/material-design/test.md | 20 ++-- docs/migration.md | 18 ++-- js/src/base.js | 4 +- js/src/baseInput.js | 36 +++---- js/src/baseLayout.js | 16 +-- js/src/baseSelection.js | 2 +- js/src/bootstrapMaterialDesign.js | 6 +- js/src/checkboxInline.js | 2 +- js/src/collapseInline.js | 2 +- js/src/drawer.js | 12 +-- js/src/radio.js | 2 +- js/src/radioInline.js | 2 +- js/src/switch.js | 2 +- scss/_buttons.scss | 26 ++--- scss/_cards.scss | 6 +- scss/_drawer.scss | 58 +++++------ scss/_dropdown.scss | 12 +-- scss/_forms.scss | 56 +++++------ scss/_input-group.scss | 4 +- scss/_layout.scss | 24 ++--- scss/_list-group.scss | 4 +- scss/_nav.scss | 6 +- scss/_radios.scss | 18 ++-- scss/_switches.scss | 8 +- scss/_variables.scss | 2 +- scss/mixins/_buttons.scss | 44 ++++---- scss/mixins/_drawer.scss | 128 ++++++++++++------------ scss/mixins/_forms.scss | 60 +++++------ scss/mixins/_hover.scss | 2 +- scss/mixins/_layout.scss | 4 +- scss/mixins/_navs.scss | 2 +- scss/mixins/_variations.scss | 2 +- scss/plugins/_plugin-selectize.scss | 2 +- 47 files changed, 485 insertions(+), 485 deletions(-) diff --git a/docs/_includes/nav-docs.html b/docs/_includes/nav-docs.html index 448a96e1..d7425ccd 100644 --- a/docs/_includes/nav-docs.html +++ b/docs/_includes/nav-docs.html @@ -55,7 +55,7 @@ {% if group.title == "Migration" %} -
+
Bootstrap Reference Documentation

diff --git a/docs/assets/scss/mdb/_sidebar.scss b/docs/assets/scss/mdb/_sidebar.scss index 28caed9d..907ee65d 100644 --- a/docs/assets/scss/mdb/_sidebar.scss +++ b/docs/assets/scss/mdb/_sidebar.scss @@ -1,5 +1,5 @@ -.mdb-toc-item-reference { +.bmd-toc-item-reference { padding: .25rem .75rem; margin-top: 1rem; //margin-bottom: 1rem; diff --git a/docs/examples/dashboard/example.js b/docs/examples/dashboard/example.js index da4dcc23..4d7c1ee1 100644 --- a/docs/examples/dashboard/example.js +++ b/docs/examples/dashboard/example.js @@ -1,5 +1,5 @@ function clearDrawerClasses($container) { - var classes = ["mdb-drawer-f-l", "mdb-drawer-f-r", "mdb-drawer-f-t", "mdb-drawer-f-b"]; + var classes = ["bmd-drawer-f-l", "bmd-drawer-f-r", "bmd-drawer-f-t", "bmd-drawer-f-b"]; $.each(classes, function (index, value) { $container.removeClass(value) @@ -7,7 +7,7 @@ function clearDrawerClasses($container) { } function setDrawerPosition(position) { - var $container = $('.mdb-layout-container') + var $container = $('.bmd-layout-container') clearDrawerClasses($container) $container.addClass(position) @@ -18,26 +18,26 @@ $(document).ready(function() { $.each(buttons, function (index, position) { $('#' + position).click(function() { - setDrawerPosition('mdb-' + position) + setDrawerPosition('bmd-' + position) }) }) // add a toggle for drawer visibility that shows anytime $('#drawer-visibility').click(function () { - var $container = $('.mdb-layout-container') + var $container = $('.bmd-layout-container') // once clicked, just do away with responsive marker - //$container.removeClass('mdb-drawer-in-md') + //$container.removeClass('bmd-drawer-in-md') var $btn = $(this) var $icon = $btn.find('.material-icons') if ($icon.text() == 'visibility') { - $container.addClass('mdb-drawer-out') // demo only, regardless of the responsive class, we want to force it close + $container.addClass('bmd-drawer-out') // demo only, regardless of the responsive class, we want to force it close $icon.text('visibility_off') $btn.attr('title', 'Drawer allow responsive opening') } else { - $container.removeClass('mdb-drawer-out') // demo only, regardless of the responsive class, we want to force it open + $container.removeClass('bmd-drawer-out') // demo only, regardless of the responsive class, we want to force it open $icon.text('visibility') $btn.attr('title', 'Drawer force closed') } diff --git a/docs/examples/dashboard/example.scss b/docs/examples/dashboard/example.scss index 2c37aec3..c3707fcf 100644 --- a/docs/examples/dashboard/example.scss +++ b/docs/examples/dashboard/example.scss @@ -19,7 +19,7 @@ a, a:hover { color: rgba(255, 255, 255, 0.56); } -.mdb-layout-header { +.bmd-layout-header { background-color: $grey-100; color: $grey-600; @@ -33,12 +33,12 @@ a, a:hover { } } -.mdb-layout-content { +.bmd-layout-content { padding-top: .5rem; background-color: $grey-100; } -.mdb-layout-drawer { +.bmd-layout-drawer { background-color: $blue-grey-800; color: $blue-grey-50; diff --git a/docs/examples/dashboard/index.html b/docs/examples/dashboard/index.html index ce15e411..aad5f413 100644 --- a/docs/examples/dashboard/index.html +++ b/docs/examples/dashboard/index.html @@ -8,8 +8,8 @@ js: example.js -
-
+
+
-
+