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

Loading…
Peruuta
Tallenna