mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-21 12:45:16 +02:00
Removed SCSS variables, and replaced with CSS --vars
This commit is contained in:
parent
0cb6cc7d62
commit
0c12cdb0f6
@ -16,7 +16,8 @@
|
|||||||
"vue": "^2.6.10",
|
"vue": "^2.6.10",
|
||||||
"vue-cli-plugin-yaml": "^1.0.2",
|
"vue-cli-plugin-yaml": "^1.0.2",
|
||||||
"vue-js-modal": "^2.0.0-rc.6",
|
"vue-js-modal": "^2.0.0-rc.6",
|
||||||
"vue-router": "^3.0.3"
|
"vue-router": "^3.0.3",
|
||||||
|
"vue-select": "^3.11.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "^3.10.0",
|
"@vue/cli-plugin-babel": "^3.10.0",
|
||||||
@ -44,7 +45,8 @@
|
|||||||
"airbnb-base"
|
"airbnb-base"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"import/no-unresolved": "off"
|
"import/no-unresolved": "off",
|
||||||
|
"arrow-parens": 0
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"parser": "babel-eslint"
|
"parser": "babel-eslint"
|
||||||
@ -59,4 +61,4 @@
|
|||||||
"> 1%",
|
"> 1%",
|
||||||
"last 2 versions"
|
"last 2 versions"
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="dashy">
|
<div id="dashy" data-theme="dark">
|
||||||
<Header :pageInfo="getPageInfo(pageInfo)" />
|
<Header :pageInfo="getPageInfo(pageInfo)" />
|
||||||
<router-view />
|
<router-view />
|
||||||
<Footer />
|
<Footer />
|
||||||
@ -38,10 +38,10 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '../src/styles/global-styles.scss';
|
@import '../src/styles/global-styles.scss';
|
||||||
@import '../src/styles/color-pallet.scss';
|
@import '../src/styles/color-palette.scss';
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: $background;
|
background: var(--background);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,6 @@ export default {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
@import '../../src/styles/constants.scss';
|
@import '../../src/styles/constants.scss';
|
||||||
@import '../../src/styles/media-queries.scss';
|
@import '../../src/styles/media-queries.scss';
|
||||||
|
|
||||||
@ -95,7 +94,7 @@ export default {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: $curve-factor;
|
border-radius: $curve-factor;
|
||||||
background: $ascent;
|
background: var(--primary);
|
||||||
// background: -webkit-linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
// background: -webkit-linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
||||||
// background: linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
// background: linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
||||||
box-shadow: 1px 1px 2px #130f23;
|
box-shadow: 1px 1px 2px #130f23;
|
||||||
@ -144,7 +143,7 @@ export default {
|
|||||||
border-radius: $curve-factor;
|
border-radius: $curve-factor;
|
||||||
transition: all 0.25s ease-out;
|
transition: all 0.25s ease-out;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color:$bg-with-opacity;
|
color: var(--background-transparent);
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -154,7 +153,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lbl-toggle:hover {
|
.lbl-toggle:hover {
|
||||||
color: $background;
|
color: var(--background);
|
||||||
}
|
}
|
||||||
|
|
||||||
.lbl-toggle::before {
|
.lbl-toggle::before {
|
||||||
@ -178,7 +177,7 @@ export default {
|
|||||||
max-height: 0px;
|
max-height: 0px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: max-height .25s ease-in-out;
|
transition: max-height .25s ease-in-out;
|
||||||
background: $bg-with-opacity;
|
background: var(--background-transparent);
|
||||||
border-radius: 0 0 $inner-radius $inner-radius;
|
border-radius: 0 0 $inner-radius $inner-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,18 +94,16 @@ export default {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
|
|
||||||
section {
|
section {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
background: linear-gradient(0deg, var(--background) 0%, $header-color 100%);
|
background: linear-gradient(0deg, var(--background) 0%, var(--background-darker) 100%);
|
||||||
}
|
}
|
||||||
form {
|
form {
|
||||||
border-radius: 0 0 20px 0;
|
border-radius: 0 0 20px 0;
|
||||||
padding: 0 0.2rem 0.2rem 0;
|
padding: 0 0.2rem 0.2rem 0;
|
||||||
background: $header-color;
|
background: var(--background-darker);
|
||||||
label {
|
label {
|
||||||
display: inline;
|
display: inline;
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
@ -123,7 +121,7 @@ export default {
|
|||||||
background: var(--background);
|
background: var(--background);
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
&:focus {
|
&:focus {
|
||||||
background: $bg-with-opacity;
|
background: var(--background-transparent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.clear-search {
|
.clear-search {
|
||||||
@ -135,7 +133,7 @@ export default {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background: $header-color;
|
background: var(--background-darker);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -151,7 +149,7 @@ export default {
|
|||||||
|
|
||||||
span.options-label {
|
span.options-label {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
color: $ascent-with-opacity;
|
color: var(--primary-transparent);
|
||||||
width: 5.5rem;
|
width: 5.5rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@ -164,10 +162,10 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.display-options {
|
.display-options {
|
||||||
color: $ascent-with-opacity;
|
color: var(--primary-transparent);
|
||||||
svg {
|
svg {
|
||||||
path {
|
path {
|
||||||
fill: $ascent-with-opacity;
|
fill: var(--primary-transparent);
|
||||||
}
|
}
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
@ -180,7 +178,7 @@ export default {
|
|||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover, &.selected {
|
&:hover, &.selected {
|
||||||
background: $ascent-with-opacity;
|
background: var(--primary-transparent);
|
||||||
path { fill: var(--background); }
|
path { fill: var(--background); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,14 +22,13 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
|
|
||||||
header {
|
header {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
background: $header-color;
|
background: var(--background-darker);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
align-content: flex-start;
|
align-content: flex-start;
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
|
@ -100,7 +100,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
@import '../../src/styles/constants.scss';
|
@import '../../src/styles/constants.scss';
|
||||||
|
|
||||||
/* Item wrapper */
|
/* Item wrapper */
|
||||||
@ -108,7 +107,7 @@ export default {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: $ascent;
|
color: var(--primary);
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin: 0.5rem;
|
margin: 0.5rem;
|
||||||
background: #607d8b33;
|
background: #607d8b33;
|
||||||
@ -123,7 +122,7 @@ export default {
|
|||||||
background: #607d8b4d;
|
background: #607d8b4d;
|
||||||
}
|
}
|
||||||
&:focus {
|
&:focus {
|
||||||
border: 2px solid $ascent;
|
border: 2px solid var(--primary);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
&.short {
|
&.short {
|
||||||
@ -161,7 +160,8 @@ export default {
|
|||||||
.overflow-dots {
|
.overflow-dots {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background: $overflow-ellipse;
|
background: black;
|
||||||
|
// background: $overflow-ellipse;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -189,18 +189,18 @@ export default {
|
|||||||
|
|
||||||
/* Colourize icons on hover */
|
/* Colourize icons on hover */
|
||||||
.tile-svg {
|
.tile-svg {
|
||||||
filter: drop-shadow(4px 8px 3px $transparent-black);
|
filter: drop-shadow(4px 8px 3px var(--transparent-50));
|
||||||
}
|
}
|
||||||
.tile-icon {
|
.tile-icon {
|
||||||
filter:
|
filter:
|
||||||
drop-shadow(4px 8px 3px $transparent-black)
|
drop-shadow(4px 8px 3px var(--transparent-50))
|
||||||
saturate(2);
|
saturate(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile-icon {
|
.tile-icon {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
filter: drop-shadow(2px 4px 6px $transparent-black) saturate(0.65);
|
filter: drop-shadow(2px 4px 6px var(--transparent-50)) saturate(0.65);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile-svg {
|
.tile-svg {
|
||||||
@ -217,7 +217,7 @@ export default {
|
|||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
path {
|
path {
|
||||||
fill: $ascent-with-opacity;
|
fill: var(--primary-transparent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.short svg {
|
&.short svg {
|
||||||
|
@ -53,7 +53,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
@import '../../src/styles/constants.scss';
|
@import '../../src/styles/constants.scss';
|
||||||
|
|
||||||
.no-items {
|
.no-items {
|
||||||
@ -64,7 +63,7 @@ export default {
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
border-radius: $curve-factor;
|
border-radius: $curve-factor;
|
||||||
background: #607d8b33;
|
background: #607d8b33;
|
||||||
color: $ascent;
|
color: var(--primary);
|
||||||
box-shadow: 1px 1px 2px #373737;
|
box-shadow: 1px 1px 2px #373737;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,10 +82,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
|
|
||||||
.tile-icon {
|
.tile-icon {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
filter: drop-shadow(2px 4px 6px $transparent-black) saturate(0.65);
|
filter: drop-shadow(2px 4px 6px var(--transparent-50)) saturate(0.65);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -62,8 +62,6 @@ export default {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
|
|
||||||
.kb-sc-info {
|
.kb-sc-info {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 30em;
|
width: 30em;
|
||||||
@ -73,12 +71,12 @@ export default {
|
|||||||
padding: 0.1em 0.3em;
|
padding: 0.1em 0.3em;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
border: 1px solid $header-color;
|
border: 1px solid var(--background-darker);
|
||||||
-webkit-box-shadow: 2px 1px 5px #130f23;
|
-webkit-box-shadow: 2px 1px 5px #130f23;
|
||||||
box-shadow: 2px 1px 5px #130f23;
|
box-shadow: 2px 1px 5px #130f23;
|
||||||
border: 1px solid $ascent;
|
border: 1px solid var(--primary);
|
||||||
color: $ascent;
|
color: var(--primary);
|
||||||
background: $header-color;
|
background: var(--background-darker);
|
||||||
cursor: default;
|
cursor: default;
|
||||||
opacity: 0.94;
|
opacity: 0.94;
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
@ -88,9 +86,9 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: -35px;
|
top: -35px;
|
||||||
left: 20px;
|
left: 20px;
|
||||||
border: 1px solid $ascent;
|
border: 1px solid var(--primary);
|
||||||
color: $ascent;
|
color: var(--primary);
|
||||||
background: $header-color;
|
background: var(--background-darker);
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
@ -100,12 +98,12 @@ export default {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
padding: 0 0 6px 6px;
|
padding: 0 0 6px 6px;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
background: $transparent-black;
|
background: var(--transparent-50);
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
border: 1px solid $ascent;
|
border: 1px solid var(--primary);
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,6 @@ export default {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -29,7 +27,7 @@ nav {
|
|||||||
background: #607d8b33;
|
background: #607d8b33;
|
||||||
-webkit-box-shadow: 1px 1px 2px #232323;
|
-webkit-box-shadow: 1px 1px 2px #232323;
|
||||||
box-shadow: 1px 1px 2px #232323;
|
box-shadow: 1px 1px 2px #232323;
|
||||||
color: $ascent;
|
color: var(--primary);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: #607d8b1c;
|
background: #607d8b1c;
|
||||||
@ -37,7 +35,7 @@ nav {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.router-link-active {
|
.router-link-active {
|
||||||
border: 1px solid $ascent;
|
border: 1px solid var(--primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -16,13 +16,12 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
|
|
||||||
.page-titles {
|
.page-titles {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
h1 {
|
h1 {
|
||||||
color: $ascent;
|
color: var(--primary);
|
||||||
// background: -webkit-linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
// background: -webkit-linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
||||||
// background: linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
// background: linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
||||||
// -webkit-background-clip: text;
|
// -webkit-background-clip: text;
|
||||||
@ -31,7 +30,7 @@ export default {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
span.subtitle {
|
span.subtitle {
|
||||||
color: $ascent-with-opacity;
|
color: var(--primary-transparent);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
text-shadow: 1px 1px 2px #130f23;
|
text-shadow: 1px 1px 2px #130f23;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="theme-selector-section" v-if="themes" >
|
<div class="theme-selector-section" v-if="themes" >
|
||||||
<span class="theme-label">Themes</span>
|
<span class="theme-label">Themes</span>
|
||||||
<v-select :options="themeNames" v-model="selectedTheme" label="Theme" class="theme-dropdown" />
|
<v-select
|
||||||
|
:options="themeNames"
|
||||||
|
v-model="selectedTheme"
|
||||||
|
class="theme-dropdown"
|
||||||
|
:tabindex="100"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -33,8 +38,7 @@ export default {
|
|||||||
const added = Object.keys(this.themes).map(
|
const added = Object.keys(this.themes).map(
|
||||||
name => this.themeHelper.add(name, this.themes[name]),
|
name => this.themeHelper.add(name, this.themes[name]),
|
||||||
);
|
);
|
||||||
Promise.all(added).then(sheets => {
|
Promise.all(added).then(() => {
|
||||||
console.log(`${sheets.length} themes loaded`);
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.themeHelper.theme = 'Deafault';
|
this.themeHelper.theme = 'Deafault';
|
||||||
});
|
});
|
||||||
@ -44,7 +48,6 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
@import 'vue-select/src/scss/vue-select.scss';
|
@import 'vue-select/src/scss/vue-select.scss';
|
||||||
|
|
||||||
.theme-dropdown {
|
.theme-dropdown {
|
||||||
@ -56,7 +59,7 @@ export default {
|
|||||||
span.vs__selected, li.vs__dropdown-option {
|
span.vs__selected, li.vs__dropdown-option {
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
button.vs__clear, svg.vs__open-indicator {
|
svg.vs__open-indicator {
|
||||||
fill: var(--primary);
|
fill: var(--primary);
|
||||||
}
|
}
|
||||||
ul.vs__dropdown-menu {
|
ul.vs__dropdown-menu {
|
||||||
@ -67,6 +70,9 @@ export default {
|
|||||||
background: var(--primary);
|
background: var(--primary);
|
||||||
color: var(--background);
|
color: var(--background);
|
||||||
}
|
}
|
||||||
|
button.vs__clear {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-selector-section {
|
.theme-selector-section {
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
pageInfo:
|
pageInfo:
|
||||||
title: Hello World
|
title: Hello World
|
||||||
description: 'This is a demo'
|
description: 'This is a demo'
|
||||||
|
appConfig:
|
||||||
|
externalStyleSheet: 'https://bootswatch.com/4/solar/bootstrap.min.css'
|
||||||
sections:
|
sections:
|
||||||
- name: Firewall
|
- name: Firewall
|
||||||
items:
|
items:
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import VTooltip from 'v-tooltip'; // A Vue directive for Popper.js
|
|
||||||
|
import VTooltip from 'v-tooltip'; // A Vue directive for Popper.js, tooltip component
|
||||||
import VModal from 'vue-js-modal'; // Modal component
|
import VModal from 'vue-js-modal'; // Modal component
|
||||||
|
import VSelect from 'vue-select'; // Select dropdown component
|
||||||
|
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
import router from './router';
|
import router from './router';
|
||||||
@ -8,6 +10,8 @@ import './registerServiceWorker';
|
|||||||
|
|
||||||
Vue.use(VTooltip);
|
Vue.use(VTooltip);
|
||||||
Vue.use(VModal);
|
Vue.use(VModal);
|
||||||
|
Vue.component('v-select', VSelect);
|
||||||
|
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
|
@ -13,6 +13,7 @@ const router = new Router({
|
|||||||
component: Home,
|
component: Home,
|
||||||
props: {
|
props: {
|
||||||
sections: conf.sections || [],
|
sections: conf.sections || [],
|
||||||
|
appConfig: conf.appConfig || {},
|
||||||
},
|
},
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Home Page',
|
title: 'Home Page',
|
||||||
|
17
src/styles/color-palette.scss
Normal file
17
src/styles/color-palette.scss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
:root {
|
||||||
|
/* Basic*/
|
||||||
|
--background: #0b1021;
|
||||||
|
--background-darker: #05070e;
|
||||||
|
--primary: #5cabca;
|
||||||
|
|
||||||
|
/* Modified Colors */
|
||||||
|
--primary-transparent: #5cabcab3;
|
||||||
|
--background-transparent: #0b1021cc;
|
||||||
|
|
||||||
|
/* Semi-Transparent Black*/
|
||||||
|
--transparent-70: #000000b3;
|
||||||
|
--transparent-50: #00000080;
|
||||||
|
--transparent-30: #0000004d;
|
||||||
|
|
||||||
|
}
|
@ -1,19 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
// [data-theme="dark"] {
|
|
||||||
// I will put the variables here.
|
|
||||||
// }
|
|
||||||
|
|
||||||
/* Core Pallet */
|
|
||||||
$background: #0b1021;
|
|
||||||
$ascent: #5cabca;
|
|
||||||
|
|
||||||
/* Action Colors */
|
|
||||||
$transparent-black: #0000008a;
|
|
||||||
$overflow-ellipse: #283e51;
|
|
||||||
|
|
||||||
/* Modified Colors */
|
|
||||||
$bg-with-opacity: rgba($background, 0.8);
|
|
||||||
$header-color: darken($background, 5%);
|
|
||||||
$dark-ascent: darken($ascent, 50%);
|
|
||||||
$ascent-with-opacity: rgba($ascent, 0.7);
|
|
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inconsolata';
|
font-family: 'Inconsolata';
|
||||||
src: url('./assets/Inconsolata-Light.ttf');
|
src: url('./assets/Inconsolata-Light.ttf');
|
||||||
@ -8,16 +7,17 @@
|
|||||||
html {
|
html {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
transition: all 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
/* Default app font face */
|
||||||
|
body, div, p, a, span, label, input {
|
||||||
font-family: 'Inconsolata', sans-serif;
|
font-family: 'Inconsolata', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Headings font face */
|
||||||
h1, h2, h3, h4, h5 {
|
h1, h2, h3, h4, h5 {
|
||||||
font-family: 'Inconsolata', sans-serif;
|
font-family: 'Inconsolata', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, a, span, div, input {
|
|
||||||
font-family: 'Inconsolata', sans-serif;
|
|
||||||
}
|
|
||||||
|
4
src/styles/themes/DemoTheme.scss
Normal file
4
src/styles/themes/DemoTheme.scss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
body {
|
||||||
|
background: red !important;
|
||||||
|
border: 2px dashed yellow;
|
||||||
|
}
|
@ -101,7 +101,6 @@ export default {
|
|||||||
if (this.appConfig) {
|
if (this.appConfig) {
|
||||||
if (this.appConfig.externalStyleSheet) {
|
if (this.appConfig.externalStyleSheet) {
|
||||||
const externals = this.appConfig.externalStyleSheet;
|
const externals = this.appConfig.externalStyleSheet;
|
||||||
console.log(externals);
|
|
||||||
if (Array.isArray(externals)) {
|
if (Array.isArray(externals)) {
|
||||||
externals.forEach((ext, i) => {
|
externals.forEach((ext, i) => {
|
||||||
availibleThemes[`External Stylesheet ${i + 1}`] = ext;
|
availibleThemes[`External Stylesheet ${i + 1}`] = ext;
|
||||||
@ -141,7 +140,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '../../src/styles/color-pallet.scss';
|
|
||||||
@import '../../src/styles/media-queries.scss';
|
@import '../../src/styles/media-queries.scss';
|
||||||
|
|
||||||
.home {
|
.home {
|
||||||
@ -185,7 +183,7 @@ export default {
|
|||||||
|
|
||||||
.no-data {
|
.no-data {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
color: $background;
|
color: var(--background);
|
||||||
background: #ffffffeb;
|
background: #ffffffeb;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
margin: 2rem auto;
|
margin: 2rem auto;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
chainWebpack: config => {
|
chainWebpack: config => {
|
||||||
config.module.rules.delete("svg");
|
config.module.rules.delete('svg');
|
||||||
},
|
},
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
module: {
|
module: {
|
||||||
|
@ -8572,6 +8572,11 @@ vue-router@^3.0.3:
|
|||||||
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.5.1.tgz#edf3cf4907952d1e0583e079237220c5ff6eb6c9"
|
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.5.1.tgz#edf3cf4907952d1e0583e079237220c5ff6eb6c9"
|
||||||
integrity sha512-RRQNLT8Mzr8z7eL4p7BtKvRaTSGdCbTy2+Mm5HTJvLGYSSeG9gDzNasJPP/yOYKLy+/cLG/ftrqq5fvkFwBJEw==
|
integrity sha512-RRQNLT8Mzr8z7eL4p7BtKvRaTSGdCbTy2+Mm5HTJvLGYSSeG9gDzNasJPP/yOYKLy+/cLG/ftrqq5fvkFwBJEw==
|
||||||
|
|
||||||
|
vue-select@^3.11.2:
|
||||||
|
version "3.11.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/vue-select/-/vue-select-3.11.2.tgz#3ef93e3f2707e133c2df0b2920a05eea78764d18"
|
||||||
|
integrity sha512-pIOcY8ajWNSwg8Ns4eHVr5ZWwqKCSZeQRymTnlUI8i+3QiQXF6JIM4lylK6mVfbccs4S6vOyxB7zmJBpp7tDUg==
|
||||||
|
|
||||||
vue-style-loader@^4.1.0:
|
vue-style-loader@^4.1.0:
|
||||||
version "4.1.3"
|
version "4.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-4.1.3.tgz#6d55863a51fa757ab24e89d9371465072aa7bc35"
|
resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-4.1.3.tgz#6d55863a51fa757ab24e89d9371465072aa7bc35"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user