소스 검색

hero youtube container embed styling

tags/0.9.0
Alej 4 년 전
부모
커밋
57db9c4183
1개의 변경된 파일23개의 추가작업 그리고 2개의 파일을 삭제
  1. 23
    2
      vue-theme/src/components/hero.vue

+ 23
- 2
vue-theme/src/components/hero.vue 파일 보기

@@ -79,9 +79,10 @@ export default {
79 79
 
80 80
 <style lang="postcss">
81 81
 @import './../sss/theme.sss'
82
+@import './../sss/variables.sss'
82 83
 
83 84
 .hero
84
-    /* background-color: rebeccapurple */
85
+    background-color: rebeccapurple
85 86
     min-height: 35%
86 87
     width: 100%
87 88
     &--image
@@ -96,15 +97,35 @@ export default {
96 97
             width: 100%
97 98
             h2 
98 99
                 /* need better responsive solution for heading size  */
99
-                font-size: 1.5vh
100
+                /* font-size: 1.5vh */
100 101
                 color: $cia_white
101 102
                 text-shadow: 1px 1px $cia_black
102 103
                 max-width: 70vw
104
+    &--video
105
+        width: 100vw
106
+        height: 100%
107
+
103 108
     .embedded
104 109
         height: 100%
105 110
         width: 100%
111
+    .blank
112
+        img 
113
+            width: 100vw
114
+            
115
+        button 
116
+            position: absolute
117
+            /* height: 7vw */
118
+            /* width: 10vw  */
119
+            height: 7vw
120
+            width: 10vw 
121
+            border-radius: 1.5vw
106 122
 
107 123
 /* min-width settings */
108 124
 /* dynamic scaling for heading size scaling */
125
+// Medium devices (tablets, 768px and up)
126
+@media (min-width: $medium)
127
+.hero
128
+    background-color: pink
129
+    &--video
109 130
 
110 131
 </style>

Loading…
취소
저장