├── .gitignore ├── assets ├── img │ ├── mask.png │ ├── cover.jpeg │ ├── favicon.png │ ├── apple-icon.png │ ├── faces │ │ └── marc.jpg │ ├── new_logo.png │ ├── sidebar-1.jpg │ ├── sidebar-2.jpg │ ├── sidebar-3.jpg │ ├── sidebar-4.jpg │ └── tim_80x80.png ├── sass │ ├── md │ │ ├── mixins │ │ │ ├── _transparency.scss │ │ │ ├── _chartist.scss │ │ │ └── _vendor-prefixes.scss │ │ ├── _tables.scss │ │ ├── _ripples.scss │ │ ├── _footers.scss │ │ ├── _forms.scss │ │ ├── _tabs.scss │ │ ├── _alerts.scss │ │ ├── _typography.scss │ │ ├── _dropdown.scss │ │ ├── _popups.scss │ │ ├── _dialogs.scss │ │ ├── _togglebutton.scss │ │ ├── _radios.scss │ │ ├── _misc.scss │ │ ├── _pills.scss │ │ ├── plugins │ │ │ ├── _plugin-nouislider.scss │ │ │ └── _animate.scss │ │ ├── _checkboxes.scss │ │ ├── _shadows.scss │ │ ├── _buttons.scss │ │ ├── _sidebar-and-main-panel.scss │ │ ├── _navbars.scss │ │ ├── _inputs-size.scss │ │ ├── _cards.scss │ │ ├── _chartist.scss │ │ ├── _colors.scss │ │ └── _responsive.scss │ └── material-dashboard.scss ├── css │ └── demo.css └── js │ ├── material.min.js │ ├── demo.js │ ├── superfish.js │ └── material-dashboard.js ├── composer.json ├── LICENSE.md ├── web └── MaterialAsset.php ├── widgets ├── Alert.php └── Menu.php ├── README.md ├── examples ├── template.html ├── maps.html └── icons.html └── grid └── ActionColumn.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | -------------------------------------------------------------------------------- /assets/img/mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/mask.png -------------------------------------------------------------------------------- /assets/img/cover.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/cover.jpeg -------------------------------------------------------------------------------- /assets/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/favicon.png -------------------------------------------------------------------------------- /assets/img/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/apple-icon.png -------------------------------------------------------------------------------- /assets/img/faces/marc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/faces/marc.jpg -------------------------------------------------------------------------------- /assets/img/new_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/new_logo.png -------------------------------------------------------------------------------- /assets/img/sidebar-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/sidebar-1.jpg -------------------------------------------------------------------------------- /assets/img/sidebar-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/sidebar-2.jpg -------------------------------------------------------------------------------- /assets/img/sidebar-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/sidebar-3.jpg -------------------------------------------------------------------------------- /assets/img/sidebar-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/sidebar-4.jpg -------------------------------------------------------------------------------- /assets/img/tim_80x80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramosisw/yii2-material-dashboard/HEAD/assets/img/tim_80x80.png -------------------------------------------------------------------------------- /assets/sass/md/mixins/_transparency.scss: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | @mixin opacity($opacity) { 4 | opacity: $opacity; 5 | // IE8 filter 6 | $opacity-ie: ($opacity * 100); 7 | filter: #{alpha(opacity=$opacity-ie)}; 8 | } 9 | 10 | @mixin black-filter($opacity){ 11 | top: 0; 12 | left: 0; 13 | height: 100%; 14 | width: 100%; 15 | position: absolute; 16 | background-color: rgba(17,17,17,$opacity); 17 | display: block; 18 | content: ""; 19 | z-index: 1; 20 | } -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ramosisw/yii2-material-dashboard", 3 | "description": "Material dashboard backend theme asset bundle for Yii 2.0 Framework", 4 | "type": "yii2-extension", 5 | "keywords": ["yii2","extension","material","dashboard","admin","theme","backend","asset","css","less"], 6 | "license": "MIT", 7 | "version" : "1.0.0", 8 | "authors": [{ 9 | "name": "Julio C. Ramos", 10 | "email": "ramosisw@gmail.com" 11 | }], 12 | "require": { 13 | "yiisoft/yii2": "2.*", 14 | "yiisoft/yii2-bootstrap": "2.*" 15 | }, 16 | "autoload": { 17 | "psr-4": { 18 | "ramosisw\\CImaterial\\": "" 19 | } 20 | }, 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "1.0.x-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /assets/sass/md/_tables.scss: -------------------------------------------------------------------------------- 1 | .table{ 2 | > thead > tr > th{ 3 | border-bottom-width: 1px; 4 | font-size: $font-size-h6; 5 | font-weight: $font-weight-light; 6 | } 7 | 8 | .radio, 9 | .checkbox{ 10 | margin-top: 0; 11 | margin-bottom: 0; 12 | margin-left: 10px; 13 | padding: 0; 14 | width: 15px; 15 | 16 | .icons{ 17 | position: relative; 18 | } 19 | } 20 | > thead > tr > th, 21 | > tbody > tr > th, 22 | > tfoot > tr > th, 23 | > thead > tr > td, 24 | > tbody > tr > td, 25 | > tfoot > tr > td{ 26 | padding: 12px 8px; 27 | vertical-align: middle; 28 | } 29 | 30 | > thead > tr > th{ 31 | padding-bottom: 4px; 32 | } 33 | 34 | .td-actions{ 35 | display: flex; 36 | 37 | .btn{ 38 | margin: 0px; 39 | padding: 5px; 40 | } 41 | } 42 | > tbody > tr{ 43 | position: relative; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /assets/sass/md/_ripples.scss: -------------------------------------------------------------------------------- 1 | .withripple { 2 | position: relative; 3 | } 4 | .ripple-container { 5 | position: absolute; 6 | top: 0; 7 | left: 0; 8 | z-index: 1; 9 | width: 100%; 10 | height: 100%; 11 | overflow: hidden; 12 | border-radius: inherit; 13 | pointer-events: none; 14 | 15 | .disabled &{ 16 | display: none; 17 | } 18 | } 19 | .ripple { 20 | position: absolute; 21 | width: 20px; 22 | height: 20px; 23 | margin-left: -10px; 24 | margin-top: -10px; 25 | border-radius: 100%; 26 | background-color: #000; // fallback color 27 | background-color: rgba(0,0,0,0.05); 28 | transform: scale(1); 29 | transform-origin: 50%; 30 | opacity: 0; 31 | pointer-events: none; 32 | } 33 | .ripple.ripple-on { 34 | transition: opacity 0.15s ease-in 0s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; 35 | opacity: 0.1; 36 | } 37 | .ripple.ripple-out { 38 | transition: opacity 0.1s linear 0s !important; 39 | opacity: 0; 40 | } 41 | -------------------------------------------------------------------------------- /assets/sass/md/_footers.scss: -------------------------------------------------------------------------------- 1 | footer{ 2 | padding: $padding-base 0; 3 | 4 | ul{ 5 | margin-bottom: 0; 6 | padding: 0; 7 | list-style: none; 8 | 9 | li{ 10 | display: inline-block; 11 | 12 | a{ 13 | color: inherit; 14 | padding: $padding-base; 15 | font-weight: $font-weight-bold; 16 | font-size: $mdb-btn-font-size-base; 17 | text-transform: uppercase; 18 | border-radius: $border-radius-base; 19 | text-decoration: none; 20 | position: relative; 21 | display: block; 22 | 23 | &:hover{ 24 | text-decoration: none; 25 | } 26 | } 27 | } 28 | } 29 | 30 | .copyright{ 31 | padding: 15px 0; 32 | margin: 0; 33 | .material-icons{ 34 | font-size: 18px; 35 | position: relative; 36 | top: 3px; 37 | } 38 | } 39 | 40 | .btn{ 41 | margin-top: 0; 42 | margin-bottom: 0; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Creative Tim 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /web/MaterialAsset.php: -------------------------------------------------------------------------------- 1 | li.active-pro{ 33 | position: absolute; 34 | width: 100%; 35 | bottom: 10px; 36 | } 37 | 38 | .tim-row{ 39 | margin-bottom: 20px; 40 | } 41 | 42 | .tim-typo{ 43 | padding-left: 25%; 44 | margin-bottom: 40px; 45 | position: relative; 46 | } 47 | .tim-typo .tim-note{ 48 | bottom: 10px; 49 | color: #c0c1c2; 50 | display: block; 51 | font-weight: 400; 52 | font-size: 13px; 53 | line-height: 13px; 54 | left: 0; 55 | margin-left: 20px; 56 | position: absolute; 57 | width: 260px; 58 | } 59 | .tim-row{ 60 | padding-top: 50px; 61 | } 62 | .tim-row h3{ 63 | margin-top: 0; 64 | } 65 | -------------------------------------------------------------------------------- /assets/sass/md/_forms.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | @mixin mdb-label-color-toggle-focus(){ 4 | // override bootstrap focus and keep all the standard color (could be multiple radios in the form group) 5 | .form-group.is-focused & { 6 | color: $mdb-label-color; 7 | 8 | // on focus just darken the specific labels, do not turn them to the brand-primary 9 | &:hover, 10 | &:focus { 11 | color: $mdb-label-color-toggle-focus; 12 | } 13 | 14 | // correct the above focus color for disabled items 15 | fieldset[disabled] & { 16 | color: $mdb-label-color; 17 | } 18 | } 19 | } 20 | 21 | .form-horizontal { 22 | 23 | // Consistent vertical alignment of radios and checkboxes 24 | .radio, 25 | .checkbox, 26 | .radio-inline, 27 | .checkbox-inline { 28 | padding-top: 0; 29 | } 30 | 31 | .radio { 32 | margin-bottom: 10px; 33 | } 34 | 35 | label { 36 | text-align: right; 37 | } 38 | 39 | label.control-label { 40 | margin: 0; 41 | } 42 | } 43 | 44 | .form-newsletter{ 45 | .input-group, 46 | .form-group{ 47 | float: left; 48 | width: 78%; 49 | margin-right: 2%; 50 | margin-top: 9px; 51 | } 52 | 53 | .btn{ 54 | float: left; 55 | width: 20%; 56 | margin: 9px 0 0; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /assets/sass/md/_tabs.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .nav-tabs { 4 | background: $brand-primary; 5 | border: 0; 6 | border-radius: $border-radius-base; 7 | padding: 0 $padding-base; 8 | 9 | > li { 10 | > a { 11 | color: #FFFFFF; 12 | border: 0; 13 | margin: 0; 14 | 15 | border-radius: $border-radius-base; 16 | 17 | line-height: $mdb-btn-font-size-base * 2; 18 | text-transform: uppercase; 19 | font-size: $mdb-btn-font-size-base; 20 | 21 | &:hover { 22 | background-color: transparent; 23 | border: 0; 24 | } 25 | } 26 | & > a, 27 | & > a:hover, 28 | & > a:focus { 29 | background-color: transparent; 30 | border: 0 !important; 31 | color: #FFFFFF !important; 32 | font-weight: $font-weight-bold; 33 | } 34 | &.disabled > a, 35 | &.disabled > a:hover { 36 | color: rgba(255,255,255,0.5); 37 | } 38 | 39 | .material-icons{ 40 | margin: -1px 5px 0 0; 41 | } 42 | } 43 | 44 | >li.active{ 45 | & > a, 46 | & > a:hover, 47 | & > a:focus { 48 | background-color: rgba(255,255,255, .2); 49 | transition: background-color .1s .2s; 50 | } 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /assets/sass/md/_alerts.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .alert { 4 | border: 0; 5 | border-radius: 0; 6 | position: relative; 7 | padding: 20px 15px; 8 | line-height: 20px; 9 | 10 | b{ 11 | font-weight: $font-weight-bold; 12 | text-transform: uppercase; 13 | font-size: $font-size-small; 14 | } 15 | // SASS conversion note: please mirror any content change in _mixins-shared.scss alert-variations-content 16 | @include alert-variations(unquote(".alert"), unquote(""), $mdb-text-color-light); 17 | 18 | &-info, &-danger, &-warning, &-success { 19 | color: $mdb-text-color-light; 20 | } 21 | 22 | &-default { 23 | a, .alert-link { 24 | color: $mdb-text-color-primary; 25 | } 26 | } 27 | 28 | i[data-notify="icon"] { 29 | font-size: 30px; 30 | display: block; 31 | left: 15px; 32 | position: absolute; 33 | top: 50%; 34 | margin-top: -15px; 35 | } 36 | 37 | span{ 38 | display: block; 39 | max-width: 89%; 40 | } 41 | 42 | .alert-icon{ 43 | display: block; 44 | float: left; 45 | margin-right: $margin-base; 46 | 47 | i{ 48 | margin-top: -7px; 49 | top: 5px; 50 | position: relative; 51 | } 52 | } 53 | } 54 | 55 | .alert.alert-with-icon { 56 | padding-left: 65px; 57 | } 58 | -------------------------------------------------------------------------------- /assets/sass/md/_typography.scss: -------------------------------------------------------------------------------- 1 | h1, .h1 { 2 | font-size: $font-size-h1; 3 | line-height: 1.15em; 4 | } 5 | h2, .h2{ 6 | font-size: $font-size-h2; 7 | } 8 | h3, .h3{ 9 | font-size: $font-size-h3; 10 | line-height: 1.4em; 11 | margin: 20px 0 10px; 12 | } 13 | h4, .h4{ 14 | font-size: $font-size-h4; 15 | line-height: 1.4em; 16 | } 17 | h5, .h5 { 18 | font-size: $font-size-h5; 19 | line-height: 1.4em; 20 | margin-bottom: 15px; 21 | } 22 | h6, .h6{ 23 | font-size: $font-size-h6; 24 | text-transform: uppercase; 25 | font-weight: $font-weight-bold; 26 | } 27 | 28 | /*.title, 29 | .card-title, 30 | .info-title, 31 | .footer-brand, 32 | .footer-big h5, 33 | .footer-big h4, 34 | .media .media-heading{ 35 | font-weight: $font-weight-extra-bold; 36 | font-family: $font-family-serif; 37 | 38 | &, 39 | a{ 40 | color: $black-color; 41 | text-decoration: none; 42 | } 43 | }*/ 44 | 45 | h2.title{ 46 | margin-bottom: $margin-base * 2; 47 | } 48 | 49 | .description, 50 | .card-description, 51 | .footer-big p{ 52 | color: $gray-light; 53 | } 54 | 55 | .text-warning { 56 | color: $brand-warning; 57 | } 58 | .text-primary { 59 | color: $brand-primary; 60 | } 61 | .text-danger { 62 | color: $brand-danger; 63 | } 64 | .text-success { 65 | color: $brand-success; 66 | } 67 | .text-info { 68 | color: $brand-info; 69 | } 70 | .text-rose{ 71 | color: $brand-rose; 72 | } 73 | .text-gray{ 74 | color: $gray-color; 75 | } 76 | -------------------------------------------------------------------------------- /assets/sass/material-dashboard.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | ========================================================= 4 | * Material Dashboard - v1.1.1 5 | ========================================================= 6 | 7 | * Product Page: http://www.creative-tim.com/product/material-dashboard 8 | * Copyright 2017 Creative Tim (http://www.creative-tim.com) 9 | * Licensed under MIT (https://github.com/creativetimofficial/material-dashboard/blob/master/LICENSE.md) 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | 15 | */ 16 | 17 | 18 | //variables and mixins 19 | @import "md/variables"; 20 | @import "md/mixins"; 21 | @import "md/shadows"; 22 | 23 | //plugin css 24 | @import "md/plugins/_plugin-nouislider"; 25 | @import "md/plugins/_animate"; 26 | 27 | // Core CSS 28 | @import "md/typography"; 29 | @import "md/sidebar-and-main-panel"; 30 | @import "md/buttons"; 31 | @import "md/misc"; 32 | @import "md/inputs"; 33 | @import "md/forms"; 34 | @import "md/alerts"; 35 | @import "md/tables"; 36 | @import "md/checkboxes"; 37 | @import "md/radios"; 38 | @import "md/togglebutton"; 39 | @import "md/ripples"; 40 | @import "md/pills"; 41 | @import "md/dialogs"; 42 | @import "md/navbars"; 43 | @import "md/popups"; 44 | @import "md/footers"; 45 | 46 | // Fancy Stuff 47 | @import "md/dropdown"; 48 | @import "md/cards"; 49 | @import "md/tabs"; 50 | @import "md/chartist"; 51 | @import "md/responsive"; 52 | -------------------------------------------------------------------------------- /assets/sass/md/_dropdown.scss: -------------------------------------------------------------------------------- 1 | .dropdown-menu { 2 | border: 0; 3 | box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); 4 | 5 | .divider { 6 | background-color: rgba(0, 0, 0, .12); 7 | } 8 | 9 | 10 | li > a{ 11 | font-size: $mdb-dropdown-font-size; 12 | padding: 10px 20px; 13 | margin: 0 5px; 14 | border-radius: $border-radius-small; 15 | @include transition($fast-transition-time, $transition-linear); 16 | 17 | &:hover, 18 | &:focus { 19 | @include shadow-8dp(); 20 | 21 | } 22 | } 23 | 24 | &.dropdown-with-icons{ 25 | li > a{ 26 | padding: 12px 20px 12px 12px; 27 | 28 | .material-icons{ 29 | vertical-align: middle; 30 | font-size: 24px; 31 | position: relative; 32 | margin-top: -4px; 33 | top: 1px; 34 | margin-right: 12px; 35 | opacity: .5; 36 | } 37 | } 38 | } 39 | 40 | li { 41 | position: relative; 42 | a:hover, 43 | a:focus, 44 | a:active { 45 | background-color: $brand-primary; 46 | color: #FFFFFF; 47 | } 48 | } 49 | 50 | .divider{ 51 | margin: 5px 0; 52 | } 53 | 54 | .navbar &, 55 | .navbar.navbar-default &{ 56 | li{ 57 | a:hover, 58 | a:focus, 59 | a:active { 60 | background-color: $brand-primary; 61 | color: #FFFFFF; 62 | @include shadow-big-color($brand-primary); 63 | } 64 | } 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /assets/sass/md/_popups.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .popover, .tooltip-inner { 4 | color: $gray; 5 | line-height: 1.5em; 6 | background: $white-color; 7 | border: none; 8 | border-radius: $border-radius-base; 9 | @include shadow-8dp(); 10 | } 11 | 12 | .popover{ 13 | padding: 0; 14 | @include shadow-16dp(); 15 | 16 | &.left, 17 | &.right, 18 | &.top, 19 | &.bottom{ 20 | > .arrow{ 21 | border: none; 22 | } 23 | } 24 | } 25 | 26 | .popover-title{ 27 | background-color: $white-color; 28 | border: none; 29 | padding: 15px 15px 5px; 30 | font-size: $font-size-h4; 31 | } 32 | 33 | .popover-content{ 34 | padding: 10px 15px 15px; 35 | line-height: 1.4; 36 | } 37 | 38 | .tooltip, .tooltip.in { 39 | //opacity: 1; 40 | } 41 | .tooltip.in{ 42 | opacity: 1; 43 | @include transform-translate-y(0px); 44 | 45 | 46 | } 47 | .tooltip{ 48 | opacity: 0; 49 | transition: opacity, transform .2s ease; 50 | @include transform-translate-y(5px); 51 | 52 | &.left{ 53 | .tooltip-arrow{ 54 | border-left-color: $white-color; 55 | } 56 | } 57 | &.right{ 58 | .tooltip-arrow{ 59 | border-right-color: $white-color; 60 | } 61 | } 62 | &.top{ 63 | .tooltip-arrow{ 64 | border-top-color: $white-color; 65 | } 66 | } 67 | &.bottom{ 68 | .tooltip-arrow{ 69 | border-bottom-color: $white-color; 70 | } 71 | } 72 | } 73 | 74 | .tooltip-inner{ 75 | padding: 10px 15px; 76 | min-width: 130px; 77 | } 78 | -------------------------------------------------------------------------------- /assets/sass/md/_dialogs.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | // 4 | // Modals 5 | // Material Design element Dialogs 6 | // -------------------------------------------------- 7 | .modal-content { 8 | @include shadow-z-5(); 9 | border-radius: $border-radius-large; 10 | border: none; 11 | // Modal header 12 | // Top section of the modal w/ title and dismiss 13 | .modal-header { 14 | border-bottom: none; 15 | padding-top: 24px; 16 | padding-right: 24px; 17 | padding-bottom: 0; 18 | padding-left: 24px; 19 | } 20 | // Modal body 21 | // Where all modal content resides (sibling of .modal-header and .modal-footer) 22 | .modal-body { 23 | padding-top: 24px; 24 | padding-right: 24px; 25 | padding-bottom: 16px; 26 | padding-left: 24px; 27 | } 28 | // Footer (for actions) 29 | .modal-footer { 30 | border-top: none; 31 | padding: 7px; 32 | 33 | &.text-center{ 34 | text-align: center; 35 | } 36 | 37 | button { 38 | margin: 0; 39 | padding-left: 16px; 40 | padding-right: 16px; 41 | width: auto; 42 | &.pull-left { 43 | padding-left: 5px; 44 | padding-right: 5px; 45 | position: relative; 46 | left: -5px; 47 | } 48 | } 49 | button+button { 50 | margin-bottom: 16px; 51 | } 52 | } 53 | .modal-body + .modal-footer { 54 | padding-top: 0; 55 | } 56 | } 57 | .modal-backdrop { 58 | background: rgba(0,0,0,0.3); 59 | } 60 | 61 | .modal{ 62 | .modal-dialog{ 63 | margin-top: 100px; 64 | } 65 | .modal-header .close{ 66 | color: $gray-light; 67 | 68 | &:hover, 69 | &:focus{ 70 | opacity: 1; 71 | } 72 | 73 | i{ 74 | font-size: 16px; 75 | } 76 | } 77 | } 78 | 79 | .modal-notice { 80 | .instruction{ 81 | margin-bottom: 25px; 82 | } 83 | .picture{ 84 | max-width: 150px; 85 | } 86 | 87 | .modal-content{ 88 | .btn-raised{ 89 | margin-bottom: 15px; 90 | } 91 | } 92 | } 93 | 94 | .modal-small{ 95 | width: 300px; 96 | .modal-body{ 97 | margin-top: 20px; 98 | } 99 | } -------------------------------------------------------------------------------- /assets/sass/md/_togglebutton.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .togglebutton { 4 | vertical-align: middle; 5 | &, label, input, .toggle { 6 | user-select: none; 7 | } 8 | label { 9 | cursor: pointer; 10 | color: $mdb-toggle-label-color; 11 | @include mdb-label-color-toggle-focus(); 12 | 13 | // Hide original checkbox 14 | input[type=checkbox] { 15 | opacity: 0; 16 | width: 0; 17 | height: 0; 18 | } 19 | 20 | .toggle { 21 | text-align: left; // Issue #737 horizontal form 22 | margin-left: 5px; 23 | } 24 | // Switch bg off and disabled 25 | .toggle, 26 | input[type=checkbox][disabled] + .toggle { 27 | content: ""; 28 | display: inline-block; 29 | width: 30px; 30 | height: 15px; 31 | background-color: rgba(80, 80, 80, 0.7); 32 | border-radius: 15px; 33 | margin-right: 15px; 34 | transition: background 0.3s ease; 35 | vertical-align: middle; 36 | } 37 | // Handle off 38 | .toggle:after { 39 | content: ""; 40 | display: inline-block; 41 | width: 20px; 42 | height: 20px; 43 | background-color: #FFFFFF; 44 | border-radius: 20px; 45 | position: relative; 46 | box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4); 47 | left: -5px; 48 | top: -3px; 49 | border: 1px solid $mdb-checkbox-border-color; 50 | transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease; 51 | } 52 | input[type=checkbox] { 53 | // Handle disabled 54 | &[disabled] { 55 | & + .toggle:after, 56 | &:checked + .toggle:after { 57 | background-color: #BDBDBD; 58 | } 59 | } 60 | 61 | & + .toggle:active:after, 62 | &[disabled] + .toggle:active:after { 63 | box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1); 64 | } 65 | 66 | // Ripple off and disabled 67 | &:checked + .toggle:after { 68 | left: 15px; 69 | } 70 | } 71 | 72 | // set bg when checked 73 | input[type=checkbox]:checked { 74 | + .toggle { 75 | background-color: rgba($brand-primary, (70/100)); // Switch bg on 76 | } 77 | 78 | + .toggle:after { 79 | border-color: $brand-primary; // Handle on 80 | } 81 | 82 | + .toggle:active:after { 83 | box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($brand-primary, (10/100)); // Ripple on 84 | } 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /assets/sass/md/_radios.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | @mixin radio-color($color, $opacity){ 4 | & ~ .check, 5 | & ~ .circle { 6 | opacity: $opacity; 7 | } 8 | 9 | & ~ .check { 10 | background-color: $color; 11 | } 12 | 13 | & ~ .circle { 14 | border-color: $color; 15 | } 16 | } 17 | 18 | .radio { 19 | label { 20 | cursor: pointer; 21 | padding-left: 35px; 22 | position: relative; 23 | color: $mdb-radio-label-color; 24 | @include mdb-label-color-toggle-focus(); 25 | 26 | span { 27 | display: block; 28 | position: absolute; 29 | left: 10px; 30 | top: 2px; 31 | transition-duration: 0.2s; 32 | } 33 | .circle { 34 | border: 1px solid $mdb-radio-color-off; 35 | height: 15px; 36 | width: 15px; 37 | border-radius: 100%; 38 | } 39 | .check { 40 | height: 15px; 41 | width: 15px; 42 | border-radius: 100%; 43 | background-color: $mdb-radio-color-on; 44 | transform: scale3d(0, 0, 0); 45 | } 46 | .check:after { 47 | display: block; 48 | position: absolute; 49 | content: ""; 50 | background-color: $mdb-text-color-primary; 51 | left: -18px; 52 | top: -18px; 53 | height: 50px; 54 | width: 50px; 55 | border-radius: 100%; 56 | z-index: 1; 57 | opacity: 0; 58 | margin: 0; 59 | transform: scale3d(1.5, 1.5, 1); 60 | } 61 | input[type=radio]:not(:checked) ~ .check:after { 62 | animation: rippleOff 500ms; 63 | } 64 | input[type=radio]:checked ~ .check:after { 65 | animation: rippleOn 500ms; 66 | } 67 | 68 | } 69 | 70 | input[type=radio] { 71 | opacity: 0; 72 | height: 0; 73 | width: 0; 74 | overflow: hidden; 75 | 76 | &:checked { 77 | @include radio-color($mdb-radio-color-on, 1); 78 | } 79 | &:checked ~ .check { 80 | transform: scale3d(0.65, 0.65, 1); 81 | } 82 | } 83 | 84 | input[type=radio][disabled] { 85 | 86 | // light theme spec: Disabled: #000000, Opacity 26% 87 | @include radio-color($black, 0.26); 88 | 89 | } 90 | } 91 | 92 | @keyframes rippleOn { 93 | 0% { 94 | opacity: 0; 95 | } 96 | 50% { 97 | opacity: 0.2; 98 | } 99 | 100% { 100 | opacity: 0; 101 | } 102 | } 103 | 104 | @keyframes rippleOff { 105 | 0% { 106 | opacity: 0; 107 | } 108 | 50% { 109 | opacity: 0.2; 110 | } 111 | 100% { 112 | opacity: 0; 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /assets/sass/md/_misc.scss: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #EEEEEE; 3 | // background: #fdfdfe; 4 | color: $black-color; 5 | &.inverse { 6 | background: #333333; 7 | &, .form-control { 8 | color: $mdb-text-color-light; 9 | } 10 | .modal, 11 | .panel-default, 12 | .card { 13 | &, 14 | .form-control { 15 | background-color: initial; 16 | color: initial; 17 | } 18 | } 19 | 20 | } 21 | } 22 | 23 | .wrapper{ 24 | 25 | &.wrapper-full-page{ 26 | height: auto; 27 | min-height: 100vh; 28 | } 29 | } 30 | 31 | 32 | blockquote{ 33 | p{ 34 | font-style: italic; 35 | } 36 | } 37 | 38 | .life-of-material-dashboard{ 39 | background: #FFFFFF; 40 | } 41 | 42 | body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { 43 | font-family: $font-family-sans-serif; 44 | font-weight: 300; 45 | line-height: 1.5em; 46 | } 47 | 48 | .serif-font{ 49 | font-family: $font-family-serif; 50 | } 51 | 52 | .page-header { 53 | height: 60vh; 54 | background-position: center center; 55 | background-size: cover; 56 | margin: 0; 57 | padding: 0; 58 | border: 0; 59 | border-bottom-left-radius: 6px; 60 | border-bottom-right-radius: 6px; 61 | } 62 | 63 | a{ 64 | color: $link-color; 65 | &:hover, 66 | &:focus{ 67 | color: darken($link-color, 5%); 68 | text-decoration: none; 69 | } 70 | 71 | &.text-info{ 72 | &:hover, &:focus{ 73 | color: darken($brand-info, 5%); 74 | } 75 | } 76 | 77 | & .material-icons { 78 | vertical-align: middle; 79 | } 80 | } 81 | 82 | /* Animations */ 83 | .animation-transition-general{ 84 | @include transition($general-transition-time, $transition-linear); 85 | } 86 | 87 | .animation-transition-slow{ 88 | @include transition($slow-transition-time, $transition-linear); 89 | } 90 | 91 | .animation-transition-fast{ 92 | @include transition($fast-transition-time, $transition-ease); 93 | } 94 | legend { 95 | border-bottom: 0; 96 | } 97 | 98 | // Prevent highlight on mobile 99 | * { 100 | -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 101 | -webkit-tap-highlight-color: transparent; 102 | &:focus { 103 | outline: 0; 104 | } 105 | } 106 | a:focus, a:active, 107 | button:active, button:focus, button:hover, 108 | button::-moz-focus-inner, 109 | input[type="reset"]::-moz-focus-inner, 110 | input[type="button"]::-moz-focus-inner, 111 | input[type="submit"]::-moz-focus-inner, 112 | select::-moz-focus-inner, 113 | input[type="file"] > input[type="button"]::-moz-focus-inner { 114 | outline : 0 !important; 115 | } 116 | -------------------------------------------------------------------------------- /assets/sass/md/_pills.scss: -------------------------------------------------------------------------------- 1 | .nav-pills{ 2 | 3 | .section-dark &, 4 | .section-image &{ 5 | > li > a{ 6 | color: $gray-color; 7 | } 8 | > li{ 9 | > a:hover, 10 | > a:focus{ 11 | background-color: #EEEEEE; 12 | } 13 | } 14 | } 15 | 16 | > li { 17 | > a{ 18 | line-height: $mdb-btn-font-size-base * 2; 19 | text-transform: uppercase; 20 | font-size: $mdb-btn-font-size-base; 21 | font-weight: $font-weight-bold; 22 | min-width: 100px; 23 | text-align: center; 24 | color: $gray; 25 | transition: all .3s; 26 | 27 | &:hover{ 28 | background-color: rgba(200, 200, 200, 0.2); 29 | } 30 | } 31 | 32 | i{ 33 | display: block; 34 | font-size: 30px; 35 | padding: 15px 0; 36 | } 37 | 38 | &.active > a{ 39 | &, 40 | &:focus, 41 | &:hover{ 42 | background-color: $brand-primary; 43 | color: $white-color; 44 | @include shadow-big-color($brand-primary); 45 | } 46 | } 47 | 48 | } 49 | 50 | &:not(.nav-pills-icons){ 51 | > li > a{ 52 | border-radius: $border-radius-extreme; 53 | } 54 | } 55 | 56 | &.nav-stacked{ 57 | > li + li{ 58 | margin-top: 5px; 59 | } 60 | } 61 | 62 | &.nav-pills-info{ 63 | > li { 64 | &.active > a{ 65 | &, 66 | &:focus, 67 | &:hover{ 68 | background-color: $brand-info; 69 | @include shadow-big-color($brand-info); 70 | } 71 | } 72 | } 73 | } 74 | 75 | &.nav-pills-success{ 76 | > li { 77 | &.active > a{ 78 | &, 79 | &:focus, 80 | &:hover{ 81 | background-color: $brand-success; 82 | @include shadow-big-color($brand-success); 83 | } 84 | } 85 | } 86 | } 87 | 88 | &.nav-pills-warning{ 89 | > li { 90 | &.active > a{ 91 | &, 92 | &:focus, 93 | &:hover{ 94 | background-color: $brand-warning; 95 | @include shadow-big-color($brand-warning); 96 | } 97 | } 98 | } 99 | } 100 | 101 | &.nav-pills-danger{ 102 | > li { 103 | &.active > a{ 104 | &, 105 | &:focus, 106 | &:hover{ 107 | background-color: $brand-danger; 108 | @include shadow-big-color($brand-warning); 109 | } 110 | } 111 | } 112 | } 113 | 114 | } 115 | .tab-space{ 116 | padding: 20px 0 50px 0px; 117 | } 118 | -------------------------------------------------------------------------------- /widgets/Alert.php: -------------------------------------------------------------------------------- 1 | getSession()->setFlash('error', 'Alert! Danger alert preview. This alert is dismissable.'); 19 | * ``` 20 | * 21 | * Multiple messages could be set as follows: 22 | * 23 | * ```php 24 | * \Yii::$app->getSession()->setFlash('error', ['Error 1', 'Error 2']); 25 | * ``` 26 | * 27 | * @author Julio C. Ramos 28 | */ 29 | class Alert extends Widget { 30 | /** 31 | * @var array the alert types configuration for the flash messages. 32 | * This array is setup as $key => $value, where: 33 | * - $key is the name of the session flash variable 34 | * - $value is the array: 35 | * - class of alert type (i.e. danger, success, info, warning) 36 | * - icon for alert AdminLTE 37 | */ 38 | public $alertTypes = [ 39 | 'error' => [ 40 | 'class' => 'alert-danger', 41 | 'icon' => '', 42 | ], 43 | 'danger' => [ 44 | 'class' => 'alert-danger', 45 | 'icon' => '', 46 | ], 47 | 'success' => [ 48 | 'class' => 'alert-success', 49 | 'icon' => '', 50 | ], 51 | 'info' => [ 52 | 'class' => 'alert-info', 53 | 'icon' => '', 54 | ], 55 | 'warning' => [ 56 | 'class' => 'alert-warning', 57 | 'icon' => '', 58 | ], 59 | ]; 60 | 61 | /** 62 | * @var array the options for rendering the close button tag. 63 | */ 64 | public $closeButton = []; 65 | 66 | /** 67 | * Initializes the widget. 68 | * This method will register the bootstrap asset bundle. If you override this method, 69 | * make sure you call the parent implementation first. 70 | */ 71 | public function init(){ 72 | parent::init(); 73 | 74 | $session = \Yii::$app->getSession(); 75 | $flashes = $session->getAllFlashes(); 76 | $appendCss = isset($this->options['class']) ? ' ' . $this->options['class'] : ''; 77 | 78 | foreach ($flashes as $type => $data) { 79 | if (isset($this->alertTypes[$type])) { 80 | $data = (array) $data; 81 | foreach ($data as $message) { 82 | 83 | $this->options['class'] = $this->alertTypes[$type]['class'] . $appendCss; 84 | $this->options['id'] = $this->getId() . '-' . $type; 85 | 86 | echo BootstrapAlert::widget([ 87 | 'body' => $this->alertTypes[$type]['icon'] . $message, 88 | 'closeButton' => $this->closeButton, 89 | 'options' => $this->options, 90 | ]); 91 | } 92 | 93 | $session->removeFlash($type); 94 | } 95 | } 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /assets/sass/md/mixins/_chartist.scss: -------------------------------------------------------------------------------- 1 | // Scales for responsive SVG containers 2 | $ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; 3 | $ct-scales-names: (ct-square, ct-minor-second, ct-major-second, ct-minor-third, ct-major-third, ct-perfect-fourth, ct-perfect-fifth, ct-minor-sixth, ct-golden-section, ct-major-sixth, ct-minor-seventh, ct-major-seventh, ct-octave, ct-major-tenth, ct-major-eleventh, ct-major-twelfth, ct-double-octave) !default; 4 | 5 | // Class names to be used when generating CSS 6 | $ct-class-chart: ct-chart !default; 7 | $ct-class-chart-line: ct-chart-line !default; 8 | $ct-class-chart-bar: ct-chart-bar !default; 9 | $ct-class-horizontal-bars: ct-horizontal-bars !default; 10 | $ct-class-chart-pie: ct-chart-pie !default; 11 | $ct-class-chart-donut: ct-chart-donut !default; 12 | $ct-class-label: ct-label !default; 13 | $ct-class-series: ct-series !default; 14 | $ct-class-line: ct-line !default; 15 | $ct-class-point: ct-point !default; 16 | $ct-class-area: ct-area !default; 17 | $ct-class-bar: ct-bar !default; 18 | $ct-class-slice-pie: ct-slice-pie !default; 19 | $ct-class-slice-donut: ct-slice-donut !default; 20 | $ct-class-grid: ct-grid !default; 21 | $ct-class-vertical: ct-vertical !default; 22 | $ct-class-horizontal: ct-horizontal !default; 23 | $ct-class-start: ct-start !default; 24 | $ct-class-end: ct-end !default; 25 | 26 | // Container ratio 27 | $ct-container-ratio: (1/1.618) !default; 28 | 29 | // Text styles for labels 30 | $ct-text-color: rgba(0, 0, 0, 0.4) !default; 31 | $ct-text-size: 1.3rem !default; 32 | $ct-text-align: flex-start !default; 33 | $ct-text-justify: flex-start !default; 34 | $ct-text-line-height: 1; 35 | 36 | .ct-big-chart-white{ 37 | $ct-grid-color: rgba(250, 250, 250, 0.7) !default; 38 | } 39 | // Grid styles 40 | $ct-grid-color: rgba(0, 0, 0, 0.2) !default; 41 | $ct-grid-dasharray: 2px !default; 42 | $ct-grid-width: 1px !default; 43 | 44 | // Line chart properties 45 | $ct-line-width: 3px !default; 46 | $ct-line-dasharray: false !default; 47 | $ct-point-size: 8px !default; 48 | // Line chart point, can be either round or square 49 | $ct-point-shape: round !default; 50 | // Area fill transparency between 0 and 1 51 | $ct-area-opacity: 0.8 !default; 52 | 53 | // Bar chart bar width 54 | $ct-bar-width: 10px !default; 55 | 56 | // Donut width (If donut width is to big it can cause issues where the shape gets distorted) 57 | $ct-donut-width: 60px !default; 58 | 59 | // If set to true it will include the default classes and generate CSS output. If you're planning to use the mixins you 60 | // should set this property to false 61 | $ct-include-classes: true !default; 62 | 63 | // If this is set to true the CSS will contain colored series. You can extend or change the color with the 64 | // properties below 65 | $ct-include-colored-series: $ct-include-classes !default; 66 | 67 | // If set to true this will include all responsive container variations using the scales defined at the top of the script 68 | $ct-include-alternative-responsive-containers: $ct-include-classes !default; 69 | 70 | // Series names and colors. This can be extended or customized as desired. Just add more series and colors. 71 | $ct-series-names: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) !default; 72 | $ct-series-colors: ( 73 | 74 | $brand-info, 75 | $brand-danger, 76 | $brand-warning, 77 | $brand-primary, 78 | $brand-success, 79 | $font-background-light-grey, 80 | $gray-color, 81 | $social-google, 82 | $social-tumblr, 83 | $social-youtube, 84 | $social-twitter, 85 | $social-pinterest, 86 | $social-behance, 87 | #6188e2, 88 | #a748ca 89 | ) !default; 90 | -------------------------------------------------------------------------------- /assets/sass/md/plugins/_plugin-nouislider.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .noUi-target, 4 | .noUi-target * { 5 | -webkit-touch-callout: none; 6 | -ms-touch-action: none; 7 | user-select: none; 8 | box-sizing: border-box; 9 | } 10 | .noUi-base { 11 | width: 100%; 12 | height: 100%; 13 | position: relative; 14 | } 15 | .noUi-origin { 16 | position: absolute; 17 | right: 0; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | } 22 | .noUi-handle { 23 | position: relative; 24 | z-index: 1; 25 | box-sizing: border-box; 26 | } 27 | .noUi-stacking .noUi-handle { 28 | z-index: 10; 29 | } 30 | //.noUi-stacking + .noUi-origin { 31 | // *z-index: -1; 32 | //} WARNING: Property with star prefix found. Checks for the star property hack (targets IE6/7) (star-property-hack) Browsers: All 33 | .noUi-state-tap .noUi-origin { 34 | transition: left 0.3s, top 0.3s; 35 | } 36 | .noUi-state-drag * { 37 | cursor: inherit !important; 38 | } 39 | .noUi-horizontal { 40 | height: 10px; 41 | } 42 | .noUi-handle { 43 | box-sizing: border-box; 44 | width: 14px; 45 | height: 14px; 46 | left: -10px; 47 | top: -6px; 48 | cursor: pointer; 49 | border-radius: 100%; 50 | transition: all 0.2s ease-out; 51 | border: 1px solid; 52 | background: $white-color; 53 | 54 | @include shadow-2dp(); 55 | } 56 | .noUi-vertical .noUi-handle { 57 | margin-left: 5px; 58 | cursor: ns-resize; 59 | } 60 | .noUi-horizontal.noUi-extended { 61 | padding: 0 15px; 62 | } 63 | .noUi-horizontal.noUi-extended .noUi-origin { 64 | right: -15px; 65 | } 66 | .noUi-background { 67 | height: 2px; 68 | margin: 20px 0; 69 | } 70 | .noUi-origin { 71 | margin: 0; 72 | border-radius: 0; 73 | height: 2px; 74 | background: #c8c8c8; 75 | &[style^="left: 0"] .noUi-handle { 76 | background-color: #fff; 77 | border: 2px solid #c8c8c8; 78 | &.noUi-active { 79 | border-width: 1px; 80 | } 81 | } 82 | } 83 | .noUi-target { 84 | border-radius: $border-radius-base; 85 | } 86 | .noUi-horizontal { 87 | height: 2px; 88 | margin: 15px 0; 89 | } 90 | .noUi-vertical { 91 | height: 100%; 92 | width: 2px; 93 | margin: 0 15px; 94 | display: inline-block; 95 | } 96 | .noUi-handle.noUi-active { 97 | transform: scale3d(2, 2, 1); 98 | } 99 | [disabled].noUi-slider{ 100 | opacity: 0.5; 101 | } 102 | [disabled] .noUi-handle { 103 | cursor: not-allowed; 104 | } 105 | 106 | .slider { 107 | background: #c8c8c8; 108 | } 109 | 110 | .slider { 111 | 112 | &.noUi-connect{ 113 | background-color: $brand-primary; 114 | } 115 | 116 | .noUi-handle{ 117 | border-color: $brand-primary; 118 | } 119 | 120 | &.slider-info{ 121 | & .noUi-connect, 122 | &.noUi-connect{ 123 | background-color: $brand-info; 124 | } 125 | 126 | .noUi-handle{ 127 | border-color: $brand-info; 128 | } 129 | } 130 | &.slider-success{ 131 | & .noUi-connect, 132 | &.noUi-connect{ 133 | background-color: $brand-success; 134 | } 135 | 136 | .noUi-handle{ 137 | border-color: $brand-success; 138 | } 139 | } 140 | &.slider-warning{ 141 | & .noUi-connect, 142 | &.noUi-connect{ 143 | background-color: $brand-warning; 144 | } 145 | 146 | .noUi-handle{ 147 | border-color: $brand-warning; 148 | } 149 | } 150 | &.slider-danger{ 151 | & .noUi-connect, 152 | &.noUi-connect{ 153 | background-color: $brand-danger; 154 | } 155 | 156 | .noUi-handle{ 157 | border-color: $brand-danger; 158 | } 159 | } 160 | 161 | } 162 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [Yii2 Material Dashboard - Free Bootstrap Material Design Admin](http://demos.creative-tim.com/material-dashboard/examples/dashboard.html) 2 | 3 | ![alt text](http://s3.amazonaws.com/creativetim_bucket/products/50/original/opt_md_thumbnail.jpg "Material Dashboard Free") 4 | 5 | Material Dashboard is a free Material Bootstrap Admin with a fresh, new design inspired by Google's Material Design. We are very excited to introduce our take on the material concepts through an easy to use and beautiful set of components. Material Dashboard was built over the popular Bootstrap framework and it comes with a couple of third-party plugins redesigned to fit in with the rest of the elements. 6 | 7 | Material Dashboard makes use of light, surface and movement. The general layout resembles sheets of paper following multiple different layers, so that the depth and order is obvious. The navigation stays mainly on the left sidebar and the content is on the right inside the main panel. 8 | 9 | This product came as a result of users asking for a material dashboard after we released our successful [Material Kit](http://www.creative-tim.com/product/material-kit). We developed it based on your feedback and it is a powerful bootstrap admin dashboard, which allows you to build products like admin panels, content managements systems and CRMs. 10 | 11 | Material Dashboard comes with 5 color filter choices for both the sidebar and the card headers (blue, green, orange, red and purple) and an option to have a background image on the sidebar. 12 | 13 | Material Dashboard uses a framework built by our friend [Federico - Bootstrap Material Design](http://fezvrasta.github.io/bootstrap-material-design/), who did an amazing job creating the backbone for the material effects, animations, ripples and transitions. Big thanks to his team for the effort and forward thinking they put into it. 14 | 15 | Special thanks go to: 16 | [Robert McIntosh](https://github.com/mouse0270/bootstrap-notify) for the notification system. 17 | [Chartist](https://gionkunz.github.io/chartist-js/) for the wonderful charts. 18 | [Creative Tim](https://github.com/creativetimofficial/material-dashboard/) 19 | 20 | Installation 21 | ------------ 22 | The preferred way to install this extension is through [composer](http://getcomposer.org/download/). 23 | 24 | To install Material Dashboard run: 25 | 26 | ```sh 27 | php composer.phar require ramosisw/yii2-material-dashboard "dev-master" 28 | ``` 29 | 30 | ## Or 31 | 32 | Add to composer.json 33 | 34 | ```json 35 | { 36 | "require": { 37 | "ramosisw/yii2-material-dashboard": "dev-master" 38 | } 39 | } 40 | ``` 41 | 42 | And run 43 | 44 | ```sh 45 | php composer.phar update 46 | ``` 47 | 48 | Usage 49 | ----- 50 | in your layouts/main.php include followin code 51 | 52 | ```php 53 | 65 | beginPage() ?> 66 | 67 | ``` 68 | 69 | 70 | ### What's included 71 | 72 | Within the download you'll find the following directories and files: 73 | 74 | ``` 75 | yii2-material-dashboard/ 76 | ├── assets/ 77 | | ├── css/ 78 | | | ├── bootstrap.min.css 79 | | | ├── material-dashboard.css 80 | | | └── demo.css 81 | | ├── js/ 82 | | | ├── bootstrap-notify.js 83 | | | ├── bootstrap.min.js 84 | | | ├── chartist.min.js 85 | | | ├── demo.js 86 | | | ├── jquery-3.1.0.min.js 87 | | | ├── material-dashboard.js 88 | | | └── material.min.js 89 | | ├── sass/ 90 | | | ├── md 91 | | | └── material-dashboard.scss 92 | | └── img/ 93 | ├── documentation/ 94 | ├── examples/ 95 | ├── web/ 96 | | └── MaterialAsset.php 97 | | 98 | └── widgets/ 99 | ├── Alert.php 100 | └── MaterialAsset.php 101 | ``` 102 | 103 | Version logs 104 | ------------ 105 | 106 | V1.0.0 5 Sept, 2017 - Initial Release 107 | 108 | License 109 | ------- 110 | - Copyright 2017 Creative Tim (http://www.creative-tim.com) 111 | - Licensed under MIT (https://github.com/creativetimofficial/material-dashboard/blob/master/LICENSE.md) 112 | -------------------------------------------------------------------------------- /assets/sass/md/plugins/_animate.scss: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | // This file was modified by Creative Tim to keep only the animation that we need for Bootstrap Notify 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | @charset "UTF-8"; 34 | 35 | /*! 36 | Animate.css - http://daneden.me/animate 37 | Licensed under the MIT license - http://opensource.org/licenses/MIT 38 | 39 | Copyright (c) 2015 Daniel Eden 40 | */ 41 | 42 | .animated { 43 | -webkit-animation-duration: 1s; 44 | animation-duration: 1s; 45 | -webkit-animation-fill-mode: both; 46 | animation-fill-mode: both; 47 | } 48 | 49 | .animated.infinite { 50 | -webkit-animation-iteration-count: infinite; 51 | animation-iteration-count: infinite; 52 | } 53 | 54 | .animated.hinge { 55 | -webkit-animation-duration: 2s; 56 | animation-duration: 2s; 57 | } 58 | 59 | .animated.bounceIn, 60 | .animated.bounceOut { 61 | -webkit-animation-duration: .75s; 62 | animation-duration: .75s; 63 | } 64 | 65 | .animated.flipOutX, 66 | .animated.flipOutY { 67 | -webkit-animation-duration: .75s; 68 | animation-duration: .75s; 69 | } 70 | 71 | @-webkit-keyframes shake { 72 | from, to { 73 | -webkit-transform: translate3d(0, 0, 0); 74 | transform: translate3d(0, 0, 0); 75 | } 76 | 77 | 10%, 30%, 50%, 70%, 90% { 78 | -webkit-transform: translate3d(-10px, 0, 0); 79 | transform: translate3d(-10px, 0, 0); 80 | } 81 | 82 | 20%, 40%, 60%, 80% { 83 | -webkit-transform: translate3d(10px, 0, 0); 84 | transform: translate3d(10px, 0, 0); 85 | } 86 | } 87 | 88 | @keyframes shake { 89 | from, to { 90 | -webkit-transform: translate3d(0, 0, 0); 91 | transform: translate3d(0, 0, 0); 92 | } 93 | 94 | 10%, 30%, 50%, 70%, 90% { 95 | -webkit-transform: translate3d(-10px, 0, 0); 96 | transform: translate3d(-10px, 0, 0); 97 | } 98 | 99 | 20%, 40%, 60%, 80% { 100 | -webkit-transform: translate3d(10px, 0, 0); 101 | transform: translate3d(10px, 0, 0); 102 | } 103 | } 104 | 105 | .shake { 106 | -webkit-animation-name: shake; 107 | animation-name: shake; 108 | } 109 | 110 | 111 | 112 | @-webkit-keyframes fadeInDown { 113 | from { 114 | opacity: 0; 115 | -webkit-transform: translate3d(0, -100%, 0); 116 | transform: translate3d(0, -100%, 0); 117 | } 118 | 119 | to { 120 | opacity: 1; 121 | -webkit-transform: none; 122 | transform: none; 123 | } 124 | } 125 | 126 | @keyframes fadeInDown { 127 | from { 128 | opacity: 0; 129 | -webkit-transform: translate3d(0, -100%, 0); 130 | transform: translate3d(0, -100%, 0); 131 | } 132 | 133 | to { 134 | opacity: 1; 135 | -webkit-transform: none; 136 | transform: none; 137 | } 138 | } 139 | 140 | .fadeInDown { 141 | -webkit-animation-name: fadeInDown; 142 | animation-name: fadeInDown; 143 | } 144 | 145 | 146 | @-webkit-keyframes fadeOut { 147 | from { 148 | opacity: 1; 149 | } 150 | 151 | to { 152 | opacity: 0; 153 | } 154 | } 155 | 156 | @keyframes fadeOut { 157 | from { 158 | opacity: 1; 159 | } 160 | 161 | to { 162 | opacity: 0; 163 | } 164 | } 165 | 166 | .fadeOut { 167 | -webkit-animation-name: fadeOut; 168 | animation-name: fadeOut; 169 | } 170 | 171 | @-webkit-keyframes fadeOutDown { 172 | from { 173 | opacity: 1; 174 | } 175 | 176 | to { 177 | opacity: 0; 178 | -webkit-transform: translate3d(0, 100%, 0); 179 | transform: translate3d(0, 100%, 0); 180 | } 181 | } 182 | 183 | @keyframes fadeOutDown { 184 | from { 185 | opacity: 1; 186 | } 187 | 188 | to { 189 | opacity: 0; 190 | -webkit-transform: translate3d(0, 100%, 0); 191 | transform: translate3d(0, 100%, 0); 192 | } 193 | } 194 | 195 | .fadeOutDown { 196 | -webkit-animation-name: fadeOutDown; 197 | animation-name: fadeOutDown; 198 | } 199 | 200 | @-webkit-keyframes fadeOutUp { 201 | from { 202 | opacity: 1; 203 | } 204 | 205 | to { 206 | opacity: 0; 207 | -webkit-transform: translate3d(0, -100%, 0); 208 | transform: translate3d(0, -100%, 0); 209 | } 210 | } 211 | 212 | @keyframes fadeOutUp { 213 | from { 214 | opacity: 1; 215 | } 216 | 217 | to { 218 | opacity: 0; 219 | -webkit-transform: translate3d(0, -100%, 0); 220 | transform: translate3d(0, -100%, 0); 221 | } 222 | } 223 | 224 | .fadeOutUp { 225 | -webkit-animation-name: fadeOutUp; 226 | animation-name: fadeOutUp; 227 | } 228 | -------------------------------------------------------------------------------- /assets/sass/md/_checkboxes.scss: -------------------------------------------------------------------------------- 1 | .form-group { 2 | } 3 | 4 | .checkbox { 5 | label { 6 | cursor: pointer; 7 | padding-left: 0; // Reset for Bootstrap rule 8 | color: $mdb-checkbox-label-color; 9 | @include mdb-label-color-toggle-focus(); 10 | } 11 | 12 | // Hide native checkbox 13 | input[type=checkbox] { 14 | opacity: 0; 15 | position: absolute; 16 | margin: 0; 17 | z-index: -1; 18 | width: 0; 19 | height: 0; 20 | overflow: hidden; 21 | left: 0; 22 | pointer-events: none; 23 | } 24 | 25 | .checkbox-material { 26 | vertical-align: middle; 27 | position: relative; 28 | top: 3px; 29 | padding-right: 5px; 30 | 31 | &:before { 32 | display: block; 33 | position: absolute; 34 | left: 0; 35 | content: ""; 36 | background-color: rgba(0,0,0,.84); 37 | height: $mdb-checkbox-size; 38 | width: $mdb-checkbox-size; 39 | border-radius: 100%; 40 | z-index: 1; 41 | opacity: 0; 42 | margin: 0; 43 | transform: scale3d(2.3, 2.3, 1); 44 | } 45 | 46 | .check { 47 | position: relative; 48 | display: inline-block; 49 | width: $mdb-checkbox-size; 50 | height: $mdb-checkbox-size; 51 | border: 1px solid $mdb-checkbox-border-color; 52 | overflow: hidden; 53 | z-index: 1; 54 | border-radius: $border-radius-base; 55 | } 56 | .check:before { 57 | position: absolute; 58 | content: ""; 59 | transform: rotate(45deg); 60 | display: block; 61 | margin-top: -3px; 62 | margin-left: 7px; 63 | width: 0; 64 | height: 0; 65 | background: red; 66 | box-shadow: 67 | 0 0 0 0, 68 | 0 0 0 0, 69 | 0 0 0 0, 70 | 0 0 0 0, 71 | 0 0 0 0, 72 | 0 0 0 0, 73 | 0 0 0 0 inset; 74 | animation: checkbox-off $mdb-checkbox-animation-check forwards; 75 | } 76 | } 77 | 78 | input[type=checkbox] { 79 | 80 | &:focus + .checkbox-material .check:after { 81 | opacity: 0.2; 82 | } 83 | 84 | &:checked { 85 | 86 | & + .checkbox-material .check { 87 | background: $mdb-checkbox-checked-color; 88 | } 89 | 90 | & + .checkbox-material .check:before { 91 | color: #FFFFFF; 92 | box-shadow: 0 0 0 10px, 93 | 10px -10px 0 10px, 94 | 32px 0 0 20px, 95 | 0px 32px 0 20px, 96 | -5px 5px 0 10px, 97 | 20px -12px 0 11px; 98 | animation: checkbox-on $mdb-checkbox-animation-check forwards; 99 | } 100 | 101 | & + .checkbox-material:before { 102 | animation: rippleOn $mdb-checkbox-animation-ripple; 103 | } 104 | 105 | & + .checkbox-material .check:after { 106 | //background-color: $brand-success; // FIXME: seems like tho wrong color, test and make sure it can be removed 107 | animation: rippleOn $mdb-checkbox-animation-ripple forwards; // Ripple effect on check 108 | } 109 | } 110 | 111 | &:not(:checked) { 112 | & + .checkbox-material:before { 113 | animation: rippleOff $mdb-checkbox-animation-ripple; 114 | } 115 | 116 | & + .checkbox-material .check:after { 117 | animation: rippleOff $mdb-checkbox-animation-ripple; // Ripple effect on uncheck 118 | 119 | } 120 | } 121 | } 122 | 123 | // Style for disabled inputs 124 | fieldset[disabled] &, 125 | fieldset[disabled] & input[type=checkbox], 126 | input[type=checkbox][disabled] ~ .checkbox-material .check, 127 | input[type=checkbox][disabled] + .circle { 128 | opacity: 0.5; 129 | } 130 | 131 | input[type=checkbox][disabled] ~ .checkbox-material .check{ 132 | border-color: #000000; 133 | opacity: .26; 134 | } 135 | 136 | input[type=checkbox][disabled] + .checkbox-material .check:after { 137 | background-color: $mdb-text-color-primary; 138 | transform: rotate(-45deg); 139 | } 140 | } 141 | 142 | @keyframes checkbox-on { 143 | 0% { 144 | box-shadow: 145 | 0 0 0 10px, 146 | 10px -10px 0 10px, 147 | 32px 0 0 20px, 148 | 0px 32px 0 20px, 149 | -5px 5px 0 10px, 150 | 15px 2px 0 11px; 151 | } 152 | 50% { 153 | box-shadow: 154 | 0 0 0 10px, 155 | 10px -10px 0 10px, 156 | 32px 0 0 20px, 157 | 0px 32px 0 20px, 158 | -5px 5px 0 10px, 159 | 20px 2px 0 11px; 160 | } 161 | 100% { 162 | box-shadow: 163 | 0 0 0 10px, 164 | 10px -10px 0 10px, 165 | 32px 0 0 20px, 166 | 0px 32px 0 20px, 167 | -5px 5px 0 10px, 168 | 20px -12px 0 11px; 169 | } 170 | } 171 | 172 | @keyframes rippleOn { 173 | 0% { 174 | opacity: 0; 175 | } 176 | 50% { 177 | opacity: 0.2; 178 | } 179 | 100% { 180 | opacity: 0; 181 | } 182 | } 183 | @keyframes rippleOff { 184 | 0% { 185 | opacity: 0; 186 | } 187 | 50% { 188 | opacity: 0.2; 189 | } 190 | 100% { 191 | opacity: 0; 192 | } 193 | } 194 | -------------------------------------------------------------------------------- /assets/sass/md/_shadows.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | @mixin shadow-z-1(){ 4 | box-shadow: 5 | 0 1px 6px 0 rgba(0, 0, 0, 0.12), 6 | 0 1px 6px 0 rgba(0, 0, 0, 0.12); 7 | } 8 | 9 | @mixin shadow-z-1-hover(){ 10 | box-shadow: 11 | 0 5px 11px 0 rgba(0, 0, 0, 0.18), 12 | 0 4px 15px 0 rgba(0, 0, 0, 0.15); 13 | } 14 | 15 | @mixin shadow-z-2(){ 16 | box-shadow: 17 | 0 8px 17px 0 rgba(0, 0, 0, 0.2), 18 | 0 6px 20px 0 rgba(0, 0, 0, 0.19); 19 | } 20 | 21 | @mixin shadow-z-3(){ 22 | box-shadow: 23 | 0 12px 15px 0 rgba(0, 0, 0, 0.24), 24 | 0 17px 50px 0 rgba(0, 0, 0, 0.19); 25 | } 26 | 27 | @mixin shadow-z-4(){ 28 | box-shadow: 29 | 0 16px 28px 0 rgba(0, 0, 0, 0.22), 30 | 0 25px 55px 0 rgba(0, 0, 0, 0.21); 31 | } 32 | 33 | @mixin shadow-z-5(){ 34 | box-shadow: 35 | 0 27px 24px 0 rgba(0, 0, 0, 0.2), 36 | 0 40px 77px 0 rgba(0, 0, 0, 0.22); 37 | } 38 | 39 | 40 | /* Shadows (from mdl http://www.getmdl.io/) */ 41 | 42 | // Focus shadow mixin. 43 | @mixin big-shadow(){ 44 | box-shadow: 0 0 8px rgba(0, 0, 0,.18), 45 | 0 8px 16px rgba(0, 0, 0,.36); 46 | } 47 | 48 | @mixin button-shadow-color($color){ 49 | box-shadow: 0 14px 26px -12px rgba($color, $mdb-shadow-key-penumbra-opacity * 3), 50 | 0 4px 23px 0px rgba(0,0,0, $mdb-shadow-ambient-shadow-opacity), 51 | 0 8px 10px -5px rgba($color, $mdb-shadow-key-umbra-opacity); 52 | } 53 | 54 | @mixin shadow-2dp(){ 55 | box-shadow: 0 2px 2px 0 rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity), 56 | 0 3px 1px -2px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity), 57 | 0 1px 5px 0 rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity); 58 | } 59 | @mixin shadow-2dp-color($color){ 60 | box-shadow: 0 2px 2px 0 rgba($color, $mdb-shadow-key-penumbra-opacity), 61 | 0 3px 1px -2px rgba($color, $mdb-shadow-key-umbra-opacity), 62 | 0 1px 5px 0 rgba($color, $mdb-shadow-ambient-shadow-opacity); 63 | } 64 | 65 | @mixin shadow-3dp(){ 66 | box-shadow: 0 3px 4px 0 rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity), 67 | 0 3px 3px -2px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity), 68 | 0 1px 8px 0 rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity); 69 | } 70 | @mixin shadow-4dp(){ 71 | box-shadow: 0 4px 5px 0 rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity), 72 | 0 1px 10px 0 rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 73 | 0 2px 4px -1px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity); 74 | } 75 | @mixin shadow-4dp-color($color){ 76 | box-shadow: 0 4px 5px 0 rgba($color, $mdb-shadow-key-penumbra-opacity), 77 | 0 1px 10px 0 rgba($color, $mdb-shadow-ambient-shadow-opacity), 78 | 0 2px 4px -1px rgba($color, $mdb-shadow-key-umbra-opacity); 79 | } 80 | @mixin shadow-6dp(){ 81 | box-shadow: 0 6px 10px 0 rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity), 82 | 0 1px 18px 0 rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 83 | 0 3px 5px -1px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity); 84 | } 85 | @mixin shadow-8dp(){ 86 | box-shadow: 0 8px 10px 1px rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity), 87 | 0 3px 14px 2px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 88 | 0 5px 5px -3px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity); 89 | } 90 | @mixin shadow-8dp-color($color){ 91 | box-shadow: 0 8px 10px 1px rgba($color, $mdb-shadow-key-penumbra-opacity), 92 | 0 3px 14px 2px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 93 | 0 5px 5px -3px rgba($color, $mdb-shadow-key-umbra-opacity); 94 | } 95 | 96 | @mixin shadow-16dp(){ 97 | box-shadow: 0 16px 24px 2px rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity), 98 | 0 6px 30px 5px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 99 | 0 8px 10px -5px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity); 100 | } 101 | 102 | @mixin shadow-16dp-color($color){ 103 | box-shadow: 0 16px 24px 2px rgba($color, $mdb-shadow-key-penumbra-opacity), 104 | 0 6px 30px 5px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 105 | 0 8px 10px -5px rgba($color, $mdb-shadow-key-umbra-opacity); 106 | } 107 | 108 | @mixin shadow-24dp(){ 109 | box-shadow: 0 9px 46px 8px rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity), 110 | 0 11px 15px -7px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 111 | 0 24px 38px 3px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity); 112 | } 113 | 114 | @mixin shadow-big(){ 115 | box-shadow: 0 10px 30px -12px rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity * 3), 116 | 0 4px 25px 0px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 117 | 0 8px 10px -5px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity); 118 | } 119 | 120 | @mixin shadow-big-navbar(){ 121 | box-shadow: 0 10px 20px -12px rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity * 3), 122 | 0 3px 20px 0px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity), 123 | 0 8px 10px -5px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity); 124 | } 125 | 126 | @mixin shadow-big-color($color){ 127 | box-shadow: 0 12px 20px -10px rgba($color, $mdb-shadow-key-penumbra-opacity * 2), 128 | 0 4px 20px 0px rgba(0,0,0, $mdb-shadow-ambient-shadow-opacity), 129 | 0 7px 8px -5px rgba($color, $mdb-shadow-key-umbra-opacity); 130 | 131 | } 132 | 133 | // shadow backup for Sketch/Photoshop 134 | // @mixin shadow-big-color($color){ 135 | // box-shadow: 0 16px 38px -12px rgba($color, $mdb-shadow-key-penumbra-opacity * 4), 136 | // 0 4px 25px 0px rgba($color, $mdb-shadow-ambient-shadow-opacity), 137 | // 0 8px 10px -5px rgba($color, $mdb-shadow-key-umbra-opacity); 138 | // } 139 | -------------------------------------------------------------------------------- /examples/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Material Dashboard by Creative Tim 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 57 | 58 |
59 | 112 | 113 |
114 |
115 |
116 | 117 |
118 |
119 |
120 |
121 |
122 | 132 | 135 |
136 |
137 |
138 |
139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /assets/sass/md/_buttons.scss: -------------------------------------------------------------------------------- 1 | .btn, 2 | .navbar .navbar-nav > li > a.btn{ 3 | border: none; 4 | border-radius: $border-radius-base; 5 | position: relative; 6 | padding: 12px 30px; 7 | margin: 10px 1px; 8 | 9 | font-size: $mdb-btn-font-size-base; 10 | font-weight: 400; 11 | text-transform: uppercase; 12 | letter-spacing: 0; 13 | 14 | will-change: box-shadow, transform; 15 | transition: box-shadow 0.2s $mdb-animation-curve-fast-out-linear-in, 16 | background-color 0.2s $mdb-animation-curve-default; 17 | 18 | &::-moz-focus-inner { 19 | border: 0; 20 | } 21 | 22 | &, 23 | &.btn-default{ 24 | @include btn-styles($gray-light); 25 | } 26 | 27 | &.btn-primary{ 28 | @include btn-styles($brand-primary); 29 | } 30 | &.btn-info{ 31 | @include btn-styles($brand-info); 32 | } 33 | &.btn-success{ 34 | @include btn-styles($brand-success); 35 | } 36 | &.btn-warning{ 37 | @include btn-styles($brand-warning); 38 | } 39 | &.btn-danger{ 40 | @include btn-styles($brand-danger); 41 | } 42 | &.btn-white{ 43 | &, 44 | &:focus, 45 | &:hover{ 46 | background-color: $white-color; 47 | color: $gray-light; 48 | } 49 | &.btn-simple{ 50 | color: #FFFFFF; 51 | background: transparent; 52 | box-shadow: none; 53 | } 54 | } 55 | 56 | // social buttons 57 | &.btn-facebook { 58 | @include social-buttons-color($social-facebook); 59 | } 60 | &.btn-twitter { 61 | @include social-buttons-color($social-twitter); 62 | } 63 | &.btn-pinterest { 64 | @include social-buttons-color($social-pinterest); 65 | } 66 | &.btn-google { 67 | @include social-buttons-color($social-google); 68 | } 69 | &.btn-instagram { 70 | @include social-buttons-color($social-instagram); 71 | } 72 | 73 | &:focus, 74 | &:active, 75 | &:active:focus{ 76 | outline: 0; 77 | } 78 | 79 | &.btn-round{ 80 | border-radius: $border-radius-extreme; 81 | } 82 | 83 | &:not(.btn-just-icon):not(.btn-fab){ 84 | .fa{ 85 | font-size: 18px; 86 | margin-top: -2px; 87 | position: relative; 88 | top: 2px; 89 | } 90 | } 91 | 92 | 93 | &.btn-fab { 94 | // see above for color variations 95 | border-radius: 50%; 96 | font-size: $mdb-btn-fab-font-size; 97 | height: $mdb-btn-fab-size; 98 | margin: auto; 99 | min-width: $mdb-btn-fab-size; 100 | width: $mdb-btn-fab-size; 101 | padding: 0; 102 | overflow: hidden; 103 | position: relative; 104 | line-height: normal; 105 | 106 | .ripple-container { 107 | border-radius: 50%; 108 | } 109 | 110 | &.btn-fab-mini, 111 | .btn-group-sm & { 112 | height: $mdb-btn-fab-size-mini; 113 | min-width: $mdb-btn-fab-size-mini; 114 | width: $mdb-btn-fab-size-mini; 115 | 116 | &.material-icons { 117 | top: ($mdb-btn-icon-size-mini - $mdb-btn-fab-font-size) / 2; 118 | left: ($mdb-btn-icon-size-mini - $mdb-btn-fab-font-size) / 2; 119 | } 120 | 121 | .material-icons{ 122 | font-size: $mdb-btn-icon-size-mini; 123 | } 124 | } 125 | 126 | i.material-icons { 127 | position: absolute; 128 | top: 50%; 129 | left: 50%; 130 | transform: translate(-($mdb-btn-fab-font-size / 2), -($mdb-btn-fab-font-size / 2)); 131 | line-height: $mdb-btn-fab-font-size; 132 | width: $mdb-btn-fab-font-size; 133 | font-size: $mdb-btn-fab-font-size; 134 | } 135 | } 136 | 137 | // Size variations 138 | &.btn-lg, 139 | .btn-group-lg & { 140 | font-size: $mdb-btn-font-size-lg; 141 | padding: 18px 36px; 142 | } 143 | &.btn-sm, 144 | .btn-group-sm & { 145 | padding: 5px 20px; 146 | font-size: $mdb-btn-font-size-sm; 147 | } 148 | &.btn-xs, 149 | .btn-group-xs & { 150 | padding: 4px 15px; 151 | font-size: $mdb-btn-font-size-xs; 152 | } 153 | 154 | &.btn-just-icon{ 155 | font-size: 20px; 156 | padding: 12px 12px; 157 | line-height: 1em; 158 | 159 | i{ 160 | width: 20px; 161 | } 162 | &.btn-lg{ 163 | font-size: 22px; 164 | padding: 13px 18px; 165 | } 166 | } 167 | } 168 | 169 | .btn{ 170 | // Align icons inside buttons with text 171 | .material-icons{ 172 | vertical-align: middle; 173 | font-size: $mdb-btn-icon-size-mini; 174 | top: -1px; 175 | position: relative; 176 | } 177 | 178 | } 179 | 180 | .navbar .navbar-nav > li > { 181 | a.btn{ 182 | margin-top: 2px; 183 | margin-bottom: 2px; 184 | 185 | &.btn-fab{ 186 | margin: 5px 2px; 187 | } 188 | } 189 | a:not(.btn){ 190 | .material-icons{ 191 | margin-top: -3px; 192 | top: 0px; 193 | position: relative; 194 | margin-right: 3px; 195 | } 196 | } 197 | .profile-photo{ 198 | margin: 5px 2px; 199 | } 200 | } 201 | 202 | .navbar-default:not(.navbar-transparent) .navbar-nav > li > { 203 | a.btn{ 204 | &.btn-white.btn-simple{ 205 | color: $gray; 206 | } 207 | } 208 | } 209 | 210 | // btn-group variations 211 | .btn-group, 212 | .btn-group-vertical { 213 | 214 | position: relative; 215 | //border-radius: 2px; 216 | margin: 10px 1px; 217 | 218 | &.open { 219 | .dropdown-toggle { 220 | //box-shadow: none; 221 | } 222 | 223 | & > .dropdown-toggle.btn { 224 | @include variations(unquote(".btn"), unquote(""), background-color, $mdb-btn-background-color); 225 | } 226 | } 227 | 228 | .dropdown-menu { 229 | border-radius: 0 0 $border-radius-base $border-radius-base; 230 | } 231 | 232 | &.btn-group-raised { 233 | @include shadow-2dp(); 234 | } 235 | 236 | & .btn + .btn, 237 | .btn, 238 | .btn:active, 239 | .btn-group { 240 | margin: 0; 241 | } 242 | } 243 | 244 | .close{ 245 | font-size: inherit; 246 | color: $white-color; 247 | opacity: .9; 248 | text-shadow: none; 249 | 250 | &:hover, 251 | &:focus{ 252 | opacity: 1; 253 | color: $white-color; 254 | } 255 | 256 | i{ 257 | font-size: 20px; 258 | } 259 | } 260 | -------------------------------------------------------------------------------- /assets/sass/md/_sidebar-and-main-panel.scss: -------------------------------------------------------------------------------- 1 | .wrapper{ 2 | position: relative; 3 | top: 0; 4 | height: 100vh; 5 | } 6 | 7 | .sidebar, 8 | .off-canvas-sidebar{ 9 | position: absolute; 10 | top: 0; 11 | bottom: 0; 12 | left: 0; 13 | z-index: 1; 14 | @include shadow-big(); 15 | 16 | 17 | .sidebar-wrapper{ 18 | position: relative; 19 | height: calc(100vh - 75px); 20 | overflow: auto; 21 | width: 260px; 22 | z-index: 4; 23 | //background-color: $white-color; 24 | } 25 | 26 | .logo-tim{ 27 | border-radius: 50%; 28 | border: 1px solid #333; 29 | display: block; 30 | height: 61px; 31 | width: 61px; 32 | float: left; 33 | overflow: hidden; 34 | 35 | img{ 36 | width: 60px; 37 | height: 60px; 38 | } 39 | } 40 | 41 | 42 | 43 | .nav{ 44 | margin-top: 20px; 45 | 46 | li{ 47 | > a{ 48 | margin: 10px 15px; 49 | border-radius: $border-radius-base; 50 | color: $black-color; 51 | @extend .animation-transition-general; 52 | } 53 | 54 | &:hover > a{ 55 | background: rgba(200, 200, 200, 0.2); 56 | color: $black-color; 57 | } 58 | 59 | &.active > a{ 60 | color: #FFFFFF; 61 | 62 | i{ 63 | color: #FFFFFF; 64 | } 65 | } 66 | } 67 | 68 | p{ 69 | margin: 0; 70 | line-height: 30px; 71 | font-size: 14px; 72 | // font-weight: 600; 73 | // text-transform: uppercase; 74 | } 75 | 76 | i{ 77 | font-size: 24px; 78 | float: left; 79 | margin-right: 15px; 80 | line-height: 30px; 81 | width: 30px; 82 | text-align: center; 83 | color: #a9afbb; 84 | } 85 | } 86 | 87 | .sidebar-background{ 88 | position: absolute; 89 | z-index: 1; 90 | height: 100%; 91 | width: 100%; 92 | display: block; 93 | top: 0; 94 | left: 0; 95 | background-size: cover; 96 | background-position: center center; 97 | 98 | &:after{ 99 | position: absolute; 100 | z-index: 3; 101 | width: 100%; 102 | height: 100%; 103 | content: ""; 104 | display: block; 105 | background: #FFFFFF; 106 | opacity: .93; 107 | } 108 | } 109 | 110 | .logo{ 111 | position: relative; 112 | padding: $padding-base $padding-base; 113 | z-index: 4; 114 | 115 | &:after{ 116 | content: ''; 117 | position: absolute; 118 | bottom: 0; 119 | right: 10%; 120 | height: 1px; 121 | width: 80%; 122 | background-color: rgba(180,180,180, .3); 123 | 124 | } 125 | 126 | p{ 127 | float: left; 128 | font-size: 20px; 129 | margin: 10px 10px; 130 | color: $white-color; 131 | line-height: 20px; 132 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 133 | } 134 | 135 | .simple-text{ 136 | text-transform: uppercase; 137 | padding: $padding-small-vertical $padding-zero; 138 | display: block; 139 | font-size: $font-size-large; 140 | color: $black-color; 141 | text-align: center; 142 | font-weight: $font-weight-default; 143 | line-height: 30px; 144 | } 145 | } 146 | 147 | .logo-tim{ 148 | border-radius: 50%; 149 | border: 1px solid #333; 150 | display: block; 151 | height: 61px; 152 | width: 61px; 153 | float: left; 154 | overflow: hidden; 155 | 156 | img{ 157 | width: 60px; 158 | height: 60px; 159 | } 160 | } 161 | 162 | &:after, 163 | &:before{ 164 | display: block; 165 | content: ""; 166 | position: absolute; 167 | width: 100%; 168 | height: 100%; 169 | top: 0; 170 | left: 0; 171 | z-index: 2; 172 | } 173 | 174 | &:before{ 175 | opacity: .33; 176 | // background: #000000; 177 | } 178 | 179 | &:after{ 180 | // @include set-background-color-button($font-background-light-grey, $background-lighter-grey); 181 | z-index: 3; 182 | opacity: 1; 183 | } 184 | 185 | &[data-image]:after, 186 | &.has-image:after{ 187 | opacity: .77; 188 | } 189 | 190 | &[data-color="blue"]{ 191 | @include set-background-color-button($brand-info); 192 | } 193 | &[data-color="green"]{ 194 | @include set-background-color-button($brand-success); 195 | } 196 | &[data-color="orange"]{ 197 | @include set-background-color-button($brand-warning); 198 | } 199 | &[data-color="red"]{ 200 | @include set-background-color-button($brand-danger); 201 | } 202 | &[data-color="purple"]{ 203 | @include set-background-color-button($brand-primary); 204 | } 205 | } 206 | 207 | .off-canvas-sidebar{ 208 | .nav { 209 | > li > a, 210 | > li > a:hover{ 211 | color: $white-color; 212 | } 213 | 214 | > li > a:focus{ 215 | background: rgba(200, 200, 200, 0.2); 216 | } 217 | } 218 | } 219 | 220 | 221 | .main-panel{ 222 | //background: rgba(203,203,210,.15); 223 | position: relative; 224 | z-index: 2; 225 | float: right; 226 | overflow: auto; 227 | width: $sidebar-width; 228 | min-height: 100%; 229 | @include transform-translate-x(0px); 230 | @include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1)); 231 | 232 | > .content{ 233 | margin-top: 70px; 234 | padding: 30px 15px; 235 | min-height: calc(100% - 123px); 236 | } 237 | 238 | > .footer{ 239 | border-top: 1px solid #e7e7e7; 240 | } 241 | 242 | > .navbar{ 243 | margin-bottom: 0; 244 | } 245 | } 246 | 247 | .main-panel{ 248 | max-height: 100%; 249 | height: 100%; 250 | } 251 | .sidebar, 252 | .main-panel{ 253 | -webkit-transition-property: top,bottom; 254 | transition-property: top,bottom; 255 | -webkit-transition-duration: .2s,.2s; 256 | transition-duration: .2s,.2s; 257 | -webkit-transition-timing-function: linear,linear; 258 | transition-timing-function: linear,linear; 259 | -webkit-overflow-scrolling: touch; 260 | } 261 | -------------------------------------------------------------------------------- /assets/sass/md/mixins/_vendor-prefixes.scss: -------------------------------------------------------------------------------- 1 | // User select 2 | // For selecting text on the page 3 | 4 | @mixin user-select($select) { 5 | -webkit-user-select: $select; 6 | -moz-user-select: $select; 7 | -ms-user-select: $select; // IE10+ 8 | user-select: $select; 9 | } 10 | 11 | @mixin box-shadow($shadow...) { 12 | -webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1 13 | box-shadow: $shadow; 14 | } 15 | 16 | // Box sizing 17 | @mixin box-sizing($boxmodel) { 18 | -webkit-box-sizing: $boxmodel; 19 | -moz-box-sizing: $boxmodel; 20 | box-sizing: $boxmodel; 21 | } 22 | 23 | 24 | @mixin transition($time, $type){ 25 | -webkit-transition: all $time $type; 26 | -moz-transition: all $time $type; 27 | -o-transition: all $time $type; 28 | -ms-transition: all $time $type; 29 | transition: all $time $type; 30 | } 31 | 32 | @mixin transform-scale($value){ 33 | -webkit-transform: scale($value); 34 | -moz-transform: scale($value); 35 | -o-transform: scale($value); 36 | -ms-transform: scale($value); 37 | transform: scale($value); 38 | } 39 | 40 | @mixin transform-translate-x($value){ 41 | -webkit-transform: translate3d($value, 0, 0); 42 | -moz-transform: translate3d($value, 0, 0); 43 | -o-transform: translate3d($value, 0, 0); 44 | -ms-transform: translate3d($value, 0, 0); 45 | transform: translate3d($value, 0, 0); 46 | } 47 | 48 | @mixin transform-origin($coordinates){ 49 | -webkit-transform-origin: $coordinates; 50 | -moz-transform-origin: $coordinates; 51 | -o-transform-origin: $coordinates; 52 | -ms-transform-origin: $coordinates; 53 | transform-origin: $coordinates; 54 | } 55 | 56 | @mixin set-background-color-button ($color){ 57 | .nav{ 58 | li.active a{ 59 | background-color: $color; 60 | @include shadow-big-color($color); 61 | } 62 | } 63 | } 64 | 65 | @mixin radial-gradient($extern-color, $center-color){ 66 | background: $extern-color; 67 | background: -moz-radial-gradient(center, ellipse cover, $center-color 0%, $extern-color 100%); /* FF3.6+ */ 68 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,$center-color), color-stop(100%,$extern-color)); /* Chrome,Safari4+ */ 69 | background: -webkit-radial-gradient(center, ellipse cover, $center-color 0%,$extern-color 100%); /* Chrome10+,Safari5.1+ */ 70 | background: -o-radial-gradient(center, ellipse cover, $center-color 0%,$extern-color 100%); /* Opera 12+ */ 71 | background: -ms-radial-gradient(center, ellipse cover, $center-color 0%,$extern-color 100%); /* IE10+ */ 72 | background: radial-gradient(ellipse at center, $center-color 0%,$extern-color 100%); /* W3C */ 73 | background-size: 550% 450%; 74 | } 75 | 76 | @mixin vertical-align { 77 | position: relative; 78 | top: 50%; 79 | -webkit-transform: translateY(-50%); 80 | -ms-transform: translateY(-50%); 81 | transform: translateY(-50%); 82 | } 83 | 84 | @mixin rotate-180(){ 85 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); 86 | -webkit-transform: rotate(180deg); 87 | -ms-transform: rotate(180deg); 88 | transform: rotate(180deg); 89 | } 90 | 91 | @mixin bar-animation($type){ 92 | -webkit-animation: $type 500ms linear 0s; 93 | -moz-animation: $type 500ms linear 0s; 94 | animation: $type 500ms 0s; 95 | -webkit-animation-fill-mode: forwards; 96 | -moz-animation-fill-mode: forwards; 97 | animation-fill-mode: forwards; 98 | } 99 | 100 | @mixin topbar-x-rotation(){ 101 | @keyframes topbar-x { 102 | 0% {top: 0px; transform: rotate(0deg); } 103 | 45% {top: 6px; transform: rotate(145deg); } 104 | 75% {transform: rotate(130deg); } 105 | 100% {transform: rotate(135deg); } 106 | } 107 | @-webkit-keyframes topbar-x { 108 | 0% {top: 0px; -webkit-transform: rotate(0deg); } 109 | 45% {top: 6px; -webkit-transform: rotate(145deg); } 110 | 75% {-webkit-transform: rotate(130deg); } 111 | 100% { -webkit-transform: rotate(135deg); } 112 | } 113 | @-moz-keyframes topbar-x { 114 | 0% {top: 0px; -moz-transform: rotate(0deg); } 115 | 45% {top: 6px; -moz-transform: rotate(145deg); } 116 | 75% {-moz-transform: rotate(130deg); } 117 | 100% { -moz-transform: rotate(135deg); } 118 | } 119 | } 120 | 121 | @mixin topbar-back-rotation(){ 122 | @keyframes topbar-back { 123 | 0% { top: 6px; transform: rotate(135deg); } 124 | 45% { transform: rotate(-10deg); } 125 | 75% { transform: rotate(5deg); } 126 | 100% { top: 0px; transform: rotate(0); } 127 | } 128 | 129 | @-webkit-keyframes topbar-back { 130 | 0% { top: 6px; -webkit-transform: rotate(135deg); } 131 | 45% { -webkit-transform: rotate(-10deg); } 132 | 75% { -webkit-transform: rotate(5deg); } 133 | 100% { top: 0px; -webkit-transform: rotate(0); } 134 | } 135 | 136 | @-moz-keyframes topbar-back { 137 | 0% { top: 6px; -moz-transform: rotate(135deg); } 138 | 45% { -moz-transform: rotate(-10deg); } 139 | 75% { -moz-transform: rotate(5deg); } 140 | 100% { top: 0px; -moz-transform: rotate(0); } 141 | } 142 | } 143 | 144 | @mixin bottombar-x-rotation(){ 145 | @keyframes bottombar-x { 146 | 0% {bottom: 0px; transform: rotate(0deg);} 147 | 45% {bottom: 6px; transform: rotate(-145deg);} 148 | 75% {transform: rotate(-130deg);} 149 | 100% {transform: rotate(-135deg);} 150 | } 151 | @-webkit-keyframes bottombar-x { 152 | 0% {bottom: 0px; -webkit-transform: rotate(0deg);} 153 | 45% {bottom: 6px; -webkit-transform: rotate(-145deg);} 154 | 75% {-webkit-transform: rotate(-130deg);} 155 | 100% {-webkit-transform: rotate(-135deg);} 156 | } 157 | @-moz-keyframes bottombar-x { 158 | 0% {bottom: 0px; -moz-transform: rotate(0deg);} 159 | 45% {bottom: 6px; -moz-transform: rotate(-145deg);} 160 | 75% {-moz-transform: rotate(-130deg);} 161 | 100% {-moz-transform: rotate(-135deg);} 162 | } 163 | } 164 | 165 | @mixin bottombar-back-rotation{ 166 | @keyframes bottombar-back { 167 | 0% { bottom: 6px;transform: rotate(-135deg);} 168 | 45% { transform: rotate(10deg);} 169 | 75% { transform: rotate(-5deg);} 170 | 100% { bottom: 0px;transform: rotate(0);} 171 | } 172 | @-webkit-keyframes bottombar-back { 173 | 0% {bottom: 6px;-webkit-transform: rotate(-135deg);} 174 | 45% {-webkit-transform: rotate(10deg);} 175 | 75% {-webkit-transform: rotate(-5deg);} 176 | 100% {bottom: 0px;-webkit-transform: rotate(0);} 177 | } 178 | @-moz-keyframes bottombar-back { 179 | 0% {bottom: 6px;-moz-transform: rotate(-135deg);} 180 | 45% {-moz-transform: rotate(10deg);} 181 | 75% {-moz-transform: rotate(-5deg);} 182 | 100% {bottom: 0px;-moz-transform: rotate(0);} 183 | } 184 | 185 | } 186 | -------------------------------------------------------------------------------- /examples/maps.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Material Dashboard by Creative Tim 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 98 | 99 |
100 | 153 | 154 |
155 | 156 |
157 |
158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 186 | 187 | 188 | -------------------------------------------------------------------------------- /widgets/Menu.php: -------------------------------------------------------------------------------- 1 | {icon} {label}'; 17 | public $submenuTemplate = "\n\n"; 18 | public $activateParents = true; 19 | public $dropdownIcon = 'arrow_drop_down'; 20 | /** 21 | * @inheritdoc 22 | */ 23 | protected function renderItem($item) 24 | { 25 | if(isset($item['items'])) { 26 | $labelTemplate = '{dropdownicon} {label}'; 27 | $linkTemplate = '{icon} {dropdownicon} {label}'; 28 | }else { 29 | $labelTemplate = $this->labelTemplate; 30 | $linkTemplate = $this->linkTemplate; 31 | } 32 | 33 | $template = ArrayHelper::getValue($item, 'template', $linkTemplate); 34 | $replace = !empty($item['icon']) ? [ 35 | '{url}' => Url::to(isset($item['url']) ? $item['url'] : '#'), 36 | '{label}' => '

'.$item['label'].'

', 37 | '{icon}' => '' . $item['icon'] . ' ', 38 | '{dropdownicon}' => $this->dropdownIcon, 39 | '{class}' => empty($item['items']) ? '' : 'tree-toggle' 40 | ] : [ 41 | '{url}' => Url::to($item['url']), 42 | '{label}' => '

'.$item['label'].'

', 43 | '{icon}' => null, 44 | '{dropdownicon}' => $this->dropdownIcon, 45 | '{class}' => empty($item['items']) ? '' : 'tree-toggle' 46 | ]; 47 | return strtr($template, $replace); 48 | } 49 | /** 50 | * Recursively renders the menu items (without the container tag). 51 | * @param array $items the menu items to be rendered recursively 52 | * @return string the rendering result 53 | */ 54 | protected function renderItems($items) 55 | { 56 | $n = count($items); 57 | $lines = []; 58 | foreach ($items as $i => $item) { 59 | $options = array_merge($this->itemOptions, ArrayHelper::getValue($item, 'options', [])); 60 | $tag = ArrayHelper::remove($options, 'tag', 'li'); 61 | $class = []; 62 | if ($item['active']) { 63 | $class[] = $this->activeCssClass; 64 | } 65 | if ($i === 0 && $this->firstItemCssClass !== null) { 66 | $class[] = $this->firstItemCssClass; 67 | } 68 | if ($i === $n - 1 && $this->lastItemCssClass !== null) { 69 | $class[] = $this->lastItemCssClass; 70 | } 71 | if (!empty($class)) { 72 | if (empty($options['class'])) { 73 | $options['class'] = implode(' ', $class); 74 | } else { 75 | $options['class'] .= ' ' . implode(' ', $class); 76 | } 77 | }else{ 78 | $options['class'] = ''; 79 | } 80 | $menu = $this->renderItem($item); 81 | if (!empty($item['items'])) { 82 | $menu .= strtr($this->submenuTemplate, [ 83 | '{show}' => $item['active'] ? "style='display: block'" : "style='display: none'", 84 | '{items}' => $this->renderItems($item['items']), 85 | ]); 86 | } 87 | $lines[] = Html::tag($tag, $menu, $options); 88 | } 89 | return implode("\n", $lines); 90 | } 91 | /** 92 | * @inheritdoc 93 | */ 94 | protected function normalizeItems($items, &$active) 95 | { 96 | foreach ($items as $i => $item) { 97 | if (isset($item['visible']) && !$item['visible']) { 98 | unset($items[$i]); 99 | continue; 100 | } 101 | if (!isset($item['label'])) { 102 | $item['label'] = ''; 103 | } 104 | $encodeLabel = isset($item['encode']) ? $item['encode'] : $this->encodeLabels; 105 | $items[$i]['label'] = $encodeLabel ? Html::encode($item['label']) : $item['label']; 106 | $items[$i]['icon'] = isset($item['icon']) ? $item['icon'] : ''; 107 | $hasActiveChild = false; 108 | if (isset($item['items'])) { 109 | $items[$i]['items'] = $this->normalizeItems($item['items'], $hasActiveChild); 110 | if (empty($items[$i]['items']) && $this->hideEmptyItems) { 111 | unset($items[$i]['items']); 112 | if (!isset($item['url'])) { 113 | unset($items[$i]); 114 | continue; 115 | } 116 | } 117 | } 118 | if (!isset($item['active'])) { 119 | if ($this->activateParents && $hasActiveChild || $this->activateItems && $this->isItemActive($item)) { 120 | $active = $items[$i]['active'] = true; 121 | } else { 122 | $items[$i]['active'] = false; 123 | } 124 | } elseif ($item['active']) { 125 | $active = true; 126 | } 127 | } 128 | return array_values($items); 129 | } 130 | /** 131 | * Checks whether a menu item is active. 132 | * This is done by checking if [[route]] and [[params]] match that specified in the `url` option of the menu item. 133 | * When the `url` option of a menu item is specified in terms of an array, its first element is treated 134 | * as the route for the item and the rest of the elements are the associated parameters. 135 | * Only when its route and parameters match [[route]] and [[params]], respectively, will a menu item 136 | * be considered active. 137 | * @param array $item the menu item to be checked 138 | * @return boolean whether the menu item is active 139 | */ 140 | protected function isItemActive($item) 141 | { 142 | if (isset($item['url']) && is_array($item['url']) && isset($item['url'][0])) { 143 | $route = $item['url'][0]; 144 | if ($route[0] !== '/' && Yii::$app->controller) { 145 | $route = Yii::$app->controller->module->getUniqueId() . '/' . $route; 146 | } 147 | $arrayRoute = explode('/', ltrim($route, '/')); 148 | $arrayThisRoute = explode('/', $this->route); 149 | if ($arrayRoute[0] !== $arrayThisRoute[0]) { 150 | return false; 151 | } 152 | if (isset($arrayRoute[1]) && $arrayRoute[1] !== $arrayThisRoute[1]) { 153 | return false; 154 | } 155 | if (isset($arrayRoute[2]) && $arrayRoute[2] !== $arrayThisRoute[2]) { 156 | return false; 157 | } 158 | unset($item['url']['#']); 159 | if (count($item['url']) > 1) { 160 | foreach (array_splice($item['url'], 1) as $name => $value) { 161 | if ($value !== null && (!isset($this->params[$name]) || $this->params[$name] != $value)) { 162 | return false; 163 | } 164 | } 165 | } 166 | return true; 167 | } 168 | return false; 169 | } 170 | } 171 | -------------------------------------------------------------------------------- /assets/sass/md/_navbars.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | .navbar { 4 | // background-color: $brand-primary; 5 | border: 0; 6 | border-radius: $border-radius-base; 7 | // @include shadow-big-navbar(); 8 | 9 | border-bottom: 1px solid #ededf3; 10 | @extend .animation-transition-fast; 11 | 12 | padding: 10px 0; 13 | 14 | .navbar-brand { 15 | position: relative; 16 | height: 50px; 17 | line-height: 30px; 18 | color: inherit; 19 | padding: 10px 15px; 20 | 21 | &:hover, 22 | &:focus { 23 | color: inherit; 24 | background-color: transparent; 25 | } 26 | } 27 | 28 | .notification{ 29 | position: absolute; 30 | top: 5px; 31 | border: 1px solid #FFF; 32 | right: 10px; 33 | font-size: 9px; 34 | background: #f44336; 35 | color: #FFFFFF; 36 | min-width: 20px; 37 | padding: 0px 5px; 38 | height: 20px; 39 | border-radius: 10px; 40 | text-align: center; 41 | line-height: 19px; 42 | vertical-align: middle; 43 | display: block; 44 | } 45 | 46 | 47 | 48 | .navbar-text { 49 | color: inherit; 50 | margin-top: 15px; 51 | margin-bottom: 15px; 52 | } 53 | 54 | .navbar-nav { 55 | > li > a { 56 | color: inherit; 57 | padding-top: 15px; 58 | padding-bottom: 15px; 59 | 60 | font-weight: $font-weight-default; 61 | font-size: $mdb-btn-font-size-base; 62 | text-transform: uppercase; 63 | 64 | border-radius: $border-radius-base; 65 | 66 | &:hover, 67 | &:focus { 68 | color: inherit; 69 | background-color: transparent; 70 | } 71 | 72 | 73 | .material-icons, 74 | .fa{ 75 | font-size: 20px; 76 | } 77 | 78 | &.btn:not(.btn-just-icon){ 79 | .fa{ 80 | position: relative; 81 | top: 2px; 82 | margin-top: -4px; 83 | margin-right: 4px; 84 | } 85 | } 86 | } 87 | 88 | > li > .dropdown-menu{ 89 | margin-top: -20px; 90 | } 91 | 92 | > li.open > .dropdown-menu{ 93 | margin-top: 0; 94 | } 95 | 96 | > .active > a { 97 | &, 98 | &:hover, 99 | &:focus { 100 | color: inherit; 101 | background-color: rgba(255, 255, 255, 0.1); 102 | } 103 | } 104 | > .disabled > a { 105 | &, 106 | &:hover, 107 | &:focus { 108 | color: inherit; 109 | background-color: transparent; 110 | opacity: 0.9; 111 | } 112 | } 113 | .profile-photo{ 114 | padding: 0 5px 0; 115 | .profile-photo-small{ 116 | height: 40px; 117 | width: 40px; 118 | } 119 | } 120 | 121 | } 122 | 123 | // Darken the responsive nav toggle 124 | .navbar-toggle { 125 | border: 0; 126 | &:hover, 127 | &:focus { 128 | background-color: transparent; 129 | } 130 | .icon-bar { 131 | background-color: inherit; 132 | border: 1px solid; 133 | } 134 | } 135 | 136 | .navbar-default .navbar-toggle, 137 | .navbar-inverse .navbar-toggle { 138 | border-color: transparent; 139 | } 140 | 141 | .navbar-collapse, 142 | .navbar-form { 143 | border-top: none; 144 | box-shadow: none; 145 | } 146 | 147 | // Dropdowns 148 | .navbar-nav { 149 | > .open > a { 150 | &, 151 | &:hover, 152 | &:focus { 153 | background-color: transparent; 154 | color: inherit; 155 | } 156 | } 157 | 158 | @media (max-width: $grid-float-breakpoint-max) { 159 | .navbar-text { 160 | color: inherit; 161 | margin-top: 15px; 162 | margin-bottom: 15px; 163 | } 164 | 165 | // Dropdowns get custom display 166 | .open .dropdown-menu { 167 | > .dropdown-header { 168 | border: 0; 169 | color: inherit; 170 | } 171 | .divider { 172 | border-bottom: 1px solid; 173 | opacity: 0.08; 174 | } 175 | > li > a { 176 | color: inherit; 177 | &:hover, 178 | &:focus { 179 | color: inherit; 180 | background-color: transparent; 181 | } 182 | } 183 | > .active > a { 184 | &, 185 | &:hover, 186 | &:focus { 187 | color: inherit; 188 | background-color: transparent; 189 | } 190 | } 191 | > .disabled > a { 192 | &, 193 | &:hover, 194 | &:focus { 195 | color: inherit; 196 | background-color: transparent; 197 | } 198 | } 199 | } 200 | } 201 | } 202 | 203 | &.navbar-default{ 204 | .logo-container .brand{ 205 | color: $gray; 206 | } 207 | } 208 | 209 | .navbar-link { 210 | color: inherit; 211 | &:hover { 212 | color: inherit; 213 | } 214 | } 215 | 216 | .btn{ 217 | margin-top: 0; 218 | margin-bottom: 0; 219 | } 220 | .btn-link { 221 | color: inherit; 222 | &:hover, 223 | &:focus { 224 | color: inherit; 225 | } 226 | &[disabled], 227 | fieldset[disabled] & { 228 | &:hover, 229 | &:focus { 230 | color: inherit; 231 | } 232 | } 233 | } 234 | 235 | .navbar-form { 236 | margin: 4px 0 0; 237 | .form-group { 238 | margin: 0; 239 | padding: 0; 240 | 241 | .material-input:before, 242 | &.is-focused .material-input:after { 243 | background-color: inherit; 244 | } 245 | } 246 | 247 | .form-group .form-control, 248 | .form-control { 249 | border-color: inherit; 250 | color: inherit; 251 | padding: 0; 252 | margin: 0; 253 | 254 | // re-normalize inputs in a navbar the size of standard bootstrap since our normal inputs are larger by spec than bootstrap 255 | //--- 256 | //height: $mdb-input-height-base; 257 | $bs-line-height-base: 1.428571429 !default; 258 | $bs-line-height-computed: floor(($font-size-base * $bs-line-height-base)) !default; // ~20px 259 | height: ($bs-line-height-computed + 8px); 260 | font-size: $font-size-base; 261 | line-height: $bs-line-height-base; 262 | //--- 263 | } 264 | } 265 | 266 | // SASS conversion note: please mirror any content change in _mixins-shared.scss navbar-variations-content 267 | @include navbar-variations(unquote(".navbar"), unquote(""), $brand-primary); 268 | 269 | 270 | &-inverse { 271 | background-color: $indigo; 272 | } 273 | 274 | &.navbar-transparent{ 275 | background-color: transparent; 276 | box-shadow: none; 277 | border-bottom: 0; 278 | 279 | .logo-container .brand{ 280 | color: $white-color; 281 | } 282 | } 283 | &-fixed-top{ 284 | border-radius: 0; 285 | } 286 | @media (max-width: $screen-md-max) { 287 | 288 | .navbar-brand { 289 | height: 50px; 290 | padding: 10px 15px; 291 | } 292 | /* 293 | .navbar-form { 294 | margin-top: 10px; 295 | } 296 | */ 297 | 298 | .navbar-nav > li > a { 299 | padding-top: 15px; 300 | padding-bottom: 15px; 301 | } 302 | } 303 | 304 | .alert{ 305 | border-radius: 0; 306 | left: 0; 307 | position: absolute; 308 | right: 0; 309 | top: 85px; 310 | width: 100%; 311 | z-index: 3; 312 | transition: all 0.3s; 313 | } 314 | 315 | } 316 | 317 | .nav-align-center{ 318 | text-align: center; 319 | 320 | .nav-pills{ 321 | display: inline-block; 322 | } 323 | } 324 | .navbar-absolute{ 325 | position: absolute; 326 | width: 100%; 327 | padding-top: 10px; 328 | z-index: 1029; 329 | } 330 | -------------------------------------------------------------------------------- /assets/js/material.min.js: -------------------------------------------------------------------------------- 1 | !function(t){function o(t){return"undefined"==typeof t.which?!0:"number"==typeof t.which&&t.which>0?!t.ctrlKey&&!t.metaKey&&!t.altKey&&8!=t.which&&9!=t.which&&13!=t.which&&16!=t.which&&17!=t.which&&20!=t.which&&27!=t.which:!1}function i(o){var i=t(o);i.prop("disabled")||i.closest(".form-group").addClass("is-focused")}function n(o){o.closest("label").hover(function(){var o=t(this).find("input");o.prop("disabled")||i(o)},function(){e(t(this).find("input"))})}function e(o){t(o).closest(".form-group").removeClass("is-focused")}t.expr[":"].notmdproc=function(o){return t(o).data("mdproc")?!1:!0},t.material={options:{validate:!0,input:!0,ripples:!0,checkbox:!0,togglebutton:!0,radio:!0,arrive:!0,autofill:!1,withRipples:[".btn:not(.btn-link)",".card-image",".navbar a:not(.withoutripple)",".footer a:not(.withoutripple)",".dropdown-menu a",".nav-tabs a:not(.withoutripple)",".withripple",".pagination li:not(.active):not(.disabled) a:not(.withoutripple)"].join(","),inputElements:"input.form-control, textarea.form-control, select.form-control",checkboxElements:".checkbox > label > input[type=checkbox]",togglebuttonElements:".togglebutton > label > input[type=checkbox]",radioElements:".radio > label > input[type=radio]"},checkbox:function(o){var i=t(o?o:this.options.checkboxElements).filter(":notmdproc").data("mdproc",!0).after("");n(i)},togglebutton:function(o){var i=t(o?o:this.options.togglebuttonElements).filter(":notmdproc").data("mdproc",!0).after("");n(i)},radio:function(o){var i=t(o?o:this.options.radioElements).filter(":notmdproc").data("mdproc",!0).after("");n(i)},input:function(o){t(o?o:this.options.inputElements).filter(":notmdproc").data("mdproc",!0).each(function(){var o=t(this),i=o.closest(".form-group");0===i.length&&(o.wrap("
"),i=o.closest(".form-group")),o.attr("data-hint")&&(o.after("

"+o.attr("data-hint")+"

"),o.removeAttr("data-hint"));var n={"input-lg":"form-group-lg","input-sm":"form-group-sm"};if(t.each(n,function(t,n){o.hasClass(t)&&(o.removeClass(t),i.addClass(n))}),o.hasClass("floating-label")){var e=o.attr("placeholder");o.attr("placeholder",null).removeClass("floating-label");var a=o.attr("id"),r="";a&&(r="for='"+a+"'"),i.addClass("label-floating"),o.after("")}(null===o.val()||"undefined"==o.val()||""===o.val())&&i.addClass("is-empty"),i.append(""),i.find("input[type=file]").length>0&&i.addClass("is-fileinput")})},attachInputEventHandlers:function(){var n=this.options.validate;t(document).on("change",".checkbox input[type=checkbox]",function(){t(this).blur()}).on("keydown paste",".form-control",function(i){o(i)&&t(this).closest(".form-group").removeClass("is-empty")}).on("keyup change",".form-control",function(){var o=t(this),i=o.closest(".form-group"),e="undefined"==typeof o[0].checkValidity||o[0].checkValidity();""===o.val()?i.addClass("is-empty"):i.removeClass("is-empty"),n&&(e?i.removeClass("has-error"):i.addClass("has-error"))}).on("focus",".form-control, .form-group.is-fileinput",function(){i(this)}).on("blur",".form-control, .form-group.is-fileinput",function(){e(this)}).on("change",".form-group input",function(){var o=t(this);if("file"!=o.attr("type")){var i=o.closest(".form-group"),n=o.val();n?i.removeClass("is-empty"):i.addClass("is-empty")}}).on("change",".form-group.is-fileinput input[type='file']",function(){var o=t(this),i=o.closest(".form-group"),n="";t.each(this.files,function(t,o){n+=o.name+", "}),n=n.substring(0,n.length-2),n?i.removeClass("is-empty"):i.addClass("is-empty"),i.find("input.form-control[readonly]").val(n)})},ripples:function(o){t(o?o:this.options.withRipples).ripples()},autofill:function(){var o=setInterval(function(){t("input[type!=checkbox]").each(function(){var o=t(this);o.val()&&o.val()!==o.attr("value")&&o.trigger("change")})},100);setTimeout(function(){clearInterval(o)},1e4)},attachAutofillEventHandlers:function(){var o;t(document).on("focus","input",function(){var i=t(this).parents("form").find("input").not("[type=file]");o=setInterval(function(){i.each(function(){var o=t(this);o.val()!==o.attr("value")&&o.trigger("change")})},100)}).on("blur",".form-group input",function(){clearInterval(o)})},init:function(o){this.options=t.extend({},this.options,o);var i=t(document);t.fn.ripples&&this.options.ripples&&this.ripples(),this.options.input&&(this.input(),this.attachInputEventHandlers()),this.options.checkbox&&this.checkbox(),this.options.togglebutton&&this.togglebutton(),this.options.radio&&this.radio(),this.options.autofill&&(this.autofill(),this.attachAutofillEventHandlers()),document.arrive&&this.options.arrive&&(t.fn.ripples&&this.options.ripples&&i.arrive(this.options.withRipples,function(){t.material.ripples(t(this))}),this.options.input&&i.arrive(this.options.inputElements,function(){t.material.input(t(this))}),this.options.checkbox&&i.arrive(this.options.checkboxElements,function(){t.material.checkbox(t(this))}),this.options.radio&&i.arrive(this.options.radioElements,function(){t.material.radio(t(this))}),this.options.togglebutton&&i.arrive(this.options.togglebuttonElements,function(){t.material.togglebutton(t(this))}))}}}(jQuery),function(t,o,i,n){"use strict";function e(o,i){r=this,this.element=t(o),this.options=t.extend({},s,i),this._defaults=s,this._name=a,this.init()}var a="ripples",r=null,s={};e.prototype.init=function(){var i=this.element;i.on("mousedown touchstart",function(n){if(!r.isTouch()||"mousedown"!==n.type){i.find(".ripple-container").length||i.append('
');var e=i.children(".ripple-container"),a=r.getRelY(e,n),s=r.getRelX(e,n);if(a||s){var l=r.getRipplesColor(i),p=t("
");p.addClass("ripple").css({left:s,top:a,"background-color":l}),e.append(p),function(){return o.getComputedStyle(p[0]).opacity}(),r.rippleOn(i,p),setTimeout(function(){r.rippleEnd(p)},500),i.on("mouseup mouseleave touchend",function(){p.data("mousedown","off"),"off"===p.data("animating")&&r.rippleOut(p)})}}})},e.prototype.getNewSize=function(t,o){return Math.max(t.outerWidth(),t.outerHeight())/o.outerWidth()*2.5},e.prototype.getRelX=function(t,o){var i=t.offset();return r.isTouch()?(o=o.originalEvent,1===o.touches.length?o.touches[0].pageX-i.left:!1):o.pageX-i.left},e.prototype.getRelY=function(t,o){var i=t.offset();return r.isTouch()?(o=o.originalEvent,1===o.touches.length?o.touches[0].pageY-i.top:!1):o.pageY-i.top},e.prototype.getRipplesColor=function(t){var i=t.data("ripple-color")?t.data("ripple-color"):o.getComputedStyle(t[0]).color;return i},e.prototype.hasTransitionSupport=function(){var t=i.body||i.documentElement,o=t.style,e=o.transition!==n||o.WebkitTransition!==n||o.MozTransition!==n||o.MsTransition!==n||o.OTransition!==n;return e},e.prototype.isTouch=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},e.prototype.rippleEnd=function(t){t.data("animating","off"),"off"===t.data("mousedown")&&r.rippleOut(t)},e.prototype.rippleOut=function(t){t.off(),r.hasTransitionSupport()?t.addClass("ripple-out"):t.animate({opacity:0},100,function(){t.trigger("transitionend")}),t.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){t.remove()})},e.prototype.rippleOn=function(t,o){var i=r.getNewSize(t,o);r.hasTransitionSupport()?o.css({"-ms-transform":"scale("+i+")","-moz-transform":"scale("+i+")","-webkit-transform":"scale("+i+")",transform:"scale("+i+")"}).addClass("ripple-on").data("animating","on").data("mousedown","on"):o.animate({width:2*Math.max(t.outerWidth(),t.outerHeight()),height:2*Math.max(t.outerWidth(),t.outerHeight()),"margin-left":-1*Math.max(t.outerWidth(),t.outerHeight()),"margin-top":-1*Math.max(t.outerWidth(),t.outerHeight()),opacity:.2},500,function(){o.trigger("transitionend")})},t.fn.ripples=function(o){return this.each(function(){t.data(this,"plugin_"+a)||t.data(this,"plugin_"+a,new e(this,o))})}}(jQuery,window,document); 2 | -------------------------------------------------------------------------------- /assets/js/demo.js: -------------------------------------------------------------------------------- 1 | type = ['','info','success','warning','danger']; 2 | 3 | 4 | demo = { 5 | initPickColor: function(){ 6 | $('.pick-class-label').click(function(){ 7 | var new_class = $(this).attr('new-class'); 8 | var old_class = $('#display-buttons').attr('data-class'); 9 | var display_div = $('#display-buttons'); 10 | if(display_div.length) { 11 | var display_buttons = display_div.find('.btn'); 12 | display_buttons.removeClass(old_class); 13 | display_buttons.addClass(new_class); 14 | display_div.attr('data-class', new_class); 15 | } 16 | }); 17 | }, 18 | 19 | initFormExtendedDatetimepickers: function(){ 20 | $('.datetimepicker').datetimepicker({ 21 | icons: { 22 | time: "fa fa-clock-o", 23 | date: "fa fa-calendar", 24 | up: "fa fa-chevron-up", 25 | down: "fa fa-chevron-down", 26 | previous: 'fa fa-chevron-left', 27 | next: 'fa fa-chevron-right', 28 | today: 'fa fa-screenshot', 29 | clear: 'fa fa-trash', 30 | close: 'fa fa-remove' 31 | } 32 | }); 33 | }, 34 | 35 | initDocumentationCharts: function(){ 36 | /* ----------========== Daily Sales Chart initialization For Documentation ==========---------- */ 37 | 38 | dataDailySalesChart = { 39 | labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S'], 40 | series: [ 41 | [12, 17, 7, 17, 23, 18, 38] 42 | ] 43 | }; 44 | 45 | optionsDailySalesChart = { 46 | lineSmooth: Chartist.Interpolation.cardinal({ 47 | tension: 0 48 | }), 49 | low: 0, 50 | high: 50, // creative tim: we recommend you to set the high sa the biggest value + something for a better look 51 | chartPadding: { top: 0, right: 0, bottom: 0, left: 0}, 52 | } 53 | 54 | var dailySalesChart = new Chartist.Line('#dailySalesChart', dataDailySalesChart, optionsDailySalesChart); 55 | 56 | md.startAnimationForLineChart(dailySalesChart); 57 | }, 58 | 59 | initDashboardPageCharts: function(){ 60 | 61 | /* ----------========== Daily Sales Chart initialization ==========---------- */ 62 | 63 | dataDailySalesChart = { 64 | labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S'], 65 | series: [ 66 | [12, 17, 7, 17, 23, 18, 38] 67 | ] 68 | }; 69 | 70 | optionsDailySalesChart = { 71 | lineSmooth: Chartist.Interpolation.cardinal({ 72 | tension: 0 73 | }), 74 | low: 0, 75 | high: 50, // creative tim: we recommend you to set the high sa the biggest value + something for a better look 76 | chartPadding: { top: 0, right: 0, bottom: 0, left: 0}, 77 | } 78 | 79 | var dailySalesChart = new Chartist.Line('#dailySalesChart', dataDailySalesChart, optionsDailySalesChart); 80 | 81 | md.startAnimationForLineChart(dailySalesChart); 82 | 83 | 84 | 85 | /* ----------========== Completed Tasks Chart initialization ==========---------- */ 86 | 87 | dataCompletedTasksChart = { 88 | labels: ['12am', '3pm', '6pm', '9pm', '12pm', '3am', '6am', '9am'], 89 | series: [ 90 | [230, 750, 450, 300, 280, 240, 200, 190] 91 | ] 92 | }; 93 | 94 | optionsCompletedTasksChart = { 95 | lineSmooth: Chartist.Interpolation.cardinal({ 96 | tension: 0 97 | }), 98 | low: 0, 99 | high: 1000, // creative tim: we recommend you to set the high sa the biggest value + something for a better look 100 | chartPadding: { top: 0, right: 0, bottom: 0, left: 0} 101 | } 102 | 103 | var completedTasksChart = new Chartist.Line('#completedTasksChart', dataCompletedTasksChart, optionsCompletedTasksChart); 104 | 105 | // start animation for the Completed Tasks Chart - Line Chart 106 | md.startAnimationForLineChart(completedTasksChart); 107 | 108 | 109 | 110 | /* ----------========== Emails Subscription Chart initialization ==========---------- */ 111 | 112 | var dataEmailsSubscriptionChart = { 113 | labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 114 | series: [ 115 | [542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895] 116 | 117 | ] 118 | }; 119 | var optionsEmailsSubscriptionChart = { 120 | axisX: { 121 | showGrid: false 122 | }, 123 | low: 0, 124 | high: 1000, 125 | chartPadding: { top: 0, right: 5, bottom: 0, left: 0} 126 | }; 127 | var responsiveOptions = [ 128 | ['screen and (max-width: 640px)', { 129 | seriesBarDistance: 5, 130 | axisX: { 131 | labelInterpolationFnc: function (value) { 132 | return value[0]; 133 | } 134 | } 135 | }] 136 | ]; 137 | var emailsSubscriptionChart = Chartist.Bar('#emailsSubscriptionChart', dataEmailsSubscriptionChart, optionsEmailsSubscriptionChart, responsiveOptions); 138 | 139 | //start animation for the Emails Subscription Chart 140 | md.startAnimationForBarChart(emailsSubscriptionChart); 141 | 142 | }, 143 | 144 | initGoogleMaps: function(){ 145 | var myLatlng = new google.maps.LatLng(40.748817, -73.985428); 146 | var mapOptions = { 147 | zoom: 13, 148 | center: myLatlng, 149 | scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page 150 | styles: [{"featureType":"water","stylers":[{"saturation":43},{"lightness":-11},{"hue":"#0088ff"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"hue":"#ff0000"},{"saturation":-100},{"lightness":99}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#808080"},{"lightness":54}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ece2d9"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#ccdca1"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#767676"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#b8cb93"}]},{"featureType":"poi.park","stylers":[{"visibility":"on"}]},{"featureType":"poi.sports_complex","stylers":[{"visibility":"on"}]},{"featureType":"poi.medical","stylers":[{"visibility":"on"}]},{"featureType":"poi.business","stylers":[{"visibility":"simplified"}]}] 151 | 152 | } 153 | var map = new google.maps.Map(document.getElementById("map"), mapOptions); 154 | 155 | var marker = new google.maps.Marker({ 156 | position: myLatlng, 157 | title:"Hello World!" 158 | }); 159 | 160 | // To add the marker to the map, call setMap(); 161 | marker.setMap(map); 162 | }, 163 | 164 | showNotification: function(from, align){ 165 | color = Math.floor((Math.random() * 4) + 1); 166 | 167 | $.notify({ 168 | icon: "notifications", 169 | message: "Welcome to Material Dashboard - a beautiful freebie for every web developer." 170 | 171 | },{ 172 | type: type[color], 173 | timer: 4000, 174 | placement: { 175 | from: from, 176 | align: align 177 | } 178 | }); 179 | } 180 | 181 | 182 | 183 | } 184 | -------------------------------------------------------------------------------- /assets/sass/md/_inputs-size.scss: -------------------------------------------------------------------------------- 1 | // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten. 2 | 3 | // 4 | // Forms - sizing - material - mirrors bootstrap/forms.less with custom sizing 5 | // 6 | // LEAVE THIS IDENTICAL TO THE BOOTSTRAP FILE - DO NOT CUSTOMIZE HERE. 7 | // 8 | // NOTE: this is intentionally kept structurally _identical_ to the bootstrap/forms.less file to make it easier 9 | // to identify differences in sizing approaches to form inputs. 10 | // -------------------------------------------------- 11 | 12 | legend { 13 | margin-bottom: $mdb-input-line-height-computed; 14 | font-size: ($mdb-input-font-size-base * 1.5); 15 | } 16 | 17 | // Adjust output element 18 | output { 19 | padding-top: ($mdb-input-padding-base-vertical + 1); 20 | font-size: $mdb-input-font-size-base; 21 | line-height: $mdb-input-line-height-base; 22 | } 23 | 24 | .form-control { 25 | height: $mdb-input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border) 26 | padding: $mdb-input-padding-base-vertical $mdb-input-padding-base-horizontal; 27 | font-size: $mdb-input-font-size-base; 28 | line-height: $mdb-input-line-height-base; 29 | } 30 | 31 | // Special styles for iOS temporal inputs 32 | // 33 | // In Mobile Safari, setting `display: block` on temporal inputs causes the 34 | // text within the input to become vertically misaligned. As a workaround, we 35 | // set a pixel line-height that matches the given height of the input, but only 36 | // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848 37 | // 38 | // Note that as of 8.3, iOS doesn't support `datetime` or `week`. 39 | 40 | @media screen and (-webkit-min-device-pixel-ratio: 0) { 41 | input[type="date"], 42 | input[type="time"], 43 | input[type="datetime-local"], 44 | input[type="month"] { 45 | &.form-control { 46 | line-height: $mdb-input-height-base; 47 | } 48 | 49 | &.input-sm, 50 | .input-group-sm & { 51 | line-height: $mdb-input-height-small; 52 | } 53 | 54 | &.input-lg, 55 | .input-group-lg & { 56 | line-height: $mdb-input-height-large; 57 | } 58 | } 59 | } 60 | 61 | .radio, 62 | .checkbox { 63 | 64 | label { 65 | min-height: $mdb-input-line-height-computed; // Ensure the input doesn't jump when there is no text 66 | } 67 | } 68 | 69 | 70 | // Static form control text 71 | // 72 | // Apply class to a `p` element to make any string of text align with labels in 73 | // a horizontal form layout. 74 | 75 | .form-control-static { 76 | // Size it appropriately next to real form controls 77 | padding-top: ($mdb-input-padding-base-vertical + 1); 78 | padding-bottom: ($mdb-input-padding-base-vertical + 1); 79 | min-height: ($mdb-input-line-height-computed + $mdb-input-font-size-base); 80 | } 81 | 82 | 83 | // Form control sizing 84 | // 85 | // Relative text size, padding, and border-radii changes for form controls. For 86 | // horizontal sizing, wrap controls in the predefined grid classes. ` 144 | 145 | 146 | 149 | 150 | 151 | 152 | 153 | 154 |
155 |
156 |
157 |
158 |
159 |
160 |

Material Design Icons

161 |

Handcrafted by our friends from Google

162 |
163 |
164 | 169 | 172 |
173 |
174 |
175 |
176 |
177 |
178 | 179 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | -------------------------------------------------------------------------------- /assets/sass/md/_colors.scss: -------------------------------------------------------------------------------- 1 | $red-50: #ffebee !default; 2 | $red-100: #ffcdd2 !default; 3 | $red-200: #ef9a9a !default; 4 | $red-300: #e57373 !default; 5 | $red-400: #ef5350 !default; 6 | $red-500: #f44336 !default; 7 | $red-600: #e53935 !default; 8 | $red-700: #d32f2f !default; 9 | $red-800: #c62828 !default; 10 | $red-900: #b71c1c !default; 11 | $red-A100: #ff8a80 !default; 12 | $red-A200: #ff5252 !default; 13 | $red-A400: #ff1744 !default; 14 | $red-A700: #d50000 !default; 15 | $red: $red-500 !default; 16 | 17 | 18 | $pink-50: #fce4ec !default; 19 | $pink-100: #f8bbd0 !default; 20 | $pink-200: #f48fb1 !default; 21 | $pink-300: #f06292 !default; 22 | $pink-400: #ec407a !default; 23 | $pink-500: #e91e63 !default; 24 | $pink-600: #d81b60 !default; 25 | $pink-700: #c2185b !default; 26 | $pink-800: #ad1457 !default; 27 | $pink-900: #880e4f !default; 28 | $pink-A100: #ff80ab !default; 29 | $pink-A200: #ff4081 !default; 30 | $pink-A400: #f50057 !default; 31 | $pink-A700: #c51162 !default; 32 | $pink: $pink-500 !default; 33 | 34 | 35 | $purple-50: #f3e5f5 !default; 36 | $purple-100: #e1bee7 !default; 37 | $purple-200: #ce93d8 !default; 38 | $purple-300: #ba68c8 !default; 39 | $purple-400: #ab47bc !default; 40 | $purple-500: #9c27b0 !default; 41 | $purple-600: #8e24aa !default; 42 | $purple-700: #7b1fa2 !default; 43 | $purple-800: #6a1b9a !default; 44 | $purple-900: #4a148c !default; 45 | $purple-A100: #ea80fc !default; 46 | $purple-A200: #e040fb !default; 47 | $purple-A400: #d500f9 !default; 48 | $purple-A700: #aa00ff !default; 49 | $purple: $purple-500 !default; 50 | 51 | 52 | $deep-purple-50: #ede7f6 !default; 53 | $deep-purple-100: #d1c4e9 !default; 54 | $deep-purple-200: #b39ddb !default; 55 | $deep-purple-300: #9575cd !default; 56 | $deep-purple-400: #7e57c2 !default; 57 | $deep-purple-500: #673ab7 !default; 58 | $deep-purple-600: #5e35b1 !default; 59 | $deep-purple-700: #512da8 !default; 60 | $deep-purple-800: #4527a0 !default; 61 | $deep-purple-900: #311b92 !default; 62 | $deep-purple-A100: #b388ff !default; 63 | $deep-purple-A200: #7c4dff !default; 64 | $deep-purple-A400: #651fff !default; 65 | $deep-purple-A700: #6200ea !default; 66 | $deep-purple: $deep-purple-500 !default; 67 | 68 | 69 | $indigo-50: #e8eaf6 !default; 70 | $indigo-100: #c5cae9 !default; 71 | $indigo-200: #9fa8da !default; 72 | $indigo-300: #7986cb !default; 73 | $indigo-400: #5c6bc0 !default; 74 | $indigo-500: #3f51b5 !default; 75 | $indigo-600: #3949ab !default; 76 | $indigo-700: #303f9f !default; 77 | $indigo-800: #283593 !default; 78 | $indigo-900: #1a237e !default; 79 | $indigo-A100: #8c9eff !default; 80 | $indigo-A200: #536dfe !default; 81 | $indigo-A400: #3d5afe !default; 82 | $indigo-A700: #304ffe !default; 83 | $indigo: $indigo-500 !default; 84 | 85 | 86 | $blue-50: #e3f2fd !default; 87 | $blue-100: #bbdefb !default; 88 | $blue-200: #90caf9 !default; 89 | $blue-300: #64b5f6 !default; 90 | $blue-400: #42a5f5 !default; 91 | $blue-500: #2196f3 !default; 92 | $blue-600: #1e88e5 !default; 93 | $blue-700: #1976d2 !default; 94 | $blue-800: #1565c0 !default; 95 | $blue-900: #0d47a1 !default; 96 | $blue-A100: #82b1ff !default; 97 | $blue-A200: #448aff !default; 98 | $blue-A400: #2979ff !default; 99 | $blue-A700: #2962ff !default; 100 | $blue: $blue-500 !default; 101 | 102 | 103 | $light-blue-50: #e1f5fe !default; 104 | $light-blue-100: #b3e5fc !default; 105 | $light-blue-200: #81d4fa !default; 106 | $light-blue-300: #4fc3f7 !default; 107 | $light-blue-400: #29b6f6 !default; 108 | $light-blue-500: #03a9f4 !default; 109 | $light-blue-600: #039be5 !default; 110 | $light-blue-700: #0288d1 !default; 111 | $light-blue-800: #0277bd !default; 112 | $light-blue-900: #01579b !default; 113 | $light-blue-A100: #80d8ff !default; 114 | $light-blue-A200: #40c4ff !default; 115 | $light-blue-A400: #00b0ff !default; 116 | $light-blue-A700: #0091ea !default; 117 | $light-blue: $light-blue-500 !default; 118 | 119 | 120 | $cyan-50: #e0f7fa !default; 121 | $cyan-100: #b2ebf2 !default; 122 | $cyan-200: #80deea !default; 123 | $cyan-300: #4dd0e1 !default; 124 | $cyan-400: #26c6da !default; 125 | $cyan-500: #00bcd4 !default; 126 | $cyan-600: #00acc1 !default; 127 | $cyan-700: #0097a7 !default; 128 | $cyan-800: #00838f !default; 129 | $cyan-900: #006064 !default; 130 | $cyan-A100: #84ffff !default; 131 | $cyan-A200: #18ffff !default; 132 | $cyan-A400: #00e5ff !default; 133 | $cyan-A700: #00b8d4 !default; 134 | $cyan: $cyan-500 !default; 135 | 136 | 137 | $teal-50: #e0f2f1 !default; 138 | $teal-100: #b2dfdb !default; 139 | $teal-200: #80cbc4 !default; 140 | $teal-300: #4db6ac !default; 141 | $teal-400: #26a69a !default; 142 | $teal-500: #009688 !default; 143 | $teal-600: #00897b !default; 144 | $teal-700: #00796b !default; 145 | $teal-800: #00695c !default; 146 | $teal-900: #004d40 !default; 147 | $teal-A100: #a7ffeb !default; 148 | $teal-A200: #64ffda !default; 149 | $teal-A400: #1de9b6 !default; 150 | $teal-A700: #00bfa5 !default; 151 | $teal: $teal-500 !default; 152 | 153 | 154 | $green-50: #e8f5e9 !default; 155 | $green-100: #c8e6c9 !default; 156 | $green-200: #a5d6a7 !default; 157 | $green-300: #81c784 !default; 158 | $green-400: #66bb6a !default; 159 | $green-500: #4caf50 !default; 160 | $green-600: #43a047 !default; 161 | $green-700: #388e3c !default; 162 | $green-800: #2e7d32 !default; 163 | $green-900: #1b5e20 !default; 164 | $green-A100: #b9f6ca !default; 165 | $green-A200: #69f0ae !default; 166 | $green-A400: #00e676 !default; 167 | $green-A700: #00c853 !default; 168 | $green: $green-500 !default; 169 | 170 | 171 | $light-green-50: #f1f8e9 !default; 172 | $light-green-100: #dcedc8 !default; 173 | $light-green-200: #c5e1a5 !default; 174 | $light-green-300: #aed581 !default; 175 | $light-green-400: #9ccc65 !default; 176 | $light-green-500: #8bc34a !default; 177 | $light-green-600: #7cb342 !default; 178 | $light-green-700: #689f38 !default; 179 | $light-green-800: #558b2f !default; 180 | $light-green-900: #33691e !default; 181 | $light-green-A100: #ccff90 !default; 182 | $light-green-A200: #b2ff59 !default; 183 | $light-green-A400: #76ff03 !default; 184 | $light-green-A700: #64dd17 !default; 185 | $light-green: $light-green-500 !default; 186 | 187 | 188 | $lime-50: #f9fbe7 !default; 189 | $lime-100: #f0f4c3 !default; 190 | $lime-200: #e6ee9c !default; 191 | $lime-300: #dce775 !default; 192 | $lime-400: #d4e157 !default; 193 | $lime-500: #cddc39 !default; 194 | $lime-600: #c0ca33 !default; 195 | $lime-700: #afb42b !default; 196 | $lime-800: #9e9d24 !default; 197 | $lime-900: #827717 !default; 198 | $lime-A100: #f4ff81 !default; 199 | $lime-A200: #eeff41 !default; 200 | $lime-A400: #c6ff00 !default; 201 | $lime-A700: #aeea00 !default; 202 | $lime: $lime-500 !default; 203 | 204 | 205 | $yellow-50: #fffde7 !default; 206 | $yellow-100: #fff9c4 !default; 207 | $yellow-200: #fff59d !default; 208 | $yellow-300: #fff176 !default; 209 | $yellow-400: #ffee58 !default; 210 | $yellow-500: #fec60a !default; 211 | $yellow-600: #fdd835 !default; 212 | $yellow-700: #fbc02d !default; 213 | $yellow-800: #f9a825 !default; 214 | $yellow-900: #f57f17 !default; 215 | $yellow-A100: #ffff8d !default; 216 | $yellow-A200: #ffff00 !default; 217 | $yellow-A400: #ffea00 !default; 218 | $yellow-A700: #ffd600 !default; 219 | $yellow: $yellow-700 !default; 220 | 221 | 222 | $amber-50: #fff8e1 !default; 223 | $amber-100: #ffecb3 !default; 224 | $amber-200: #ffe082 !default; 225 | $amber-300: #ffd54f !default; 226 | $amber-400: #ffca28 !default; 227 | $amber-500: #ffc107 !default; 228 | $amber-600: #ffb300 !default; 229 | $amber-700: #ffa000 !default; 230 | $amber-800: #ff8f00 !default; 231 | $amber-900: #ff6f00 !default; 232 | $amber-A100: #ffe57f !default; 233 | $amber-A200: #ffd740 !default; 234 | $amber-A400: #ffc400 !default; 235 | $amber-A700: #ffab00 !default; 236 | $amber: $amber-500 !default; 237 | 238 | 239 | $orange-50: #fff3e0 !default; 240 | $orange-100: #ffe0b2 !default; 241 | $orange-200: #ffcc80 !default; 242 | $orange-300: #ffb74d !default; 243 | $orange-400: #ffa726 !default; 244 | $orange-500: #ff9800 !default; 245 | $orange-600: #fb8c00 !default; 246 | $orange-700: #f57c00 !default; 247 | $orange-800: #ef6c00 !default; 248 | $orange-900: #e65100 !default; 249 | $orange-A100: #ffd180 !default; 250 | $orange-A200: #ffab40 !default; 251 | $orange-A400: #ff9100 !default; 252 | $orange-A700: #ff6d00 !default; 253 | $orange: $orange-500 !default; 254 | 255 | 256 | $deep-orange-50: #fbe9e7 !default; 257 | $deep-orange-100: #ffccbc !default; 258 | $deep-orange-200: #ffab91 !default; 259 | $deep-orange-300: #ff8a65 !default; 260 | $deep-orange-400: #ff7043 !default; 261 | $deep-orange-500: #ff5722 !default; 262 | $deep-orange-600: #f4511e !default; 263 | $deep-orange-700: #e64a19 !default; 264 | $deep-orange-800: #d84315 !default; 265 | $deep-orange-900: #bf360c !default; 266 | $deep-orange-A100: #ff9e80 !default; 267 | $deep-orange-A200: #ff6e40 !default; 268 | $deep-orange-A400: #ff3d00 !default; 269 | $deep-orange-A700: #dd2c00 !default; 270 | $deep-orange: $deep-orange-500 !default; 271 | 272 | 273 | $brown-50: #efebe9 !default; 274 | $brown-100: #d7ccc8 !default; 275 | $brown-200: #bcaaa4 !default; 276 | $brown-300: #a1887f !default; 277 | $brown-400: #8d6e63 !default; 278 | $brown-500: #795548 !default; 279 | $brown-600: #6d4c41 !default; 280 | $brown-700: #5d4037 !default; 281 | $brown-800: #4e342e !default; 282 | $brown-900: #3e2723 !default; 283 | $brown-A100: #d7ccc8 !default; 284 | $brown-A200: #bcaaa4 !default; 285 | $brown-A400: #8d6e63 !default; 286 | $brown-A700: #5d4037 !default; 287 | $brown: $brown-500 !default; 288 | 289 | 290 | $grey-50: #fafafa !default; 291 | $grey-100: #f5f5f5 !default; 292 | $grey-200: #eeeeee !default; 293 | $grey-300: #e0e0e0 !default; 294 | $grey-400: #bdbdbd !default; 295 | $grey-500: #9e9e9e; $rgb-grey-500: "158, 158, 158" !default; 296 | $grey-600: #757575 !default; 297 | $grey-700: #616161 !default; 298 | $grey-800: #424242 !default; 299 | $grey-900: #212121 !default; 300 | $grey-A100: #f5f5f5 !default; 301 | $grey-A200: #eeeeee !default; 302 | $grey-A400: #bdbdbd !default; 303 | $grey-A700: #616161 !default; 304 | $grey: $grey-500 !default; 305 | 306 | 307 | $blue-grey-50: #eceff1 !default; 308 | $blue-grey-100: #cfd8dc !default; 309 | $blue-grey-200: #b0bec5 !default; 310 | $blue-grey-300: #90a4ae !default; 311 | $blue-grey-400: #78909c !default; 312 | $blue-grey-500: #607d8b !default; 313 | $blue-grey-600: #546e7a !default; 314 | $blue-grey-700: #455a64 !default; 315 | $blue-grey-800: #37474f !default; 316 | $blue-grey-900: #263238 !default; 317 | $blue-grey-A100: #cfd8dc !default; 318 | $blue-grey-A200: #b0bec5 !default; 319 | $blue-grey-A400: #78909c !default; 320 | $blue-grey-A700: #455a64 !default; 321 | $blue-grey: $blue-grey-500 !default; 322 | 323 | 324 | $black: #000000; $rgb-black: "0,0,0" !default; 325 | $white: #ffffff; $rgb-white: "255,255,255" !default; 326 | -------------------------------------------------------------------------------- /assets/sass/md/_responsive.scss: -------------------------------------------------------------------------------- 1 | @media (min-width: 992px){ 2 | .navbar-form { 3 | margin-top: 21px; 4 | margin-bottom: 21px; 5 | padding-left: 5px; 6 | padding-right: 5px; 7 | } 8 | .navbar-nav > li > .dropdown-menu, 9 | .dropdown .dropdown-menu, 10 | .dropdown-menu.bootstrap-datetimepicker-widget{ 11 | @include transition($fast-transition-time, $transition-linear); 12 | margin-top: -20px; 13 | visibility: hidden; 14 | display: block; 15 | @include opacity(0); 16 | } 17 | .navbar-nav > li.open > .dropdown-menu, 18 | .dropdown.open .dropdown-menu, 19 | .dropdown-menu.bootstrap-datetimepicker-widget.open{ 20 | @include opacity(1); 21 | visibility: visible; 22 | margin-top: 0px; 23 | 24 | } 25 | 26 | /*.navbar-nav > li > .dropdown-menu:before{ 27 | border-bottom: 11px solid rgba(0, 0, 0, 0.2); 28 | border-left: 11px solid rgba(0, 0, 0, 0); 29 | border-right: 11px solid rgba(0, 0, 0, 0); 30 | content: ""; 31 | display: inline-block; 32 | position: absolute; 33 | left: 12px; 34 | top: -11px; 35 | } 36 | .navbar-nav > li > .dropdown-menu:after { 37 | border-bottom: 11px solid #FFFFFF; 38 | border-left: 11px solid rgba(0, 0, 0, 0); 39 | border-right: 11px solid rgba(0, 0, 0, 0); 40 | content: ""; 41 | display: inline-block; 42 | position: absolute; 43 | left: 12px; 44 | top: -10px; 45 | }*/ 46 | 47 | .navbar-nav.navbar-right > li > .dropdown-menu:before{ 48 | left: auto; 49 | right: 12px; 50 | } 51 | 52 | .navbar-nav.navbar-right > li > .dropdown-menu:after{ 53 | left: auto; 54 | right: 12px; 55 | } 56 | 57 | .footer:not(.footer-big){ 58 | nav > ul{ 59 | li:first-child{ 60 | margin-left: 0; 61 | } 62 | } 63 | } 64 | 65 | body > .navbar-collapse.collapse{ 66 | display: none !important; 67 | } 68 | 69 | .card{ 70 | form{ 71 | [class*="col-"]{ 72 | padding: 6px; 73 | } 74 | [class*="col-"]:first-child{ 75 | padding-left: 15px; 76 | } 77 | [class*="col-"]:last-child{ 78 | padding-right: 15px; 79 | } 80 | } 81 | } 82 | 83 | .sidebar{ 84 | .navbar-form{ 85 | display: none !important; 86 | } 87 | .nav-mobile-menu{ 88 | display: none; 89 | } 90 | } 91 | } 92 | 93 | /* Changes for small display */ 94 | 95 | @media (max-width: 991px){ 96 | .sidebar{ 97 | display: none; 98 | box-shadow: none; 99 | 100 | .sidebar-wrapper{ 101 | padding-bottom: 60px; 102 | } 103 | 104 | .nav-mobile-menu{ 105 | margin-top: 0; 106 | 107 | .notification{ 108 | float: left; 109 | line-height: 30px; 110 | margin-right: 8px; 111 | } 112 | 113 | .open .dropdown-menu { 114 | position: static; 115 | float: none; 116 | width: auto; 117 | margin-top: 0; 118 | background-color: transparent; 119 | border: 0; 120 | -webkit-box-shadow: none; 121 | box-shadow: none; 122 | } 123 | } 124 | } 125 | 126 | .main-panel{ 127 | width: 100%; 128 | } 129 | .navbar-transparent{ 130 | padding-top: 15px; 131 | background-color: rgba(0, 0, 0, 0.45); 132 | } 133 | body { 134 | position: relative; 135 | } 136 | .main-panel{ 137 | @include transform-translate-x(0px); 138 | @include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1)); 139 | left: 0; 140 | } 141 | .navbar .container{ 142 | left: 0; 143 | width: 100%; 144 | @include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1)); 145 | position: relative; 146 | } 147 | .navbar .navbar-collapse.collapse, 148 | .navbar .navbar-collapse.collapse.in, 149 | .navbar .navbar-collapse.collapsing{ 150 | display: none !important; 151 | } 152 | 153 | .navbar-nav > li{ 154 | float: none; 155 | position: relative; 156 | display: block; 157 | } 158 | 159 | .sidebar, 160 | .off-canvas-sidebar{ 161 | position: fixed; 162 | display: block; 163 | top: 0; 164 | height: 100vh; 165 | width: 260px; 166 | right: 0; 167 | left: auto; 168 | z-index: 1032; 169 | visibility: visible; 170 | background-color: #9A9A9A; 171 | overflow-y: visible; 172 | border-top: none; 173 | text-align: left; 174 | padding-right: 0px; 175 | padding-left: 0; 176 | 177 | @include transform-translate-x(260px); 178 | @include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1)); 179 | > ul { 180 | position: relative; 181 | z-index: 4; 182 | overflow-y:scroll; 183 | height: calc(100vh - 61px); 184 | width: 100%; 185 | } 186 | &::before{ 187 | top: 0; 188 | left: 0; 189 | height: 100%; 190 | width: 100%; 191 | position: absolute; 192 | background-color: #282828; 193 | display: block; 194 | content: ""; 195 | z-index: 1; 196 | } 197 | 198 | .logo{ 199 | position: relative; 200 | z-index: 4; 201 | } 202 | 203 | .navbar-form{ 204 | margin: 10px 15px; 205 | float: none !important; 206 | 207 | .btn{ 208 | position: absolute; 209 | top: 25px; 210 | right: 15px; 211 | } 212 | } 213 | 214 | .table-responsive { 215 | width: 100%; 216 | margin-bottom: 15px; 217 | overflow-x: scroll; 218 | overflow-y: hidden; 219 | -ms-overflow-style: -ms-autohiding-scrollbar; 220 | -webkit-overflow-scrolling: touch; 221 | } 222 | } 223 | 224 | .nav-open .navbar-collapse{ 225 | @include transform-translate-x(0px); 226 | } 227 | .nav-open .navbar .container{ 228 | left: -250px; 229 | } 230 | .nav-open .main-panel{ 231 | left: 0; 232 | @include transform-translate-x(-260px); 233 | } 234 | 235 | .nav-open .sidebar{ 236 | @include shadow-big(); 237 | } 238 | 239 | .nav-open{ 240 | .off-canvas-sidebar, 241 | .sidebar{ 242 | @include transform-translate-x(0); 243 | } 244 | } 245 | 246 | .close-layer{ 247 | height: 100%; 248 | width: 100%; 249 | position: absolute; 250 | opacity: 0; 251 | top: 0; 252 | left: auto; 253 | 254 | content: ""; 255 | z-index: 9999; 256 | overflow-x: hidden; 257 | 258 | @include transition($slow-transition-time, $transition-ease-in); 259 | 260 | &.visible{ 261 | opacity: 1; 262 | } 263 | } 264 | 265 | .navbar-toggle .icon-bar { 266 | display: block; 267 | position: relative; 268 | background: #fff; 269 | width: 24px; 270 | height: 2px; 271 | border-radius: 1px; 272 | margin: 0 auto; 273 | } 274 | 275 | .navbar-header .navbar-toggle { 276 | margin: 10px 15px 10px 0; 277 | width: 40px; 278 | height: 40px; 279 | } 280 | .bar1, 281 | .bar2, 282 | .bar3 { 283 | outline: 1px solid transparent; 284 | } 285 | 286 | @-webkit-keyframes fadeIn { 287 | 0% {opacity: 0;} 288 | 100% {opacity: 1;} 289 | } 290 | @-moz-keyframes fadeIn { 291 | 0% {opacity: 0;} 292 | 100% {opacity: 1;} 293 | } 294 | @keyframes fadeIn { 295 | 0% {opacity: 0;} 296 | 100% {opacity: 1;} 297 | } 298 | 299 | .dropdown-menu .divider{ 300 | background-color: rgba(229, 229, 229, 0.15); 301 | } 302 | 303 | .navbar-nav { 304 | margin: 1px 0; 305 | 306 | .open .dropdown-menu > li { 307 | & > a{ 308 | padding: 15px 15px 5px 50px; 309 | } 310 | 311 | &:first-child > a{ 312 | padding: 5px 15px 5px 50px; 313 | } 314 | 315 | &:last-child > a { 316 | padding: 15px 15px 25px 50px; 317 | } 318 | } 319 | } 320 | 321 | [class*="navbar-"] .navbar-nav { 322 | & > li > a, 323 | > li > a:hover, 324 | > li > a:focus, 325 | .active > a, 326 | .active > a:hover, 327 | .active > a:focus, 328 | .open .dropdown-menu > li > a, 329 | .open .dropdown-menu > li > a:hover, 330 | .open .dropdown-menu > li > a:focus, 331 | .navbar-nav .open .dropdown-menu > li > a:active { 332 | color: white; 333 | } 334 | 335 | & > li > a, 336 | > li > a:hover, 337 | > li > a:focus, 338 | .open .dropdown-menu > li > a, 339 | .open .dropdown-menu > li > a:hover, 340 | .open .dropdown-menu > li > a:focus{ 341 | opacity: .7; 342 | background: transparent; 343 | } 344 | 345 | &.navbar-nav .open .dropdown-menu > li > a:active { 346 | opacity: 1; 347 | } 348 | 349 | & .dropdown > a{ 350 | &:hover .caret { 351 | border-bottom-color: #777; 352 | border-top-color: #777; 353 | } 354 | &:active .caret { 355 | border-bottom-color: white; 356 | border-top-color: white; 357 | } 358 | } 359 | 360 | } 361 | 362 | .dropdown-menu { 363 | display: none; 364 | } 365 | .navbar-fixed-top { 366 | -webkit-backface-visibility: hidden; 367 | } 368 | #bodyClick { 369 | height: 100%; 370 | width: 100%; 371 | position: fixed; 372 | opacity: 0; 373 | top: 0; 374 | left: auto; 375 | right: 250px; 376 | content: ""; 377 | z-index: 9999; 378 | overflow-x: hidden; 379 | } 380 | 381 | .social-line .btn{ 382 | margin: $margin-bottom; 383 | } 384 | .subscribe-line .form-control{ 385 | margin: $margin-bottom; 386 | } 387 | .social-line.pull-right{ 388 | float: none; 389 | } 390 | .footer:not(.footer-big) nav > ul li{ 391 | float: none; 392 | } 393 | .social-area.pull-right{ 394 | float: none !important; 395 | } 396 | .form-control + .form-control-feedback{ 397 | margin-top: -8px; 398 | } 399 | .navbar-toggle:hover,.navbar-toggle:focus { 400 | background-color: transparent !important; 401 | } 402 | .btn.dropdown-toggle{ 403 | margin-bottom: 0; 404 | } 405 | .media-post .author{ 406 | width: 20%; 407 | float: none !important; 408 | display: block; 409 | margin: 0 auto 10px; 410 | } 411 | .media-post .media-body{ 412 | width: 100%; 413 | } 414 | 415 | .navbar-collapse.collapse{ 416 | height: 100% !important; 417 | } 418 | .navbar-collapse.collapse.in { 419 | display: block; 420 | } 421 | .navbar-header .collapse, .navbar-toggle { 422 | display:block !important; 423 | } 424 | .navbar-header { 425 | float:none; 426 | } 427 | .navbar-collapse{ 428 | .nav p{ 429 | font-size: $font-size-base; 430 | margin: 0; 431 | } 432 | 433 | [class^="pe-7s-"]{ 434 | float: left; 435 | font-size: 20px; 436 | margin-right: 10px; 437 | } 438 | } 439 | } 440 | 441 | //overwrite table responsive for 768px screens 442 | 443 | @media (min-width: 768px){ 444 | .navbar> .container-fluid .navbar-brand{ 445 | margin-left: 0; 446 | } 447 | } 448 | @media (min-width: 992px){ 449 | .table-full-width{ 450 | margin-left: -20px; 451 | margin-right: -20px; 452 | } 453 | } 454 | -------------------------------------------------------------------------------- /assets/js/material-dashboard.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | ========================================================= 4 | * Material Dashboard - v1.1.1 5 | ========================================================= 6 | 7 | * Product Page: http://www.creative-tim.com/product/material-dashboard 8 | * Copyright 2017 Creative Tim (http://www.creative-tim.com) 9 | * Licensed under MIT (https://github.com/creativetimofficial/material-dashboard/blob/master/LICENSE.md) 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | 15 | */ 16 | 17 | // Material Dashboard Wizard Functions 18 | 19 | var searchVisible = 0; 20 | var transparent = true; 21 | 22 | var transparentDemo = true; 23 | var fixedTop = false; 24 | 25 | var mobile_menu_visible = 0, 26 | mobile_menu_initialized = false, 27 | toggle_initialized = false, 28 | bootstrap_nav_initialized = false; 29 | 30 | var seq = 0, delays = 80, durations = 500; 31 | var seq2 = 0, delays2 = 80, durations2 = 500; 32 | 33 | 34 | $(document).ready(function(){ 35 | 36 | $sidebar = $('.sidebar'); 37 | 38 | $.material.init(); 39 | 40 | md.initSidebarsCheck(); 41 | 42 | window_width = $(window).width(); 43 | 44 | // check if there is an image set for the sidebar's background 45 | md.checkSidebarImage(); 46 | 47 | // Activate the tooltips 48 | $('[rel="tooltip"]').tooltip(); 49 | 50 | 51 | $('.form-control').on("focus", function(){ 52 | $(this).parent('.input-group').addClass("input-group-focus"); 53 | }).on("blur", function(){ 54 | $(this).parent(".input-group").removeClass("input-group-focus"); 55 | }); 56 | 57 | $('a.tree-toggle').on("click", function (e) { 58 | e.preventDefault(); 59 | }); 60 | 61 | $('.tree-toggle').on("click", function (e) { 62 | $this = $(this); 63 | $.each($('.tree-toggle'),function(key,item){ 64 | skip = false; 65 | $.each($(item).parent().find('.tree-toggle'), function(key,item2){ 66 | if($(item2).is($this)) return skip = true; 67 | }); 68 | if($(item).is($this) || skip) return; 69 | $(item).parent().children('ul.tree').hide(200); 70 | }); 71 | $this.parent().children('ul.tree').toggle(200); 72 | }); 73 | 74 | 75 | }); 76 | 77 | // activate collapse right menu when the windows is resized 78 | $(window).resize(function(){ 79 | md.initSidebarsCheck(); 80 | // reset the seq for charts drawing animations 81 | seq = seq2 = 0; 82 | }); 83 | 84 | md = { 85 | misc:{ 86 | navbar_menu_visible: 0, 87 | active_collapse: true, 88 | disabled_collapse_init: 0, 89 | }, 90 | 91 | checkSidebarImage: function(){ 92 | $sidebar = $('.sidebar'); 93 | image_src = $sidebar.data('image'); 94 | 95 | if(image_src !== undefined){ 96 | sidebar_container = '