An Ember-flavoured Bootstrap 4.x eco-system

Related tags

CSS ui-bootstrap
Overview

ui-bootstrap

Adds a complete Ember Bootstrap 4.x eco-system

THIS IS CURRENTLY A WORK IN PROGRESS ... it works but it will be "ready" pretty soon

Installation

# if you want to use SASS (recommended)
ember install ember-cli-sass
# then, either ...
ember install ui-bootstrap
# - or -
ember install ui-bootstrap-plus

Installing ui-bootstrap will install Bootstrap 4.x locally to your project as an NPM dependency. If you install ui-bootstrap-plus then it will include all of these complimentary plugins as well:

Note: starting with Bootstrap 4, glyphicons are no longer included in Bootstrap and are not part of this addon either. If you want some Ember help in using icon-libraries try ui-icon

Usage

SASS / CSS

This plugin detects if you've installed the ember-cli-sass addon. If you have it will use SASS, not then it will fallback to CSS (you'll get an info message in this case when you run ember serve).

SCSS

To get your Bootstrap mojo you'll need to include the following line to your app.scss:

@import 'bootstrap';
// ... or ...
@import 'bootstrap-flex';

One of the really nice things about BS4 is that it can optionally use flexbox for all it's spacial positioning. You do lose a tiny bit of browser support but not much these days.

Note: that by importing either of the two above you are importing all of Bootstrap and that maybe more than you need. You can, when using SCSS, selectively import only what you need. As a targeted optimization for people using this plugin and sticking to it's no-JS metaphor you can use ui-bootstrap and ui-bootstrap-flex as more optimized targets.

CSS Users

If you are stuck using CSS rather than SCSS, you will need to change the options for this plugin in your environment.js file:

var ENV = {
  uiBootstrap: {
    useSASS: false
  }
}

That's all that's needed but of course with this change you loose the ability to modify the SCSS variables which Bootstrap exposes.

JS / Components

The philosophy with this addon is to NOT include bootstraps JS as in most cases there are better ways to achieve these goals with Ember addons. See our approach to each of these components below, and in the next section we'll discuss how to enable or disable various aspects.

In addition, where Bootstrap components don't have any javascript dependencies we have added Ember composable components. See the "component" tab on the demo site to find out more.

License

Copyright (c) 2016

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Comments
  • SyntaxError: Unexpected identifier

    SyntaxError: Unexpected identifier

    ember install ui-bootstrap bombs with SyntaxError: Unexpected identifier.

    $ ember install ui-bootstrap      
    version: 1.13.15
    Installed packages for tooling via npm.
    Unexpected identifier
    SyntaxError: Unexpected identifier
        at exports.runInThisContext (vm.js:53:16)
        at Module._compile (module.js:387:25)
        at Object.Module._extensions..js (module.js:422:10)
        at Module.load (module.js:357:32)
        at Function.Module._load (module.js:314:12)
        at Module.require (module.js:367:17)
        at require (internal/module.js:16:19)
        at Function.Blueprint.load (/home/psoutham/src/personal/sites/foo/node_modules/ember-cli/lib/models/blueprint.js:1401:25)
        at Function.Blueprint.lookup (/home/psoutham/src/personal/sites/foo/node_modules/ember-cli/lib/models/blueprint.js:1376:24)
        at Class.module.exports.Task.extend.lookupBlueprint (/home/psoutham/src/personal/sites/foo/node_modules/ember-cli/lib/tasks/generate-from-blueprint.js:91:22)
    
    opened by philipsoutham 4
  • Syntax Error: use of const in strict mode (ember cli 2.3.0-beta.2)

    Syntax Error: use of const in strict mode (ember cli 2.3.0-beta.2)

    ember install ui-bootstrap version: 2.3.0-beta.2 Installed packages for tooling via npm. /path/to/app/thegang/client/node_modules/ui-bootstrap/index.js:3 const path = require('path'); ^^^^^ Use of const in strict mode.

    opened by checkerap 3
  • Import Not Found Message

    Import Not Found Message

    Did the following:

    ember install ember-cli-sass
    
    ember install ui-bootstrap-plus
    
    ember serve
    

    Added @import 'bootstrap'; to app.scss

    Got the below results:

    The Broccoli Plugin: [SassCompiler] failed with:
    Error: File to import not found or unreadable: ui-bootstrap.
    
    opened by SimplySeth 0
  • Make Bootstrap Improvements Optional

    Make Bootstrap Improvements Optional

    Hi, thanks for creating this library, it makes adding bootstrap to Ember really easy!

    That said, I believe the vendor/ui-bootstrap/ui-bootstrap-improvements.css file is best left as an opt-in, instead of being default. It breaks the look of the fixed navbar, putting a 1rem gap between it and the top of the viewport. Right now my solution has been to remove the assets/vendor.css line from app/index.html. This solution is less than ideal since I may need that file in the future, and would have to undo the improvements explicitly in my app's CSS.

    I think that for those wanting a stock bootstrap experience, it should be more easily attainable.

    Let me know if you agree, if so, I'm happy to do the work and open a PR.

    Thanks!

    opened by KazW 0
  • Including Bootstrap JS - How?

    Including Bootstrap JS - How?

    I feel silly asking this question but if I wanted to include the bootstrap JS file, given the way this addon is setup, how would I do this without also doing a bower install of bootstrap?

    opened by csprocket777 2
Owner
LifeGadget
Live longer, live better
LifeGadget
A simple, one page, Bootstrap HTML website template created by Start Bootstrap

Start Bootstrap - One Page Wonder One Page Wonder is a basic one page template for Bootstrap created by Start Bootstrap. Preview View Live Preview Sta

Start Bootstrap 327 Dec 18, 2022
A shop homepage Bootstrap HTML template created by Start Bootstrap

Start Bootstrap - Shop Homepage Shop Homepage is a basic HTML online store homepage template for Bootstrap created by Start Bootstrap. Preview View Li

Start Bootstrap 390 Jan 1, 2023
A Bootstrap HTML business homepage template created by Start Bootstrap

Start Bootstrap - Business Frontpage Business Frontpage is a basic business website template for Bootstrap created by Start Bootstrap. Preview View Li

Start Bootstrap 181 Nov 28, 2022
A Bootstrap HTML homepage template with feature boxes - created by Start Bootstrap

Start Bootstrap - Heroic Features Heroic Features is a multipurpose HTML template for Bootstrap created by Start Bootstrap. Preview View Live Preview

Start Bootstrap 160 Nov 27, 2022
Bootstrap-print-css - Print Stylesheet for Bootstrap 5

Bootstrap Print CSS ??️ Bootstrap 5 no longer includes custom CSS for printing - with the CSS in this project you can add it back. Note: This should i

Christian Oliff 35 Dec 13, 2022
Light-switch-bootstrap - Dark mode toggle for Bootstrap 5

?? Light Switch for Bootstrap 5 Basic Bootstrap 5 custom checkbox to use night mode in your web site. Under the hood Switching to dark mode is done by

Han 35 Jan 2, 2023
Themes for Bootstrap

Bootswatch A collection of open source themes for Bootstrap View Bootswatch themes » Report bug · Request feature · Blog Usage There are a few differe

Thomas Park 13.9k Jan 2, 2023
Now UI Kit Bootstrap 4 - Designed by Invision. Coded by Creative Tim

Now UI Kit Now UI Kit is a responsive Bootstrap 4 kit provided for free by Invision and Creative Tim. It is a beautiful cross-platform UI kit featurin

Creative Tim 1.7k Jan 7, 2023
Jekyll Bootstrap theme

Landing Page Jekyll theme Jekyll theme based on landing-page bootstrap theme How to use Place a image in /img/services/ Create posts to display your s

Shane Weng 412 Dec 3, 2022
A web app landing page theme created by Start Bootstrap

Start Bootstrap - New Age New Age is a web app landing page theme for Bootstrap created by Start Bootstrap. Preview View Live Preview Status Download

Start Bootstrap 996 Dec 26, 2022
AngularJS SPA Template for Visual Studio is a project skeleton for a simple single-page web application (SPA) built with AngularJS, Bootstrap, and ASP.NET (MVC, Web Api, SignalR).

AngularJS SPA Template for Visual Studio This project is a skeleton for a simple single-page web application (SPA) built on top of the: AngularJS 1.2.

Kriasoft 105 Jun 18, 2022
FREE Bootstrap Landing Page Template for Developers and Startups

Theme Details & Demo Details: https://themes.3rdwavemedia.com/bootstrap-templates/startup/appkit-landing-free-bootstrap-theme-for-developers-and-start

Xiaoying Riley 158 Nov 30, 2022
Tabler is free and open-source HTML Dashboard UI Kit built on Bootstrap

A premium and open source dashboard template with a responsive and high-quality UI. Preview Tabler is fully responsive and compatible with all modern

Tabler 32.6k Jan 9, 2023
The CSS design system that powers GitHub

Primer CSS The CSS implementation of GitHub's Primer Design System Migrating ?? If you currently use the primer or primer--prefixed npm packages, plea

Primer 11.6k Jan 3, 2023
Salesforce Lightning Design System

Salesforce Lightning Design System Welcome to the source code repository for Salesforce Lightning Design System, brought to you by Salesforce UX. SLDS

Salesforce UX 3.4k Dec 29, 2022
Reasonable System for CSS Stylesheet Structure

Viewing this from GitHub? Visit the website for the full experience. rscss.io → rscss Styling CSS without losing your sanity Reasonable System for CSS

Rico Sta. Cruz 3.9k Dec 21, 2022
A markdown based documentation system for style guides.

Hologram Hologram is a Ruby gem that parses comments in your CSS and helps you turn them into a beautiful style guide. There are two steps to building

Trulia, LLC. 2.2k Nov 12, 2022
:mountain_bicyclist: Landing Pages of Ant Design System

Ant Design Landing Landing Pages of Ant Design System English | 简体中文 What is Landing? Landing is a template built by Ant Motion's motion components. I

Ant Design Team 5.2k Dec 31, 2022
A nas system

火星一云/sparkCloud 这是一个类似于nas的个人项目,布置好服务器后,可以在线观看视频,可以实现文件的上传和下载。 技术 前后端分离的项目。前端是spa应用,使用react全家桶完成,分别适配了pc端和移动端,用videojs实现视频的播放。后端用nodejs完成,主要用express,数

null 69 Dec 26, 2022