- Add complete Auth module with login, logout, lock screen functionality - Fix 401 error on error monitoring page by adding /error-monitoring/ to public patterns - Improve lock screen with proper form handling and unlock functionality - Add RoleModel and role management views - Add BaseModel for common model functionality - Update authentication system and middleware - Add troubleshooting documentation - Update assets and build tools
259 lines
14 KiB
SCSS
Executable File
259 lines
14 KiB
SCSS
Executable File
@if $theme-material {
|
|
|
|
//Google Font
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
|
|
[data-theme="material"] {
|
|
|
|
$primary: #4b38b3;
|
|
$secondary: #3577f1;
|
|
$danger: #f06548;
|
|
$warning: #ffbe0b;
|
|
$info: #299cdb;
|
|
$success: #45CB85;
|
|
$dark: #212529;
|
|
$light: #f1f4f7;
|
|
|
|
//Typography
|
|
$font-sizes: (
|
|
"10": 0.625rem,
|
|
"11": 0.6875rem,
|
|
"12": 0.75rem,
|
|
"13": 0.8125rem,
|
|
"14": 0.875rem,
|
|
"base": 0.8125rem, //13px
|
|
"15": 0.9375rem,
|
|
"16": 1rem,
|
|
"17": 1.0625rem,
|
|
"18": 1.125rem,
|
|
"19": 1.1875rem,
|
|
"20": 1.25rem,
|
|
"21": 1.3125rem,
|
|
"22": 1.375rem,
|
|
"23": 0.8125rem,
|
|
"24": 1.5rem,
|
|
"36": 2.25rem,
|
|
"48": 3rem,
|
|
);
|
|
|
|
$font-weights: (
|
|
"light" 300,
|
|
"normal" 400,
|
|
"medium" 500,
|
|
"semibold" 600,
|
|
"bold" 700,
|
|
);
|
|
|
|
// Font Family
|
|
--#{$prefix}font-family-primary: 'Inter', sans-serif;
|
|
--#{$prefix}font-family-secondary: 'Inter', sans-serif;
|
|
|
|
--#{$prefix}grid-gutter-width: 1.5rem;
|
|
|
|
--#{$prefix}shadow: 0 3px 3px rgba(56, 65, 74, 0.1);
|
|
--#{$prefix}shadow-sm: 0 .125rem .25rem rgba(#{$black}, .075);
|
|
--#{$prefix}shadow-lg: 0 5px 10px rgba(30, 32, 37, 0.12);
|
|
--#{$prefix}element-shadow: 0 3px 3px rgba(56, 65, 74, 0.1);
|
|
|
|
--#{$prefix}body-bg: #f2f2f7;
|
|
--#{$prefix}body-bg-rgb: #{to-rgb(#f2f2f7)};
|
|
|
|
--#{$prefix}headings-font-weight: 500;
|
|
--#{$prefix}btn-font-weight-custom: 400;
|
|
|
|
//cards
|
|
--#{$prefix}card-border-width-custom: 0;
|
|
--#{$prefix}card-header-border-width: 1px;
|
|
--#{$prefix}card-shadow: 0 3px 3px rgba(56, 65, 74, 0.1);
|
|
|
|
//sidebar menu
|
|
--#{$prefix}vertical-menu-item-font-size: 0.925rem;
|
|
--#{$prefix}vertical-menu-sub-item-font-size: 0.8125rem;
|
|
|
|
--#{$prefix}vertical-menu-bg: #{$white};
|
|
--#{$prefix}vertical-menu-border: #{$white};
|
|
--#{$prefix}vertical-menu-item-color: #{darken($gray-600, 10%)};
|
|
--#{$prefix}vertical-menu-item-bg: #{rgba(var(--#{$prefix}primary-rgb), .15)};
|
|
--#{$prefix}vertical-menu-item-hover-color: var(--#{$prefix}primary);
|
|
--#{$prefix}vertical-menu-item-active-color: var(--#{$prefix}primary);
|
|
--#{$prefix}vertical-menu-item-active-bg: #{rgba(var(--#{$prefix}primary-rgb), .15)};
|
|
--#{$prefix}vertical-menu-sub-item-color: #{darken($gray-600, 4%)};
|
|
--#{$prefix}vertical-menu-sub-item-hover-color: var(--#{$prefix}primary);
|
|
--#{$prefix}vertical-menu-sub-item-active-color: var(--#{$prefix}primary);
|
|
--#{$prefix}vertical-menu-title-color: #919da9;
|
|
--#{$prefix}vertical-menu-box-shadow: 0 2px 4px rgba(15, 34, 58, 0.12);
|
|
--#{$prefix}vertical-menu-dropdown-box-shadow: 0 2px 4px rgba(15, 34, 58, 0.12);
|
|
--#{$prefix}sidebar-user-bg: #{$light};
|
|
--#{$prefix}sidebar-user-name-text: #{darken($gray-700, 10%)};
|
|
--#{$prefix}sidebar-user-name-sub-text: #{darken($gray-600, 4%)};
|
|
|
|
&[data-sidebar="dark"] {
|
|
//vertical dark
|
|
--#{$prefix}vertical-menu-bg: #151529;
|
|
--#{$prefix}vertical-menu-border: #151529;
|
|
--#{$prefix}vertical-menu-item-color: #a3a6b7;
|
|
--#{$prefix}vertical-menu-item-bg: #{rgba($white, .15)};
|
|
--#{$prefix}vertical-menu-item-hover-color: #{$white};
|
|
--#{$prefix}vertical-menu-item-active-color: #{$white};
|
|
--#{$prefix}vertical-menu-item-active-bg: #{rgba($white, .15)};
|
|
--#{$prefix}vertical-menu-sub-item-color: #a3a6b7;
|
|
--#{$prefix}vertical-menu-sub-item-hover-color: #{$white};
|
|
--#{$prefix}vertical-menu-sub-item-active-color: #{$white};
|
|
--#{$prefix}vertical-menu-title-color: #9b9eb1;
|
|
--#{$prefix}twocolumn-menu-iconview-bg: #121222;
|
|
--#{$prefix}vertical-menu-box-shadow: 0 2px 4px rgba(15, 34, 58, 0.12);
|
|
--#{$prefix}vertical-menu-dropdown-box-shadow: 0 2px 4px rgba(15, 34, 58, 0.12);
|
|
--#{$prefix}sidebar-user-bg: #{rgba($white, .08)};
|
|
--#{$prefix}sidebar-user-name-text: #{$white};
|
|
--#{$prefix}sidebar-user-name-sub-text: #{tint-color(#151529, 65%)};
|
|
}
|
|
|
|
// Topbar - (Default Light)
|
|
--#{$prefix}header-bg: #{$white};
|
|
--#{$prefix}header-border: #{$border-color};
|
|
--#{$prefix}header-item-color: #{$gray-700};
|
|
--#{$prefix}header-item-bg: #{rgba($secondary, .12)};
|
|
--#{$prefix}header-item-sub-color: #878a99;
|
|
--#{$prefix}topbar-search-bg: #f3f3f9;
|
|
--#{$prefix}topbar-user-bg: #f3f3f9;
|
|
--#{$prefix}topbar-search-color: #262a2f;
|
|
|
|
// Topbar - Dark
|
|
&[data-topbar="dark"] {
|
|
--#{$prefix}header-bg: #1C1C36;
|
|
--#{$prefix}header-border: #1C1C36;
|
|
--#{$prefix}header-item-color: #{rgba($white, .85)};
|
|
--#{$prefix}header-item-bg: #29294e;
|
|
--#{$prefix}header-item-sub-color: #a3a6b7;
|
|
--#{$prefix}topbar-user-bg: #2A2A50;
|
|
--#{$prefix}topbar-search-bg: #{rgba($white, .05)};
|
|
--#{$prefix}topbar-search-color: #{$white};
|
|
}
|
|
|
|
&[data-sidebar="gradient"] {
|
|
--#{$prefix}vertical-menu-bg: #{linear-gradient(to right, var(--#{$prefix}primary), var(--#{$prefix}success))};
|
|
--#{$prefix}vertical-menu-border: var(--#{$prefix}success);
|
|
--#{$prefix}twocolumn-menu-iconview-bg: var(--#{$prefix}primary);
|
|
}
|
|
|
|
&[data-sidebar="gradient-2"] {
|
|
--#{$prefix}vertical-menu-bg: #{linear-gradient(to right, var(--#{$prefix}info), var(--#{$prefix}secondary))};
|
|
--#{$prefix}vertical-menu-border: var(--#{$prefix}secondary);
|
|
--#{$prefix}twocolumn-menu-iconview-bg: var(--#{$prefix}info);
|
|
}
|
|
|
|
&[data-sidebar="gradient-3"] {
|
|
--#{$prefix}vertical-menu-bg: #{linear-gradient(to right, var(--#{$prefix}info), var(--#{$prefix}success))};
|
|
--#{$prefix}vertical-menu-border: var(--#{$prefix}success);
|
|
--#{$prefix}twocolumn-menu-iconview-bg: var(--#{$prefix}info);
|
|
}
|
|
|
|
&[data-sidebar="gradient-4"] {
|
|
--#{$prefix}vertical-menu-bg: #{linear-gradient(to right, #1a1d21, var(--#{$prefix}primary))};
|
|
--#{$prefix}vertical-menu-border: var(--#{$prefix}primary);
|
|
--#{$prefix}twocolumn-menu-iconview-bg: #1a1d21;
|
|
}
|
|
|
|
//page title
|
|
--#{$prefix}page-title-box-shadow: 0 3px 3px rgba(56, 65, 74, 0.1);
|
|
--#{$prefix}page-title-border: none;
|
|
|
|
//footer
|
|
--#{$prefix}footer-bg: #{$white};
|
|
--#{$prefix}footer-color: #98a6ad;
|
|
|
|
//Boxed layout
|
|
--#{$prefix}boxed-body-bg: #e5e5ef;
|
|
|
|
--#{$prefix}timeline-color: var(--#{$prefix}secondary-bg);
|
|
|
|
--#{$prefix}chat-primary-bg: var(--#{$prefix}light);
|
|
--#{$prefix}chat-secondary-bg: rgba(var(--#{$prefix}primary-rgb), 1);
|
|
--#{$prefix}chat-secondary-color: var(--#{$prefix}white);
|
|
|
|
$custom-theme-colors: (
|
|
"primary": $primary,
|
|
"secondary": $secondary,
|
|
"danger": $danger,
|
|
"warning": $warning,
|
|
"info": $info,
|
|
"success": $success,
|
|
"dark": $dark,
|
|
"light": $light
|
|
);
|
|
|
|
@each $name, $value in $custom-theme-colors {
|
|
--#{$prefix}#{$name}: #{$value};
|
|
--#{$prefix}#{$name}-rgb: #{to-rgb($value)};
|
|
--#{$prefix}#{$name}-bg-subtle: #{rgba($value, 0.15)};
|
|
--#{$prefix}#{$name}-border-subtle: #{rgba($value, 0.30)};
|
|
--#{$prefix}#{$name}-text-emphasis: #{shade-color($value, 25%)};
|
|
}
|
|
|
|
--#{$prefix}link-color: #{$primary};
|
|
--#{$prefix}link-color-rgb: #{to-rgb($primary)};
|
|
--#{$prefix}link-hover-color: #{shade-color($primary, 20%)};
|
|
--#{$prefix}link-hover-color-rgb: #{to-rgb(shade-color($primary, 20%))};
|
|
|
|
@each $name, $value in $font-sizes {
|
|
--#{$prefix}font-#{$name}: #{$value};
|
|
}
|
|
|
|
@each $name, $value in $font-weights {
|
|
--#{$prefix}font-weight-#{$name}: #{$value};
|
|
}
|
|
|
|
&[data-theme-colors="green"] {
|
|
--#{$prefix}primary: #{$green-700};
|
|
--#{$prefix}primary-rgb: #{to-rgb($green-700)};
|
|
--#{$prefix}primary-bg-subtle: #{rgba($green-700, 0.15)};
|
|
--#{$prefix}primary-border-subtle: #{rgba($green-700, 0.30)};
|
|
--#{$prefix}primary-text-emphasis: #{shade-color($green-700, 25%)};
|
|
}
|
|
|
|
&[data-theme-colors="purple"] {
|
|
--#{$prefix}primary: #{$purple-600};
|
|
--#{$prefix}primary-rgb: #{to-rgb($purple-600)};
|
|
--#{$prefix}primary-bg-subtle: #{rgba($purple-600, 0.15)};
|
|
--#{$prefix}primary-border-subtle: #{rgba($purple-600, 0.30)};
|
|
--#{$prefix}primary-text-emphasis: #{shade-color($purple-600, 25%)};
|
|
}
|
|
|
|
&[data-theme-colors="blue"] {
|
|
--#{$prefix}primary: #{$blue-600};
|
|
--#{$prefix}primary-rgb: #{to-rgb($blue-600)};
|
|
--#{$prefix}primary-bg-subtle: #{rgba($blue-600, 0.15)};
|
|
--#{$prefix}primary-border-subtle: #{rgba($blue-600, 0.30)};
|
|
--#{$prefix}primary-text-emphasis: #{shade-color($blue-600, 25%)};
|
|
}
|
|
|
|
.card-radio {
|
|
.form-check-label {
|
|
&[for="themeColor-01"] {
|
|
background-color: $primary;
|
|
}
|
|
|
|
&[for="themeColor-02"] {
|
|
background-color: $green-700;
|
|
}
|
|
|
|
&[for="themeColor-03"] {
|
|
background-color: $purple-600;
|
|
}
|
|
|
|
&[for="themeColor-04"] {
|
|
background-color: $blue-600;
|
|
}
|
|
}
|
|
}
|
|
|
|
.material-shadow-none {
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.material-shadow {
|
|
box-shadow: var(--#{$prefix}element-shadow) !important;
|
|
}
|
|
}
|
|
|
|
} |