diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..214388f --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,3 @@ +> 1% +last 2 versions +not dead diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..5592b18 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,14 @@ +module.exports = { + root: true, + env: { + node: true + }, + extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"], + parserOptions: { + parser: "babel-eslint" + }, + rules: { + "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", + "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off" + } +}; diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..b798ce6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Build and Deploy site + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Install + uses: borales/actions-yarn@v2.0.0 + with: + cmd: install + - name: Build + uses: borales/actions-yarn@v2.0.0 + with: + cmd: build + - name: Install SSH Client + uses: webfactory/ssh-agent@v0.2.0 + with: + ssh-private-key: ${{ secrets.DEPLOY_KEY }} + - name: Deploy + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + SSH: true + BRANCH: gh-pages + FOLDER: 'dist' + CLEAN: true diff --git a/.gitignore b/.gitignore index ce042e3..11f5d71 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,22 @@ -.bundle -_site -.sass-cache -.jekyll-metadata -.env +.DS_Store +node_modules +/dist +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4796cb0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "PrismarineJS/minecraft-assets"] + path = PrismarineJS/minecraft-assets + url = git@github.com:PrismarineJS/minecraft-assets.git +[submodule "PrismarineJS/minecraft-data"] + path = PrismarineJS/minecraft-data + url = git@github.com:PrismarineJS/minecraft-data.git diff --git a/404.html b/404.html deleted file mode 100644 index c472b4e..0000000 --- a/404.html +++ /dev/null @@ -1,24 +0,0 @@ ---- -layout: default ---- - - - -
-

404

- -

Page not found :(

-

The requested page could not be found.

-
diff --git a/Gemfile b/Gemfile deleted file mode 100644 index feea084..0000000 --- a/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source "https://rubygems.org" -ruby RUBY_VERSION - -# If you want to use GitHub Pages -# uncomment the line below. To upgrade -gem "github-pages", group: :jekyll_plugins - -# bundle exec github-pages versions --gemfile -gem 'jekyll', '3.7.4' -gem 'jekyll-sass-converter', '1.5.2' -gem 'kramdown', '1.17.0' -gem 'jekyll-commonmark-ghpages', '0.1.5' -gem 'liquid', '4.0.0' -gem 'rouge', '2.2.1' -gem 'github-pages-health-check', '1.16.1' -gem 'jekyll-redirect-from', '0.14.0' -gem 'jekyll-sitemap', '1.2.0' -gem 'jekyll-feed', '0.11.0' -gem 'jekyll-gist', '1.5.0' -gem 'jekyll-paginate', '1.1.0' -gem 'jekyll-coffeescript', '1.1.1' -gem 'jekyll-seo-tag', '2.5.0' -gem 'jekyll-github-metadata', '2.12.1' -gem 'jekyll-avatar', '0.6.0' -gem 'jekyll-remote-theme', '0.3.1' -gem 'jemoji', '0.10.2' -gem 'jekyll-mentions', '1.4.1' -gem 'jekyll-relative-links', '0.6.0' -gem 'jekyll-optional-front-matter', '0.3.0' -gem 'jekyll-readme-index', '0.2.0' -gem 'jekyll-default-layout', '0.1.4' -gem 'jekyll-titles-from-headings', '0.5.1' -gem 'listen', '3.1.5' -gem 'activesupport', '4.2.10' -gem 'jekyll-swiss', '0.4.0' -gem 'minima', '2.5.0' -gem 'jekyll-theme-primer', '0.5.3' -gem 'jekyll-theme-architect', '0.1.1' -gem 'jekyll-theme-cayman', '0.1.1' -gem 'jekyll-theme-dinky', '0.1.1' -gem 'jekyll-theme-hacker', '0.1.1' -gem 'jekyll-theme-leap-day', '0.1.1' -gem 'jekyll-theme-merlot', '0.1.1' -gem 'jekyll-theme-midnight', '0.1.1' -gem 'jekyll-theme-minimal', '0.1.1' -gem 'jekyll-theme-modernist', '0.1.1' -gem 'jekyll-theme-slate', '0.1.1' -gem 'jekyll-theme-tactile', '0.1.1' -gem 'jekyll-theme-time-machine', '0.1.1' diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index b8cf956..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,292 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - activesupport (4.2.10) - i18n (~> 0.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - addressable (2.5.2) - public_suffix (>= 2.0.2, < 4.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.11.1) - colorator (1.1.0) - commonmarker (0.17.13) - ruby-enum (~> 0.5) - concurrent-ruby (1.1.5) - dnsruby (1.61.2) - addressable (~> 2.5) - em-websocket (0.5.1) - eventmachine (>= 0.12.9) - http_parser.rb (~> 0.6.0) - ethon (0.12.0) - ffi (>= 1.3.0) - eventmachine (1.2.7) - execjs (2.7.0) - faraday (0.15.4) - multipart-post (>= 1.2, < 3) - ffi (1.10.0) - forwardable-extended (2.6.0) - gemoji (3.0.0) - github-pages (197) - activesupport (= 4.2.10) - github-pages-health-check (= 1.16.1) - jekyll (= 3.7.4) - jekyll-avatar (= 0.6.0) - jekyll-coffeescript (= 1.1.1) - jekyll-commonmark-ghpages (= 0.1.5) - jekyll-default-layout (= 0.1.4) - jekyll-feed (= 0.11.0) - jekyll-gist (= 1.5.0) - jekyll-github-metadata (= 2.12.1) - jekyll-mentions (= 1.4.1) - jekyll-optional-front-matter (= 0.3.0) - jekyll-paginate (= 1.1.0) - jekyll-readme-index (= 0.2.0) - jekyll-redirect-from (= 0.14.0) - jekyll-relative-links (= 0.6.0) - jekyll-remote-theme (= 0.3.1) - jekyll-sass-converter (= 1.5.2) - jekyll-seo-tag (= 2.5.0) - jekyll-sitemap (= 1.2.0) - jekyll-swiss (= 0.4.0) - jekyll-theme-architect (= 0.1.1) - jekyll-theme-cayman (= 0.1.1) - jekyll-theme-dinky (= 0.1.1) - jekyll-theme-hacker (= 0.1.1) - jekyll-theme-leap-day (= 0.1.1) - jekyll-theme-merlot (= 0.1.1) - jekyll-theme-midnight (= 0.1.1) - jekyll-theme-minimal (= 0.1.1) - jekyll-theme-modernist (= 0.1.1) - jekyll-theme-primer (= 0.5.3) - jekyll-theme-slate (= 0.1.1) - jekyll-theme-tactile (= 0.1.1) - jekyll-theme-time-machine (= 0.1.1) - jekyll-titles-from-headings (= 0.5.1) - jemoji (= 0.10.2) - kramdown (= 1.17.0) - liquid (= 4.0.0) - listen (= 3.1.5) - mercenary (~> 0.3) - minima (= 2.5.0) - nokogiri (>= 1.8.5, < 2.0) - rouge (= 2.2.1) - terminal-table (~> 1.4) - github-pages-health-check (1.16.1) - addressable (~> 2.3) - dnsruby (~> 1.60) - octokit (~> 4.0) - public_suffix (~> 3.0) - typhoeus (~> 1.3) - html-pipeline (2.10.0) - activesupport (>= 2) - nokogiri (>= 1.4) - http_parser.rb (0.6.0) - i18n (0.9.5) - concurrent-ruby (~> 1.0) - jekyll (3.7.4) - addressable (~> 2.4) - colorator (~> 1.0) - em-websocket (~> 0.5) - i18n (~> 0.7) - jekyll-sass-converter (~> 1.0) - jekyll-watch (~> 2.0) - kramdown (~> 1.14) - liquid (~> 4.0) - mercenary (~> 0.3.3) - pathutil (~> 0.9) - rouge (>= 1.7, < 4) - safe_yaml (~> 1.0) - jekyll-avatar (0.6.0) - jekyll (~> 3.0) - jekyll-coffeescript (1.1.1) - coffee-script (~> 2.2) - coffee-script-source (~> 1.11.1) - jekyll-commonmark (1.2.0) - commonmarker (~> 0.14) - jekyll (>= 3.0, < 4.0) - jekyll-commonmark-ghpages (0.1.5) - commonmarker (~> 0.17.6) - jekyll-commonmark (~> 1) - rouge (~> 2) - jekyll-default-layout (0.1.4) - jekyll (~> 3.0) - jekyll-feed (0.11.0) - jekyll (~> 3.3) - jekyll-gist (1.5.0) - octokit (~> 4.2) - jekyll-github-metadata (2.12.1) - jekyll (~> 3.4) - octokit (~> 4.0, != 4.4.0) - jekyll-mentions (1.4.1) - html-pipeline (~> 2.3) - jekyll (~> 3.0) - jekyll-optional-front-matter (0.3.0) - jekyll (~> 3.0) - jekyll-paginate (1.1.0) - jekyll-readme-index (0.2.0) - jekyll (~> 3.0) - jekyll-redirect-from (0.14.0) - jekyll (~> 3.3) - jekyll-relative-links (0.6.0) - jekyll (~> 3.3) - jekyll-remote-theme (0.3.1) - jekyll (~> 3.5) - rubyzip (>= 1.2.1, < 3.0) - jekyll-sass-converter (1.5.2) - sass (~> 3.4) - jekyll-seo-tag (2.5.0) - jekyll (~> 3.3) - jekyll-sitemap (1.2.0) - jekyll (~> 3.3) - jekyll-swiss (0.4.0) - jekyll-theme-architect (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-cayman (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-dinky (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-hacker (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-leap-day (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-merlot (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-midnight (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-minimal (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-modernist (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-primer (0.5.3) - jekyll (~> 3.5) - jekyll-github-metadata (~> 2.9) - jekyll-seo-tag (~> 2.0) - jekyll-theme-slate (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-tactile (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-time-machine (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-titles-from-headings (0.5.1) - jekyll (~> 3.3) - jekyll-watch (2.1.2) - listen (~> 3.0) - jemoji (0.10.2) - gemoji (~> 3.0) - html-pipeline (~> 2.2) - jekyll (~> 3.0) - kramdown (1.17.0) - liquid (4.0.0) - listen (3.1.5) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - ruby_dep (~> 1.2) - mercenary (0.3.6) - mini_portile2 (2.4.0) - minima (2.5.0) - jekyll (~> 3.5) - jekyll-feed (~> 0.9) - jekyll-seo-tag (~> 2.1) - minitest (5.11.3) - multipart-post (2.0.0) - nokogiri (1.10.8) - mini_portile2 (~> 2.4.0) - octokit (4.13.0) - sawyer (~> 0.8.0, >= 0.5.3) - pathutil (0.16.2) - forwardable-extended (~> 2.6) - public_suffix (3.0.3) - rb-fsevent (0.10.3) - rb-inotify (0.10.0) - ffi (~> 1.0) - rouge (2.2.1) - ruby-enum (0.7.2) - i18n - ruby_dep (1.5.0) - rubyzip (2.0.0) - safe_yaml (1.0.5) - sass (3.7.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sawyer (0.8.1) - addressable (>= 2.3.5, < 2.6) - faraday (~> 0.8, < 1.0) - terminal-table (1.8.0) - unicode-display_width (~> 1.1, >= 1.1.1) - thread_safe (0.3.6) - typhoeus (1.3.1) - ethon (>= 0.9.0) - tzinfo (1.2.5) - thread_safe (~> 0.1) - unicode-display_width (1.5.0) - -PLATFORMS - ruby - -DEPENDENCIES - activesupport (= 4.2.10) - github-pages - github-pages-health-check (= 1.16.1) - jekyll (= 3.7.4) - jekyll-avatar (= 0.6.0) - jekyll-coffeescript (= 1.1.1) - jekyll-commonmark-ghpages (= 0.1.5) - jekyll-default-layout (= 0.1.4) - jekyll-feed (= 0.11.0) - jekyll-gist (= 1.5.0) - jekyll-github-metadata (= 2.12.1) - jekyll-mentions (= 1.4.1) - jekyll-optional-front-matter (= 0.3.0) - jekyll-paginate (= 1.1.0) - jekyll-readme-index (= 0.2.0) - jekyll-redirect-from (= 0.14.0) - jekyll-relative-links (= 0.6.0) - jekyll-remote-theme (= 0.3.1) - jekyll-sass-converter (= 1.5.2) - jekyll-seo-tag (= 2.5.0) - jekyll-sitemap (= 1.2.0) - jekyll-swiss (= 0.4.0) - jekyll-theme-architect (= 0.1.1) - jekyll-theme-cayman (= 0.1.1) - jekyll-theme-dinky (= 0.1.1) - jekyll-theme-hacker (= 0.1.1) - jekyll-theme-leap-day (= 0.1.1) - jekyll-theme-merlot (= 0.1.1) - jekyll-theme-midnight (= 0.1.1) - jekyll-theme-minimal (= 0.1.1) - jekyll-theme-modernist (= 0.1.1) - jekyll-theme-primer (= 0.5.3) - jekyll-theme-slate (= 0.1.1) - jekyll-theme-tactile (= 0.1.1) - jekyll-theme-time-machine (= 0.1.1) - jekyll-titles-from-headings (= 0.5.1) - jemoji (= 0.10.2) - kramdown (= 1.17.0) - liquid (= 4.0.0) - listen (= 3.1.5) - minima (= 2.5.0) - rouge (= 2.2.1) - -RUBY VERSION - ruby 2.4.1p111 - -BUNDLED WITH - 1.17.2 diff --git a/PrismarineJS/minecraft-assets b/PrismarineJS/minecraft-assets new file mode 160000 index 0000000..322a4da --- /dev/null +++ b/PrismarineJS/minecraft-assets @@ -0,0 +1 @@ +Subproject commit 322a4da7765fc410c22253b9fc93b8b9e1e06037 diff --git a/PrismarineJS/minecraft-data b/PrismarineJS/minecraft-data new file mode 160000 index 0000000..2a4a7ae --- /dev/null +++ b/PrismarineJS/minecraft-data @@ -0,0 +1 @@ +Subproject commit 2a4a7ae8deedda0c5a2057878ff6b677d125e2cb diff --git a/README.md b/README.md new file mode 100644 index 0000000..f9ca602 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# minecraft-browser + +## Project setup +``` +yarn install +``` + +### Compiles and hot-reloads for development +``` +yarn serve +``` + +### Compiles and minifies for production +``` +yarn build +``` + +### Lints and fixes files +``` +yarn lint +``` + +### Customize configuration +See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/_config.yml b/_config.yml deleted file mode 100644 index 477ac75..0000000 --- a/_config.yml +++ /dev/null @@ -1,41 +0,0 @@ -title: Minecraft Browser -email: njt1982@gmail.com -description: >- # this means to ignore newlines until "baseurl:" - An easy item and recipe browser for Minecraft -baseurl: "/minecraft-item-browser" # the subpath of your site, e.g. /blog -url: "" # the base hostname & protocol for your site, e.g. http://example.com -twitter_username: TODO -repository: njt1982/minecraft-item-browser - -# Build settings -markdown: kramdown -kramdown: - input: GFM - hard_wrap: false - enable_coderay: false - parse_block_html: true - math_engine: mathjax # Forced Default from GH Pages -plugins: - - jekyll-optional-front-matter - - jekyll-titles-from-headings - - jekyll-seo-tag - - jekyll-redirect-from - - jekyll-sitemap -exclude: - - assets/bootstrap - - Gemfile - - Gemfile.lock -sass: - style: compressed - -# CANNOT CHANGE THESE -lsi: false -safe: true -source: "" -incremental: false -highlighter: rouge -gist: - noscript: false -# kramdown: -# math_engine: mathjax - diff --git a/_handlebar_templates/details.handlebars b/_handlebar_templates/details.handlebars deleted file mode 100644 index 1614489..0000000 --- a/_handlebar_templates/details.handlebars +++ /dev/null @@ -1,18 +0,0 @@ -

{{selected.item.displayName}}

-{{#if createdWithRecipes}} -

Creates... {{createdWithRecipes.length}}

-
- {{#each createdWithRecipes}} - {{> recipe_card this }} - {{/each}} -
-{{/if}} - -{{#if usedInRecipes}} -

Used In... {{usedInRecipes.length}}

-
- {{#each usedInRecipes}} - {{> recipe_card this}} - {{/each}} -
-{{/if}} diff --git a/_handlebar_templates/mc_image.handlebars b/_handlebar_templates/mc_image.handlebars deleted file mode 100644 index 8f32b4c..0000000 --- a/_handlebar_templates/mc_image.handlebars +++ /dev/null @@ -1,3 +0,0 @@ -{{#if texture.texture}} -{{texture.name}} -{{/if}} \ No newline at end of file diff --git a/_handlebar_templates/recipe_card.handlebars b/_handlebar_templates/recipe_card.handlebars deleted file mode 100644 index 225297c..0000000 --- a/_handlebar_templates/recipe_card.handlebars +++ /dev/null @@ -1,46 +0,0 @@ -
-
-
- {{#if result.texture}} - {{> mc_image texture=result.texture item=result.item}} - {{/if}} - - {{result.item.displayName}} - - {{result.count}} -
-
- - {{#if ingredients}} - {{#each ingredients}} - {{#if texture}} - {{> mc_image this}} - {{else}} - {{item.displayName}} - {{/if}} - {{/each}} - {{/if}} - - {{#if inShape}} - - {{#each inShape}} - - {{#each this}} - - {{/each}} - - {{/each}} -
- {{#if this}} - {{#if texture}} - {{> mc_image this}} - {{/if}} - {{else}} - - {{/if}} -
- {{/if}} -
-
-
-
\ No newline at end of file diff --git a/_handlebar_templates/search_results.handlebars b/_handlebar_templates/search_results.handlebars deleted file mode 100644 index de60336..0000000 --- a/_handlebar_templates/search_results.handlebars +++ /dev/null @@ -1,10 +0,0 @@ - {{#each results}} - - {{else}} -
  • No results
  • - {{/each}} diff --git a/_includes/analytics.html b/_includes/analytics.html deleted file mode 100644 index 2f7ded1..0000000 --- a/_includes/analytics.html +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/_includes/footer.html b/_includes/footer.html deleted file mode 100644 index e69de29..0000000 diff --git a/_includes/head.html b/_includes/head.html deleted file mode 100644 index 5849f0f..0000000 --- a/_includes/head.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - {% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %} - - - - - - - - - - - - - diff --git a/_includes/header.html b/_includes/header.html deleted file mode 100644 index 47dbcf2..0000000 --- a/_includes/header.html +++ /dev/null @@ -1,6 +0,0 @@ -
    -
    -

    Minecraft Item & Browser

    -

    Find items and learn how to make them, quickly and easily.

    -
    -
    diff --git a/_includes/js.html b/_includes/js.html deleted file mode 100644 index ab66e5e..0000000 --- a/_includes/js.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/_layouts/default.html b/_layouts/default.html deleted file mode 100644 index c1ca366..0000000 --- a/_layouts/default.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -{% include head.html %} - - - {% include header.html %} -
    - {{ content }} -
    - {% include footer.html %} - - {% include js.html %} - {% include analytics.html %} - - diff --git a/_sass/_custom.scss b/_sass/_custom.scss deleted file mode 100644 index 635360e..0000000 --- a/_sass/_custom.scss +++ /dev/null @@ -1,19 +0,0 @@ -img.mc-item { - width: 16px; - height: 16px; - - @include media-breakpoint-up(sm) { - width: 32px; - height: 32px; - } - image-rendering: pixelated; - cursor: pointer; -} - -#search_result_wrapper { - button.list-group-item-action { - &:focus { - outline: 0; - } - } -} \ No newline at end of file diff --git a/_sass/_variables.scss b/_sass/_variables.scss deleted file mode 100644 index 139a4b3..0000000 --- a/_sass/_variables.scss +++ /dev/null @@ -1,2 +0,0 @@ -$headings-font-family: "Slabo 27px", Serif; -$font-family-sans-serif: "Open Sans Condensed", sans-serif; diff --git a/_sass/bootstrap/_alert.scss b/_sass/bootstrap/_alert.scss deleted file mode 100755 index da2a98a..0000000 --- a/_sass/bootstrap/_alert.scss +++ /dev/null @@ -1,51 +0,0 @@ -// -// Base styles -// - -.alert { - position: relative; - padding: $alert-padding-y $alert-padding-x; - margin-bottom: $alert-margin-bottom; - border: $alert-border-width solid transparent; - @include border-radius($alert-border-radius); -} - -// Headings for larger alerts -.alert-heading { - // Specified to prevent conflicts of changing $headings-color - color: inherit; -} - -// Provide class for links that match alerts -.alert-link { - font-weight: $alert-link-font-weight; -} - - -// Dismissible alerts -// -// Expand the right padding and account for the close button's positioning. - -.alert-dismissible { - padding-right: $close-font-size + $alert-padding-x * 2; - - // Adjust close link position - .close { - position: absolute; - top: 0; - right: 0; - padding: $alert-padding-y $alert-padding-x; - color: inherit; - } -} - - -// Alternate styles -// -// Generate contextual modifier classes for colorizing the alert. - -@each $color, $value in $theme-colors { - .alert-#{$color} { - @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level)); - } -} diff --git a/_sass/bootstrap/_badge.scss b/_sass/bootstrap/_badge.scss deleted file mode 100755 index 2082f05..0000000 --- a/_sass/bootstrap/_badge.scss +++ /dev/null @@ -1,54 +0,0 @@ -// Base class -// -// Requires one of the contextual, color modifier classes for `color` and -// `background-color`. - -.badge { - display: inline-block; - padding: $badge-padding-y $badge-padding-x; - @include font-size($badge-font-size); - font-weight: $badge-font-weight; - line-height: 1; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - @include border-radius($badge-border-radius); - @include transition($badge-transition); - - @at-root a#{&} { - @include hover-focus { - text-decoration: none; - } - } - - // Empty badges collapse automatically - &:empty { - display: none; - } -} - -// Quick fix for badges in buttons -.btn .badge { - position: relative; - top: -1px; -} - -// Pill badges -// -// Make them extra rounded with a modifier to replace v3's badges. - -.badge-pill { - padding-right: $badge-pill-padding-x; - padding-left: $badge-pill-padding-x; - @include border-radius($badge-pill-border-radius); -} - -// Colors -// -// Contextual variations (linked badges get darker on :hover). - -@each $color, $value in $theme-colors { - .badge-#{$color} { - @include badge-variant($value); - } -} diff --git a/_sass/bootstrap/_breadcrumb.scss b/_sass/bootstrap/_breadcrumb.scss deleted file mode 100755 index be30950..0000000 --- a/_sass/bootstrap/_breadcrumb.scss +++ /dev/null @@ -1,41 +0,0 @@ -.breadcrumb { - display: flex; - flex-wrap: wrap; - padding: $breadcrumb-padding-y $breadcrumb-padding-x; - margin-bottom: $breadcrumb-margin-bottom; - list-style: none; - background-color: $breadcrumb-bg; - @include border-radius($breadcrumb-border-radius); -} - -.breadcrumb-item { - // The separator between breadcrumbs (by default, a forward-slash: "/") - + .breadcrumb-item { - padding-left: $breadcrumb-item-padding; - - &::before { - display: inline-block; // Suppress underlining of the separator in modern browsers - padding-right: $breadcrumb-item-padding; - color: $breadcrumb-divider-color; - content: $breadcrumb-divider; - } - } - - // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built - // without `