| 1 |
/** |
| 2 |
* Frontend Styles |
| 3 |
*/ |
| 4 |
@import "./variables"; |
| 5 |
|
| 6 |
.ghostkit-testimonial { |
| 7 |
position: relative; |
| 8 |
display: flex; |
| 9 |
flex-wrap: wrap; |
| 10 |
align-items: flex-start; |
| 11 |
padding: 0; |
| 12 |
|
| 13 |
// With link. |
| 14 |
&-with-link { |
| 15 |
position: relative; |
| 16 |
} |
| 17 |
|
| 18 |
&-link span { |
| 19 |
position: absolute; |
| 20 |
top: 0; |
| 21 |
left: 0; |
| 22 |
width: 100%; |
| 23 |
height: 100%; |
| 24 |
} |
| 25 |
|
| 26 |
// Icon. |
| 27 |
&-icon { |
| 28 |
position: absolute; |
| 29 |
top: var(--gkt-testimonial--icon__top); |
| 30 |
left: var(--gkt-testimonial--icon__left); |
| 31 |
font-size: var(--gkt-testimonial--icon__font-size); |
| 32 |
opacity: var(--gkt-testimonial--icon__opacity); |
| 33 |
|
| 34 |
+ .ghostkit-testimonial-content { |
| 35 |
padding-left: var(--gkt-testimonial--icon-content__offset); |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
// Content. |
| 40 |
&-content { |
| 41 |
flex: 100%; |
| 42 |
padding: var(--gkt-testimonial--content__padding-v) var(--gkt-testimonial--content__padding-h); |
| 43 |
margin-bottom: var(--gkt-testimonial--content__margin-bottom); |
| 44 |
background-color: var(--gkt-testimonial--content__background-color); |
| 45 |
border-radius: var(--gkt-testimonial--content__border-radius); |
| 46 |
} |
| 47 |
|
| 48 |
// Photo. |
| 49 |
&-photo { |
| 50 |
width: var(--gkt-testimonial--photo__width); |
| 51 |
overflow: hidden; |
| 52 |
border-radius: var(--gkt-testimonial--photo__border-radius); |
| 53 |
|
| 54 |
img { |
| 55 |
display: block; |
| 56 |
width: 100%; |
| 57 |
height: auto; |
| 58 |
} |
| 59 |
|
| 60 |
+ .ghostkit-testimonial-meta, |
| 61 |
+ .ghostkit-testimonial-stars { |
| 62 |
margin-left: var(--gkt-testimonial--meta__offset); |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
// Meta. |
| 67 |
&-meta { |
| 68 |
display: flex; |
| 69 |
flex: 1; |
| 70 |
flex-direction: column; |
| 71 |
|
| 72 |
+ .ghostkit-testimonial-stars { |
| 73 |
margin-left: var(--gkt-testimonial--meta__offset); |
| 74 |
} |
| 75 |
} |
| 76 |
|
| 77 |
&-name { |
| 78 |
line-height: var(--gkt-testimonial--name__line-height); |
| 79 |
} |
| 80 |
|
| 81 |
&-source { |
| 82 |
font-size: var(--gkt-testimonial--source__font-size); |
| 83 |
line-height: var(--gkt-testimonial--source__line-height); |
| 84 |
opacity: var(--gkt-testimonial--source__opacity); |
| 85 |
} |
| 86 |
|
| 87 |
&-name + &-source { |
| 88 |
margin-top: var(--gkt-testimonial--name-source__margin-top); |
| 89 |
} |
| 90 |
|
| 91 |
// Stars. |
| 92 |
&-stars { |
| 93 |
line-height: var(--gkt-testimonial--stars__line-height); |
| 94 |
|
| 95 |
&-wrap { |
| 96 |
position: relative; |
| 97 |
display: inline-block; |
| 98 |
} |
| 99 |
|
| 100 |
&-front, |
| 101 |
&-back { |
| 102 |
height: var(--gkt-testimonial--stars__height); |
| 103 |
overflow: hidden; |
| 104 |
white-space: nowrap; |
| 105 |
} |
| 106 |
|
| 107 |
&-front { |
| 108 |
position: absolute; |
| 109 |
color: var(--gkt-testimonial--stars-front__color); |
| 110 |
} |
| 111 |
|
| 112 |
&-back { |
| 113 |
color: var(--gkt-testimonial--stars-back__color); |
| 114 |
} |
| 115 |
} |
| 116 |
|
| 117 |
@include media-breakpoint-down(md) { |
| 118 |
&-stars { |
| 119 |
flex: 100%; |
| 120 |
margin-top: var(--gkt-testimonial--stars-mobile__margin-top); |
| 121 |
} |
| 122 |
|
| 123 |
&-meta + &-stars, |
| 124 |
&-photo + &-stars { |
| 125 |
margin-left: 0; |
| 126 |
} |
| 127 |
} |
| 128 |
} |
| 129 |
|