mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-22 21:25:00 +02:00
Removed hard-coded color codes, reference SCSS variables
This commit is contained in:
parent
95b3b84b04
commit
f9bac8ceb0
15198
package-lock.json
generated
15198
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import url('../src/global-styles.scss');
|
@import '../src/styles/global-styles.scss';
|
||||||
|
@import '../src/styles/color-pallet.scss';
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
.footer {
|
.footer {
|
||||||
|
@ -68,17 +68,18 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
||||||
|
@import '../../src/styles/color-pallet.scss';
|
||||||
|
|
||||||
.collapsable {
|
.collapsable {
|
||||||
// width: 310px;
|
// width: 310px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: #1CA8DD;
|
background: $ascent;
|
||||||
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;
|
||||||
width: auto;
|
width: auto;
|
||||||
// &.col-1 { width: 155px; }
|
// &.col-1 { width: 155px; }
|
||||||
@ -106,7 +107,7 @@ export default {
|
|||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
transition: all 0.25s ease-out;
|
transition: all 0.25s ease-out;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: #2f323ae6;
|
color:$bg-with-opacity;
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -116,7 +117,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lbl-toggle:hover {
|
.lbl-toggle:hover {
|
||||||
color: #2f323a;
|
color: $background;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lbl-toggle::before {
|
.lbl-toggle::before {
|
||||||
@ -140,7 +141,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: #2f323ae6;
|
background: $bg-with-opacity;
|
||||||
border-radius: 0 0 10px 10px;
|
border-radius: 0 0 10px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,23 +60,22 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<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, rgba(47,50,58,1) 0%, rgba(40,42,50,1) 100%);
|
background: linear-gradient(0deg, $background 0%, $header-color 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: #282a32;
|
background: $header-color;
|
||||||
label {
|
label {
|
||||||
display: inline;
|
display: inline;
|
||||||
background: -webkit-gradient(
|
color: $ascent;
|
||||||
linear, right bottom, left top, from(#9F86FF), color-stop(#1CA8DD), to(#007AE1));
|
|
||||||
background: linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
|
||||||
-webkit-background-clip: text;
|
|
||||||
-webkit-text-fill-color: transparent;
|
|
||||||
margin: 0.5rem;
|
margin: 0.5rem;
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
@ -88,30 +87,29 @@ export default {
|
|||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: #607d8b33;
|
background: $background;
|
||||||
box-shadow: 1px 1px 2px #232323;
|
color: $ascent;
|
||||||
color: #1CA8DD;
|
|
||||||
&:focus {
|
&:focus {
|
||||||
background: #607d8b4a;
|
background: $bg-with-opacity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.clear-search {
|
.clear-search {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin: 1em 0 0 -2em;
|
margin: 1em 0 0 -2em;
|
||||||
color: #1CA8DD;
|
color: $ascent;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background: #282a32;
|
background: $header-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.space-filler {
|
.space-filler {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
border-radius: 20px 0 0;
|
border-radius: 20px 0 0;
|
||||||
background: #2f323a;
|
background: $background;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
form {
|
form {
|
||||||
|
@ -19,12 +19,14 @@ 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: #282a32;
|
background: $header-color;
|
||||||
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) {
|
||||||
|
@ -59,11 +59,12 @@ export default {
|
|||||||
|
|
||||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
@import '../../src/styles/color-pallet.scss';
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
color: #1CA8DD;
|
color: $ascent;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
@ -79,7 +80,7 @@ export default {
|
|||||||
background: #607d8b4d;
|
background: #607d8b4d;
|
||||||
}
|
}
|
||||||
&:focus {
|
&:focus {
|
||||||
border: 2px solid #1CA8DD;
|
border: 2px solid $ascent;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
&.short {
|
&.short {
|
||||||
@ -120,7 +121,7 @@ export default {
|
|||||||
.overflow-dots {
|
.overflow-dots {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background: #354857;
|
background: #1b3550;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -39,6 +39,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
@import '../../src/styles/color-pallet.scss';
|
||||||
|
|
||||||
.no-items {
|
.no-items {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
@ -48,7 +49,7 @@ export default {
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: #607d8b33;
|
background: #607d8b33;
|
||||||
color: #1CA8DD;
|
color: $ascent;
|
||||||
box-shadow: 1px 1px 2px #373737;
|
box-shadow: 1px 1px 2px #373737;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,61 +59,64 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.kb-sc-info {
|
|
||||||
position: fixed;
|
@import '../../src/styles/color-pallet.scss';
|
||||||
width: 30em;
|
|
||||||
bottom: 0;
|
.kb-sc-info {
|
||||||
right: 10px;
|
position: fixed;
|
||||||
margin: 0.5em;
|
width: 30em;
|
||||||
padding: 0.1em 0.3em;
|
bottom: 0;
|
||||||
z-index: 10;
|
right: 10px;
|
||||||
border-radius: 12px;
|
margin: 0.5em;
|
||||||
border: 1px solid #282a32;
|
padding: 0.1em 0.3em;
|
||||||
-webkit-box-shadow: 2px 1px 5px #130f23;
|
z-index: 10;
|
||||||
box-shadow: 2px 1px 5px #130f23;
|
border-radius: 12px;
|
||||||
border: 1px solid #39a1e5;
|
border: 1px solid $header-color;
|
||||||
color: #39a1e5;
|
-webkit-box-shadow: 2px 1px 5px #130f23;
|
||||||
background: #282a32;
|
box-shadow: 2px 1px 5px #130f23;
|
||||||
cursor: default;
|
border: 1px solid $ascent;
|
||||||
opacity: 0.94;
|
color: $ascent;
|
||||||
@media screen and (max-width: 600px) {
|
background: $header-color;
|
||||||
display: none;
|
cursor: default;
|
||||||
}
|
opacity: 0.94;
|
||||||
h5 { /* The dialog title */
|
@media screen and (max-width: 600px) {
|
||||||
position: absolute;
|
display: none;
|
||||||
top: -35px;
|
}
|
||||||
left: 20px;
|
h5 { /* The dialog title */
|
||||||
border: 1px solid #39a1e5;
|
position: absolute;
|
||||||
color: #39a1e5;
|
top: -35px;
|
||||||
background: #282a32;
|
left: 20px;
|
||||||
padding: 4px;
|
border: 1px solid $ascent;
|
||||||
border-radius: 5px;
|
color: $ascent;
|
||||||
}
|
background: $header-color;
|
||||||
.close { /* The little exit icon, in top-right */
|
padding: 4px;
|
||||||
float: right;
|
border-radius: 5px;
|
||||||
border-radius: 20px;
|
}
|
||||||
width: 1em;
|
.close { /* The little exit icon, in top-right */
|
||||||
padding: 0 0 6px 6px;
|
float: right;
|
||||||
height: 1em;
|
border-radius: 20px;
|
||||||
background: #0000008a;
|
width: 1em;
|
||||||
margin-top: 3px;
|
padding: 0 0 6px 6px;
|
||||||
border: 1px solid transparent;
|
height: 1em;
|
||||||
cursor: pointer;
|
background: $transparent-black;
|
||||||
&:hover {
|
margin-top: 3px;
|
||||||
border: 1px solid #39a1e5;
|
border: 1px solid transparent;
|
||||||
opacity: 0.6;
|
cursor: pointer;
|
||||||
}
|
&:hover {
|
||||||
}
|
border: 1px solid $ascent;
|
||||||
}
|
opacity: 0.6;
|
||||||
/* Animations, animations everywhere */
|
|
||||||
.slide-fade-enter-active {
|
|
||||||
transition: all 1s ease;
|
|
||||||
}
|
|
||||||
.slide-fade-leave-active {
|
|
||||||
transition: all .8s cubic-bezier(.93,.01,.89,.5);
|
|
||||||
}
|
|
||||||
.slide-fade-enter, .slide-fade-leave-to {
|
|
||||||
transform: translateY(35em);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* Animations, animations everywhere */
|
||||||
|
.slide-fade-enter-active {
|
||||||
|
transition: all 1s ease;
|
||||||
|
}
|
||||||
|
.slide-fade-leave-active {
|
||||||
|
transition: all .8s cubic-bezier(.93,.01,.89,.5);
|
||||||
|
}
|
||||||
|
.slide-fade-enter, .slide-fade-leave-to {
|
||||||
|
transform: translateY(35em);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -13,6 +13,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<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;
|
||||||
@ -26,7 +29,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: #1CA8DD;
|
color: $ascent;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: #607d8b1c;
|
background: #607d8b1c;
|
||||||
@ -34,7 +37,7 @@ nav {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.router-link-active {
|
.router-link-active {
|
||||||
border: 1px solid #1CA8DD;
|
border: 1px solid $ascent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -12,19 +12,22 @@ 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 {
|
||||||
background: -webkit-linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
color: $ascent;
|
||||||
background: linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
// background: -webkit-linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
||||||
-webkit-background-clip: text;
|
// background: linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
|
||||||
-webkit-text-fill-color: transparent;
|
// -webkit-background-clip: text;
|
||||||
|
// -webkit-text-fill-color: transparent;
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
span.subtitle {
|
span.subtitle {
|
||||||
color: #9F86FF;
|
color: $ascent-with-opacity;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
text-shadow: 1px 1px 2px #130f23;
|
text-shadow: 1px 1px 2px #130f23;
|
||||||
}
|
}
|
||||||
|
14
src/styles/color-pallet.scss
Normal file
14
src/styles/color-pallet.scss
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
/* Core Pallet */
|
||||||
|
$background: #0b1021;
|
||||||
|
$ascent: #0875c3;
|
||||||
|
|
||||||
|
/* Action Colors */
|
||||||
|
$transparent-black: #0000008a;
|
||||||
|
|
||||||
|
/* 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.8);
|
@ -70,8 +70,10 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
@import '../../src/styles/color-pallet.scss';
|
||||||
|
|
||||||
.home {
|
.home {
|
||||||
background: #2F323A;
|
background: $background;
|
||||||
padding-bottom: 1px;
|
padding-bottom: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user