瀏覽代碼

styling edit - added tint class for hero image

tags/0.9.0
Alej 4 年之前
父節點
當前提交
26c3c535f4
共有 1 個檔案被更改,包括 20 行新增5 行删除
  1. 20
    5
      vue-theme/src/components/hero.vue

+ 20
- 5
vue-theme/src/components/hero.vue 查看文件

1
 <template lang="pug">
1
 <template lang="pug">
2
 .hero.w-max.f-col(v-if="showHero")
2
 .hero.w-max.f-col(v-if="showHero")
3
+    .tint
3
     .hero--video.w-max(v-if="heroType === 'video'")
4
     .hero--video.w-max(v-if="heroType === 'video'")
4
         iframe(
5
         iframe(
5
             v-if="isPlaying"
6
             v-if="isPlaying"
85
 @import './../sss/variables.sss'
86
 @import './../sss/variables.sss'
86
 
87
 
87
 .hero
88
 .hero
88
-    background-color: rebeccapurple
89
+    /* background-color: rebeccapurple */
89
     min-height: 35%
90
     min-height: 35%
91
+    height: 78vh
92
+    position: relative
93
+    overflow: hidden
94
+    .tint
95
+        position: absolute
96
+        height: 100%
97
+        width: 100%
98
+        background-color: #00000055
99
+
90
     &--image
100
     &--image
91
         &--overlay
101
         &--overlay
92
-            color: $cia_white
102
+            /* color: $cia_white */
93
             position: absolute
103
             position: absolute
94
-            margin: 20% 0
104
+            margin: 19% 0
95
             h2 
105
             h2 
96
                 /* need better responsive solution for heading size  */
106
                 /* need better responsive solution for heading size  */
97
-                font-size: 5vw
107
+                font-size: 3vw
98
                 color: $cia_white
108
                 color: $cia_white
99
                 text-shadow: 1px 1px $cia_black
109
                 text-shadow: 1px 1px $cia_black
100
                 max-width: 70vw
110
                 max-width: 70vw
101
-                margin: -25vh 0 0
102
     &--video
111
     &--video
103
         width: 100vw
112
         width: 100vw
104
         height: 100%
113
         height: 100%
108
         height: 100%
117
         height: 100%
109
         
118
         
110
     .blank
119
     .blank
120
+        position: absolute
121
+        height: inherit
122
+        width: inherit 
123
+        img 
124
+            position: 
125
+
111
         button 
126
         button 
112
             position: absolute
127
             position: absolute
113
             min-height: $ms-7
128
             min-height: $ms-7

Loading…
取消
儲存