content.css
336 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.default { |
| 30 | display: block; |
| 31 | width: 100%; |
| 32 | } |
| 33 | .strong-view.default div { |
| 34 | box-sizing: border-box; |
| 35 | } |
| 36 | .strong-view.default .testimonial { |
| 37 | max-height: none; |
| 38 | max-width: none; |
| 39 | padding: 0; |
| 40 | width: 100%; |
| 41 | } |
| 42 | .strong-view.default .testimonial.t-slide { |
| 43 | margin-top: 0; |
| 44 | margin-bottom: 0; |
| 45 | } |
| 46 | .strong-view.default .testimonial-inner { |
| 47 | display: block; |
| 48 | width: 100%; |
| 49 | height: 100%; |
| 50 | } |
| 51 | .strong-view.default .testimonial-image { |
| 52 | max-width: 100%; |
| 53 | } |
| 54 | .strong-view.default .testimonial-field-before { |
| 55 | margin-right: 0.5em; |
| 56 | } |
| 57 | .strong-view.default a.readmore, |
| 58 | .strong-view.default a.readmore-toggle { |
| 59 | white-space: nowrap; |
| 60 | z-index: 100; |
| 61 | } |
| 62 | .strong-view.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.default .strong-content { |
| 81 | margin: 20px auto 0; |
| 82 | } |
| 83 | .strong-view.default .testimonial { |
| 84 | border: 1px solid #E6E6E6; |
| 85 | margin: 20px auto; |
| 86 | text-align: left; |
| 87 | } |
| 88 | .strong-view.default .testimonial:first-child { |
| 89 | margin-top: 0; |
| 90 | } |
| 91 | .strong-view.default .testimonial:last-child { |
| 92 | margin-bottom: 0; |
| 93 | } |
| 94 | .strong-view.default .testimonial-inner { |
| 95 | border: 1px solid #FFFFFF; |
| 96 | padding: 20px; |
| 97 | text-align: left; |
| 98 | } |
| 99 | .strong-view.default .testimonial-heading { |
| 100 | background: url("img/quotes.png") no-repeat scroll left center transparent; |
| 101 | margin-top: 0; |
| 102 | padding-left: 40px; |
| 103 | text-align: left; |
| 104 | } |
| 105 | .strong-view.default .testimonial-content p:first-of-type { |
| 106 | margin-top: 0; |
| 107 | padding-top: 0; |
| 108 | } |
| 109 | .strong-view.default .testimonial-content p:last-of-type { |
| 110 | margin-bottom: 0; |
| 111 | padding-bottom: 0; |
| 112 | } |
| 113 | .strong-view.default .testimonial-image { |
| 114 | margin-top: 0.25em; |
| 115 | margin-right: 1em; |
| 116 | margin-bottom: 0.25em; |
| 117 | float: left; |
| 118 | } |
| 119 | .strong-view.default .testimonial-image img { |
| 120 | background: none repeat scroll 0 0 #FFFFFF; |
| 121 | border: 1px solid #EFEFEF; |
| 122 | padding: 6px; |
| 123 | margin: 0 auto; |
| 124 | } |
| 125 | .strong-view.default .testimonial-image a { |
| 126 | text-decoration: none; |
| 127 | box-shadow: none; |
| 128 | } |
| 129 | .strong-view.default .testimonial-client { |
| 130 | margin-top: 1em; |
| 131 | text-align: right; |
| 132 | } |
| 133 | .strong-view.default .testimonial-name { |
| 134 | font-weight: bold; |
| 135 | } |
| 136 | .strong-view.default .readmore { |
| 137 | margin-top: 1em; |
| 138 | } |
| 139 | .strong-view.default .strong-view-footer { |
| 140 | margin-bottom: 20px; |
| 141 | } |
| 142 | .strong-view.default .readmore-page { |
| 143 | margin-top: 20px; |
| 144 | padding: 1em; |
| 145 | text-align: center; |
| 146 | border: 1px solid #E6E6E6; |
| 147 | } |
| 148 | |
| 149 | /* Pagination |
| 150 | -----------------------------------------------*/ |
| 151 | /* Simple pagination |
| 152 | -----------------------------------------------*/ |
| 153 | .strong-view.default.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.default.slider-container { |
| 227 | /* If vertical or fade slideshow, move border from individual testimonials to viewport. */ |
| 228 | } |
| 229 | .strong-view.default.slider-container.slider-adaptive:not(.slider-mode-horizontal) .wpmslider-viewport { |
| 230 | border: 1px solid #E6E6E6; |
| 231 | } |
| 232 | .strong-view.default.slider-container.slider-adaptive:not(.slider-mode-horizontal) .testimonial { |
| 233 | border: 0; |
| 234 | } |
| 235 | .strong-view.default.slider-container .strong-content { |
| 236 | margin: 0 auto; |
| 237 | } |
| 238 | .strong-view.default.slider-container .testimonial:not(:first-child) { |
| 239 | display: none; |
| 240 | } |
| 241 | .strong-view.default.nav-position-inside .testimonial-inner { |
| 242 | padding-bottom: 48px; |
| 243 | } |
| 244 | .strong-view.default.controls-type-sides .testimonial-inner { |
| 245 | padding-left: 50px; |
| 246 | padding-right: 50px; |
| 247 | } |
| 248 | .strong-view.default.slider-stretch .testimonial-inner { |
| 249 | /* to force same height for all slides */ |
| 250 | height: 100%; |
| 251 | } |
| 252 | |
| 253 | /* Responsive |
| 254 | -----------------------------------------------*/ |
| 255 | @media only screen and (max-width: 320px) { |
| 256 | .strong-view.default .testimonial-image { |
| 257 | float: none; |
| 258 | margin-left: auto; |
| 259 | margin-right: auto; |
| 260 | } |
| 261 | } |
| 262 | /* Remove quote background image */ |
| 263 | @media only screen and (max-width: 320px) and (orientation: portrait) { |
| 264 | .strong-view.default .testimonial-heading { |
| 265 | background: none; |
| 266 | padding-left: 0; |
| 267 | } |
| 268 | } |
| 269 | /* RTL |
| 270 | -----------------------------------------------*/ |
| 271 | .strong-view.default.rtl .testimonial, |
| 272 | .strong-view.default.rtl .testimonial-inner, |
| 273 | .strong-view.default.rtl .testimonial-heading { |
| 274 | text-align: right; |
| 275 | } |
| 276 | .strong-view.default.rtl .testimonial-image { |
| 277 | float: right; |
| 278 | margin-left: 1em; |
| 279 | } |
| 280 | .strong-view.default.rtl .testimonial-client { |
| 281 | text-align: left; |
| 282 | } |
| 283 | |
| 284 | .strong-view.default.rtl .testimonial-heading { |
| 285 | padding-right: 40px; |
| 286 | background-position: right; |
| 287 | } |
| 288 | |
| 289 | /* Option: Image Right |
| 290 | -----------------------------------------------*/ |
| 291 | .strong-view.default.image-right .testimonial-image { |
| 292 | float: right; |
| 293 | margin-top: .25em; |
| 294 | margin-bottom: 0.25em; |
| 295 | margin-left: 1em; |
| 296 | } |
| 297 | .strong-view.default.image-right .testimonial-client { |
| 298 | text-align: left; |
| 299 | } |
| 300 | |
| 301 | .strong-view.default.image-right.rtl .testimonial-image { |
| 302 | float: left; |
| 303 | margin-left: 0; |
| 304 | margin-right: 1em; |
| 305 | } |
| 306 | .strong-view.default.image-right.rtl .testimonial-client { |
| 307 | text-align: right; |
| 308 | } |
| 309 | |
| 310 | /* Option: No Quotes |
| 311 | -----------------------------------------------*/ |
| 312 | .strong-view.default.no-quotes .testimonial-heading { |
| 313 | background: none; |
| 314 | padding-left: 0; |
| 315 | } |
| 316 | |
| 317 | /* Option: Dark Theme |
| 318 | -----------------------------------------------*/ |
| 319 | .strong-view.default.dark .testimonial { |
| 320 | border: 1px solid #777; |
| 321 | } |
| 322 | .strong-view.default.dark .testimonial-inner { |
| 323 | border: 1px solid #333; |
| 324 | } |
| 325 | .strong-view.default.dark .readmore-page { |
| 326 | border: 2px solid #777; |
| 327 | } |
| 328 | .strong-view.default.dark ul.simplePagerNav li a:hover { |
| 329 | background: #777; |
| 330 | color: #FFF; |
| 331 | } |
| 332 | .strong-view.default.dark ul.simplePagerNav li.currentPage a { |
| 333 | background: #555; |
| 334 | color: #FFF; |
| 335 | } |
| 336 |