1
0
Fork 0

Add a new dashboard page.

This commit is contained in:
Jorge Gonzalez 2019-08-26 18:15:41 +02:00 committed by Ludovic Fernandez
parent 89150e1164
commit fd24b1898e
133 changed files with 17303 additions and 11112 deletions

View file

@ -0,0 +1,39 @@
/* nunito-regular - latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 400;
src: url('../fonts/nunito-v11-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Nunito Regular'), local('Nunito-Regular'),
url('../fonts/nunito-v11-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/nunito-v11-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/nunito-v11-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/nunito-v11-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/nunito-v11-latin-regular.svg#Nunito') format('svg'); /* Legacy iOS */
}
/* nunito-600 - latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 600;
src: url('../fonts/nunito-v11-latin-600.eot'); /* IE9 Compat Modes */
src: local('Nunito SemiBold'), local('Nunito-SemiBold'),
url('../fonts/nunito-v11-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/nunito-v11-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/nunito-v11-latin-600.woff') format('woff'), /* Modern Browsers */
url('../fonts/nunito-v11-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/nunito-v11-latin-600.svg#Nunito') format('svg'); /* Legacy iOS */
}
/* nunito-700 - latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 700;
src: url('../fonts/nunito-v11-latin-700.eot'); /* IE9 Compat Modes */
src: local('Nunito Bold'), local('Nunito-Bold'),
url('../fonts/nunito-v11-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/nunito-v11-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/nunito-v11-latin-700.woff') format('woff'), /* Modern Browsers */
url('../fonts/nunito-v11-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/nunito-v11-latin-700.svg#Nunito') format('svg'); /* Legacy iOS */
}

View file

@ -0,0 +1,31 @@
@import "./variables";
$breakpoints: (
'xs': 0,
'sm': $screen-xs-min,
'md': $screen-sm-min,
'lg': $screen-md-min,
'xl': $screen-lg-min
);
@mixin respond-to($breakpoint, $type:'min') {
// Retrieves the value from the key
$value: map-get($breakpoints, $breakpoint);
@if $type == 'max' {
$value: $value - 1
}
// If the key exists in the map
@if $value != null {
// Prints a media query based on the value
@media (#{$type}-width: $value) {
@content;
}
}
// If the key doesn't exist in the map
@else {
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. "
+ "Please make sure it is defined in `$breakpoints` map.";
}
}

View file

@ -0,0 +1,27 @@
// App
$screen-xs-min: 600px;
$screen-sm-min: 1024px;
$screen-md-min: 1440px;
$screen-lg-min: 1920px;
$app-bg: #f2f3f5;
$app-bg-dark: #1A1A1A;
$app-text-dark: #fafafa;
$app-text-caption-dark: rgba(255,255,255,0.7);
// Custom colors
$app-text-white: #ffffff;
$app-text-grey: #737373;
// Quasar
$primary: #06102a;
$secondary: #2A2A2B;
$accent: #1e54d5;
$positive: #00a697;
$negative: #ff0039;
$info: #31CCEC;
$warning: #db7d11;
$separator-color: rgba(0, 0, 0, .12);
$separator-dark-color: rgba(255, 255, 255, .28);

109
webui/src/css/sass/app.scss Normal file
View file

@ -0,0 +1,109 @@
@import "./fonts";
@import "./variables";
@import "./mixins";
// width
::-webkit-scrollbar {
width: 8px;
}
// Track
::-webkit-scrollbar-track {
border-left: 1px solid #404141;
background: #2E2E2E;
}
// Handle
::-webkit-scrollbar-thumb {
border-radius: 4px;
background: #6D6D6D;
}
// Handle on hover
::-webkit-scrollbar-thumb:hover {
background: #979797;
}
body {
/* If you need to support browser without CSS var support (<= IE11) */
min-height: calc(100vh - var(--vh-offset, 0px));
/* enable vh fix */
font-family: 'Nunito', 'Roboto', sans-serif;
background-color: $app-bg;
}
// Custom colors
.text-app-grey {
color: $app-text-grey;
}
// Helps
.xs-text-center {
@include respond-to(sm, max) {
text-align: center;
}
}
// Commons
.q-icon.eva{
margin-bottom: 1.5px;
}
.app-title {
font-size: 20px;
font-weight: 700;
.q-icon {
font-size: 24px;
}
&-label {
font-size: inherit;
font-weight: inherit;
}
.q-icon + &-label {
margin-left: 8px;
}
}
// Boxed
.app-boxed {
margin-left: auto;
margin-right: auto;
&-md {
max-width: 100%;
@include respond-to(sm) {
max-width: 600px;
}
}
&-lg {
max-width: 100%;
@include respond-to(md) {
max-width: 1024px;
}
}
&-xl {
max-width: 100%;
@include respond-to(lg) {
max-width: 1440px;
}
}
}
// Section
.app-section {
display: block;
&-wrap {
display: block;
}
}
// Toolbar
.q-toolbar {
padding: 0 16px;
}
// Card
.q-card {
border-radius: 8px;
}