Changeset 43892 for branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_posts-and-pages.scss
- Timestamp:
- 11/12/2018 11:19:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_posts-and-pages.scss
r43842 r43892 39 39 40 40 @include media(tablet) { 41 margin: calc(3 * #{ $size__spacing-unit}) calc(2 * (100vw / 12 ) )$size__spacing-unit;41 margin: calc(3 * #{ $size__spacing-unit}) $size__site-margins $size__spacing-unit; 42 42 } 43 43 } … … 101 101 102 102 @include media(tablet) { 103 margin: $size__spacing-unit calc(2 * (100vw / 12))calc(3 * #{$size__spacing-unit});104 max-width: calc(8 * (100vw / 12));105 } 106 107 @include media(tablet) { 108 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; 109 109 } 110 110 } … … 115 115 116 116 @include media(tablet) { 117 margin: $size__spacing-unit calc(2 * (100vw / 12));117 margin: $size__spacing-unit $size__site-margins; 118 118 } 119 119 … … 131 131 } 132 132 } 133 134 133 } 135 134 … … 142 141 .post-thumbnail-inner { 143 142 filter: grayscale(100%); 144 143 145 144 &:after { 146 background: rgba( #000, 0.35);145 background: rgba(0, 0, 0, 0.35); 147 146 content: ""; 148 147 display: block; … … 161 160 } 162 161 163 &:before, &:after { 162 &:before, 163 &:after, { 164 164 position: absolute; 165 165 display: block; … … 172 172 173 173 @include filter-duotone; 174 174 175 } 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; 175 187 } 176 188 } … … 209 221 > iframe[style] { 210 222 211 margin: 32px $size__spacing-unit!important;212 max-width: calc(100vw - (2 * #{ $size__spacing-unit }))!important;223 margin: 32px 0 !important; 224 max-width: 100% !important; 213 225 214 226 @include media(tablet) { 215 margin: 32px calc(2 * (100vw / 12)) !important; 216 max-width: calc(8 * (100vw / 12)) !important; 227 max-width: $size__site-tablet-content !important; 217 228 } 218 229 219 230 @include media(desktop) { 220 max-width: calc(6 * (100vw / 12)) !important; 221 } 231 max-width: $size__site-desktop-content !important; 232 } 233 } 234 235 // Page links 236 .page-links a { 237 margin: calc(0.5 * #{$size__spacing-unit}); 238 text-decoration: none; 222 239 } 223 240 … … 227 244 228 245 @include media(tablet) { 229 max-width: calc(8 * (100vw / 12));246 max-width: $size__site-tablet-content; 230 247 } 231 248 232 249 @include media(desktop) { 233 max-width: calc(6 * (100vw / 12));250 max-width: $size__site-desktop-content; 234 251 } 235 252 } … … 240 257 241 258 .author-bio { 242 243 259 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit; 244 260 261 @include postContentMaxWidth(); 262 245 263 @include media(tablet) { 246 margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12)); 247 max-width: calc(8 * (100vw / 12)); 248 } 249 250 @include media(tablet) { 251 max-width: calc(6 * (100vw / 12)); 264 margin: calc(3 * #{$size__spacing-unit}) $size__site-margins; 265 } 266 267 @include media(desktop) { 268 margin: calc(3 * #{$size__spacing-unit}) $size__site-margins; 252 269 } 253 270
Note: See TracChangeset
for help on using the changeset viewer.