content.css
376 lines
| 1 | /** |
| 2 | * Strong Testimonials Default template |
| 3 | */ |
| 4 | /* Clears |
| 5 | -----------------------------------------------*/ |
| 6 | .clear { |
| 7 | clear: both; |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | Minimum paragraph width means no short words in skinny space next to image |
| 12 | in columns or small screens. |
| 13 | |
| 14 | This workaround is needed until we can use flexbox properly |
| 15 | or CSS offers container queries. |
| 16 | |
| 17 | Thanks https://css-tricks.com/minimum-paragraph-widths/ |
| 18 | */ |
| 19 | .maybe-clear { |
| 20 | content: ""; |
| 21 | /* this value seems to work well in both responsive and Masonry */ |
| 22 | width: 6em; |
| 23 | display: block; |
| 24 | overflow: hidden; |
| 25 | } |
| 26 | |
| 27 | /* Base |
| 28 | -----------------------------------------------*/ |
| 29 | .strong-view.wpmtst-default { |
| 30 | display: block; |
| 31 | width: 100%; |
| 32 | } |
| 33 | .strong-view.wpmtst-default div { |
| 34 | box-sizing: border-box; |
| 35 | } |
| 36 | .strong-view.wpmtst-default .wpmtst-testimonial { |
| 37 | max-height: none; |
| 38 | max-width: none; |
| 39 | padding: 0; |
| 40 | width: 100%; |
| 41 | } |
| 42 | .strong-view.wpmtst-default .wpmtst-testimonial.t-slide { |
| 43 | margin-top: 0; |
| 44 | margin-bottom: 0; |
| 45 | } |
| 46 | .strong-view.wpmtst-default .wpmtst-testimonial-inner { |
| 47 | display: block; |
| 48 | width: 100%; |
| 49 | height: 100%; |
| 50 | } |
| 51 | .strong-view.wpmtst-default .wpmtst-testimonial-image { |
| 52 | max-width: 50%; |
| 53 | } |
| 54 | .strong-view.wpmtst-default .wpmtst-testimonial-field-before { |
| 55 | margin-right: 0.5em; |
| 56 | } |
| 57 | .strong-view.wpmtst-default a.readmore, |
| 58 | .strong-view.wpmtst-default a.readmore-toggle { |
| 59 | white-space: nowrap; |
| 60 | z-index: 100; |
| 61 | } |
| 62 | .strong-view.wpmtst-default a.readmore-toggle:hover { |
| 63 | cursor: pointer; |
| 64 | } |
| 65 | |
| 66 | .strong-view.slider-container { |
| 67 | opacity: 1; |
| 68 | } |
| 69 | .strong-view .screen-reader-text { |
| 70 | clip: rect(1px, 1px, 1px, 1px); |
| 71 | height: 1px; |
| 72 | overflow: hidden; |
| 73 | position: absolute !important; |
| 74 | width: 1px; |
| 75 | word-wrap: normal !important; |
| 76 | } |
| 77 | |
| 78 | /* Template |
| 79 | -----------------------------------------------*/ |
| 80 | .strong-view.wpmtst-default .strong-content { |
| 81 | margin: 20px auto 0; |
| 82 | } |
| 83 | .strong-view.wpmtst-default .wpmtst-testimonial { |
| 84 | border: 1px solid #E6E6E6; |
| 85 | margin: 20px auto; |
| 86 | text-align: left; |
| 87 | } |
| 88 | .strong-view.wpmtst-default .wpmtst-testimonial:first-child { |
| 89 | margin-top: 0; |
| 90 | } |
| 91 | .strong-view.wpmtst-default .wpmtst-testimonial:last-child { |
| 92 | margin-bottom: 0; |
| 93 | } |
| 94 | .strong-view.wpmtst-default .wpmtst-testimonial-inner { |
| 95 | border: 1px solid #FFFFFF; |
| 96 | padding: 20px; |
| 97 | text-align: left; |
| 98 | } |
| 99 | .strong-view.wpmtst-default .wpmtst-testimonial-inner > *:not(:nth-last-child(2)):not(:last-child) { |
| 100 | margin-bottom: 5px; |
| 101 | } |
| 102 | .strong-view.wpmtst-default .wpmtst-testimonial-heading { |
| 103 | background: url("img/quotes.png") no-repeat scroll left center transparent; |
| 104 | margin-top: 0; |
| 105 | padding-left: 40px; |
| 106 | text-align: left; |
| 107 | } |
| 108 | .strong-view.wpmtst-default .wpmtst-testimonial-content p:first-of-type { |
| 109 | margin-top: 0; |
| 110 | padding-top: 0; |
| 111 | } |
| 112 | .strong-view.wpmtst-default .wpmtst-testimonial-content p:last-of-type { |
| 113 | margin-bottom: 0; |
| 114 | padding-bottom: 0; |
| 115 | } |
| 116 | .strong-view.wpmtst-default .wpmtst-testimonial-image { |
| 117 | margin-top: 0.25em; |
| 118 | margin-right: 1em; |
| 119 | margin-bottom: 0.25em; |
| 120 | float: left; |
| 121 | } |
| 122 | .strong-view.wpmtst-default .wpmtst-testimonial-image img { |
| 123 | background: none repeat scroll 0 0 #FFFFFF; |
| 124 | border: 1px solid #EFEFEF; |
| 125 | padding: 6px; |
| 126 | margin: 0 auto; |
| 127 | } |
| 128 | .strong-view.wpmtst-default .wpmtst-testimonial-image a { |
| 129 | text-decoration: none; |
| 130 | box-shadow: none; |
| 131 | } |
| 132 | .strong-view.wpmtst-default .wpmtst-testimonial-image .initials { |
| 133 | background: none repeat scroll 0 0 #FFFFFF; |
| 134 | border: 1px solid #EFEFEF; |
| 135 | padding: 6px; |
| 136 | margin: 0 auto; |
| 137 | text-align: center; |
| 138 | font-size: 42px; |
| 139 | font-weight: bold; |
| 140 | display: table-cell; |
| 141 | vertical-align: middle; |
| 142 | } |
| 143 | .strong-view.wpmtst-default .wpmtst-testimonial-field { |
| 144 | text-align: right; |
| 145 | } |
| 146 | .strong-view.wpmtst-default .wpmtst-testimonial-name { |
| 147 | font-weight: bold; |
| 148 | } |
| 149 | .strong-view.wpmtst-default .readmore { |
| 150 | margin-top: 1em; |
| 151 | } |
| 152 | .strong-view.wpmtst-default .strong-view-footer { |
| 153 | margin-bottom: 20px; |
| 154 | } |
| 155 | .strong-view.wpmtst-default .readmore-page { |
| 156 | margin-top: 20px; |
| 157 | padding: 1em; |
| 158 | text-align: center; |
| 159 | border: 1px solid #E6E6E6; |
| 160 | } |
| 161 | |
| 162 | /* Pagination |
| 163 | -----------------------------------------------*/ |
| 164 | /* Simple pagination |
| 165 | -----------------------------------------------*/ |
| 166 | .strong-view.wpmtst-default.strong-pager { |
| 167 | display: none; |
| 168 | } |
| 169 | |
| 170 | .simplePagerList { |
| 171 | /* match .strong-content container */ |
| 172 | margin: 20px auto; |
| 173 | text-align: center; |
| 174 | } |
| 175 | |
| 176 | .strong-view ul.simplePagerNav { |
| 177 | margin: 0 auto; |
| 178 | padding: 0; |
| 179 | display: inline-block; |
| 180 | } |
| 181 | .strong-view ul.simplePagerNav li { |
| 182 | display: inline; |
| 183 | list-style: none; |
| 184 | margin: 0; |
| 185 | padding: 0; |
| 186 | } |
| 187 | .strong-view ul.simplePagerNav li a { |
| 188 | margin: 0 0.2em; |
| 189 | padding: 0.1em 0.3em; |
| 190 | outline: none; |
| 191 | text-decoration: none; |
| 192 | transition: background 0.2s ease; |
| 193 | } |
| 194 | .strong-view ul.simplePagerNav li a:hover { |
| 195 | background: #BBB; |
| 196 | color: #FFF; |
| 197 | } |
| 198 | .strong-view ul.simplePagerNav li.currentPage a { |
| 199 | text-decoration: none; |
| 200 | background: #999; |
| 201 | color: #FFF; |
| 202 | } |
| 203 | |
| 204 | .strong-view.rtl ul.simplePagerNav li { |
| 205 | float: right; |
| 206 | } |
| 207 | |
| 208 | /* Standard pagination |
| 209 | -----------------------------------------------*/ |
| 210 | .strong-view .nav-links { |
| 211 | margin: 20px auto; |
| 212 | text-align: center; |
| 213 | } |
| 214 | .strong-view .nav-links a, .strong-view .nav-links span { |
| 215 | display: inline-block; |
| 216 | line-height: 1.5; |
| 217 | margin: 0 0.2em; |
| 218 | padding: 0.1em 0.3em; |
| 219 | transition: background 0.2s ease; |
| 220 | } |
| 221 | .strong-view .nav-links a.current, .strong-view .nav-links span.current { |
| 222 | background: #999; |
| 223 | color: #FFF; |
| 224 | } |
| 225 | .strong-view .nav-links a { |
| 226 | outline: none; |
| 227 | text-decoration: none; |
| 228 | } |
| 229 | .strong-view .nav-links a:hover, |
| 230 | .strong-view .nav-links a.prev:hover, |
| 231 | .strong-view .nav-links a.next:hover, |
| 232 | .strong-view .nav-links span:hover { |
| 233 | background: #BBB; |
| 234 | color: #FFF; |
| 235 | } |
| 236 | |
| 237 | /* Slideshow |
| 238 | -----------------------------------------------*/ |
| 239 | .strong-view.wpmtst-default.slider-container { |
| 240 | /* If vertical or fade slideshow, move border from individual testimonials to viewport. */ |
| 241 | } |
| 242 | .strong-view.wpmtst-default.slider-container.slider-adaptive:not(.slider-mode-horizontal) .wpmslider-viewport { |
| 243 | border: 1px solid #E6E6E6; |
| 244 | } |
| 245 | .strong-view.wpmtst-default.slider-container.slider-adaptive:not(.slider-mode-horizontal) .wpmtst-testimonial { |
| 246 | border: 0; |
| 247 | } |
| 248 | .strong-view.wpmtst-default.slider-container .strong-content { |
| 249 | margin: 0 auto; |
| 250 | } |
| 251 | .strong-view.wpmtst-default.slider-container .wpmtst-testimonial:not(:first-child) { |
| 252 | display: none; |
| 253 | } |
| 254 | .strong-view.wpmtst-default.nav-position-inside .wpmtst-testimonial-inner { |
| 255 | padding-bottom: 48px; |
| 256 | } |
| 257 | .strong-view.wpmtst-default.controls-type-sides .wpmtst-testimonial-inner { |
| 258 | padding-left: 50px; |
| 259 | padding-right: 50px; |
| 260 | } |
| 261 | .strong-view.wpmtst-default.slider-stretch .wpmtst-testimonial-inner { |
| 262 | /* to force same height for all slides */ |
| 263 | height: 100%; |
| 264 | } |
| 265 | |
| 266 | /* Responsive |
| 267 | -----------------------------------------------*/ |
| 268 | @media only screen and (max-width: 320px) { |
| 269 | .strong-view.wpmtst-default .wpmtst-testimonial-image { |
| 270 | float: none; |
| 271 | margin-left: auto; |
| 272 | margin-right: auto; |
| 273 | } |
| 274 | } |
| 275 | /* Remove quote background image */ |
| 276 | @media only screen and (max-width: 320px) and (orientation: portrait) { |
| 277 | .strong-view.wpmtst-default .wpmtst-testimonial-heading { |
| 278 | background: none; |
| 279 | padding-left: 0; |
| 280 | } |
| 281 | } |
| 282 | /* RTL |
| 283 | -----------------------------------------------*/ |
| 284 | .strong-view.wpmtst-default.rtl .wpmtst-testimonial, |
| 285 | .strong-view.wpmtst-default.rtl .wpmtst-testimonial-inner, |
| 286 | .strong-view.wpmtst-default.rtl .wpmtst-testimonial-heading { |
| 287 | text-align: right; |
| 288 | } |
| 289 | .strong-view.wpmtst-default.rtl .wpmtst-testimonial-image { |
| 290 | float: right; |
| 291 | margin-left: 1em; |
| 292 | } |
| 293 | .strong-view.wpmtst-default.rtl .wpmtst-testimonial-field { |
| 294 | text-align: left; |
| 295 | } |
| 296 | |
| 297 | .strong-view.wpmtst-default.rtl .wpmtst-testimonial-heading { |
| 298 | padding-right: 40px; |
| 299 | background-position: right; |
| 300 | } |
| 301 | |
| 302 | /* Option: Image Right |
| 303 | -----------------------------------------------*/ |
| 304 | .strong-view.wpmtst-default.image-right .wpmtst-testimonial-image { |
| 305 | float: right; |
| 306 | margin-top: .25em; |
| 307 | margin-bottom: 0.25em; |
| 308 | margin-left: 1em; |
| 309 | } |
| 310 | .strong-view.wpmtst-default.image-right .wpmtst-testimonial-field { |
| 311 | text-align: left; |
| 312 | } |
| 313 | |
| 314 | .strong-view.wpmtst-default.image-right.rtl .wpmtst-testimonial-image { |
| 315 | float: left; |
| 316 | margin-left: 0; |
| 317 | margin-right: 1em; |
| 318 | } |
| 319 | .strong-view.wpmtst-default.image-right.rtl .wpmtst-testimonial-field { |
| 320 | text-align: right; |
| 321 | } |
| 322 | |
| 323 | /* Option: No Quotes |
| 324 | -----------------------------------------------*/ |
| 325 | .strong-view.wpmtst-default.no-quotes .wpmtst-testimonial-heading { |
| 326 | background: none; |
| 327 | padding-left: 0; |
| 328 | } |
| 329 | |
| 330 | /* Option: Dark Theme |
| 331 | -----------------------------------------------*/ |
| 332 | .strong-view.wpmtst-default.dark .wpmtst-testimonial { |
| 333 | border: 1px solid #777; |
| 334 | } |
| 335 | .strong-view.wpmtst-default.dark .wpmtst-testimonial-inner { |
| 336 | border: 1px solid #333; |
| 337 | } |
| 338 | .strong-view.wpmtst-default.dark .readmore-page { |
| 339 | border: 2px solid #777; |
| 340 | } |
| 341 | .strong-view.wpmtst-default.dark ul.simplePagerNav li a:hover { |
| 342 | background: #777; |
| 343 | color: #FFF; |
| 344 | } |
| 345 | .strong-view.wpmtst-default.dark ul.simplePagerNav li.currentPage a { |
| 346 | background: #555; |
| 347 | color: #FFF; |
| 348 | } |
| 349 | |
| 350 | .disabled { |
| 351 | display: none !important; |
| 352 | } |
| 353 | |
| 354 | .wpmslider-controls.disabled { |
| 355 | display: block !important; |
| 356 | } |
| 357 | |
| 358 | /* Compatibility with metaslider pro layers display |
| 359 | ----------------------------------------------------*/ |
| 360 | |
| 361 | .msHtmlOverlay .layer .disabled { |
| 362 | display: block !important; |
| 363 | } |
| 364 | |
| 365 | |
| 366 | /* Readmore Inline |
| 367 | ----------------------------------------------------*/ |
| 368 | .readmore-excerpt-inline, |
| 369 | .readmore-content-inline:not([hidden]), |
| 370 | .readmore-content-inline:not([hidden]) p { |
| 371 | display: inline; |
| 372 | } |
| 373 | |
| 374 | .wpmtst-inline-readme { |
| 375 | margin-left: 5px; |
| 376 | } |