content.css
225 lines
| 1 | /** |
| 2 | * Strong Testimonials Default Widget 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-small-widget { |
| 30 | display: block; |
| 31 | width: 100%; |
| 32 | } |
| 33 | .strong-view.wpmtst-small-widget div { |
| 34 | box-sizing: border-box; |
| 35 | } |
| 36 | .strong-view.wpmtst-small-widget .wpmtst-testimonial { |
| 37 | max-height: none; |
| 38 | max-width: none; |
| 39 | padding: 0; |
| 40 | width: 100%; |
| 41 | } |
| 42 | .strong-view.wpmtst-small-widget .wpmtst-testimonial.t-slide { |
| 43 | margin-top: 0; |
| 44 | margin-bottom: 0; |
| 45 | } |
| 46 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-inner { |
| 47 | display: block; |
| 48 | width: 100%; |
| 49 | height: 100%; |
| 50 | } |
| 51 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-image { |
| 52 | max-width: 50%; |
| 53 | } |
| 54 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-field-before { |
| 55 | margin-right: 0.5em; |
| 56 | } |
| 57 | .strong-view.wpmtst-small-widget a.readmore, |
| 58 | .strong-view.wpmtst-small-widget a.readmore-toggle { |
| 59 | white-space: nowrap; |
| 60 | z-index: 100; |
| 61 | } |
| 62 | .strong-view.wpmtst-small-widget 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-small-widget { |
| 81 | margin-bottom: 1em; |
| 82 | } |
| 83 | .strong-view.wpmtst-small-widget .wpmtst-testimonial { |
| 84 | margin-bottom: 1em; |
| 85 | } |
| 86 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-inner { |
| 87 | padding: 10px; |
| 88 | } |
| 89 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-inner > *:not(:nth-last-child(2)):not(:last-child) { |
| 90 | margin-bottom: 5px; |
| 91 | } |
| 92 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-heading { |
| 93 | margin-bottom: 1em; |
| 94 | } |
| 95 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-content p:first-of-type { |
| 96 | margin-top: 0; |
| 97 | padding-top: 0; |
| 98 | } |
| 99 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-content p:last-of-type { |
| 100 | margin-bottom: 0; |
| 101 | padding-bottom: 0; |
| 102 | } |
| 103 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-image { |
| 104 | float: left; |
| 105 | margin-top: 0.25em; |
| 106 | margin-right: 1em; |
| 107 | margin-bottom: .5em; |
| 108 | } |
| 109 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-image .initials { |
| 110 | margin-top: 0.25em; |
| 111 | margin-right: 1em; |
| 112 | margin-bottom: .5em; |
| 113 | text-align: center; |
| 114 | font-size: 42px; |
| 115 | font-weight: bold; |
| 116 | background-color: #f9f9f9; |
| 117 | border-radius: 3px; |
| 118 | display: table-cell; |
| 119 | vertical-align: middle; |
| 120 | } |
| 121 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-field { |
| 122 | clear: both; |
| 123 | } |
| 124 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-name { |
| 125 | font-weight: 700; |
| 126 | } |
| 127 | .strong-view.wpmtst-small-widget .readmore { |
| 128 | margin-top: 0.5em; |
| 129 | margin-bottom: 0.5em; |
| 130 | } |
| 131 | .strong-view.wpmtst-small-widget .readmore-page { |
| 132 | border: 1px solid #E6E6E6; |
| 133 | padding: 0.5em; |
| 134 | text-align: center; |
| 135 | } |
| 136 | |
| 137 | /* Slideshow |
| 138 | -----------------------------------------------*/ |
| 139 | .strong-view.wpmtst-small-widget.slider-container .strong-content { |
| 140 | margin: 0 auto; |
| 141 | } |
| 142 | .strong-view.wpmtst-small-widget.slider-container .wpmtst-testimonial:not(:first-child) { |
| 143 | display: none; |
| 144 | } |
| 145 | .strong-view.wpmtst-small-widget.nav-position-inside .wpmtst-testimonial-inner { |
| 146 | padding-bottom: 48px; |
| 147 | } |
| 148 | .strong-view.wpmtst-small-widget.controls-type-sides .wpmtst-testimonial-inner { |
| 149 | padding-left: 50px; |
| 150 | padding-right: 50px; |
| 151 | } |
| 152 | |
| 153 | /* Responsive |
| 154 | -----------------------------------------------*/ |
| 155 | @media only screen and (max-width: 320px) { |
| 156 | .strong-view.wpmtst-small-widget .wpmtst-testimonial-image { |
| 157 | float: none; |
| 158 | margin-left: auto; |
| 159 | margin-right: auto; |
| 160 | } |
| 161 | } |
| 162 | /* RTL |
| 163 | -----------------------------------------------*/ |
| 164 | .strong-view.wpmtst-small-widget.rtl .wpmtst-testimonial, |
| 165 | .strong-view.wpmtst-small-widget.rtl .wpmtst-testimonial-inner, |
| 166 | .strong-view.wpmtst-small-widget.rtl .wpmtst-testimonial-heading { |
| 167 | text-align: right; |
| 168 | } |
| 169 | .strong-view.wpmtst-small-widget.rtl .wpmtst-testimonial-image { |
| 170 | float: right; |
| 171 | margin-left: 1em; |
| 172 | } |
| 173 | .strong-view.wpmtst-small-widget.rtl .wpmtst-testimonial-field { |
| 174 | text-align: left; |
| 175 | } |
| 176 | |
| 177 | /* Option: Image Right |
| 178 | -----------------------------------------------*/ |
| 179 | .strong-view.wpmtst-small-widget.image-right .wpmtst-testimonial-image { |
| 180 | float: right; |
| 181 | margin-left: 1em; |
| 182 | margin-bottom: 0.1em; |
| 183 | } |
| 184 | |
| 185 | @media only screen and (max-width: 480px) and (orientation: portrait) { |
| 186 | .strong-view.wpmtst-small-widget.image-right .strong-content .wpmtst-testimonial-image { |
| 187 | float: none; |
| 188 | } |
| 189 | } |
| 190 | .strong-view.wpmtst-small-widget.image-right.rtl .wpmtst-testimonial, |
| 191 | .strong-view.wpmtst-small-widget.image-right.rtl .wpmtst-testimonial-inner, |
| 192 | .strong-view.wpmtst-small-widget.image-right.rtl .wpmtst-testimonial-heading { |
| 193 | text-align: right; |
| 194 | } |
| 195 | .strong-view.wpmtst-small-widget.image-right.rtl .wpmtst-testimonial-image { |
| 196 | float: left; |
| 197 | margin-left: 0; |
| 198 | margin-right: 1em; |
| 199 | } |
| 200 | .strong-view.wpmtst-small-widget .disabled { |
| 201 | display : none!important; |
| 202 | } |
| 203 | |
| 204 | .wpmslider-controls.disabled { |
| 205 | display: block !important; |
| 206 | } |
| 207 | |
| 208 | /* Compatibility with metaslider pro layers display |
| 209 | ----------------------------------------------------*/ |
| 210 | |
| 211 | .msHtmlOverlay .layer .disabled { |
| 212 | display: block !important; |
| 213 | } |
| 214 | |
| 215 | /* Readmore Inline |
| 216 | ----------------------------------------------------*/ |
| 217 | .readmore-excerpt-inline, |
| 218 | .readmore-content-inline:not([hidden]), |
| 219 | .readmore-content-inline:not([hidden]) p { |
| 220 | display: inline; |
| 221 | } |
| 222 | |
| 223 | .wpmtst-inline-readme { |
| 224 | margin-left: 5px; |
| 225 | } |