From ef7fb43d5993d8330aff6663d8eda135b528f012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kintzi?= Date: Wed, 27 Aug 2014 12:15:25 +0200 Subject: [PATCH 01/13] Allow to configure fonts path --- src/less/dashboard/main.less | 12 ++++++------ src/less/dashboard/variables.less | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/less/dashboard/main.less b/src/less/dashboard/main.less index 7b3effea..aa016b1d 100644 --- a/src/less/dashboard/main.less +++ b/src/less/dashboard/main.less @@ -1,18 +1,18 @@ /* Fonts */ @font-face { font-family: 'Montserrat'; - src: url('../../fonts/montserrat-regular-webfont.eot'); - src: url('../../fonts/montserrat-regular-webfont.eot?#iefix') format('embedded-opentype'), - url('../../fonts/montserrat-regular-webfont.woff') format('woff'), - url('../../fonts/montserrat-regular-webfont.ttf') format('truetype'), - url('../../fonts/montserrat-regular-webfont.svg#montserratregular') format('svg'); + src: url('@{fontPath}/montserrat-regular-webfont.eot'); + src: url('@{fontPath}/montserrat-regular-webfont.eot?#iefix') format('embedded-opentype'), + url('@{fontPath}/montserrat-regular-webfont.woff') format('woff'), + url('@{fontPath}/montserrat-regular-webfont.ttf') format('truetype'), + url('@{fontPath}/montserrat-regular-webfont.svg#montserratregular') format('svg'); font-weight: normal; font-style: normal; } @media screen and (-webkit-min-device-pixel-ratio:0) { @font-face { font-family: 'Montserrat'; - src: url('../../fonts/montserrat-regular-webfont.svg') format('svg'); + src: url('@{fontPath}/montserrat-regular-webfont.svg') format('svg'); } select { font-family: Arial, Helvetica, sans-serif; diff --git a/src/less/dashboard/variables.less b/src/less/dashboard/variables.less index 51992939..8fd52cb4 100644 --- a/src/less/dashboard/variables.less +++ b/src/less/dashboard/variables.less @@ -8,3 +8,7 @@ @sidebarHeaderColor: darken(@sidebarBaseColor, 2%); /* Sidebar title text colour */ @sidebarTitleColor: lighten(@sidebarBaseColor, 30%); /*#627cb7*/ + + + /* Font path: */ + @fontPath: '../../fonts'; From 7cc649ec851895ca7d10dd640bec15b8e376c423 Mon Sep 17 00:00:00 2001 From: bertyhell Date: Wed, 20 Aug 2014 12:08:24 +0200 Subject: [PATCH 02/13] fixed minor typo node_modules instead of node_mopdules --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ac9976ca..ccd14175 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ The project uses: Clone the repo, run `npm install` to install all dependencies. After that you can either: -- Run `node_mopdules/.bin/gulp build` to build the project. -- Run `node_mopdules/.bin/gulp` to start a local webserver with **AWESOME** automatic compilation and [Livereload](http://livereload.com/) (We use [gulp-connect](https://github.com/avevlad/gulp-connect)). +- Run `node_modules/.bin/gulp build` to build the project. +- Run `node_modules/.bin/gulp` to start a local webserver with **AWESOME** automatic compilation and [Livereload](http://livereload.com/) (We use [gulp-connect](https://github.com/avevlad/gulp-connect)). ### Stylesheets @@ -116,4 +116,4 @@ Usage: Hello Universe -``` \ No newline at end of file +``` From c60810cc3ffb4bf873920bf4f62bb60b7102e0d4 Mon Sep 17 00:00:00 2001 From: Elliot Hesp Date: Sun, 31 Aug 2014 19:59:22 +0100 Subject: [PATCH 03/13] Updated Readme & Remove unused sidebar links --- README.md | 75 +++++++++++++++++++++++++++++--------------------- src/index.html | 10 ------- 2 files changed, 43 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index ccd14175..84e56a8e 100644 --- a/README.md +++ b/README.md @@ -1,51 +1,47 @@ ## AngularJS + Bootstrap Responsive Dashboard -This dashboard front-end was created as I was lacking a simple responsive but slick looking dashboard for another project of mine. Other available dashboards were bloated with external plugins and required a lot of hackery/work out of the box - plus the fact many were powered by jQuery. The design takes inspiration from other dashboards around, but the code to create the layout is my own. +This AngularJS driven dashboard was created as there is a lack of free, open-source, readable and bloat free admin templates. Many premium templates require a lot of hackery out of the box - this template is intended to have only the extra features we think are needed to get up and running as quick as possible. -Compatibility/Tested: -* Chrome, Firefox, IE 11+ -* Works best on screen sizes greater than ~335px +> [Live Demo!](http://ehesp.github.io/Responsive-Dashboard) -[Responsive Screenshots](http://ami.responsivedesign.is/?url=http://ehesp.github.io/Responsive-Dashboard/) +[*Want the dashboard without AngularJS and build functionality?*](https://github.com/Ehesp/Responsive-Dashboard/tree/barebones) -Live Example: -* http://ehesp.github.io/Responsive-Dashboard/ - -> jQuery version available on the [jQuery branch](https://github.com/Ehesp/Responsive-Dashboard/tree/jquery)! - -### Usage - -Simply clone, or download and unzip this repository and access the dist folder via your browser. There is only one page on show (`index.html`), and the relevant sections have been commented. - -### Development - -Requirements: +### Requirements * [Node](http://nodejs.org/) * [NPM](http://npmjs.org/) -The project uses: +### Usage + +This project uses the following tools: * [Gulp](http://gulpjs.com/) * [Bower](http://bower.io/) * [AngularJS](https://angularjs.org/) #### Getting Started -Clone the repo, run `npm install` to install all dependencies. -After that you can either: -- Run `node_modules/.bin/gulp build` to build the project. -- Run `node_modules/.bin/gulp` to start a local webserver with **AWESOME** automatic compilation and [Livereload](http://livereload.com/) (We use [gulp-connect](https://github.com/avevlad/gulp-connect)). +1. Clone the repository and run `npm install` to install all dependencies. This will also run the `bower install` automatically after completion. +2. There are now two `gulp` commands to choose from: +- `node_modules/.bin/gulp build` to build the project. +- `node_modules/.bin/gulp` to start a local webserver with **AWESOME** automatic compilation and [Livereload](http://livereload.com/) (We use [gulp-connect](https://github.com/avevlad/gulp-connect)). +3. The files will now be built into the `dist` directory. -### Stylesheets +### Styling -#### Theme +Currently, only the sidebar colours can be easily be changed. [LESS](http://lesscss.org/) is used for styling so we take advantage of variables - checkout `src/less/dashboard/variables.less` and change the sidebar base colour, the others will be converted for you. -Responsive Dashboard uses [LESS](http://lesscss.org/) for styling so we take advantage of variables to theme the dashboard. Take a look at `src/less/dashboard/variables.less` and customize with your own colors. +#### Hamburg Menu -#### Bootstrap + Font Awesome +By default the responsive dashboard menu on a small sized screen sticks to the left side of the screen. If you wish the menu to have 'native app' menu functionality, where the sidebar overlaps the content from the left and side, simply add the `hamburg` class to the body: -The grid layout and components are powered by [Bootstrap](http://getbootstrap.com/), also Font Awesome icons are ready to use. +```HTML + +``` -##### Widgets +### Bootstrap & Font Awesome + +The grid layout and components are powered by [Bootstrap](http://getbootstrap.com/), also [Font Awesome](http://fontawesome.io/) icons are ready to use. + +#### Widgets A widget is essentially a white container box with some styling, that will expand 100% of it's parent container. To separate these out, I suggest putting them inside a bootstrap grid item, e.g: @@ -60,7 +56,7 @@ Any content can be inside a `widget-body`, which will be padded by default. Thre > If no size is set, the content will expand vertically based on content size. -###### Widget Body +##### Widget Body **Padding** @@ -106,14 +102,29 @@ Usage of the directive: `` or `
` If you want to change it, simply replace the template and CSS! -#### Widget component +##### Widget component -Usage: +Instead of hardcoding the widget HTML directly, AngularJS widget component functionality is ready to use: ```HTML Hello Universe - + ``` + +### FAQ + +#### What is the dashboard compatible with? + +The dashboard uses CSS3 for animations along with other style enhancements meaning browsers supporting this (Chrome, Firefox, IE11+) are compatible. +As for smaller screen sizes, the dashboard works best on screen sizes greater than ~335px. + +#### Any screenshots? + +Checkout [am-i-responsive](http://ami.responsivedesign.is/?url=http://ehesp.github.io/Responsive-Dashboard), this doesn't have the Hamburg menu enabled though. + +#### I don't want to use AngularJS or NPM/Bower/Gulp! + +No worries, theres a barebones branch available with the basic HTML and CSS! \ No newline at end of file diff --git a/src/index.html b/src/index.html index 75669835..fcaee4ba 100644 --- a/src/index.html +++ b/src/index.html @@ -73,16 +73,6 @@ - - - - -<<<<<<< HEAD -======= + ->>>>>>> develop From c49810b67783d69ab6f269db13d2acca856ad296 Mon Sep 17 00:00:00 2001 From: Ricardo Pascua Jr Date: Sat, 4 Oct 2014 21:58:59 +0800 Subject: [PATCH 13/13] optimize less --- src/less/dashboard/header.less | 5 ++--- src/less/dashboard/widgets.less | 11 +++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/less/dashboard/header.less b/src/less/dashboard/header.less index 8b1e4ed1..6055ff7b 100644 --- a/src/less/dashboard/header.less +++ b/src/less/dashboard/header.less @@ -72,9 +72,8 @@ right: 23px; display: inline-block; border-right: 7px solid transparent; - border-bottom: 7px solid #ccc; + border-bottom: 7px solid rgba(0, 0, 0, 0.2); border-left: 7px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); content: ''; } ul.dropdown-menu:after { @@ -89,4 +88,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/less/dashboard/widgets.less b/src/less/dashboard/widgets.less index 88f81ffa..2e4956f6 100644 --- a/src/less/dashboard/widgets.less +++ b/src/less/dashboard/widgets.less @@ -2,12 +2,11 @@ * Widgets */ .widget { - box-shadow: 1px 1px rgba(0, 0, 0, 0.05); - background: #ffffff; - border: 1px solid transparent; - border-radius: 2px; - border-color: #e9e9e9; - .widget-header, .widget-footer { + box-shadow: 1px 1px rgba(0, 0, 0, 0.05); + background: #ffffff; + border-radius: 2px; + border: 1px solid #e9e9e9; + .widget-header, .widget-footer { .pagination { margin: 0; }