Selaa lähdekoodia

hero size adjust and overlay link color edit

tags/0.9.0
Alej 4 vuotta sitten
vanhempi
commit
1bdf46f726
1 muutettua tiedostoa jossa 8 lisäystä ja 3 poistoa
  1. 8
    3
      vue-theme/src/components/hero.vue

+ 8
- 3
vue-theme/src/components/hero.vue Näytä tiedosto

@@ -55,14 +55,14 @@ export default {
55 55
     },
56 56
     methods: {
57 57
         onResize() {
58
-            this.heroHeight = this.$el.offsetWidth / 2.1
58
+            this.heroHeight = this.$el.offsetWidth / 1.8
59 59
         },
60 60
         getThumbnailFromYt(url) {
61 61
             return ytThumbnail(url, 'max')
62 62
         },
63 63
     },
64 64
     mounted() {
65
-        this.heroHeight = this.$el.offsetWidth / 2.1
65
+        this.heroHeight = this.$el.offsetWidth / 1.8
66 66
         this.$nextTick(() => {
67 67
             window.addEventListener('resize', this.onResize)
68 68
         })
@@ -92,7 +92,8 @@ export default {
92 92
 
93 93
 .hero
94 94
     /* background-color: rebeccapurple */
95
-    min-height: 25vh
95
+    /* min-height: 25vh */
96
+    min-height: 54vw
96 97
     position: relative
97 98
     overflow: hidden
98 99
     justify-content: flex-start !important
@@ -124,6 +125,10 @@ export default {
124 125
                 color: $cia_white
125 126
                 text-shadow: 1px 1px $cia_black
126 127
                 max-width: 70vw
128
+            a 
129
+                color: inherit 
130
+                text-decoration: none
131
+
127 132
     &--video
128 133
         width: 100vw
129 134
         height: 100%

Loading…
Peruuta
Tallenna