updating to 4.0
New design with breaking changes, gulp 4, all dependencies updated, dev environment changed, and many more changes
This commit is contained in:
36
scss/_cards.scss
Normal file
36
scss/_cards.scss
Normal file
@@ -0,0 +1,36 @@
|
||||
// Custom Card Styling
|
||||
|
||||
.card {
|
||||
.card-header {
|
||||
// Format Dropdowns in Card Headings
|
||||
.dropdown {
|
||||
line-height: 1;
|
||||
.dropdown-menu {
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Collapsable Card Styling
|
||||
.card-header[data-toggle="collapse"] {
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
padding: 0.75rem 3.25rem 0.75rem 1.25rem;
|
||||
&::after {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
padding-right: 1.725rem;
|
||||
line-height: 51px;
|
||||
font-weight: 900;
|
||||
content: '\f107';
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
color: $gray-400;
|
||||
}
|
||||
&.collapsed {
|
||||
border-radius: $card-border-radius;
|
||||
&::after {
|
||||
content: '\f105';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
9
scss/_charts.scss
Normal file
9
scss/_charts.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
// Area Chart
|
||||
.chart-area {
|
||||
position: relative;
|
||||
height: 10rem;
|
||||
width: 100%;
|
||||
@include media-breakpoint-up(md) {
|
||||
height: 20rem;
|
||||
}
|
||||
}
|
||||
21
scss/_dropdowns.scss
Normal file
21
scss/_dropdowns.scss
Normal file
@@ -0,0 +1,21 @@
|
||||
// Custom Dropdown Styling
|
||||
|
||||
.dropdown {
|
||||
.dropdown-menu {
|
||||
font-size: $dropdown-font-size;
|
||||
.dropdown-header {
|
||||
@extend .text-uppercase;
|
||||
font-weight: 800;
|
||||
font-size: 0.65rem;
|
||||
color: $gray-500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Utility class to hide arrow from dropdown
|
||||
|
||||
.dropdown.no-arrow {
|
||||
.dropdown-toggle::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
14
scss/_footer.scss
Normal file
14
scss/_footer.scss
Normal file
@@ -0,0 +1,14 @@
|
||||
footer.sticky-footer {
|
||||
padding: 2rem 0;
|
||||
flex-shrink: 0;
|
||||
.copyright {
|
||||
line-height: 1;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
body.sidebar-toggled {
|
||||
footer.sticky-footer {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
77
scss/_global.scss
Normal file
77
scss/_global.scss
Normal file
@@ -0,0 +1,77 @@
|
||||
// Global component styles
|
||||
|
||||
html {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
// Main page wrapper
|
||||
#wrapper {
|
||||
display: flex;
|
||||
#content-wrapper {
|
||||
background-color: $gray-100;
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
#content {
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set container padding to match gutter width instead of default 15px
|
||||
.container,
|
||||
.container-fluid {
|
||||
padding-left: $grid-gutter-width;
|
||||
padding-right: $grid-gutter-width;
|
||||
}
|
||||
|
||||
// Fixed Nav Option
|
||||
body.fixed-nav {
|
||||
#content-wrapper {
|
||||
margin-top: $navbar-base-height;
|
||||
padding-left: $sidebar-collapsed-width;
|
||||
}
|
||||
&.sidebar-toggled {
|
||||
#content-wrapper {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
@include media-breakpoint-up(md) {
|
||||
#content-wrapper {
|
||||
padding-left: $sidebar-base-width;
|
||||
}
|
||||
&.sidebar-toggled {
|
||||
#content-wrapper {
|
||||
padding-left: $sidebar-collapsed-width;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Scroll to top button
|
||||
.scroll-to-top {
|
||||
position: fixed;
|
||||
right: 1rem;
|
||||
bottom: 1rem;
|
||||
display: none;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
text-align: center;
|
||||
color: $white;
|
||||
background: fade-out($gray-800, .5);
|
||||
line-height: 46px;
|
||||
&:focus,
|
||||
&:hover {
|
||||
color: white;
|
||||
}
|
||||
&:hover {
|
||||
background: $gray-800;
|
||||
}
|
||||
i {
|
||||
font-weight: 800;
|
||||
}
|
||||
}
|
||||
69
scss/_login.scss
Normal file
69
scss/_login.scss
Normal file
@@ -0,0 +1,69 @@
|
||||
:root {
|
||||
--input-padding-x: 0.75rem;
|
||||
--input-padding-y: 0.75rem;
|
||||
}
|
||||
|
||||
.card-login {
|
||||
max-width: 25rem;
|
||||
}
|
||||
|
||||
.card-register {
|
||||
max-width: 40rem;
|
||||
}
|
||||
|
||||
.form-label-group {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.form-label-group > input,
|
||||
.form-label-group > label {
|
||||
padding: var(--input-padding-y) var(--input-padding-x);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.form-label-group > label {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
/* Override default `<label>` margin */
|
||||
line-height: 1.5;
|
||||
color: #495057;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0.25rem;
|
||||
transition: all 0.1s ease-in-out;
|
||||
}
|
||||
|
||||
.form-label-group input::-webkit-input-placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.form-label-group input:-ms-input-placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.form-label-group input::-ms-input-placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.form-label-group input::-moz-placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.form-label-group input::placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.form-label-group input:not(:placeholder-shown) {
|
||||
padding-top: calc(var(--input-padding-y) + var(--input-padding-y) * (2 / 3));
|
||||
padding-bottom: calc(var(--input-padding-y) / 3);
|
||||
}
|
||||
|
||||
.form-label-group input:not(:placeholder-shown) ~ label {
|
||||
padding-top: calc(var(--input-padding-y) / 3);
|
||||
padding-bottom: calc(var(--input-padding-y) / 3);
|
||||
font-size: 12px;
|
||||
color: #777;
|
||||
}
|
||||
3
scss/_mixins.scss
Normal file
3
scss/_mixins.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
@mixin rotate {
|
||||
transform: rotate(-15deg);
|
||||
}
|
||||
4
scss/_navs.scss
Normal file
4
scss/_navs.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
@import "navs/global.scss";
|
||||
@import "navs/topbar.scss";
|
||||
@import "navs/sidebar.scss";
|
||||
@import "navs/fixed.scss";
|
||||
4
scss/_utilities.scss
Normal file
4
scss/_utilities.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
@import "utilities/animation.scss";
|
||||
@import "utilities/background.scss";
|
||||
@import "utilities/display.scss";
|
||||
@import "utilities/text.scss";
|
||||
67
scss/_variables.scss
Normal file
67
scss/_variables.scss
Normal file
@@ -0,0 +1,67 @@
|
||||
// Color Variables
|
||||
// Bootstrap Color Overrides
|
||||
|
||||
$white: #fff !default;
|
||||
$gray-100: #f8f9fc !default;
|
||||
$gray-200: #eaecf4 !default;
|
||||
$gray-300: #dddfeb !default;
|
||||
$gray-400: #d1d3e2 !default;
|
||||
$gray-500: #b7b9cc !default;
|
||||
$gray-600: #858796 !default;
|
||||
$gray-700: #6e707e !default;
|
||||
$gray-800: #5a5c69 !default;
|
||||
$gray-900: #3a3b45 !default;
|
||||
$black: #000 !default;
|
||||
|
||||
$blue: #4e73df !default;
|
||||
$indigo: #6610f2 !default;
|
||||
$purple: #6f42c1 !default;
|
||||
$pink: #e83e8c !default;
|
||||
$red: #e74a3b !default;
|
||||
$orange: #fd7e14 !default;
|
||||
$yellow: #f6c23e !default;
|
||||
$green: #1cc88a !default;
|
||||
$teal: #20c9a6 !default;
|
||||
$cyan: #36b9cc !default;
|
||||
|
||||
// Set Contrast Threshold
|
||||
$yiq-contrasted-threshold: 195 !default;
|
||||
|
||||
// Typography
|
||||
$body-color: $gray-600 !default;
|
||||
|
||||
$font-family-sans-serif: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", 'Noto Color Emoji' !default;
|
||||
|
||||
$font-weight-light: 300 !default;
|
||||
// $font-weight-base: 400;
|
||||
$headings-font-weight: 400 !default;
|
||||
|
||||
// Shadows
|
||||
$box-shadow-sm: 0 0.125rem 0.25rem 0 rgba($gray-900, .2) !default;
|
||||
$box-shadow: 0 0.15rem 1.75rem 0 rgba($gray-900, .15) !default;
|
||||
// $box-shadow-lg: 0 1rem 3rem rgba($black, .175) !default;
|
||||
|
||||
// Border Radius
|
||||
$border-radius: 0.35rem !default;
|
||||
|
||||
// Spacing Variables
|
||||
// Change below variable if the height of the navbar changes
|
||||
$topbar-base-height: 70px;
|
||||
$navbar-base-height: 56px;
|
||||
// Change below variable to change the width of the sidenav
|
||||
$sidebar-base-width: 250px;
|
||||
// Change below variable to change the width of the sidenav when collapsed
|
||||
$sidebar-collapsed-width: 115px;
|
||||
|
||||
// Card
|
||||
$card-cap-bg: $gray-100;
|
||||
|
||||
// Adjust column spacing for symmetry
|
||||
$spacer: 1rem;
|
||||
$grid-gutter-width: $spacer * 1.5;
|
||||
|
||||
// Transitions
|
||||
$transition-collapse: height .15s ease !default;
|
||||
|
||||
// Dropdown Font Font Size
|
||||
$dropdown-font-size: 0.85rem;
|
||||
8
scss/navs/fixed.scss
Normal file
8
scss/navs/fixed.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
// Fixed Nav Option
|
||||
// Add .fixed-top class to top .navbar-nav and to .sidebar - add .fixed-nav to body
|
||||
|
||||
.sidebar.fixed-top {
|
||||
// top: $navbar-base-height;
|
||||
// height: calc(100vh - #{$navbar-base-height});
|
||||
// overflow-y: auto;
|
||||
}
|
||||
42
scss/navs/global.scss
Normal file
42
scss/navs/global.scss
Normal file
@@ -0,0 +1,42 @@
|
||||
// Global styles for both custom sidebar and topbar compoments
|
||||
|
||||
.sidebar,
|
||||
.topbar {
|
||||
.nav-item {
|
||||
// Customize Dropdown Arrows for Navbar
|
||||
&.dropdown {
|
||||
.dropdown-toggle {
|
||||
&::after {
|
||||
width: 1rem;
|
||||
text-align: center;
|
||||
float: right;
|
||||
vertical-align: 0;
|
||||
border: 0;
|
||||
font-weight: 900;
|
||||
content: '\f105';
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
}
|
||||
}
|
||||
&.show {
|
||||
.dropdown-toggle::after {
|
||||
content: '\f107';
|
||||
}
|
||||
}
|
||||
}
|
||||
// Counter for nav links and nav link image sizing
|
||||
.nav-link {
|
||||
position: relative;
|
||||
.badge-counter {
|
||||
position: absolute;
|
||||
transform: scale(0.7);
|
||||
transform-origin: top right;
|
||||
right: .25rem;
|
||||
margin-top: -.25rem;
|
||||
}
|
||||
.img-profile {
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
369
scss/navs/sidebar.scss
Normal file
369
scss/navs/sidebar.scss
Normal file
@@ -0,0 +1,369 @@
|
||||
// Sidebar
|
||||
.sidebar {
|
||||
width: $sidebar-collapsed-width;
|
||||
min-height: 100vh;
|
||||
.nav-item {
|
||||
position: relative;
|
||||
&:last-child {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.nav-link {
|
||||
text-align: center;
|
||||
padding: 0.75rem 1rem;
|
||||
width: $sidebar-collapsed-width;
|
||||
span {
|
||||
font-size: 0.65rem;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
.nav-link {
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
// Accordion
|
||||
.collapse {
|
||||
position: absolute;
|
||||
left: calc(#{$sidebar-collapsed-width} + #{$grid-gutter-width} / 2);
|
||||
z-index: 1;
|
||||
top: 2px;
|
||||
// Grow In Animation
|
||||
@extend .animated--grow-in;
|
||||
.collapse-inner {
|
||||
border-radius: $border-radius;
|
||||
box-shadow: $box-shadow;
|
||||
}
|
||||
}
|
||||
.collapsing {
|
||||
display: none;
|
||||
transition: none;
|
||||
}
|
||||
.collapse,
|
||||
.collapsing {
|
||||
.collapse-inner {
|
||||
padding: .5rem 0;
|
||||
min-width: 10rem;
|
||||
font-size: $dropdown-font-size;
|
||||
margin: 0 0 1rem 0;
|
||||
.collapse-header {
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
padding: .5rem 1.5rem;
|
||||
text-transform: uppercase;
|
||||
font-weight: 800;
|
||||
font-size: 0.65rem;
|
||||
color: $gray-500;
|
||||
}
|
||||
.collapse-item {
|
||||
padding: 0.5rem 1rem;
|
||||
margin: 0 0.5rem;
|
||||
display: block;
|
||||
color: $gray-900;
|
||||
text-decoration: none;
|
||||
border-radius: $border-radius;
|
||||
white-space: nowrap;
|
||||
&:hover {
|
||||
background-color: $gray-200;
|
||||
}
|
||||
&:active {
|
||||
background-color: $gray-300;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#sidebarToggle {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
text-align: center;
|
||||
margin-bottom: 1rem;
|
||||
cursor: pointer;
|
||||
&::after {
|
||||
font-weight: 900;
|
||||
content: '\f104';
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
margin-right: 0.1rem;
|
||||
}
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
&.toggled {
|
||||
width: 0 !important;
|
||||
overflow: hidden;
|
||||
#sidebarToggle::after {
|
||||
content: '\f105';
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
}
|
||||
.sidebar-brand {
|
||||
height: $topbar-base-height;
|
||||
text-decoration: none;
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
padding: 1.5rem 1rem;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05rem;
|
||||
z-index: 1;
|
||||
|
||||
.sidebar-brand-icon i {
|
||||
font-size: 2rem;
|
||||
@include rotate;
|
||||
}
|
||||
.sidebar-brand-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
hr.sidebar-divider {
|
||||
margin: 0 1rem 1rem;
|
||||
}
|
||||
.sidebar-heading {
|
||||
text-align: center;
|
||||
padding: 0 1rem;
|
||||
font-weight: 800;
|
||||
font-size: 0.65rem;
|
||||
@extend .text-uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
.sidebar {
|
||||
width: $sidebar-base-width !important;
|
||||
.nav-item {
|
||||
// Accordion
|
||||
.collapse {
|
||||
position: relative;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
animation: none;
|
||||
.collapse-inner {
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
.collapsing {
|
||||
display: block;
|
||||
transition: $transition-collapse;
|
||||
}
|
||||
.collapse,
|
||||
.collapsing {
|
||||
margin: 0 1rem;
|
||||
}
|
||||
.nav-link {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 1rem;
|
||||
width: $sidebar-base-width;
|
||||
i {
|
||||
font-size: 0.85rem;
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
span {
|
||||
font-size: 0.85rem;
|
||||
display: inline;
|
||||
}
|
||||
// Accordion Arrow Icon
|
||||
&[data-toggle="collapse"] {
|
||||
&::after {
|
||||
width: 1rem;
|
||||
text-align: center;
|
||||
float: right;
|
||||
vertical-align: 0;
|
||||
border: 0;
|
||||
font-weight: 900;
|
||||
content: '\f107';
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
}
|
||||
&.collapsed::after {
|
||||
content: '\f105';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.sidebar-brand {
|
||||
.sidebar-brand-icon i {
|
||||
font-size: 2rem;
|
||||
}
|
||||
.sidebar-brand-text {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
.sidebar-heading {
|
||||
text-align: left;
|
||||
}
|
||||
&.toggled {
|
||||
overflow: visible;
|
||||
width: $sidebar-collapsed-width !important;
|
||||
.nav-item {
|
||||
// Accordion
|
||||
.collapse {
|
||||
position: absolute;
|
||||
left: calc(#{$sidebar-collapsed-width} + #{$grid-gutter-width} / 2);
|
||||
z-index: 1;
|
||||
top: 2px;
|
||||
// Grow In Animation for Toggled State
|
||||
animation-name: growIn;
|
||||
animation-duration: 200ms;
|
||||
animation-timing-function: transform cubic-bezier(.18,1.25,.4,1), opacity cubic-bezier(0,1,.4,1);
|
||||
.collapse-inner {
|
||||
box-shadow: $box-shadow;
|
||||
border-radius: $border-radius;
|
||||
}
|
||||
}
|
||||
.collapsing {
|
||||
display: none;
|
||||
transition: none;
|
||||
}
|
||||
.collapse,
|
||||
.collapsing {
|
||||
margin: 0;
|
||||
}
|
||||
&:last-child {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.nav-link {
|
||||
text-align: center;
|
||||
padding: 0.75rem 1rem;
|
||||
width: $sidebar-collapsed-width;
|
||||
span {
|
||||
font-size: 0.65rem;
|
||||
display: block;
|
||||
}
|
||||
i {
|
||||
margin-right: 0;
|
||||
}
|
||||
&[data-toggle="collapse"]::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.sidebar-brand {
|
||||
.sidebar-brand-icon i {
|
||||
font-size: 2rem;
|
||||
}
|
||||
.sidebar-brand-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.sidebar-heading {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sidebar Color Variants
|
||||
|
||||
// Sidebar Light
|
||||
.sidebar-light {
|
||||
.sidebar-brand {
|
||||
color: $gray-700;
|
||||
}
|
||||
hr.sidebar-divider {
|
||||
border-top: 1px solid $gray-200;
|
||||
}
|
||||
.sidebar-heading {
|
||||
color: $gray-500;
|
||||
}
|
||||
.nav-item {
|
||||
.nav-link {
|
||||
color: $gray-600;
|
||||
i {
|
||||
color: $gray-400;
|
||||
}
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
color: $gray-700;
|
||||
i {
|
||||
color: $gray-700;
|
||||
}
|
||||
}
|
||||
// Accordion
|
||||
&[data-toggle="collapse"]::after {
|
||||
color: $gray-500;
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
.nav-link {
|
||||
color: $gray-700;
|
||||
i {
|
||||
color: $gray-700;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Color the sidebar toggler
|
||||
#sidebarToggle {
|
||||
background-color: $gray-200;
|
||||
&::after {
|
||||
color: $gray-500;
|
||||
}
|
||||
&:hover {
|
||||
background-color: $gray-300;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sidebar Dark
|
||||
.sidebar-dark {
|
||||
.sidebar-brand {
|
||||
color: $white;
|
||||
}
|
||||
hr.sidebar-divider {
|
||||
border-top: 1px solid fade-out($white, 0.85);
|
||||
}
|
||||
.sidebar-heading {
|
||||
color: fade-out($white, 0.6);
|
||||
}
|
||||
.nav-item {
|
||||
.nav-link {
|
||||
color: fade-out($white, 0.2);
|
||||
i {
|
||||
color: fade-out($white, 0.7);
|
||||
}
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
color: $white;
|
||||
i {
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
// Accordion
|
||||
&[data-toggle="collapse"]::after {
|
||||
color: fade-out($white, 0.5);
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
.nav-link {
|
||||
color: $white;
|
||||
i {
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Color the sidebar toggler
|
||||
#sidebarToggle {
|
||||
background-color: fade-out($white, 0.8);
|
||||
&::after {
|
||||
color: fade-out($white, 0.5);
|
||||
}
|
||||
&:hover {
|
||||
background-color: fade-out($white, 0.75);
|
||||
}
|
||||
}
|
||||
&.toggled {
|
||||
#sidebarToggle::after {
|
||||
color: fade-out($white, 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
46
scss/navs/topbar.scss
Normal file
46
scss/navs/topbar.scss
Normal file
@@ -0,0 +1,46 @@
|
||||
// Topbar
|
||||
.topbar {
|
||||
height: $topbar-base-height;
|
||||
.nav-item {
|
||||
.nav-link {
|
||||
height: $topbar-base-height;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 0.75rem;
|
||||
}
|
||||
}
|
||||
.dropdown {
|
||||
position: static;
|
||||
.dropdown-menu {
|
||||
width: calc(100% - #{$grid-gutter-width});
|
||||
right: $grid-gutter-width / 2;
|
||||
}
|
||||
}
|
||||
@include media-breakpoint-up(md) {
|
||||
.dropdown {
|
||||
position: relative;
|
||||
.dropdown-menu {
|
||||
width: auto;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.topbar.navbar-dark {}
|
||||
|
||||
.topbar.navbar-light {
|
||||
.navbar-nav {
|
||||
.nav-item {
|
||||
.nav-link {
|
||||
color: $gray-400;
|
||||
&:hover {
|
||||
color: $gray-500;
|
||||
}
|
||||
&:active {
|
||||
color: $gray-600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
18
scss/sb-admin-2.scss
Normal file
18
scss/sb-admin-2.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
// Import Custom SB Admin 2 Variables (Overrides Default Bootstrap Variables)
|
||||
@import "variables.scss";
|
||||
|
||||
// Import Bootstrap
|
||||
@import "../vendor/bootstrap/scss/bootstrap.scss";
|
||||
|
||||
// Import Custom SB Admin 2 Mixins and Components
|
||||
@import "mixins.scss";
|
||||
@import "global.scss";
|
||||
@import "utilities.scss";
|
||||
|
||||
// Custom Components
|
||||
@import "dropdowns.scss";
|
||||
@import "navs.scss";
|
||||
@import "cards.scss";
|
||||
@import "charts.scss";
|
||||
@import "login.scss";
|
||||
@import "footer.scss";
|
||||
37
scss/utilities/_animation.scss
Normal file
37
scss/utilities/_animation.scss
Normal file
@@ -0,0 +1,37 @@
|
||||
// Animation Utilities
|
||||
|
||||
// Grow In Animation
|
||||
|
||||
@keyframes growIn {
|
||||
0% {
|
||||
transform: scale(0.9);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.animated--grow-in {
|
||||
animation-name: growIn;
|
||||
animation-duration: 200ms;
|
||||
animation-timing-function: transform cubic-bezier(.18,1.25,.4,1), opacity cubic-bezier(0,1,.4,1);
|
||||
}
|
||||
|
||||
// Fade In Animation
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.animated--fade-in {
|
||||
animation-name: fadeIn;
|
||||
animation-duration: 200ms;
|
||||
animation-timing-function: opacity cubic-bezier(0,1,.4,1);
|
||||
}
|
||||
69
scss/utilities/_background.scss
Normal file
69
scss/utilities/_background.scss
Normal file
@@ -0,0 +1,69 @@
|
||||
// Background Gradient Utilities
|
||||
|
||||
.bg-gradient-primary {
|
||||
background-color: $primary;
|
||||
background-image: linear-gradient(180deg, $primary 10%, darken($primary, 15%) 100%);
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.bg-gradient-success {
|
||||
background-color: $success;
|
||||
background-image: linear-gradient(180deg, $success 10%, darken($success, 15%) 100%);
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.bg-gradient-info {
|
||||
background-color: $info;
|
||||
background-image: linear-gradient(180deg, $info 10%, darken($info, 15%) 100%);
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.bg-gradient-warning {
|
||||
background-color: $warning;
|
||||
background-image: linear-gradient(180deg, $warning 10%, darken($warning, 15%) 100%);
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.bg-gradient-danger {
|
||||
background-color: $danger;
|
||||
background-image: linear-gradient(180deg, $danger 10%, darken($danger, 15%) 100%);
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
// Grayscale Background Utilities
|
||||
|
||||
.bg-gray-100 {
|
||||
background-color: $gray-100 !important;
|
||||
}
|
||||
|
||||
.bg-gray-200 {
|
||||
background-color: $gray-200 !important;
|
||||
}
|
||||
|
||||
.bg-gray-300 {
|
||||
background-color: $gray-300 !important;
|
||||
}
|
||||
|
||||
.bg-gray-400 {
|
||||
background-color: $gray-400 !important;
|
||||
}
|
||||
|
||||
.bg-gray-500 {
|
||||
background-color: $gray-500 !important;
|
||||
}
|
||||
|
||||
.bg-gray-600 {
|
||||
background-color: $gray-600 !important;
|
||||
}
|
||||
|
||||
.bg-gray-700 {
|
||||
background-color: $gray-700 !important;
|
||||
}
|
||||
|
||||
.bg-gray-800 {
|
||||
background-color: $gray-800 !important;
|
||||
}
|
||||
|
||||
.bg-gray-900 {
|
||||
background-color: $gray-900 !important;
|
||||
}
|
||||
4
scss/utilities/_display.scss
Normal file
4
scss/utilities/_display.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
// Overflow Hidden
|
||||
.o-hidden {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
37
scss/utilities/_text.scss
Normal file
37
scss/utilities/_text.scss
Normal file
@@ -0,0 +1,37 @@
|
||||
// Grayscale Text Utilities
|
||||
|
||||
.text-gray-100 {
|
||||
color: $gray-100 !important;
|
||||
}
|
||||
|
||||
.text-gray-200 {
|
||||
color: $gray-200 !important;
|
||||
}
|
||||
|
||||
.text-gray-300 {
|
||||
color: $gray-300 !important;
|
||||
}
|
||||
|
||||
.text-gray-400 {
|
||||
color: $gray-400 !important;
|
||||
}
|
||||
|
||||
.text-gray-500 {
|
||||
color: $gray-500 !important;
|
||||
}
|
||||
|
||||
.text-gray-600 {
|
||||
color: $gray-600 !important;
|
||||
}
|
||||
|
||||
.text-gray-700 {
|
||||
color: $gray-700 !important;
|
||||
}
|
||||
|
||||
.text-gray-800 {
|
||||
color: $gray-800 !important;
|
||||
}
|
||||
|
||||
.text-gray-900 {
|
||||
color: $gray-900 !important;
|
||||
}
|
||||
Reference in New Issue
Block a user