content.css
288 lines
| 1 | /** |
| 2 | * Strong Testimonials Default template |
| 3 | */ |
| 4 | |
| 5 | /* Base |
| 6 | -----------------------------------------------*/ |
| 7 | .strong-view.wpmtst-default-theme { |
| 8 | display: block; |
| 9 | width: 100%; |
| 10 | } |
| 11 | .strong-view.wpmtst-default-theme div { |
| 12 | box-sizing: border-box; |
| 13 | } |
| 14 | .strong-view.wpmtst-default-theme .wpmtst-testimonial { |
| 15 | max-height: none; |
| 16 | max-width: none; |
| 17 | width: 100%; |
| 18 | } |
| 19 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-inner { |
| 20 | display: block; |
| 21 | width: 100%; |
| 22 | height: 100%; |
| 23 | } |
| 24 | .strong-view.wpmtst-default-theme a.readmore, |
| 25 | .strong-view.wpmtst-default-theme a.readmore-toggle { |
| 26 | white-space: nowrap; |
| 27 | z-index: 100; |
| 28 | } |
| 29 | .strong-view.wpmtst-default-theme a.readmore-toggle:hover { |
| 30 | cursor: pointer; |
| 31 | } |
| 32 | |
| 33 | .strong-view.slider-container { |
| 34 | opacity: 1; |
| 35 | } |
| 36 | .strong-view .screen-reader-text { |
| 37 | clip: rect(1px, 1px, 1px, 1px); |
| 38 | height: 1px; |
| 39 | overflow: hidden; |
| 40 | position: absolute !important; |
| 41 | width: 1px; |
| 42 | word-wrap: normal !important; |
| 43 | } |
| 44 | |
| 45 | /* Card |
| 46 | -----------------------------------------------*/ |
| 47 | .strong-view.wpmtst-default-theme .strong-content { |
| 48 | margin: 20px auto 0; |
| 49 | } |
| 50 | /* |
| 51 | * Masonry absolutely-positions .wpmtst-testimonial and computes each item's |
| 52 | * position from its measured box size. Padding is always included in that |
| 53 | * measurement; margin is not reliable once an item is taken out of flow. |
| 54 | * So all inter-item spacing lives here as padding, and the visible card |
| 55 | * (border/radius) moves to the inner element. |
| 56 | */ |
| 57 | .strong-view.wpmtst-default-theme .wpmtst-testimonial { |
| 58 | /* top padding clears the avatar, which overlaps half its own height above the inner border */ |
| 59 | padding-top: calc(var(--wpmtst-avatar-size, 0px) / 2 + 20px); |
| 60 | padding-bottom: 20px; |
| 61 | } |
| 62 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-inner { |
| 63 | position: relative; |
| 64 | border: 1px solid; |
| 65 | border-color: inherit; |
| 66 | border-radius: inherit; |
| 67 | /* top padding clears the avatar's own bottom edge (half its height below the border), plus a gap */ |
| 68 | padding: calc(var(--wpmtst-avatar-size, 0px) / 2 + 20px) 50px 50px; |
| 69 | } |
| 70 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-inner > * { |
| 71 | margin-top: 0; |
| 72 | margin-bottom: 16px; |
| 73 | } |
| 74 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-inner > *:last-child { |
| 75 | margin-bottom: 0; |
| 76 | } |
| 77 | |
| 78 | /* Avatar |
| 79 | -----------------------------------------------*/ |
| 80 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-avatar { |
| 81 | position: absolute; |
| 82 | top: calc(var(--wpmtst-avatar-size, 0px) / -2); |
| 83 | left: 50px; |
| 84 | margin: 0; |
| 85 | z-index: 1; |
| 86 | } |
| 87 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-avatar img { |
| 88 | display: block; |
| 89 | max-width: 100%; |
| 90 | border-radius: 50%; |
| 91 | object-fit: cover; |
| 92 | border: 1px solid; |
| 93 | border-color: inherit; |
| 94 | } |
| 95 | |
| 96 | /* Name / company / rating |
| 97 | -----------------------------------------------*/ |
| 98 | .strong-view.wpmtst-default-theme .testimonial-company { |
| 99 | font-weight: 600; |
| 100 | opacity: 0.75; |
| 101 | } |
| 102 | .strong-view.wpmtst-default-theme .testimonial-company a { |
| 103 | text-decoration: none; |
| 104 | } |
| 105 | .strong-view.wpmtst-default-theme .testimonial-rating .strong-rating { |
| 106 | display: inline-block; |
| 107 | } |
| 108 | .strong-view.wpmtst-default-theme .testimonial-rating .star svg path { |
| 109 | fill: #ffb900; |
| 110 | } |
| 111 | .strong-view.wpmtst-default-theme .testimonial-rating .star svg { |
| 112 | width: 20px; |
| 113 | } |
| 114 | |
| 115 | /* Quote |
| 116 | -----------------------------------------------*/ |
| 117 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-content { |
| 118 | margin: 0; |
| 119 | } |
| 120 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-content p:first-of-type { |
| 121 | margin-top: 0; |
| 122 | padding-top: 0; |
| 123 | } |
| 124 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-content p:last-of-type { |
| 125 | margin-bottom: 0; |
| 126 | padding-bottom: 0; |
| 127 | } |
| 128 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-content p:first-of-type::before { |
| 129 | content: "\201C"; |
| 130 | } |
| 131 | .strong-view.wpmtst-default-theme .wpmtst-testimonial-content p:last-of-type::after { |
| 132 | content: "\201D"; |
| 133 | } |
| 134 | |
| 135 | .strong-view.wpmtst-default-theme .readmore { |
| 136 | margin-top: 1em; |
| 137 | } |
| 138 | .strong-view.wpmtst-default-theme .strong-view-footer { |
| 139 | margin-bottom: 20px; |
| 140 | } |
| 141 | .strong-view.wpmtst-default-theme .readmore-page { |
| 142 | margin-top: 20px; |
| 143 | padding: 1em; |
| 144 | text-align: center; |
| 145 | border: 1px solid; |
| 146 | border-color: inherit; |
| 147 | } |
| 148 | |
| 149 | /* Pagination |
| 150 | -----------------------------------------------*/ |
| 151 | /* Simple pagination |
| 152 | -----------------------------------------------*/ |
| 153 | .strong-view.wpmtst-default-theme.strong-pager { |
| 154 | display: none; |
| 155 | } |
| 156 | |
| 157 | .simplePagerList { |
| 158 | /* match .strong-content container */ |
| 159 | margin: 20px auto; |
| 160 | text-align: center; |
| 161 | } |
| 162 | |
| 163 | .strong-view ul.simplePagerNav { |
| 164 | margin: 0 auto; |
| 165 | padding: 0; |
| 166 | display: inline-block; |
| 167 | } |
| 168 | .strong-view ul.simplePagerNav li { |
| 169 | display: inline; |
| 170 | list-style: none; |
| 171 | margin: 0; |
| 172 | padding: 0; |
| 173 | } |
| 174 | .strong-view ul.simplePagerNav li a { |
| 175 | margin: 0 0.2em; |
| 176 | padding: 0.1em 0.3em; |
| 177 | outline: none; |
| 178 | text-decoration: none; |
| 179 | transition: background 0.2s ease; |
| 180 | } |
| 181 | .strong-view ul.simplePagerNav li a:hover { |
| 182 | background: #BBB; |
| 183 | color: #FFF; |
| 184 | } |
| 185 | .strong-view ul.simplePagerNav li.currentPage a { |
| 186 | text-decoration: none; |
| 187 | background: #999; |
| 188 | color: #FFF; |
| 189 | } |
| 190 | |
| 191 | .strong-view.rtl ul.simplePagerNav li { |
| 192 | float: right; |
| 193 | } |
| 194 | |
| 195 | /* Standard pagination |
| 196 | -----------------------------------------------*/ |
| 197 | .strong-view .nav-links { |
| 198 | margin: 20px auto; |
| 199 | text-align: center; |
| 200 | } |
| 201 | .strong-view .nav-links a, .strong-view .nav-links span { |
| 202 | display: inline-block; |
| 203 | line-height: 1.5; |
| 204 | margin: 0 0.2em; |
| 205 | padding: 0.1em 0.3em; |
| 206 | transition: background 0.2s ease; |
| 207 | } |
| 208 | .strong-view .nav-links a.current, .strong-view .nav-links span.current { |
| 209 | background: #999; |
| 210 | color: #FFF; |
| 211 | } |
| 212 | .strong-view .nav-links a { |
| 213 | outline: none; |
| 214 | text-decoration: none; |
| 215 | } |
| 216 | .strong-view .nav-links a:hover, |
| 217 | .strong-view .nav-links a.prev:hover, |
| 218 | .strong-view .nav-links a.next:hover, |
| 219 | .strong-view .nav-links span:hover { |
| 220 | background: #BBB; |
| 221 | color: #FFF; |
| 222 | } |
| 223 | |
| 224 | /* Slideshow |
| 225 | -----------------------------------------------*/ |
| 226 | .strong-view.wpmtst-default-theme.slider-container.slider-adaptive:not(.slider-mode-horizontal) .wpmslider-viewport { |
| 227 | border: 1px solid; |
| 228 | border-color: inherit; |
| 229 | } |
| 230 | .strong-view.wpmtst-default-theme.slider-container.slider-adaptive:not(.slider-mode-horizontal) .wpmtst-testimonial-inner { |
| 231 | border: 0; |
| 232 | } |
| 233 | .strong-view.wpmtst-default-theme.slider-container .strong-content { |
| 234 | margin: 0 auto; |
| 235 | } |
| 236 | .strong-view.wpmtst-default-theme.slider-container .wpmtst-testimonial:not(:first-child) { |
| 237 | display: none; |
| 238 | } |
| 239 | .strong-view.wpmtst-default-theme.nav-position-inside .wpmtst-testimonial-inner { |
| 240 | padding-bottom: 48px; |
| 241 | } |
| 242 | .strong-view.wpmtst-default-theme.controls-type-sides .wpmtst-testimonial-inner { |
| 243 | padding-left: 50px; |
| 244 | padding-right: 50px; |
| 245 | } |
| 246 | .strong-view.wpmtst-default-theme.slider-stretch .wpmtst-testimonial-inner { |
| 247 | /* to force same height for all slides */ |
| 248 | height: 100%; |
| 249 | } |
| 250 | |
| 251 | /* RTL |
| 252 | -----------------------------------------------*/ |
| 253 | .strong-view.wpmtst-default-theme.rtl .wpmtst-testimonial, |
| 254 | .strong-view.wpmtst-default-theme.rtl .wpmtst-testimonial-inner { |
| 255 | text-align: right; |
| 256 | } |
| 257 | .strong-view.wpmtst-default-theme.rtl .wpmtst-testimonial-field { |
| 258 | text-align: right; |
| 259 | } |
| 260 | |
| 261 | .strong-view.wpmtst-default-theme .disabled { |
| 262 | display: none !important; |
| 263 | } |
| 264 | |
| 265 | .wpmslider-controls.disabled { |
| 266 | display: block !important; |
| 267 | } |
| 268 | |
| 269 | /* Compatibility with metaslider pro layers display |
| 270 | ----------------------------------------------------*/ |
| 271 | |
| 272 | .msHtmlOverlay .layer .disabled { |
| 273 | display: block !important; |
| 274 | } |
| 275 | |
| 276 | |
| 277 | /* Readmore Inline |
| 278 | ----------------------------------------------------*/ |
| 279 | .readmore-excerpt-inline, |
| 280 | .readmore-content-inline:not([hidden]), |
| 281 | .readmore-content-inline:not([hidden]) p { |
| 282 | display: inline; |
| 283 | } |
| 284 | |
| 285 | .wpmtst-inline-readme { |
| 286 | margin-left: 5px; |
| 287 | } |
| 288 |