Changeset 45132
- Timestamp:
- 04/07/2019 06:17:26 AM (6 years ago)
- Location:
- trunk/src/wp-content/themes/twentynineteen
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/print.scss
r44774 r45132 18 18 @media print { 19 19 20 20 /* Margins */ 21 21 22 23 24 22 @page { 23 margin: 2cm; 24 } 25 25 26 27 28 26 .entry { 27 margin-top: 1em; 28 } 29 29 30 31 32 30 .entry .entry-header, .site-footer .site-info { 31 margin: 0; 32 } 33 33 34 34 /* Fonts */ 35 35 36 37 38 39 40 41 36 body { 37 font: 13pt Georgia, "Times New Roman", Times, serif; 38 line-height: 1.3; 39 background: #fff !important; 40 color: #000; 41 } 42 42 43 44 45 43 h1 { 44 font-size: 24pt; 45 } 46 46 47 h2, 48 h3, 49 h4, 50 51 52 53 54 55 56 57 47 h2, 48 h3, 49 h4, 50 .has-regular-font-size, 51 .has-large-font-size, 52 h2.author-title, 53 p.author-bio, 54 .comments-title, h3 { 55 font-size: 14pt; 56 margin-top: 25px; 57 } 58 58 59 59 /* Page breaks */ 60 60 61 62 63 61 a { 62 page-break-inside: avoid 63 } 64 64 65 66 67 65 blockquote { 66 page-break-inside: avoid; 67 } 68 68 69 h1, 70 h2, 71 h3, 72 h4, 73 h5, 74 75 76 77 69 h1, 70 h2, 71 h3, 72 h4, 73 h5, 74 h6 { 75 page-break-after: avoid; 76 page-break-inside: avoid 77 } 78 78 79 80 81 82 79 img { 80 page-break-inside: avoid; 81 page-break-after: avoid; 82 } 83 83 84 85 86 84 table, pre { 85 page-break-inside: avoid; 86 } 87 87 88 89 90 88 ul, ol, dl { 89 page-break-before: avoid; 90 } 91 91 92 92 /* Links */ 93 93 94 95 96 97 98 99 94 a:link, a:visited, a { 95 background: transparent; 96 font-weight: bold; 97 text-decoration: underline; 98 text-align: left; 99 } 100 100 101 102 103 101 a { 102 page-break-inside: avoid; 103 } 104 104 105 106 107 105 a[href^=http]:after { 106 content: " < " attr(href) "> "; 107 } 108 108 109 110 111 109 a:after > img { 110 content: ""; 111 } 112 112 113 114 115 113 article a[href^="#"]:after { 114 content: ""; 115 } 116 116 117 118 119 117 a:not(:local-link):after { 118 content: " < " attr(href) "> "; 119 } 120 120 121 122 123 124 125 .site-branding-container:before, 126 .entry .entry-title:before, 127 .entry-footer, 128 .author-description:before, 129 130 131 132 133 134 135 121 /* Visibility */ 122 .main-navigation, 123 .site-title + .main-navigation, 124 .social-navigation, 125 .site-branding-container:before, 126 .entry .entry-title:before, 127 .entry-footer, 128 .author-description:before, 129 .post-navigation, 130 .widget-area, 131 .comment-form-flex, 132 .comment-reply, 133 .comment .comment-metadata .edit-link { 134 display: none; 135 } 136 136 137 138 139 140 141 137 .entry .entry-content .wp-block-button .wp-block-button__link, 138 .entry .entry-content .button { 139 color: #000; 140 background: none; 141 } 142 142 143 /* Site Header (With Featured Image) */ 144 .site-header.featured-image { 145 min-height: 0; 146 147 .main-navigation a, 148 .main-navigation a + svg, 149 .social-navigation a, 150 .site-title a, 151 .site-featured-image a, 152 .site-branding .site-title, 153 .site-branding .site-description, 154 .main-navigation a:after, 155 .main-navigation .main-menu > li.menu-item-has-children:after, 156 .main-navigation li, 157 .social-navigation li, 158 .entry-meta, 159 .entry-title, 160 &#masthead .site-title a { 161 color: #000; 162 text-shadow: none; 163 } 143 /* Site Header (With Featured Image) */ 144 .site-header.featured-image { 145 min-height: 0; 164 146 165 .site-featured-image .entry-header, 166 .site-branding-container { 167 margin-top: 0; 168 margin-bottom: 0; 169 } 147 .main-navigation a, 148 .main-navigation a + svg, 149 .social-navigation a, 150 .site-title a, 151 .site-featured-image a, 152 .site-branding .site-title, 153 .site-branding .site-description, 154 .main-navigation a:after, 155 .main-navigation .main-menu > li.menu-item-has-children:after, 156 .main-navigation li, 157 .social-navigation li, 158 .entry-meta, 159 .entry-title, 160 &#masthead .site-title a { 161 color: #000; 162 text-shadow: none; 163 } 170 164 171 .site-featured-image .post-thumbnail img { 172 position: relative; 173 height: initial; 174 width: initial; 175 object-fit: none; 176 min-width: 0; 177 min-height: 0; 178 max-width: 100%; 179 margin-top: 1rem; 180 } 181 } 182 183 /* Remove image filters from featured image */ 184 .image-filters-enabled { 165 .site-featured-image .entry-header, 166 .site-branding-container { 167 margin-top: 0; 168 margin-bottom: 0; 169 } 185 170 186 *:after { 187 display: none !important; 188 } 171 .site-featured-image .post-thumbnail img { 172 position: relative; 173 height: initial; 174 width: initial; 175 object-fit: none; 176 min-width: 0; 177 min-height: 0; 178 max-width: 100%; 179 margin-top: 1rem; 180 } 181 } 189 182 190 .site-header.featured-image .site-featured-image:before { 191 display: none; 192 } 183 /* Remove image filters from featured image */ 184 .image-filters-enabled { 193 185 194 .site-header.featured-image .site-featured-image .post-thumbnail img { 195 filter: none; 196 } 197 } 186 *:after { 187 display: none !important; 188 } 189 190 .site-header.featured-image .site-featured-image:before { 191 display: none; 192 } 193 194 .site-header.featured-image .site-featured-image .post-thumbnail img { 195 filter: none; 196 } 197 } 198 198 } -
trunk/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
r44818 r45132 514 514 515 515 .aligncenter { 516 516 517 517 @include postContentMaxWidth(); 518 518 … … 735 735 font-size: $font__size-md; 736 736 white-space: pre-wrap; 737 737 word-break: break-word; 738 738 } 739 739 } -
trunk/src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss
r44650 r45132 83 83 @mixin box-shadow( $size ) { 84 84 box-shadow: 85 0 0 0 $size $color__text-light inset, 86 0 0 0 ($size + 1px) $color__text-light inset, 87 0 0 1px 0 rgba( $color__text-light, 0.7 ); 85 0 0 0 $size $color__text-light inset, // Original border. 86 0 0 0 ($size + 1px) $color__text-light inset, // Antialiasing, inner edge. 87 0 0 1px 0 rgba( $color__text-light, 0.7 ); // Antialiasing, outer edge. 88 88 } 89 89 -
trunk/src/wp-content/themes/twentynineteen/sass/navigation/_menu-main-navigation.scss
r44376 r45132 27 27 color: inherit; 28 28 cursor: pointer; 29 transition: background 250ms ease-in-out, 30 transform 150ms ease; 29 transition: 30 background 250ms ease-in-out, 31 transform 150ms ease; 31 32 -webkit-appearance: none; 32 33 -moz-appearance: none; … … 448 449 z-index: 100000; /* Make sure appears above mobile admin bar */ 449 450 width: 100vw; 450 height: 451 height: 100vh; 451 452 max-width: 100vw; 452 453 transform: translateX(+100%); -
trunk/src/wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss
r44368 r45132 243 243 opacity: .7; 244 244 245 245 /* When image filters are active, a blue overlay is added. */ 246 246 .image-filters-enabled & { 247 247 background: $color__link; … … 257 257 258 258 /* Fourth layer: overlay. */ 259 259 .image-filters-enabled & .site-branding-container:after { 260 260 background: rgba(0, 0, 0, 0.35); 261 261 mix-blend-mode: overlay;
Note: See TracChangeset
for help on using the changeset viewer.