content.css
249 lines
| 1 | /** |
| 2 | * Strong Testimonials Simple 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.simple { |
| 30 | display: block; |
| 31 | width: 100%; |
| 32 | } |
| 33 | .strong-view.simple div { |
| 34 | box-sizing: border-box; |
| 35 | } |
| 36 | .strong-view.simple .testimonial { |
| 37 | max-height: none; |
| 38 | max-width: none; |
| 39 | padding: 0; |
| 40 | width: 100%; |
| 41 | } |
| 42 | .strong-view.simple .testimonial.t-slide { |
| 43 | margin-top: 0; |
| 44 | margin-bottom: 0; |
| 45 | } |
| 46 | .strong-view.simple .testimonial-inner { |
| 47 | display: block; |
| 48 | width: 100%; |
| 49 | height: 100%; |
| 50 | } |
| 51 | .strong-view.simple .testimonial-image { |
| 52 | max-width: 100%; |
| 53 | } |
| 54 | .strong-view.simple .testimonial-field-before { |
| 55 | margin-right: 0.5em; |
| 56 | } |
| 57 | .strong-view.simple a.readmore, |
| 58 | .strong-view.simple a.readmore-toggle { |
| 59 | white-space: nowrap; |
| 60 | z-index: 100; |
| 61 | } |
| 62 | .strong-view.simple 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.simple .strong-content { |
| 81 | margin: 1em auto; |
| 82 | } |
| 83 | .strong-view.simple .testimonial { |
| 84 | margin: 1em auto; |
| 85 | text-align: left; |
| 86 | } |
| 87 | .strong-view.simple .testimonial:first-child { |
| 88 | margin-top: 0; |
| 89 | } |
| 90 | .strong-view.simple .testimonial:last-child { |
| 91 | margin-bottom: 0; |
| 92 | } |
| 93 | .strong-view.simple .testimonial-inner { |
| 94 | padding: 1em; |
| 95 | text-align: left; |
| 96 | } |
| 97 | .strong-view.simple .testimonial-heading { |
| 98 | margin-top: 0; |
| 99 | margin-bottom: 1em; |
| 100 | text-align: left; |
| 101 | } |
| 102 | .strong-view.simple .testimonial-content p:first-of-type { |
| 103 | margin-top: 0; |
| 104 | padding-top: 0; |
| 105 | } |
| 106 | .strong-view.simple .testimonial-content p:last-of-type { |
| 107 | margin-bottom: 0; |
| 108 | padding-bottom: 0; |
| 109 | } |
| 110 | .strong-view.simple .testimonial-image { |
| 111 | float: left; |
| 112 | margin-top: .25em; |
| 113 | margin-right: 1em; |
| 114 | margin-bottom: 1em; |
| 115 | } |
| 116 | .strong-view.simple .testimonial-image img { |
| 117 | background: none; |
| 118 | } |
| 119 | .strong-view.simple .testimonial-image a { |
| 120 | text-decoration: none; |
| 121 | box-shadow: none; |
| 122 | } |
| 123 | .strong-view.simple .testimonial-client { |
| 124 | clear: both; |
| 125 | margin-top: 1em; |
| 126 | } |
| 127 | .strong-view.simple .readmore { |
| 128 | margin-top: 1em; |
| 129 | } |
| 130 | .strong-view.simple .readmore-page { |
| 131 | padding: 1em; |
| 132 | text-align: center; |
| 133 | } |
| 134 | |
| 135 | /* Pagination |
| 136 | -----------------------------------------------*/ |
| 137 | /* Simple pagination |
| 138 | -----------------------------------------------*/ |
| 139 | .strong-view.simple.strong-pager { |
| 140 | display: none; |
| 141 | } |
| 142 | |
| 143 | .simplePagerList { |
| 144 | /* match .strong-content container */ |
| 145 | margin: 20px auto; |
| 146 | text-align: center; |
| 147 | } |
| 148 | |
| 149 | .strong-view ul.simplePagerNav { |
| 150 | margin: 0 auto; |
| 151 | padding: 0; |
| 152 | display: inline-block; |
| 153 | } |
| 154 | .strong-view ul.simplePagerNav li { |
| 155 | display: inline; |
| 156 | list-style: none; |
| 157 | margin: 0; |
| 158 | padding: 0; |
| 159 | } |
| 160 | .strong-view ul.simplePagerNav li a { |
| 161 | margin: 0 0.2em; |
| 162 | padding: 0.1em 0.3em; |
| 163 | outline: none; |
| 164 | text-decoration: none; |
| 165 | transition: background 0.2s ease; |
| 166 | } |
| 167 | .strong-view ul.simplePagerNav li a:hover { |
| 168 | background: #BBB; |
| 169 | color: #FFF; |
| 170 | } |
| 171 | .strong-view ul.simplePagerNav li.currentPage a { |
| 172 | text-decoration: none; |
| 173 | background: #999; |
| 174 | color: #FFF; |
| 175 | } |
| 176 | |
| 177 | .strong-view.rtl ul.simplePagerNav li { |
| 178 | float: right; |
| 179 | } |
| 180 | |
| 181 | /* Standard pagination |
| 182 | -----------------------------------------------*/ |
| 183 | .strong-view .nav-links { |
| 184 | margin: 20px auto; |
| 185 | text-align: center; |
| 186 | } |
| 187 | .strong-view .nav-links a, .strong-view .nav-links span { |
| 188 | display: inline-block; |
| 189 | line-height: 1.5; |
| 190 | margin: 0 0.2em; |
| 191 | padding: 0.1em 0.3em; |
| 192 | transition: background 0.2s ease; |
| 193 | } |
| 194 | .strong-view .nav-links a.current, .strong-view .nav-links span.current { |
| 195 | background: #999; |
| 196 | color: #FFF; |
| 197 | } |
| 198 | .strong-view .nav-links a { |
| 199 | outline: none; |
| 200 | text-decoration: none; |
| 201 | } |
| 202 | .strong-view .nav-links a:hover, |
| 203 | .strong-view .nav-links a.prev:hover, |
| 204 | .strong-view .nav-links a.next:hover, |
| 205 | .strong-view .nav-links span:hover { |
| 206 | background: #BBB; |
| 207 | color: #FFF; |
| 208 | } |
| 209 | |
| 210 | /* Slideshow |
| 211 | -----------------------------------------------*/ |
| 212 | .strong-view.simple.slider-container .strong-content { |
| 213 | margin: 0 auto; |
| 214 | } |
| 215 | .strong-view.simple.slider-container .testimonial:not(:first-child) { |
| 216 | display: none; |
| 217 | } |
| 218 | .strong-view.simple.nav-position-inside .testimonial-inner { |
| 219 | padding-bottom: 48px; |
| 220 | } |
| 221 | .strong-view.simple.controls-type-sides .testimonial-inner { |
| 222 | padding-left: 50px; |
| 223 | padding-right: 50px; |
| 224 | } |
| 225 | |
| 226 | /* Responsive |
| 227 | -----------------------------------------------*/ |
| 228 | @media only screen and (max-width: 320px) { |
| 229 | .strong-view.simple .testimonial-image { |
| 230 | float: none; |
| 231 | margin-left: auto; |
| 232 | margin-right: auto; |
| 233 | } |
| 234 | } |
| 235 | /* RTL |
| 236 | -----------------------------------------------*/ |
| 237 | .strong-view.simple.rtl .testimonial, |
| 238 | .strong-view.simple.rtl .testimonial-inner, |
| 239 | .strong-view.simple.rtl .testimonial-heading { |
| 240 | text-align: right; |
| 241 | } |
| 242 | .strong-view.simple.rtl .testimonial-image { |
| 243 | float: right; |
| 244 | margin-left: 1em; |
| 245 | } |
| 246 | .strong-view.simple.rtl .testimonial-client { |
| 247 | text-align: left; |
| 248 | } |
| 249 |