Changeset 44149 for trunk/src/wp-content/themes/twentynineteen/sass/site/primary/_posts-and-pages.scss
- Timestamp:
- 12/14/2018 02:32:33 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentynineteen/sass/site/primary/_posts-and-pages.scss
r43808 r44149 25 25 } 26 26 27 . hentry {27 .entry { 28 28 29 29 margin-top: calc(6 * #{$size__spacing-unit}); … … 39 39 40 40 @include media(tablet) { 41 margin: calc(3 * #{ $size__spacing-unit}) calc(2 * (100vw / 12 ) ) $size__spacing-unit; 42 43 .featured-image & { 44 margin-bottom: 0; 45 } 41 margin: calc(3 * #{ $size__spacing-unit}) $size__site-margins $size__spacing-unit; 46 42 } 47 43 } … … 70 66 71 67 margin-right: $size__spacing-unit; 68 display: inline-block; 72 69 73 70 &:last-child { … … 96 93 97 94 .entry-meta { 98 99 95 margin: $size__spacing-unit 0; 100 101 &.has-discussion .comment-count {102 103 @include media(desktop) {104 float: right;105 position: relative;106 }107 108 .discussion-avatar-list {109 display: none;110 111 @include media(desktop) {112 bottom: 100%;113 display: block;114 position: absolute;115 }116 }117 }118 96 } 119 97 … … 123 101 124 102 @include media(tablet) { 125 margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12));126 max-width: calc(8 * (100vw / 12));127 } 128 129 @include media(tablet) { 130 max-width: calc(6 * (100vw / 12));103 margin: $size__spacing-unit $size__site-margins calc(3 * #{$size__spacing-unit}); 104 max-width: $size__site-tablet-content; 105 } 106 107 @include media(tablet) { 108 max-width: $size__site-desktop-content; 131 109 } 132 110 } … … 137 115 138 116 @include media(tablet) { 139 margin: $size__spacing-unit calc(2 * (100vw / 12));117 margin: $size__spacing-unit $size__site-margins; 140 118 } 141 119 … … 153 131 } 154 132 } 155 156 133 } 157 134 … … 163 140 164 141 .post-thumbnail-inner { 165 @include filter-grayscale; 166 } 167 168 &:before, &:after { 142 filter: grayscale(100%); 143 144 &:after { 145 background: rgba(0, 0, 0, 0.35); 146 content: ""; 147 display: block; 148 height: 100%; 149 opacity: .5; 150 pointer-events: none; 151 position: absolute; 152 top: 0; 153 width: 100%; 154 z-index: 4; 155 156 @supports (mix-blend-mode: multiply) { 157 display: none; 158 } 159 } 160 } 161 162 &:before, 163 &:after, { 169 164 position: absolute; 170 165 display: block; … … 173 168 top: 0; left: 0; 174 169 content: "\020"; 175 display: block;176 170 pointer-events: none; 177 171 } … … 180 174 181 175 } 182 176 } 177 178 .entry-content, 179 .entry-summary { 180 max-width: calc(100% - (2 * #{ $size__spacing-unit })); 181 margin: 0 $size__spacing-unit; 182 183 @include media(tablet) { 184 max-width: 80%; 185 margin: 0 10%; 186 padding: 0 60px; 187 } 183 188 } 184 189 185 190 .entry-content { 191 192 p { 193 word-wrap: break-word; 194 } 186 195 187 196 .more-link { … … 191 200 192 201 &:after { 193 content: " »";202 content: "\02192"; 194 203 margin-left: 0.5em; 195 204 } … … 204 213 text-decoration: underline; 205 214 215 &.button, 206 216 &:hover { 207 217 text-decoration: none; 218 } 219 220 &.button { 221 display: inline-block; 222 } 223 224 &.button:hover { 225 background: $color__background-button-hover; 226 color: $color__background-body; 227 cursor: pointer; 208 228 } 209 229 } … … 212 232 > iframe[style] { 213 233 214 margin: 32px $size__spacing-unit!important;215 max-width: calc(100vw - (2 * #{ $size__spacing-unit }))!important;234 margin: 32px 0 !important; 235 max-width: 100% !important; 216 236 217 237 @include media(tablet) { 218 margin: 32px calc(2 * (100vw / 12)) !important; 219 max-width: calc(8 * (100vw / 12)) !important; 238 max-width: $size__site-tablet-content !important; 220 239 } 221 240 222 241 @include media(desktop) { 223 max-width: calc(6 * (100vw / 12)) !important; 224 } 242 max-width: $size__site-desktop-content !important; 243 } 244 } 245 246 // Page links 247 .page-links a { 248 margin: calc(0.5 * #{$size__spacing-unit}); 249 text-decoration: none; 225 250 } 226 251 … … 230 255 231 256 @include media(tablet) { 232 max-width: calc(8 * (100vw / 12));257 max-width: $size__site-tablet-content; 233 258 } 234 259 235 260 @include media(desktop) { 236 max-width: calc(6 * (100vw / 12)); 237 } 238 } 239 } 240 } 261 max-width: $size__site-desktop-content; 262 } 263 } 264 } 265 } 266 267 /* Author description */ 268 269 .author-bio { 270 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit; 271 272 @include postContentMaxWidth(); 273 274 @include media(tablet) { 275 margin: calc(3 * #{$size__spacing-unit}) $size__site-margins; 276 } 277 278 @include media(desktop) { 279 margin: calc(3 * #{$size__spacing-unit}) $size__site-margins; 280 } 281 282 .author-title { 283 @include post-section-dash; 284 display: inline; 285 } 286 287 .author-description { 288 289 display: inline; 290 color: $color__text-light; 291 font-size: $font__size-md; 292 line-height: $font__line-height-heading; 293 294 .author-link { 295 display: inline-block; 296 297 &:hover { 298 color: $color__link-hover; 299 text-decoration: none; 300 } 301 } 302 } 303 }
Note: See TracChangeset
for help on using the changeset viewer.