aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card_content/user_card_content.vue
diff options
context:
space:
mode:
authorshpuld <shpuld@gmail.com>2017-02-25 13:13:08 +0200
committershpuld <shpuld@gmail.com>2017-02-25 13:13:08 +0200
commit536a7176df5531ed5b5128dd3de2fc21a95c373a (patch)
treea8ec72bef1be2b0c2e34b72b663de4f8ad94fe55 /src/components/user_card_content/user_card_content.vue
parent2b2061b03f7e23913cf127e1b7e48e0b99f2aedd (diff)
Make the profile background use a new calculated color using the theme
Diffstat (limited to 'src/components/user_card_content/user_card_content.vue')
-rw-r--r--src/components/user_card_content/user_card_content.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue
index 10064d5f..3d2f8827 100644
--- a/src/components/user_card_content/user_card_content.vue
+++ b/src/components/user_card_content/user_card_content.vue
@@ -61,8 +61,12 @@
props: [ 'user' ],
computed: {
headingStyle () {
+ let rgb = this.$store.state.config.colors['base00'].match(/\d+/g)
return {
- 'background-image': `url(${this.user.cover_photo})`
+ backgroundColor: 'rgb(' + Math.floor(rgb[0] * 0.53) + ', ' +
+ Math.floor(rgb[1] * 0.56) + ', ' +
+ Math.floor(rgb[2] * 0.59) + ')',
+ backgroundImage: `url(${this.user.cover_photo})`
}
},
bodyStyle () {
@@ -100,7 +104,7 @@
<style lang="scss">
.profile-panel-background {
- background-color: #121517;
+
background-size: cover;
border-radius: 0.5em 0.5em 0 0;
}