Git Product home page Git Product logo

blk-design-system's Introduction

alt text

Blk• Design System is a responsive Bootstrap 4 kit provided for free by Creative Tim. It is a beautiful cross-platform UI kit featuring over 70 elements and 3 templates.

Now will help you create a clean and simple website that is a perfect fit for today's black design. It is built using the 12 column grid system, with components designed to fit together perfectly. It makes use of bold colours, beautiful typography, clear photography and spacious arrangements.

Complex Documentation

Each element is well presented in a very complex documentation. You can read more about the idea behind this design system here. You can check the components here and the foundation here.

Bootstrap 4 Support

Blk• Design System is built on top of the much awaited Bootstrap 4. This makes starting a new project very simple. It also provides benefits if you are already working on a Bootstrap 4 project; you can just import the Blk• Design System style over it. Most of the elements have been redesigned; but if you are using an element we have not touched, it will fall back to the Bootstrap default.

Table of contents

Getting Started

We've also included an optional Gulp file to help you get started with theme customization. You'll need to install Node.js and Gulp before using our included gulpfile.js.

  1. Download the project's zip
  2. Make sure you have node.js (https://nodejs.org/en/) installed
  3. Type npm install in terminal/console in the source folder where package.json is located
  4. You will find all the branding colors inside assets/scss/blk-design-system/custom/_variables.scss. You can change them with a HEX value or with other predefined variables.
  5. Run in terminal gulp compile-scss for a single compilation or gulp watch for continous compilation of the changes that you make in *.scss files. This command should be run in the same folder where gulpfile.js and package.json are located
  6. Run in terminal gulp default for opening the Dashboard Page (default) of the product.

Example Pages

We wanted to fully display the power of this kit, so the kit comes packed with examples showing you how to use the components. Inside the product you will find:

Documentation

The documentation for the Blk• Design System is hosted at our website.

Tutorial

In order for you to easily be able to use the Blk• Design System, we have created a tutorial page. It shows the structure for the files inside the archive and how to import them. It then features every components with a description and example fr how to use it. You can see the details here ().

Coming soon

  • Vue.js
  • Angular
  • React
  • Sketch
  • Photoshop

File Structure

Within the download you'll find the following directories and files:

Blk• Design System
.
├── CHANGELOG.md
├── README.md
├── assets/
│   ├── css/
│   │   ├── blk-design-system.css
│   │   ├── blk-design-system.css.map
│   │   ├── blk-design-system.min.css
│   │   └── nucleo-icons.css
│   ├── demo/
│   ├── fonts/
│   ├── img/
│   ├── js/
│   │   ├── blk-design-system.js
│   │   ├── blk-design-system.js.map
│   │   ├── blk-design-system.min.js
│   │   ├── core/
│   │   │   ├── bootstrap.min.js
│   │   │   ├── jquery.min.js
│   │   │   └── popper.min.js
│   │   └── plugins/
│   └── scss/
│       ├── blk-design-system/
│       │   ├── bootstrap/
│       │   │   ├── mixins/
│       │   │   └── utilities/
│       │   └── custom/
│       │       ├── cards/
│       │       ├── mixins/
│       │       ├── sections/
│       │       ├── utilities/
│       │       └── vendor/
│       └── blk-design-system.scss
├── docs/
│   └── documentation.html
├── examples/
│   ├── landing-page.html
│   ├── profile-page.html
│   └── register-page.html
├── gulpfile.js
├── index.html
└── package.json

Browser Support

At present, we officially aim to support the last two versions of the following browsers:

Technical Support or Questions

If you have questions or need help integrating the product please contact us instead of opening an issue.

Useful Links

Social Media:

blk-design-system's People

Contributors

groovemen avatar marqbeniamin avatar rarestoma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blk-design-system's Issues

Using With fresh-bootstrap-table

while I used a fresh-bootstrap-table inside a page it needs:
<link href="assets/css/fresh-bootstrap-table.css" rel="stylesheet" />
while this needs:
<link href="assets/css/blk-design-system.css?v=1.0.0" rel="stylesheet" />
the change of place of calling each link changes the design of both fresh table and Blk...

Border color of active form fields with .is-invalid and .input-group-prepend

Let's assume we have a following layout: <div class="input-group"><div class="input-group-prepend"><span class="input-group-text"><i class="tim-icons icon-email-85"></i></span></div><input type="email" name="email" value="" placeholder="Email" class="form-control is-invalid" id="id_email"></div>
With when user clicks on a field, .input-group-focus style appears on the outer div. In that moment, border color of input changes from danger to warning, but border color of .input-group-prepend changes to primary.

Vulnerabilities of packages

Hello team, we find some several issues regarding the vulnerabilities on packages when running
npm install

found 8 vulnerabilities (1 low, 6 high, 1 critical)

I concern about the critical one. Could someone update the package.json / package.lock.json ?

Color of moving squares

How do I change the colors of those floating squares on the main page that use header-filter? Like to bg-warning color.

.icon+.icon-text with strange width generated

At the .min file has a .icon+.icon-text{padding-left:1rem;width:calc(1 - auto - 1)} part which causes break at the build of webpack, its also is not reconized from the browser.

I'm not using the scss at the moment, but it was expected to look like 1 - auto - 1?

Can't load transparent navbar

I put all resource in third party, then I write the code in codeigniter. But the transparent navbar didn't want to show the primary color when I scroll down.

text page

can you please make a simple text page, thanks.

No `baseHref`s specified in angular.json, breaks router

Without the baseHref specified in the options of angular.json ng serve will inject <script src="runtime.js"> etc, instead of <script src="/runtime.js"> and entering the app by navigating to http://localhost:4200/some/path/with/slashes will break.

Misalignment using input-group

With the following code snippet using input-group on Blk Design System v1.0.0, I get a misalignment of input field and button:

<div class="row">    
    <div class="col-sm-5">
        <div class="input-group">
            <input type="text" class="form-control" placeholder="Search...">
            <div class="input-group-append">
                <button type="button" class="btn btn-secondary">
                    <i class="fa fa-search"></i>
                </button>
            </div>
        </div>
    </div>
    <div class="col-sm-7">
        <div class="input-group">
            <input type="text" class="form-control" placeholder="Type something...">
            <div class="input-group-append">
                <button type="submit" class="btn btn-primary">Submit</button>
                <button type="reset" class="btn btn-danger">Reset</button>
            </div>
        </div>
    </div>
</div>

input_group_misalignment

How can I fix this?

ChartJS

Hi

I try to add the blue chart from ( black-dashboard ) to BLK ( blk-design-system
) theme

captura de pantalla 2018-11-18 a las 14 42 27

All the other charts work but the blue does not work ... everything seems fine I do not know why it returns that error

Can anybody help me ?

CONSOLE LOG:####################################

jQuery.Deferred exception: document.getElementById(...) is null initDashboardPageCharts@http://127.0.0.1:5500/assets/js/charts.js:430:15
@http://127.0.0.1:5500/index.html:215:7
j@http://127.0.0.1:5500/assets/js/core/jquery.min.js:2:29997
g/</k<@http://127.0.0.1:5500/assets/js/core/jquery.min.js:2:30313
undefined jquery.min.js:2:31569
TypeError: document.getElementById(...) is null[Saber más]

################# INDEX.HTML ######################

<title> Blk• Design System by Creative Tim </title>
<div class="page-header header-filter">
    <div class="squares square1"></div>
    <div class="squares square2"></div>
    <div class="squares square3"></div>
    <div class="squares square4"></div>
    <div class="squares square5"></div>
    <div class="squares square6"></div>
    <div class="squares square7"></div>
    <div class="container">
        <div class="content-center brand">
            <h1 class="h1-seo">BLK•</h1>
            <h3>A beautiful Design System for Bootstrap 4. It's Free and Open Source.</h3>
        </div>
    </div>
</div>
<div class="main">
    <section class="section section-lg">
        <div class="container">
            <div class="content">

                    <div class="row">
                        <div class="col-lg-12">
                            <div class="card card-chart">
                                <div class="card-header">
                                    <h5 class="card-category">Daily Sales</h5>
                                    <h3 class="card-title"><i class="tim-icons icon-delivery-fast text-info"></i>
                                        3,500€</h3>
                                </div>
                                <div class="card-body">
                                    <div class="chart-area">
                                        <canvas id="chartLinePurple"></canvas>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-12">
                            <div class="card card-chart">
                                <div class="card-header">
                                    <h5 class="card-category">Total Shipments</h5>
                                    <h3 class="card-title"><i class="tim-icons icon-bell-55 text-primary"></i>
                                        763,215</h3>
                                </div>
                                <div class="card-body">
                                    <div class="chart-area">
                                        <canvas id="chartLineGreen"></canvas>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-12">
                            <div class="card card-chart">
                                <div class="card-header">
                                    <h5 class="card-category">Completed Tasks</h5>
                                    <h3 class="card-title"><i class="tim-icons icon-send text-success"></i> 12,100K
                                    </h3>
                                </div>
                                <div class="card-body">
                                    <div class="chart-area">
                                        <canvas id="CountryChart"></canvas>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>



            </div>
        </div>
    </section>

</div>
<footer class="footer">
    <div class="container">
        <div class="row">
            <div class="col-md-3">
                <h1 class="title">BLK•</h1>
            </div>
            <div class="col-md-3">
                <ul class="nav">
                    <li class="nav-item">
                        <a href="./index.html" class="nav-link">
                            Home
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="./examples/landing-page.html" class="nav-link">
                            Landing
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="./examples/register-page.html" class="nav-link">
                            Register
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="./examples/profile-page.html" class="nav-link">
                            Profile
                        </a>
                    </li>
                </ul>
            </div>
            <div class="col-md-3">
                <ul class="nav">
                    <li class="nav-item">
                        <a href="https://creative-tim.com/contact-us" class="nav-link">
                            Contact Us
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="https://creative-tim.com/about-us" class="nav-link">
                            About Us
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="https://creative-tim.com/blog" class="nav-link">
                            Blog
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="https://opensource.org/licenses/MIT" class="nav-link">
                            License
                        </a>
                    </li>
                </ul>
            </div>
            <div class="col-md-3">
                <h3 class="title">Follow us:</h3>
                <div class="btn-wrapper profile">
                    <a target="_blank" href="https://twitter.com/creativetim"
                       class="btn btn-icon btn-neutral btn-round btn-simple" data-toggle="tooltip"
                       data-original-title="Follow us">
                        <i class="fab fa-twitter"></i>
                    </a>
                    <a target="_blank" href="https://www.facebook.com/creativetim"
                       class="btn btn-icon btn-neutral btn-round btn-simple" data-toggle="tooltip"
                       data-original-title="Like us">
                        <i class="fab fa-facebook-square"></i>
                    </a>
                    <a target="_blank" href="https://dribbble.com/creativetim"
                       class="btn btn-icon btn-neutral  btn-round btn-simple" data-toggle="tooltip"
                       data-original-title="Follow us">
                        <i class="fab fa-dribbble"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>
</footer>
<script src="./assets/js/core/jquery.min.js" type="text/javascript"></script> <script src="./assets/js/core/popper.min.js" type="text/javascript"></script> <script src="./assets/js/core/bootstrap.min.js" type="text/javascript"></script> <script src="./assets/js/plugins/perfect-scrollbar.jquery.min.js"></script> <script src="./assets/js/plugins/bootstrap-switch.js"></script> <script src="./assets/js/plugins/nouislider.min.js" type="text/javascript"></script> <script src="./assets/js/plugins/chartjs.min.js"></script> <script src="./assets/js/plugins/moment.min.js"></script> <script src="./assets/js/plugins/bootstrap-datetimepicker.js" type="text/javascript"></script> <script src="assets/js/charts.js"></script> <script src="./assets/js/blk-design-system.min.js?v=1.0.0" type="text/javascript"></script> <script> $(document).ready(function () { blackKit.initDatePicker(); blackKit.initSliders(); }); function scrollToDownload() { if ($('.section-download').length != 0) { $("html, body").animate({ scrollTop: $('.section-download').offset().top }, 1000); } } </script> <script> $(document).ready(function() { // Javascript method's body can be found in assets/js/demos.js siteCharts.initDashboardPageCharts(); }); </script>

################## CARTSJS ###########################

type = ['primary', 'info', 'success', 'warning', 'danger'];

siteCharts = {
initPickColor: function() {
$('.pick-class-label').click(function() {
var new_class = $(this).attr('new-class');
var old_class = $('#display-buttons').attr('data-class');
var display_div = $('#display-buttons');
if (display_div.length) {
var display_buttons = display_div.find('.btn');
display_buttons.removeClass(old_class);
display_buttons.addClass(new_class);
display_div.attr('data-class', new_class);
}
});
},

initDocChart: function() {
chartColor = "#FFFFFF";

// General configuration for the charts with Line gradientStroke
gradientChartOptionsConfiguration = {
  maintainAspectRatio: false,
  legend: {
    display: false
  },
  tooltips: {
    bodySpacing: 4,
    mode: "nearest",
    intersect: 0,
    position: "nearest",
    xPadding: 10,
    yPadding: 10,
    caretPadding: 10
  },
  responsive: true,
  scales: {
    yAxes: [{
      display: 0,
      gridLines: 0,
      ticks: {
        display: false
      },
      gridLines: {
        zeroLineColor: "transparent",
        drawTicks: false,
        display: false,
        drawBorder: false
      }
    }],
    xAxes: [{
      display: 0,
      gridLines: 0,
      ticks: {
        display: false
      },
      gridLines: {
        zeroLineColor: "transparent",
        drawTicks: false,
        display: false,
        drawBorder: false
      }
    }]
  },
  layout: {
    padding: {
      left: 0,
      right: 0,
      top: 15,
      bottom: 15
    }
  }
};

ctx = document.getElementById('lineChartExample').getContext("2d");

gradientStroke = ctx.createLinearGradient(500, 0, 100, 0);
gradientStroke.addColorStop(0, '#80b6f4');
gradientStroke.addColorStop(1, chartColor);

gradientFill = ctx.createLinearGradient(0, 170, 0, 50);
gradientFill.addColorStop(0, "rgba(128, 182, 244, 0)");
gradientFill.addColorStop(1, "rgba(249, 99, 59, 0.40)");

myChart = new Chart(ctx, {
  type: 'line',
  responsive: true,
  data: {
    labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
    datasets: [{
      label: "Active Users",
      borderColor: "#f96332",
      pointBorderColor: "#FFF",
      pointBackgroundColor: "#f96332",
      pointBorderWidth: 2,
      pointHoverRadius: 4,
      pointHoverBorderWidth: 1,
      pointRadius: 4,
      fill: true,
      backgroundColor: gradientFill,
      borderWidth: 2,
      data: [542, 480, 430, 550, 530, 453, 380, 434, 568, 610, 700, 630]
    }]
  },
  options: gradientChartOptionsConfiguration
});

},

initDashboardPageCharts: function() {

gradientChartOptionsConfigurationWithTooltipBlue = {
  maintainAspectRatio: false,
  legend: {
    display: false
  },

  tooltips: {
    backgroundColor: '#f5f5f5',
    titleFontColor: '#333',
    bodyFontColor: '#666',
    bodySpacing: 4,
    xPadding: 12,
    mode: "nearest",
    intersect: 0,
    position: "nearest"
  },
  responsive: true,
  scales: {
    yAxes: [{
      barPercentage: 1.6,
      gridLines: {
        drawBorder: false,
        color: 'rgba(29,140,248,0.0)',
        zeroLineColor: "transparent",
      },
      ticks: {
        suggestedMin: 60,
        suggestedMax: 125,
        padding: 20,
        fontColor: "#2380f7"
      }
    }],

    xAxes: [{
      barPercentage: 1.6,
      gridLines: {
        drawBorder: false,
        color: 'rgba(29,140,248,0.1)',
        zeroLineColor: "transparent",
      },
      ticks: {
        padding: 20,
        fontColor: "#2380f7"
      }
    }]
  }
};

gradientChartOptionsConfigurationWithTooltipPurple = {
  maintainAspectRatio: false,
  legend: {
    display: false
  },

  tooltips: {
    backgroundColor: '#f5f5f5',
    titleFontColor: '#333',
    bodyFontColor: '#666',
    bodySpacing: 4,
    xPadding: 12,
    mode: "nearest",
    intersect: 0,
    position: "nearest"
  },
  responsive: true,
  scales: {
    yAxes: [{
      barPercentage: 1.6,
      gridLines: {
        drawBorder: false,
        color: 'rgba(29,140,248,0.0)',
        zeroLineColor: "transparent",
      },
      ticks: {
        suggestedMin: 60,
        suggestedMax: 125,
        padding: 20,
        fontColor: "#9a9a9a"
      }
    }],

    xAxes: [{
      barPercentage: 1.6,
      gridLines: {
        drawBorder: false,
        color: 'rgba(225,78,202,0.1)',
        zeroLineColor: "transparent",
      },
      ticks: {
        padding: 20,
        fontColor: "#9a9a9a"
      }
    }]
  }
};

gradientChartOptionsConfigurationWithTooltipOrange = {
  maintainAspectRatio: false,
  legend: {
    display: false
  },

  tooltips: {
    backgroundColor: '#f5f5f5',
    titleFontColor: '#333',
    bodyFontColor: '#666',
    bodySpacing: 4,
    xPadding: 12,
    mode: "nearest",
    intersect: 0,
    position: "nearest"
  },
  responsive: true,
  scales: {
    yAxes: [{
      barPercentage: 1.6,
      gridLines: {
        drawBorder: false,
        color: 'rgba(29,140,248,0.0)',
        zeroLineColor: "transparent",
      },
      ticks: {
        suggestedMin: 50,
        suggestedMax: 110,
        padding: 20,
        fontColor: "#ff8a76"
      }
    }],

    xAxes: [{
      barPercentage: 1.6,
      gridLines: {
        drawBorder: false,
        color: 'rgba(220,53,69,0.1)',
        zeroLineColor: "transparent",
      },
      ticks: {
        padding: 20,
        fontColor: "#ff8a76"
      }
    }]
  }
};

gradientChartOptionsConfigurationWithTooltipGreen = {
  maintainAspectRatio: false,
  legend: {
    display: false
  },

  tooltips: {
    backgroundColor: '#f5f5f5',
    titleFontColor: '#333',
    bodyFontColor: '#666',
    bodySpacing: 4,
    xPadding: 12,
    mode: "nearest",
    intersect: 0,
    position: "nearest"
  },
  responsive: true,
  scales: {
    yAxes: [{
      barPercentage: 1.6,
      gridLines: {
        drawBorder: false,
        color: 'rgba(29,140,248,0.0)',
        zeroLineColor: "transparent",
      },
      ticks: {
        suggestedMin: 50,
        suggestedMax: 125,
        padding: 20,
        fontColor: "#9e9e9e"
      }
    }],

    xAxes: [{
      barPercentage: 1.6,
      gridLines: {
        drawBorder: false,
        color: 'rgba(0,242,195,0.1)',
        zeroLineColor: "transparent",
      },
      ticks: {
        padding: 20,
        fontColor: "#9e9e9e"
      }
    }]
  }
};


gradientBarChartConfiguration = {
  maintainAspectRatio: false,
  legend: {
    display: false
  },

  tooltips: {
    backgroundColor: '#f5f5f5',
    titleFontColor: '#333',
    bodyFontColor: '#666',
    bodySpacing: 4,
    xPadding: 12,
    mode: "nearest",
    intersect: 0,
    position: "nearest"
  },
  responsive: true,
  scales: {
    yAxes: [{

      gridLines: {
        drawBorder: false,
        color: 'rgba(29,140,248,0.1)',
        zeroLineColor: "transparent",
      },
      ticks: {
        suggestedMin: 60,
        suggestedMax: 120,
        padding: 20,
        fontColor: "#9e9e9e"
      }
    }],

    xAxes: [{

      gridLines: {
        drawBorder: false,
        color: 'rgba(29,140,248,0.1)',
        zeroLineColor: "transparent",
      },
      ticks: {
        padding: 20,
        fontColor: "#9e9e9e"
      }
    }]
  }
};

var ctx = document.getElementById("chartLinePurple").getContext("2d");

var gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);

gradientStroke.addColorStop(1, 'rgba(72,72,176,0.2)');
gradientStroke.addColorStop(0.2, 'rgba(72,72,176,0.0)');
gradientStroke.addColorStop(0, 'rgba(119,52,169,0)'); //purple colors

var data = {
  labels: ['JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC'],
  datasets: [{
    label: "Data",
    fill: true,
    backgroundColor: gradientStroke,
    borderColor: '#d048b6',
    borderWidth: 2,
    borderDash: [],
    borderDashOffset: 0.0,
    pointBackgroundColor: '#d048b6',
    pointBorderColor: 'rgba(255,255,255,0)',
    pointHoverBackgroundColor: '#d048b6',
    pointBorderWidth: 20,
    pointHoverRadius: 4,
    pointHoverBorderWidth: 15,
    pointRadius: 4,
    data: [80, 100, 70, 80, 120, 80],
  }]
};

var myChart = new Chart(ctx, {
  type: 'line',
  data: data,
  options: gradientChartOptionsConfigurationWithTooltipPurple
});


var ctxGreen = document.getElementById("chartLineGreen").getContext("2d");

var gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);

gradientStroke.addColorStop(1, 'rgba(66,134,121,0.15)');
gradientStroke.addColorStop(0.4, 'rgba(66,134,121,0.0)'); //green colors
gradientStroke.addColorStop(0, 'rgba(66,134,121,0)'); //green colors

var data = {
  labels: ['JUL', 'AUG', 'SEP', 'OCT', 'NOV'],
  datasets: [{
    label: "My First dataset",
    fill: true,
    backgroundColor: gradientStroke,
    borderColor: '#00d6b4',
    borderWidth: 2,
    borderDash: [],
    borderDashOffset: 0.0,
    pointBackgroundColor: '#00d6b4',
    pointBorderColor: 'rgba(255,255,255,0)',
    pointHoverBackgroundColor: '#00d6b4',
    pointBorderWidth: 20,
    pointHoverRadius: 4,
    pointHoverBorderWidth: 15,
    pointRadius: 4,
    data: [90, 27, 60, 12, 80],
  }]
};

var myChart = new Chart(ctxGreen, {
  type: 'line',
  data: data,
  options: gradientChartOptionsConfigurationWithTooltipGreen

});



var chart_labels = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC'];
var chart_data = [100, 70, 90, 70, 85, 60, 75, 60, 90, 80, 110, 100];


var ctx = document.getElementById("chartBig1").getContext('2d');

var gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);

gradientStroke.addColorStop(1, 'rgba(72,72,176,0.1)');
gradientStroke.addColorStop(0.4, 'rgba(72,72,176,0.0)');
gradientStroke.addColorStop(0, 'rgba(119,52,169,0)'); //purple colors
var config = {
  type: 'line',
  data: {
    labels: chart_labels,
    datasets: [{
      label: "My First dataset",
      fill: true,
      backgroundColor: gradientStroke,
      borderColor: '#d346b1',
      borderWidth: 2,
      borderDash: [],
      borderDashOffset: 0.0,
      pointBackgroundColor: '#d346b1',
      pointBorderColor: 'rgba(255,255,255,0)',
      pointHoverBackgroundColor: '#d346b1',
      pointBorderWidth: 20,
      pointHoverRadius: 4,
      pointHoverBorderWidth: 15,
      pointRadius: 4,
      data: chart_data,
    }]
  },
  options: gradientChartOptionsConfigurationWithTooltipPurple
};
var myChartData = new Chart(ctx, config);
$("#0").click(function() {
  var data = myChartData.config.data;
  data.datasets[0].data = chart_data;
  data.labels = chart_labels;
  myChartData.update();
});
$("#1").click(function() {
  var chart_data = [80, 120, 105, 110, 95, 105, 90, 100, 80, 95, 70, 120];
  var data = myChartData.config.data;
  data.datasets[0].data = chart_data;
  data.labels = chart_labels;
  myChartData.update();
});

$("#2").click(function() {
  var chart_data = [60, 80, 65, 130, 80, 105, 90, 130, 70, 115, 60, 130];
  var data = myChartData.config.data;
  data.datasets[0].data = chart_data;
  data.labels = chart_labels;
  myChartData.update();
});


var ctx = document.getElementById("CountryChart").getContext("2d");

var gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);

gradientStroke.addColorStop(1, 'rgba(29,140,248,0.2)');
gradientStroke.addColorStop(0.4, 'rgba(29,140,248,0.0)');
gradientStroke.addColorStop(0, 'rgba(29,140,248,0)'); //blue colors


var myChart = new Chart(ctx, {
  type: 'bar',
  responsive: true,
  legend: {
    display: false
  },
  data: {
    labels: ['USA', 'GER', 'AUS', 'UK', 'RO', 'BR'],
    datasets: [{
      label: "Countries",
      fill: true,
      backgroundColor: gradientStroke,
      hoverBackgroundColor: gradientStroke,
      borderColor: '#1f8ef1',
      borderWidth: 2,
      borderDash: [],
      borderDashOffset: 0.0,
      data: [53, 20, 10, 80, 100, 45],
    }]
  },
  options: gradientBarChartConfiguration
});

},

initGoogleMaps: function() {
var myLatlng = new google.maps.LatLng(40.748817, -73.985428);
var mapOptions = {
zoom: 13,
center: myLatlng,
scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page
styles: [{
"elementType": "geometry",
"stylers": [{
"color": "#1d2c4d"
}]
},
{
"elementType": "labels.text.fill",
"stylers": [{
"color": "#8ec3b9"
}]
},
{
"elementType": "labels.text.stroke",
"stylers": [{
"color": "#1a3646"
}]
},
{
"featureType": "administrative.country",
"elementType": "geometry.stroke",
"stylers": [{
"color": "#4b6878"
}]
},
{
"featureType": "administrative.land_parcel",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#64779e"
}]
},
{
"featureType": "administrative.province",
"elementType": "geometry.stroke",
"stylers": [{
"color": "#4b6878"
}]
},
{
"featureType": "landscape.man_made",
"elementType": "geometry.stroke",
"stylers": [{
"color": "#334e87"
}]
},
{
"featureType": "landscape.natural",
"elementType": "geometry",
"stylers": [{
"color": "#023e58"
}]
},
{
"featureType": "poi",
"elementType": "geometry",
"stylers": [{
"color": "#283d6a"
}]
},
{
"featureType": "poi",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#6f9ba5"
}]
},
{
"featureType": "poi",
"elementType": "labels.text.stroke",
"stylers": [{
"color": "#1d2c4d"
}]
},
{
"featureType": "poi.park",
"elementType": "geometry.fill",
"stylers": [{
"color": "#023e58"
}]
},
{
"featureType": "poi.park",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#3C7680"
}]
},
{
"featureType": "road",
"elementType": "geometry",
"stylers": [{
"color": "#304a7d"
}]
},
{
"featureType": "road",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#98a5be"
}]
},
{
"featureType": "road",
"elementType": "labels.text.stroke",
"stylers": [{
"color": "#1d2c4d"
}]
},
{
"featureType": "road.highway",
"elementType": "geometry",
"stylers": [{
"color": "#2c6675"
}]
},
{
"featureType": "road.highway",
"elementType": "geometry.fill",
"stylers": [{
"color": "#9d2a80"
}]
},
{
"featureType": "road.highway",
"elementType": "geometry.stroke",
"stylers": [{
"color": "#9d2a80"
}]
},
{
"featureType": "road.highway",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#b0d5ce"
}]
},
{
"featureType": "road.highway",
"elementType": "labels.text.stroke",
"stylers": [{
"color": "#023e58"
}]
},
{
"featureType": "transit",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#98a5be"
}]
},
{
"featureType": "transit",
"elementType": "labels.text.stroke",
"stylers": [{
"color": "#1d2c4d"
}]
},
{
"featureType": "transit.line",
"elementType": "geometry.fill",
"stylers": [{
"color": "#283d6a"
}]
},
{
"featureType": "transit.station",
"elementType": "geometry",
"stylers": [{
"color": "#3a4762"
}]
},
{
"featureType": "water",
"elementType": "geometry",
"stylers": [{
"color": "#0e1626"
}]
},
{
"featureType": "water",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#4e6d70"
}]
}
]
};

var map = new google.maps.Map(document.getElementById("map"), mapOptions);

var marker = new google.maps.Marker({
  position: myLatlng,
  title: "Hello World!"
});

// To add the marker to the map, call setMap();
marker.setMap(map);

},

showNotification: function(from, align) {
color = Math.floor((Math.random() * 4) + 1);

$.notify({
  icon: "tim-icons icon-bell-55",
  message: "Welcome to <b>Black Dashboard</b> - a beautiful freebie for every web developer."

}, {
  type: type[color],
  timer: 8000,
  placement: {
    from: from,
    align: align
  }
});

}

};

[Bug] Issue with Nav-Tabs

Version

1.0.0

Reproduction link

https://jsfiddle.net/ihervias08/0yhvrm4j/4/

Operating System

Window 10

Device

Surface Pro

Browser & Version

Google Chrome

Steps to reproduce

  1. Download BLK UI Kit Version 1.0.0
  2. Take the HTML code from jsfiddle and place it within the "examples" folder so that CSS and Javascript files are pulled correctly.
  3. Open the HTML file and you could see that initially the tabs for "profile" "address" and "wallet" work.

What is expected?

Initially, the profile tab is active so it will show that pane. I should be able to hit "address" and "wallet" panes and move between them back and forth.

What is actually happening?

I should be able to switch between tabs but only the first switch works. Since the "account" tab is active I can choose the other two. but as soon as I switch to either wallet or address it locks the nav pills making the other two tabs inaccessible.


Solution

Additional comments

it would be a lot easier to just send you the page I created using the components in the kit and for you to just place it into the "examples" folder. You can reach me at [email protected]

Error in SCSS

In /custom/_icons.scss in the calc operation you need to interpolate SCSS variables

MIT License

Is it still? The License Link errors in 404

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.