mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-27 19:56:10 +01:00
Theme styles added and useless files rm
This commit is contained in:
parent
27dcebeba2
commit
f87b6ce425
28 changed files with 1210 additions and 231 deletions
23
src/app/theme/sass/conf/_colorScheme.scss
Normal file
23
src/app/theme/sass/conf/_colorScheme.scss
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
$primary: #209e91 !default;
|
||||
$info: #2dacd1 !default;
|
||||
$success: #90b900 !default;
|
||||
$warning: #dfb81c !default;
|
||||
$danger: #e85656 !default;
|
||||
|
||||
$primary-light: tint($primary, 30%);
|
||||
$info-light: tint($info, 30%);
|
||||
$success-light: tint($success, 30%);
|
||||
$warning-light: tint($warning, 30%);
|
||||
$danger-light: tint($danger, 30%);
|
||||
|
||||
$primary-dark: shade($primary, 15%);
|
||||
$info-dark: shade($info, 15%);
|
||||
$success-dark: shade($success, 15%);
|
||||
$warning-dark: shade($warning, 15%);
|
||||
$danger-dark: shade($danger, 15%);
|
||||
|
||||
$primary-bg: tint($primary, 20%);
|
||||
$info-bg: tint($info, 20%);
|
||||
$success-bg: tint($success, 20%);
|
||||
$warning-bg: tint($warning, 20%);
|
||||
$danger-bg: tint($danger, 20%);
|
||||
128
src/app/theme/sass/conf/_mixins.scss
Normal file
128
src/app/theme/sass/conf/_mixins.scss
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
/// Slightly lighten a color
|
||||
/// @access public
|
||||
/// @param {Color} $color - color to tint
|
||||
/// @param {Number} $percentage - percentage of `$color` in returned color
|
||||
/// @return {Color}
|
||||
@function tint($color, $percentage) {
|
||||
@return mix(white, $color, $percentage);
|
||||
}
|
||||
|
||||
/// Slightly darken a color
|
||||
/// @access public
|
||||
/// @param {Color} $color - color to shade
|
||||
/// @param {Number} $percentage - percentage of `$color` in returned color
|
||||
/// @return {Color}
|
||||
@function shade($color, $percentage) {
|
||||
@return mix(black, $color, $percentage);
|
||||
}
|
||||
|
||||
@mixin scrollbars($size, $foreground-color, $background-color: mix($foreground-color, white, 50%)) {
|
||||
::-webkit-scrollbar {
|
||||
width: $size;
|
||||
height: $size;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: $foreground-color;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: $background-color;
|
||||
}
|
||||
|
||||
// For Internet Explorer
|
||||
body {
|
||||
scrollbar-face-color: $foreground-color;
|
||||
scrollbar-track-color: $background-color;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin bg-nr($relativeUrl) {
|
||||
background: url($images-root + $relativeUrl) no-repeat 0 0;
|
||||
}
|
||||
@mixin bg($relativeUrl) {
|
||||
background: url($images-root + $relativeUrl);
|
||||
}
|
||||
|
||||
@mixin bg-image($relativeUrl) {
|
||||
background-image: url($images-root + $relativeUrl);
|
||||
}
|
||||
|
||||
@mixin main-background() {
|
||||
$mainBgUrl: $images-root + 'blur-bg.jpg';
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: url($mainBgUrl) no-repeat center center;
|
||||
background-size: cover;
|
||||
will-change: transform;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin bg-translucent-dark($opacity) {
|
||||
background: rgba(0, 0, 0, $opacity);
|
||||
}
|
||||
|
||||
@mixin placeholderStyle($color, $opacity) {
|
||||
&::-webkit-input-placeholder {
|
||||
color: $color;
|
||||
opacity: $opacity;
|
||||
}
|
||||
&:-moz-placeholder {
|
||||
/* Firefox 18- */
|
||||
color: $color;
|
||||
opacity: $opacity;
|
||||
}
|
||||
&::-moz-placeholder {
|
||||
/* Firefox 19+ */
|
||||
color: $color;
|
||||
opacity: $opacity;
|
||||
}
|
||||
&:-ms-input-placeholder {
|
||||
color: $color;
|
||||
opacity: $opacity;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin overrideColors($color) {
|
||||
p,
|
||||
h1,h2,h3,h4,h5,h6,
|
||||
.pie-chart-item,
|
||||
.panel-heading>.dropdown .dropdown-toggle,
|
||||
.panel-title,
|
||||
ol.blur span,
|
||||
ul.blur,
|
||||
.popular-app-cost,
|
||||
.popular-app-info,
|
||||
.panel-title>.small,
|
||||
.panel-title>.small>a,
|
||||
.panel-title>a,
|
||||
.panel-title>small,
|
||||
.panel-title>small>a,
|
||||
.traffic-text span,
|
||||
.form-group label,
|
||||
.help-block{
|
||||
color: $color;
|
||||
}
|
||||
.feed-message .message-time, .text-muted {
|
||||
color: darken($color, 20);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin overridePanelBg($color, $borderColor, $dropdownColor) {
|
||||
.panel.panel-blur, .panel.panel-blur:hover {
|
||||
border-color: $borderColor;
|
||||
background-color: $color;
|
||||
}
|
||||
|
||||
.progress {
|
||||
background: $color;
|
||||
}
|
||||
}
|
||||
59
src/app/theme/sass/conf/_variables.scss
Normal file
59
src/app/theme/sass/conf/_variables.scss
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
$font-family: 'Roboto', sans-serif;
|
||||
|
||||
$view-total :rgba(0,0,0,.4);
|
||||
|
||||
$activelink: $primary;
|
||||
$hoverlink: $primary-dark;
|
||||
|
||||
$default: #ffffff !default;
|
||||
|
||||
$facebook-color: #3b5998;
|
||||
$twitter-color: #55acee;
|
||||
$google-color: #dd4b39;
|
||||
$linkedin-color: #0177B5;
|
||||
$github-color: #6b6b6b;
|
||||
$stackoverflow-color: #2F96E8;
|
||||
$dribble-color: #F26798;
|
||||
$behace-color: #0093FA;
|
||||
|
||||
$panel-bg: #f8f8f8;
|
||||
$panel-bg-hover: #fff;
|
||||
|
||||
$disabled: #bdbdbd;
|
||||
$disabled-bg: #e6e6e6;
|
||||
|
||||
$default-text: #7b7b7b;
|
||||
$help-text: #949494;
|
||||
|
||||
$border: #dddddd;
|
||||
$border-light: #eeeeee;
|
||||
$input-border: #cccccc;
|
||||
|
||||
$resXXL: 1280px;
|
||||
$resXL: 1170px;
|
||||
$resL: 991px;
|
||||
$resM: 768px;
|
||||
$resS: 660px;
|
||||
$resXS: 500px;
|
||||
$resXXS: 435px;
|
||||
$resMin: 320px;
|
||||
|
||||
$top-height: 66px;
|
||||
|
||||
$small-panel-height: 114px;
|
||||
$xsmall-panel-height: 187px;
|
||||
$medium-panel-height: 400px;
|
||||
$extra-medium-panel-height: 550px;
|
||||
$large-panel-height: 974px;
|
||||
|
||||
$default-animation-duration: 0.2s;
|
||||
$default-animation-style: ease-out;
|
||||
|
||||
$assets-root: '../assets/';
|
||||
$images-root: $assets-root + 'img/';
|
||||
$fonts-root: $assets-root + 'fonts/';
|
||||
$font-thin: 100;
|
||||
$font-light: 300;
|
||||
$font-normal: 400;
|
||||
$font-bold: 700;
|
||||
$font-ultraBold: 900;
|
||||
3
src/app/theme/sass/conf/conf.scss
Normal file
3
src/app/theme/sass/conf/conf.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
@import 'mixins';
|
||||
@import 'colorScheme';
|
||||
@import 'variables';
|
||||
Loading…
Add table
Add a link
Reference in a new issue