Changeset 224757 in webkit
- Timestamp:
- Nov 13, 2017 9:40:31 AM (6 years ago)
- Location:
- trunk/Websites/webkit.org
- Files:
-
- 5 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Websites/webkit.org/ChangeLog
r224219 r224757 1 2017-11-13 Jon Davis <jond@apple.com> 2 3 Add a new landing page design and site-wide design detail updates for webkit.org 4 https://bugs.webkit.org/show_bug.cgi?id=179558 5 6 Reviewed by Alexey Proskuryakov. 7 8 * wp-content/themes/webkit/404.php: Removed unnecessary prefixed CSS. 9 * wp-content/themes/webkit/444.php: Removed unnecessary prefixed CSS. 10 * wp-content/themes/webkit/css-status.php: Removed unnecessary prefixed CSS. 11 * wp-content/themes/webkit/footer.php: Added new page wrapper container. 12 * wp-content/themes/webkit/front-header.php: Redesigned landing hero. 13 * wp-content/themes/webkit/functions.php: Added support for configurable non-breaking words. 14 * wp-content/themes/webkit/header.php: Added viewport-fit, changed web font, changed logo title. 15 * wp-content/themes/webkit/images/chevron.svg: Added. 16 * wp-content/themes/webkit/images/circular.svg: Added. 17 * wp-content/themes/webkit/images/compass.svg: Added. 18 * wp-content/themes/webkit/images/download-white.svg: Added. 19 * wp-content/themes/webkit/images/template.svg: Added. 20 * wp-content/themes/webkit/loop.php: Updated "read more" link presentation. 21 * wp-content/themes/webkit/nightly-start.php: Adjusted header background colors. 22 * wp-content/themes/webkit/nightly-survey.php: Adjusted header background colors. 23 * wp-content/themes/webkit/nightly.php: Adjusted header background colors. 24 * wp-content/themes/webkit/page.php: Page clean up. 25 * wp-content/themes/webkit/single.php: Updated "read more" link presentation. 26 * wp-content/themes/webkit/status.php: Removed unnecessary prefixed CSS, improved page title. 27 * wp-content/themes/webkit/style.css: Redesigned. 28 (html): 29 (body): 30 (strong): 31 (em): 32 (code): 33 (main): 34 (h1,): 35 (input[type=text]): 36 (input[type=submit]): 37 (header): 38 (.home header): 39 (@supports ( -webkit-backdrop-filter: blur(10px) )): 40 (.sub-menu-layer): 41 (.nextrouter .link,): 42 (.pagination): 43 (.pagination::after): 44 (.pagination .page-numbers): 45 (.pagination .dots,): 46 (.pagination .next-button): 47 (.nextrouter): 48 (.nextrouter:hover): 49 (.nextrouter.previous): 50 (.nextrouter.previous:hover): 51 (.nextrouter .bodycopy): 52 (.nextrouter a): 53 (.nextrouter a:hover): 54 (.nextrouter-copy): 55 (.nextrouter .label): 56 (.nextrouter .title): 57 (.nextrouter .link): 58 (.nextrouter a:hover .link): 59 (footer): 60 (.tiles): 61 (.tile): 62 (.third-tile): 63 (.two-thirds-tile): 64 (.tile .background-image): 65 (.tile .background-image.has-featured-image): 66 (.tile .featured-image): 67 (.tile:not(.has-post-thumbnail) .background-image,): 68 (.tile h1): 69 (.tile h2): 70 (.tile .summary,): 71 (pre): 72 (article): 73 (article::after): 74 (article h1): 75 (article h2): 76 (article h3): 77 (article h4): 78 (article h5): 79 (article h6): 80 (article h2 + h3,): 81 (article figcaption): 82 (article figcaption::before): 83 (.table-of-contents): 84 (article .table-of-contents label): 85 (.table-of-contents ul): 86 (.table-of-contents ul li): 87 (.table-of-contents ul li > ul): 88 (.site-logo): 89 (footer nav): 90 (header nav li): 91 (header nav a,): 92 (header .menu-item-has-children .label-toggle::after): 93 (header .menu-item): 94 (@media only screen and (max-width: 1180px)): 95 (article .byline): 96 (@media only screen and (max-width: 920px)): 97 (.main-menu.label-toggle): 98 (header .menu): 99 (header nav a): 100 (header .menu-main-menu-container > ul > li): 101 (header .sub-menu-layer): 102 (@media only screen and (max-width: 690px)): 103 (.third-tile,): 104 (@media only screen and (max-width: 600px)): 105 (.table-of-contents label:after): 106 (@media only screen and (max-width: 415px)): 107 (@media only screen and (max-height: 415px)): 108 (@supports(padding:max(0px))): 109 (header .menu .menu-item > .sub-menu): 110 (.sub-menu-layer .menu-item:first-child,): 111 (#template): 112 (#compass): 113 (.tile .featured-image,): Deleted. 114 (.site-logo .tagline): Deleted. 115 (.timeline): Deleted. 116 (.timeline:after): Deleted. 117 (.timeline *): Deleted. 118 (.timeline:before): Deleted. 119 (.timeline > li): Deleted. 120 (.timeline > li:before): Deleted. 121 (.timeline .content): Deleted. 122 (.timeline figure): Deleted. 123 (.timeline .time): Deleted. 124 (.timeline h2, .timeline h3): Deleted. 125 (.timeline .time::before): Deleted. 126 (.timeline img): Deleted. 127 (@media (min-width: 900px)): Deleted. 128 (.timeline > li.force-clear): Deleted. 129 (.timeline > li:nth-child(odd)): Deleted. 130 (.timeline > li:nth-child(even)): Deleted. 131 (.timeline > li:nth-child(2),): Deleted. 132 (.timeline li .time): Deleted. 133 (.timeline li:nth-child(odd) .time): Deleted. 134 (.timeline li:nth-child(even) .time): Deleted. 135 (.timeline li:nth-child(even) .time::before): Deleted. 136 (.timeline > li:nth-child(even):before): Deleted. 137 (@media (max-width: 900px)): Deleted. 138 (.timeline li .time::before): Deleted. 139 (.hero .logo,): Deleted. 140 (.home .hero): Deleted. 141 (.home.admin-bar .hero): Deleted. 142 (@media only screen and (max-width: 320px)): Deleted. 143 * wp-content/themes/webkit/widgets/post.php: Updated "read more" link presentation. 144 1 145 2017-10-30 Tim Horton <timothy_horton@apple.com> 2 146 -
trunk/Websites/webkit.org/wp-content/themes/webkit/404.php
r192832 r224757 41 41 input[type=submit] { 42 42 background-color: #1d9bd9; 43 background: -webkit-linear-gradient(#3baee7, #0088cc);44 43 background: linear-gradient(#3baee7, #0088cc); 45 44 border-radius: 4px; -
trunk/Websites/webkit.org/wp-content/themes/webkit/444.php
r192832 r224757 40 40 input[type=submit] { 41 41 background-color: #1d9bd9; 42 background: -webkit-linear-gradient(#3baee7, #0088cc);43 42 background: linear-gradient(#3baee7, #0088cc); 44 43 border-radius: 4px; -
trunk/Websites/webkit.org/wp-content/themes/webkit/css-status.php
r215154 r224757 134 134 overflow-y: hidden; 135 135 cursor: pointer; 136 -webkit-transition: background-color 0.3s ease-in;137 -moz-transition: background-color 0.3s ease-in;138 136 transition: background-color 0.3s ease-in; 139 137 } … … 219 217 right: 0; 220 218 top: 0.5rem; 221 -webkit-transition: transform 0.3s ease-out;222 -moz-transition: transform 0.3s ease-out;223 219 transition: transform 0.3s ease-out; 224 220 } -
trunk/Websites/webkit.org/wp-content/themes/webkit/footer.php
r192832 r224757 1 </main><!-- #content --> 1 </div><!--.page-width--> 2 </main><!-- #content --> 2 3 3 <footer class="page-width"> 4 <hr> 5 <nav id="footer-nav" aria-label="Footer menu"><?php wp_nav_menu( array('theme_location' => 'footer-nav') ); ?></nav> 6 </footer> 4 <footer> 5 <div class="page-width"> 6 <nav id="footer-nav" aria-label="Footer menu"><?php wp_nav_menu( array('theme_location' => 'footer-nav') ); ?></nav> 7 </div> 8 </footer> 7 9 8 10 <?php if ( is_front_page() ): ?></div> <!-- .page-layer --><?php endif; ?> -
trunk/Websites/webkit.org/wp-content/themes/webkit/front-header.php
r192832 r224757 1 1 <style> 2 body.home{3 background-color: white;2 header { 3 position: absolute; 4 4 } 5 5 6 6 .home .site-logo { 7 opacity: 0; 8 transition: opacity 0.5s ease-out; 7 color: #ffffff; 9 8 } 10 11 .home .page-layer { 12 background-color: #f7f7f7; 13 border-top: 1px solid #e7e7e7; 9 10 .content-scroll #menu-main-menu > li > a:not(:hover), 11 .content-scroll .site-logo { 12 color: #333333; 13 } 14 15 .page-layer { 16 overflow: hidden; 17 } 18 19 .hero { 14 20 position: relative; 21 overflow: hidden; 22 max-width: 100vw; 23 box-sizing: border-box; 24 padding: 0 0 6rem; 25 color: #ffffff; 26 background-color: #00253D; 15 27 z-index: 1; 28 top: -30rem; 29 padding-top: 45rem; 30 margin-bottom: -30rem; 16 31 } 17 18 .admin-bar header { 19 top: 32px; 32 33 .hero h1 { 34 font-size: 4.8rem; 35 font-weight: 500; 36 letter-spacing: 0.006rem; 37 text-align: center; 38 line-height: 1.04167; 20 39 } 21 22 .home header { 23 -webkit-backdrop-filter: none; 24 border: none; 25 background: none; 26 position: fixed; 27 40 41 .hero p { 42 font-size: 2.2rem; 43 line-height: 1.45455; 44 letter-spacing: 0.016em; 45 font-weight: 300; 46 text-align: center; 47 margin-top: 1.65rem; 28 48 } 29 49 30 50 .hero a { 31 text-decoration: none; 32 z-index: 5; 51 color: #0af; 33 52 } 34 53 35 .hero { 36 height: 800px; 37 margin-bottom: 3rem; 38 overflow: hidden; 39 background: none; 40 box-sizing: border-box; 41 42 position: fixed; 43 top: 0; 44 left: 0; 45 width: 100vw; 46 47 background-image: radial-gradient(65vw at 50% 40%, white 50%, rgba(255, 255, 255, 0.00) 100%), linear-gradient(180deg, rgb(255, 255, 255) 10%, rgb(232, 232, 232) 32%); 48 background-position: 0% 0%; 54 #fade { 55 position: absolute; 56 width: 100%; 57 height: 1261px; 58 background-image: radial-gradient(ellipse closest-corner at center center,hsl(198, 100%, 20%) 0%,hsla(204, 100%, 20%,0) 100%); 59 z-index: 4; 60 transform: translateY(-45rem); 61 } 62 63 #template { 64 opacity: 0.1; 65 position: absolute; 66 top: 0px; 67 width: 100%; 68 height: 195.5rem; 69 background-repeat: no-repeat; 70 background-position: 50% 49.5%; 71 background-size: 101.5%; 72 z-index: 3; 73 transform: translateY(-40rem); } 74 75 #compass { 76 position: absolute; 77 top: 0px; 78 width: 100%; 79 height: 1950px; 80 background-repeat: no-repeat; 81 background-position: 50% 50%; 82 background-size: 98%; 83 opacity: 0.3; 84 -webkit-animation: bgspin 360s ease-out; 85 animation: bgspin 360s ease-out; 86 z-index: 2; 87 will-change: transform; 49 88 } 50 89 51 .admin-bar .hero.spacing { 52 margin-top: -32px; 53 } 54 55 .hero.spacing { 56 position: relative; 57 height: auto; 58 visibility: hidden; 59 } 60 61 .hero .logo { 62 text-align: left; 63 margin: 3rem auto 0; 64 padding-left: 12rem; 65 padding-bottom: 3px; 66 box-sizing: border-box; 67 68 line-height: 10rem; 69 font-size: 6rem; 70 font-weight: 200; 71 color: #444; 72 73 background-repeat: no-repeat; 74 background-size: 10rem; 75 background-position: left 1rem; 76 } 77 78 .admin-bar .hero .logo { 79 margin-top: 5rem; 80 } 81 82 .hero .tagline { 83 text-align: left; 84 display: block; 85 font-size: 3rem; 86 font-weight: 200; 87 line-height: 1.125; 88 margin-top: -2.5rem; 89 margin-bottom: 2rem; 90 color: #555; 91 } 92 93 .intro .column { 94 position: relative; 95 font-size: 2.4rem; 96 line-height: 1.35417; 97 font-weight: 200; 98 box-sizing: border-box; 99 width: 42.24561404%; 100 display: inline-block; 101 vertical-align: text-top; 102 } 103 104 .intro .column h2 { 105 font-size: 3.2rem; 106 line-height: 1.125; 107 font-weight: 200; 108 letter-spacing: 0em; 109 display: block; 110 margin-top: 3rem; 111 margin-bottom: 1.8rem; 112 } 113 114 .intro .column:first-child { 115 margin-right: 14.63157894%; 116 } 117 118 119 .home .floating { 120 border-bottom: 1px solid #e7e7e7; 121 background: rgba(255,255,255,0.9); 122 } 123 124 @supports ( -webkit-backdrop-filter: blur(10px) ) { 125 .home .floating { 126 backdrop-filter: blur(10px); 127 -webkit-backdrop-filter: blur(10px); 128 background: rgba(255,255,255,0.8); 90 @keyframes bgspin { 91 from { 92 transform: translateY(-400px) rotate(0); 93 -webkit-transform: translateY(-400px) rotate(0deg); 94 } 95 to { 96 transform: translateY(-400px) rotate(360); 97 -webkit-transform: translateY(-400px) rotate(360deg); 129 98 } 130 99 } 131 100 132 .home .site-logo.fade { 133 opacity: 1; 134 } 101 @-webkit-keyframes bgspin { 102 from { 103 transform: translateY(-400px) rotate(0); 104 -webkit-transform: translateY(-400px) rotate(0deg); 105 } 135 106 136 .particles { 137 position: relative; 138 top: 0; 139 left: 0; 140 width: 100%; 141 height: 100%; 142 -webkit-transform-origin: center center; 143 -ms-transform-origin: center center; 144 transform-origin: center center; 145 } 146 147 .particle { 148 position: absolute; 149 background: white; 150 opacity: .7; 151 border-radius: 50%; 152 z-index: -2; 107 to { 108 transform: translateY(-400px) rotate(360); 109 -webkit-transform: translateY(-400px) rotate(360deg); 110 } 153 111 } 154 112 155 @media only screen and (max-width: 782px) { 156 157 .admin-bar header { 158 top: 46px; 113 .hero .content { 114 position: relative; 115 max-width: 800px; 116 padding: 0 3rem; 117 margin: 0 auto; 118 z-index: 10; 119 } 120 121 main { 122 position: relative; 123 z-index: 10; 124 } 125 126 @media only screen and (max-width: 920px) { 127 .hero { 128 padding-top: 40rem; 129 padding-bottom: 3rem; 159 130 } 131 } 160 132 161 .admin-bar .hero.spacing { 162 margin-top: -46px; 163 } 164 165 .hero { 166 position: absolute; 133 @media only screen and (max-width: 690px) { 134 .hero h1 { 135 font-size: 4rem; 136 line-height: 1.1; 167 137 } 168 138 169 .intro .column { 170 width: 100%; 139 .hero p { 140 font-size: 2rem; 141 line-height: 1.4; 142 letter-spacing: -0.016rem; 171 143 } 172 144 145 #compass { 146 background-size: 150%; 147 } 173 148 } 174 149 175 @media only screen and (max-width: 600px) { 176 177 .hero .logo, 178 .hero .tagline, 179 .hero .particle { 180 display: none; 181 } 182 183 .hero { 184 padding-top: 8rem; 185 } 186 187 .admin-bar .hero { 188 padding-top: 13rem; 189 } 190 191 /* .admin-bar .hero.spacing { 192 margin-top: calc(13rem - 46px); 193 }*/ 194 195 .home header { 196 padding-top: 1rem; 197 position: absolute; 198 } 199 200 .home .site-logo { 201 opacity: 1; 202 margin-top: 0; 203 } 204 205 .home header { 206 border-bottom: 1px solid #e7e7e7; 207 background: rgba(255,255,255,0.9); 208 } 209 210 @supports ( -webkit-backdrop-filter: blur(10px) ) { 211 .home header { 212 backdrop-filter: blur(10px); 213 -webkit-backdrop-filter: blur(10px); 214 background: rgba(255,255,255,0.8); 215 } 216 } 217 218 .home .pagination .next-button { 219 width: 100%; 220 } 221 222 } 223 224 @media only screen and (max-height: 415px) { 225 .hero .logo, 226 .hero .tagline, 227 .hero .particle { 228 display: none; 229 } 230 231 .home .site-logo { 232 opacity: 1; 233 margin-top: 0; 234 } 235 .home .hero { 236 margin: 7rem 0 0; 237 } 238 239 .home.admin-bar .hero { 240 margin-top: 12rem; 241 } 242 243 header, 244 .home header { 245 padding-top: 1rem; 246 position: absolute; 247 } 248 .home header { 249 border-bottom: 1px solid #e7e7e7; 250 background: rgba(255,255,255,0.9); 251 } 252 253 @supports ( -webkit-backdrop-filter: blur(10px) ) { 254 .home header { 255 backdrop-filter: blur(10px); 256 -webkit-backdrop-filter: blur(10px); 257 background: rgba(255,255,255,0.8); 258 } 150 @media only screen and (max-width: 320px) { 151 .hero h1 { 152 font-size: 2.5rem; 153 letter-spacing: -0.016rem; 259 154 } 260 155 } 261 262 <?php 263 264 function rand_outside_circle() { 265 srand(); 266 $circle_x = 50; 267 $circle_y = 40; 268 $circle_r = 32; 269 $x = rand(0, 100); 270 $y = rand(0, 100); 271 272 // Avoid starting or ending inside the white fill gradient 273 if ( pow(($x - $circle_x), 2) + pow(($y - $circle_y), 2) <= pow($circle_r, 2) ) 274 return rand_outside_circle(); 275 276 return array($x . "vw", $y . "vh"); 277 } 278 279 for ($i = 1; $i < 101; $i++): 280 $size = rand(5, 80) . "px"; 281 list($Xorigin, $Yorigin) = rand_outside_circle(); 282 list($Xend, $Yend) = rand_outside_circle(); 283 $from_opacity = rand(3, 8) / 10; 284 $to_opacity = rand(3, 8) / 10; 285 ?> 286 .particle:nth-child(<?php echo $i; ?>){ 287 height: <?php echo $size; ?>; width: <?php echo $size; ?>; 288 transform: translate(<?php echo $Xorigin; ?>, <?php echo $Yorigin; ?>); 289 opacity: <?php echo $from_opacity; ?>; 290 animation: move-<?php echo $i; ?> 60s ease-out; 291 animation-direction: alternate; 292 animation-fill-mode: forwards; 293 -webkit-animation-fill-mode: forwards; 294 } 156 </style> 295 157 296 @keyframes move-<?php echo $i; ?> { 297 100% { 298 transform: translate(<?php echo $Xend; ?>, <?php echo $Yend; ?>); 299 opacity: <?php echo $to_opacity; ?>; 300 } 301 } 302 <?php endfor; ?> 303 </style> 304 <div id="hero" class="hero"> 305 <?php for ($i = 0; $i < 101; $i++) 306 echo "<div class=\"particle\"></div>"; ?> 307 <div class="intro page-width"> 308 <a href="/"><h1 class="logo">WebKit <span class="tagline">Open Source Web Browser Engine</span></h1></a> 309 310 <?php if ( is_front_page() && have_posts()): the_post(); ?><div class="intro-copy"><?php 311 $content = get_the_content(); 312 $columns = explode('<br />', $content); 313 foreach ( $columns as $column ) 314 echo "<div class=\"column\">$column</div>"; 315 ?></div><?php endif; ?> 158 <?php if ( is_front_page() && have_posts()): the_post(); ?> 159 <div class="hero"> 160 <div id="template"></div> 161 <div id="compass"></div> 162 <div id="fade"></div> 163 <div class="content"> 164 <?php the_content(); ?> 316 165 </div> 317 166 </div> 318 <div class="hero spacing"> 319 <div class="intro page-width"> 320 <a href="/"><h1 class="logo">WebKit <span class="tagline">Open Source Web Browser Engine</span></h1></a> 321 322 <?php if ( ! empty($columns) ): ?><div class="intro-copy"><?php 323 foreach ( $columns as $column ) 324 echo "<div class=\"column\">$column</div>"; 325 ?></div><?php endif; ?> 326 </div> 327 </div> 328 <script> 329 var latestScrollY = NaN, scrollV = 0, updating = false, layer = false, 330 header = document.getElementById("header"), 331 hero = document.getElementById("hero"), 332 scrollBoundary = 353; 333 334 header.animating = false; 335 logo.animating = false; 336 337 function onScroll() { 338 if (isNaN(latestScrollY)) 339 latestScrollY = window.scrollY; 340 341 if (!updating) 342 requestAnimationFrame(update); 343 updating = true; 344 } 345 346 function update() { 347 updating = false; 348 349 if (document.body.offsetWidth <= 508) return; 350 351 if (latestScrollY != window.scrollY) { 352 scrollV = window.scrollY - latestScrollY; 353 latestScrollY = window.scrollY; 354 355 if (!layer) { 356 layer = document.getElementsByClassName("page-layer").item(0); 357 } 358 359 scrollBoundary = layer.offsetTop - header.offsetHeight; 360 } 361 362 if (latestScrollY >= scrollBoundary) { 363 addAnimationClass(header, "floating"); 364 if (!logo.classList.contains('fade')) 365 setAnimateSpeed(logo, scrollV); 366 addAnimationClass(logo, "fade"); 367 } else if (latestScrollY < scrollBoundary) { 368 removeAnimationClass(header, "floating"); 369 if (logo.classList.contains('fade')) 370 setAnimateSpeed(logo, 10); 371 removeAnimationClass(logo, "fade"); 372 } 373 374 } 375 376 function setAnimateSpeed(element, velocity) { 377 if (element.animating) return; 378 var duration = Math.abs(3 / (velocity * 1.618)); 379 element.style["-webkit-transition-duration"] = duration + "s"; 380 } 381 382 function addAnimationClass(element, classname) { 383 if (element.classList.contains(classname)) return; 384 if (element.animating) return; 385 386 element.classList.add(classname.trim()); 387 animatingElement(element); 388 } 389 390 function animatingElement(element) { 391 element.animating = true; 392 element.addEventListener("transitionend", function () { 393 element.animating = false; 394 }); 395 } 396 397 function removeAnimationClass(element, classname) { 398 if (!element.classList.contains(classname)) return; 399 if (element.animating) return; 400 401 element.classList.remove(classname.trim()); 402 animatingElement(element); 403 } 404 405 window.addEventListener("scroll", onScroll, false); 406 window.addEventListener("resize", onScroll, false); 407 </script> 167 <?php endif; ?> 408 168 409 169 <div class="page-layer"> -
trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php
r217885 r224757 102 102 add_filter('the_title', function( $title ) { 103 103 if ( is_admin() ) return $title; 104 if ( is_feed() ) return $title; 105 104 106 $title = str_replace(": ", ": <br>", $title); 107 108 $nowrap_strings = array(); 109 if ($nowrap_setting = get_option("webkit_org_nowrap_strings")) { 110 $nowrap_strings = explode("\n", $nowrap_setting); 111 } else add_option("webkit_org_nowrap_strings", "\n"); 112 113 foreach ($nowrap_strings as $token) { 114 $nobreak = str_replace(" ", " ", trim($token)); 115 $title = str_replace(trim($token), $nobreak, $title); 116 } 117 105 118 return $title; 106 119 }); -
trunk/Websites/webkit.org/wp-content/themes/webkit/header.php
r193642 r224757 5 5 <meta name="robots" content="noodp"> 6 6 7 <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes ">7 <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes, viewport-fit=cover"> 8 8 9 9 <title><?php if ( is_front_page() ) echo "WebKit"; … … 12 12 <meta name="application-name" content="WebKit"> 13 13 14 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?> " media="all">15 <link rel="stylesheet" href="https://www.apple.com/wss/fonts?famil y=Myriad+Set+Pro&v=1" type="text/css" />14 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>?20171013" media="all"> 15 <link rel="stylesheet" href="https://www.apple.com/wss/fonts?families=SF+Pro,v1" type="text/css"> 16 16 17 17 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>"> … … 29 29 <header aria-label="WebKit.org Header" id="header"> 30 30 <div class="page-width"> 31 <a href="/"><div id="logo" class="site-logo">WebKit <span class="tagline">Open Source Web Browser Engine</span></div></a>31 <a href="/"><div id="logo" class="site-logo">WebKit</div></a> 32 32 <nav id="site-nav" aria-label="Site Menu"> 33 33 <?php wp_nav_menu( array( … … 43 43 include('front-header.php'); 44 44 ?> 45 <main id="content" class="page-width"> 45 <main id="content"> 46 <div class="page-width"> -
trunk/Websites/webkit.org/wp-content/themes/webkit/loop.php
r216855 r224757 21 21 <h1><?php the_title(); ?></h1> 22 22 <div class="summary"><?php the_excerpt(); ?></div> 23 <p><a href="<?php the_permalink(); ?>" >Read more ›</a></p>23 <p><a href="<?php the_permalink(); ?>" class="readmore">Read more</a></p> 24 24 </div> 25 25 </div> -
trunk/Websites/webkit.org/wp-content/themes/webkit/nightly-start.php
r211739 r224757 27 27 <style> 28 28 body { 29 background: #333333; 29 background-color: #333333; 30 } 31 32 main { 33 background: none; 30 34 } 31 35 32 36 header { 33 b order-bottom-color: transparent;37 background-color: rgba(0,0,0,0.1); 34 38 } 35 39 … … 85 89 min-height: 100px; 86 90 overflow: hidden; 87 width: -webkit-calc(33.33% - 10px);88 width: -moz-calc(33.33% - 10px);89 91 width: calc(33.33% - 10px); 90 92 border-radius: 0.3rem; … … 221 223 @media only screen and (max-width: 690px) { 222 224 #nightly li { 223 width: -webkit-calc(100% - 1px);224 width: -moz-calc(100% - 1px);225 225 width: calc(100% - 1px); 226 226 } -
trunk/Websites/webkit.org/wp-content/themes/webkit/nightly-survey.php
r211739 r224757 13 13 background: #333333; 14 14 } 15 15 16 main { 17 background: none; 18 } 19 16 20 header { 17 b order-bottom-color: transparent;21 background-color: rgba(0,0,0,0.1); 18 22 } 19 23 20 24 #nightly { 21 25 margin: 6rem auto; -
trunk/Websites/webkit.org/wp-content/themes/webkit/nightly.php
r198825 r224757 22 22 body { 23 23 background: #333333; 24 } 25 26 main { 27 background: none; 28 } 29 30 header { 31 background-color: rgba(0,0,0,0.1); 24 32 } 25 33 -
trunk/Websites/webkit.org/wp-content/themes/webkit/page.php
r192832 r224757 22 22 include('444.php'); 23 23 endif; ?> 24 25 24 26 25 <?php get_footer(); ?> -
trunk/Websites/webkit.org/wp-content/themes/webkit/single.php
r198836 r224757 20 20 </article> 21 21 22 <nav class="navigation pagination" aria-label="Next/Last posts"> 23 <?php previous_post_link('%link', 'Older Post <span>%title</span>'); ?> 24 <?php next_post_link('%link', 'Newer Post <span>%title</span>'); ?> 25 </nav> 22 <aside class="nextrouter" aria-label="Next/Previous posts"> 23 <div class="bodycopy"> 24 <?php //previous_post_link('%link', 'Older Post <span>%title</span>'); ?> 25 <?php next_post_link('%link', '<div class="nextrouter-copy"><span class="label">Next</span><span class="title">%title</span><span class="link">Learn more</span></div>'); ?> 26 </div> 27 </aside> 28 <aside class="nextrouter previous" aria-label="Next/Previous posts"> 29 <div class="bodycopy"> 30 <?php previous_post_link('%link', '<div class="nextrouter-copy"><span class="label">Previously</span><span class="title">%title</span><span class="link">Learn more</span></div>'); ?> 31 </div> 32 </aside> 26 33 27 34 <?php //comments_template(); // No comments ?> -
trunk/Websites/webkit.org/wp-content/themes/webkit/status.php
r220280 r224757 38 38 .page h1 { 39 39 font-size: 4.2rem; 40 font-weight: 200;40 font-weight: 500; 41 41 line-height: 6rem; 42 color: black;43 42 margin: 3rem auto; 44 43 width: 100%; 45 44 text-align: center; 45 color: #333333; 46 46 } 47 47 48 48 .page h1 a { 49 color: #444444;50 } 49 color: inherit; 50 } 51 51 52 52 .feature-filters { … … 219 219 padding: 0.5rem; 220 220 line-height: 1.618; 221 -webkit-transition: background-color 0.3s ease-out;222 221 transition: background-color 0.3s ease-out; 223 222 } … … 274 273 top: 0.5rem; 275 274 margin-left: 1rem; 276 -webkit-transition: transform 0.3s ease-out;277 -moz-transition: transform 0.3s ease-out;278 275 transition: transform 0.3s ease-out; 279 276 } -
trunk/Websites/webkit.org/wp-content/themes/webkit/style.css
r220360 r224757 33 33 } 34 34 html { 35 font-family: " Myriad Set Pro","Helvetica Neue",sans-serif;35 font-family: "SF Hello", "Helvetica Neue", "Helvetica", "Arial", sans-serif; 36 36 font-size: 62.5%; 37 37 font-synthesis: none; 38 38 } 39 39 body { 40 background-color: # f7f7f7;41 font-size: 1. 6rem;40 background-color: #00253D; 41 font-size: 1.7rem; 42 42 font-weight: 400; 43 line-height: 1.4; 43 line-height: 1.52947; 44 letter-spacing: -0.021rem; 45 color: #333333; 44 46 } 45 47 ol, ul { … … 90 92 } 91 93 strong { 92 font-weight: 700;94 font-weight: 600; 93 95 } 94 96 em { 95 font-weight: 200; 97 font-style: italic; 98 font-weight: 300; 96 99 } 97 100 sup { … … 101 104 } 102 105 code { 103 font-family: Menlo, monospace;106 font-family: "SF Mono", "Menlo", monospace; 104 107 background: #f2f2f2; 105 108 border-radius: 2px; … … 108 111 font-size: 80%; 109 112 color: #444; 113 } 114 115 main { 116 background-color: #f7f7f7; 110 117 } 111 118 … … 130 137 color: #08c; 131 138 text-decoration: none; 139 } 140 141 h1, 142 h2, 143 h3, 144 h4, 145 h5, 146 h6 { 147 text-rendering: optimizeLegibility; 132 148 } 133 149 … … 157 173 background: white; 158 174 background-clip: padding-box; 159 font-family: " Myriad Set Pro", "Helvetica Neue", "Helvetica", "Arial", sans-serif;175 font-family: "SF Hello", "Helvetica Neue", "Helvetica", "Arial", sans-serif; 160 176 line-height: 1.33333; 161 177 font-weight: 400; … … 166 182 input[type=submit] { 167 183 background-color: #1d9bd9; 168 background: -webkit-linear-gradient(#3baee7, #0088cc);169 184 background: linear-gradient(#3baee7, #0088cc); 170 185 border-radius: 4px; … … 221 236 /** Header **/ 222 237 header { 223 background: #f9f9f9;224 border-bottom: 1px solid #e7e7e7;225 238 overflow: visible; 226 239 width: 100vw; 227 240 max-width: 100%; 228 padding-top: 2rem;241 padding-top: 1.5rem; 229 242 margin: 0; 230 243 position: relative; … … 232 245 } 233 246 247 .home header { 248 background-color: transparent; 249 transition: background 500ms ease-out, border 250ms ease-out; 250 } 251 234 252 @supports ( -webkit-backdrop-filter: blur(10px) ) { 235 header { 253 254 .home header { 255 background-color: transparent; 256 backdrop-filter: blur(0px); 257 -webkit-backdrop-filter: blur(0px); 258 } 259 260 .sub-menu-layer { 236 261 backdrop-filter: blur(10px); 237 262 -webkit-backdrop-filter: blur(10px); 238 background: rgba(255,255,255,0.8); 239 } 263 } 264 } 265 266 .nextrouter .link, 267 a.readmore { 268 background: url('images/chevron.svg') right no-repeat; 269 background-position-y: 0.6rem; 270 background-size: 0.5rem; 271 padding-right: 1rem; 240 272 } 241 273 … … 248 280 .pagination { 249 281 text-align: center; 250 margin: 3rem auto; 251 font-weight: bold; 282 margin: 3rem auto 0; 283 } 284 285 .pagination::after { 286 content: ' '; 287 display: table; 288 padding-bottom: 3rem; 252 289 } 253 290 254 291 .pagination .page-numbers { 255 292 display: inline-block; 256 padding: 0. 5rem 1rem 0.3rem;293 padding: 0.3rem 1rem 0.5rem; 257 294 background: white; 258 border-radius: 3px; 295 border-radius: 4px; 296 box-shadow: inset rgba(0, 0, 0, 0.07) 0 0 0 1px; 297 height: 2rem; 298 font-size: 1.7rem; 299 line-height: 1.29412; 300 font-weight: 400; 301 letter-spacing: -0.021em; 259 302 } 260 303 … … 268 311 .pagination .page-numbers.current { 269 312 background: none; 313 box-shadow: none; 270 314 } 271 315 … … 293 337 .pagination .next-button { 294 338 display: inline-block; 295 line-height: 3rem; 296 box-sizing: border-box; 297 width: -webkit-calc(33.33% - 10px); 298 width: -moz-calc(33.33% - 10px); 299 width: calc(33.33% - 10px); 339 min-width: calc(33.33% - 3rem); 340 padding: 0.5rem 1rem 0.7rem; 341 } 342 343 .nextrouter { 344 position: relative; 345 background-color: #fafafa; 346 padding: 0; 347 width: 100vw; 348 left: 50%; 349 transform: translateX(-50%); 350 } 351 352 .nextrouter:hover { 353 background-color: #ffffff; 354 transition: background-color 300ms ease-out; 355 } 356 357 .nextrouter.previous { 358 text-align: right; 359 background-color: #f4f4f4; 360 } 361 362 .nextrouter.previous:hover { 363 background-color: #ffffff; 364 } 365 366 .nextrouter .bodycopy { 367 max-width: 1140px; 368 margin: 0 auto; 369 } 370 371 .nextrouter a { 372 display: block; 373 cursor: pointer; 374 color: #444444; 375 width: 66%; 376 margin: 0 auto; 377 } 378 379 .nextrouter a:hover { 380 text-decoration: none; 381 } 382 383 .nextrouter-copy { 384 padding: 10rem 0 9.5rem 0; 385 font-size: 3.2rem; 386 line-height: 1.09375; 387 font-weight: 500; 388 letter-spacing: 0.011rem; 389 } 390 391 .nextrouter .label { 392 font-size: 2.2rem; 393 line-height: 1; 394 font-weight: 300; 395 letter-spacing: 0.016rem; 396 color: #666666; 397 display: block; 398 margin-bottom: 1.8rem; 399 } 400 401 .nextrouter .title { 402 display: block; 403 } 404 405 .nextrouter .link { 406 clear: left; 407 display: inline-block; 408 font-size: 1.7rem; 409 font-weight: 400; 410 line-height: 1.52947; 411 letter-spacing: -0.021rem; 412 color: #08c; 413 background-position-y: 1rem; 414 } 415 416 .nextrouter a:hover .link { 417 text-decoration: underline; 300 418 } 301 419 … … 306 424 clear: both; 307 425 width: 100%; 308 padding-bottom: 3rem;309 box-sizing: border-box; 426 padding-bottom: 1.65rem; 427 box-sizing: border-box; 310 428 } 311 429 … … 325 443 box-sizing: border-box; 326 444 width: 100%; 327 margin-top: 3rem;328 445 } 329 446 330 447 .tile { 331 background: white;332 display: inline-block;448 background: #ffffff; 449 display: block; 333 450 margin: 0 0 15px; 334 451 position: relative; 335 452 vertical-align: top; 336 453 box-sizing: border-box; 337 min-height: 450px;338 454 overflow: hidden; 339 455 box-shadow: inset rgba(0, 0, 0, 0.1) 0 0 0 1px; … … 359 475 360 476 .third-tile { 361 width: -webkit-calc(33.33% - 10px);362 width: -moz-calc(33.33% - 10px);363 477 width: calc(33.33% - 10px); 364 478 } 365 479 366 480 .two-thirds-tile { 367 width: -webkit-calc(66.66% - 5px);368 width: -moz-calc(66.66% - 5px);369 481 width: calc(66.66% - 5px); 370 482 } … … 383 495 background-size: cover; 384 496 background-position: 50% 1%; 385 background-color: # 8E8E93;497 background-color: #636a74; 386 498 background-repeat: no-repeat; 387 499 background-image: url('images/icons.svg'); … … 389 501 390 502 .tile .background-image.has-featured-image { 391 -webkit-transition: -webkit-filter 10s ease-in;392 503 transition: filter 1s ease-in; 393 504 -webkit-filter: saturate(0); … … 492 603 493 604 opacity: 0; 494 -webkit-transition: opacity 0.4s ease-in;495 -moz-transition: opacity 0.4s ease-in;496 605 transition: opacity 0.4s ease-in; 497 606 } 498 607 499 .tile .featured-image,500 608 .tile:not(.has-post-thumbnail) .background-image, 501 .tile . loaded .featured-image {609 .tile .background-vignette { 502 610 box-shadow: inset rgba(0, 0, 0, 0.1) 0 1px 0 1px; 503 611 } … … 583 691 584 692 .tile h1 { 585 font-size: 3rem; 586 line-height: 4rem; 693 font-size: 2.4rem; 694 line-height: 1.20849; 695 font-weight: 500; 696 letter-spacing: 0.015rem; 697 text-align: left; 698 white-space: no-wrap; 699 } 700 701 .tile h2 { 702 font-size: 2.4rem; 703 line-height: 1.20849; 587 704 font-weight: 200; 588 text-align: left;589 }590 .tile h2 {591 font-size: 3rem;592 line-height: 4rem;593 font-weight: 400;594 705 text-align: inherit; 706 } 707 708 .tile .summary, 709 .tile p { 710 margin-top: 1.65rem; 595 711 } 596 712 … … 773 889 background: #f2f2f2; 774 890 border: 1px solid #E6E6E6; 775 border-radius: 3px;891 border-radius: 2px; 776 892 777 893 box-sizing: border-box; … … 839 955 840 956 /** Post Typography **/ 957 958 main { 959 width: 100vw; 960 max-width: 100%; 961 overflow-x: hidden; 962 box-sizing: border-box; 963 padding: 3rem 0 0; 964 } 965 966 article { 967 padding-bottom: 3rem; 968 } 969 970 article::after { 971 clear: both; 972 content: ' '; 973 display: table; 974 } 975 841 976 article h1 { 842 font-size: 5. 2rem;843 line-height: 1. 0625;844 font-weight: 200;845 letter-spacing: -0.02em;977 font-size: 5.6rem; 978 line-height: 1.10746; 979 font-weight: 500; 980 letter-spacing: 0.004rem; 846 981 text-align: center; 847 982 color: #037DFD; 848 margin: 5remauto 3rem;983 margin: 0 auto 3rem; 849 984 } 850 985 … … 855 990 856 991 article h2 { 857 font-size: 4.2rem;858 line-height: 1.0 8654;859 font-weight: 200;860 letter-spacing: -0.01 4em;992 font-size: 3.2rem; 993 line-height: 1.09375; 994 font-weight: 500; 995 letter-spacing: -0.011rem; 861 996 margin: 4rem 0 1rem; 862 997 } 863 998 864 999 article h3 { 865 font-size: 3.2rem;866 line-height: 1. 14286;867 font-weight: 200;868 letter-spacing: -0.01 em;1000 font-size: 2.4rem; 1001 line-height: 1.09375; 1002 font-weight: 500; 1003 letter-spacing: -0.011rem; 869 1004 } 870 1005 871 1006 article h4 { 872 1007 font-size: 2.2rem; 873 line-height: 1. 125;874 font-weight: 600;1008 line-height: 1.09375; 1009 font-weight: 500; 875 1010 } 876 1011 877 1012 article h5 { 878 1013 font-size: 2rem; 879 line-height: 1. 5;880 font-weight: 600;1014 line-height: 1.09375; 1015 font-weight: 500; 881 1016 } 882 1017 883 1018 article h6 { 884 font-size: 2rem; 885 line-height: 1.5; 886 font-weight: 600; 887 font-size: 2rem; 1019 font-size: 1.7rem; 1020 line-height: 1.09375; 1021 font-weight: 500; 888 1022 } 889 1023 … … 899 1033 article h4 + h5, 900 1034 article h5 + h6 { 901 margin-top: 3rem;1035 margin-top: 0; 902 1036 } 903 1037 … … 923 1057 white-space: nowrap; 924 1058 925 }926 927 article .bodycopy {928 font-size: 2rem;929 line-height: 3rem;930 1059 } 931 1060 … … 1222 1351 text-align: left; 1223 1352 margin-top: 1.5rem; 1353 line-height: 1.5; 1224 1354 max-width: 970px; 1225 1355 padding-left: 1.5rem; 1226 1356 box-sizing: border-box; 1227 font-size: 1. 5rem;1228 font- style: italic;1229 color: # 8E8E93;1357 font-size: 1.3rem; 1358 font-weight: 400; 1359 color: #666666; 1230 1360 position: relative; 1231 1361 } … … 1233 1363 article figcaption::before { 1234 1364 left: 1.5rem; 1235 width: 1 0%;1365 width: 15%; 1236 1366 height: 100%; 1237 bottom: 1rem;1367 bottom: 2.5rem; 1238 1368 border-top: 1px solid #cccccc; 1239 1369 content: ''; … … 1340 1470 float: right; 1341 1471 box-sizing: border-box; 1342 padding: 3rem; 1343 margin: 0 0 3rem 3rem; 1344 1345 width: 252px; 1346 background: #ffffff; 1472 padding: 2.5rem 0 0 0; 1473 margin: 0 0 2.5rem 3rem; 1474 1475 max-width: 33%; 1347 1476 z-index: 5; 1348 1477 font-size: 1.4rem; 1478 line-height: 1.20849; 1479 border-top: 1px solid #d6d6d6; 1480 1481 } 1482 1483 article .table-of-contents label { 1484 font-size: 1.7rem; 1485 font-weight: 500; 1486 margin-bottom: 1.65rem; 1349 1487 } 1350 1488 … … 1352 1490 margin: 0; 1353 1491 list-style: none; 1354 font-size: 1.6rem; 1355 line-height: 2rem; 1356 padding-left: 2rem; 1357 padding-right: 0; 1492 margin-top: 1.65rem; 1358 1493 } 1359 1494 … … 1363 1498 1364 1499 .table-of-contents ul li { 1365 margin-bottom: 1 rem;1500 margin-bottom: 1.65rem; 1366 1501 } 1367 1502 … … 1371 1506 1372 1507 .table-of-contents ul li > ul { 1373 margin-top: 1 rem;1508 margin-top: 1.65rem; 1374 1509 } 1375 1510 … … 1383 1518 .site-logo { 1384 1519 float: left; 1385 font-size: 4.2rem; 1386 line-height: 4.2rem; 1387 font-weight: 200; 1520 font-size: 3rem; 1521 line-height: 1.04167; 1522 letter-spacing: 0.015rem; 1523 font-weight: 500; 1524 text-rendering: optimizeLegibility; 1388 1525 display: inline-block; 1389 1526 background: url('images/webkit.svg') no-repeat; 1390 padding-left: 7rem; 1391 color: #333; 1392 } 1393 1394 .site-logo .tagline { 1395 display: block; 1396 font-size: 1.8rem; 1397 line-height: 2rem; 1398 letter-spacing: -0.05rem; 1399 color: #666; 1527 padding: 1rem 0 1rem 5.5rem; 1528 color: #ffffff; 1400 1529 } 1401 1530 … … 1438 1567 } 1439 1568 1569 footer { 1570 1571 } 1572 1440 1573 footer nav { 1441 padding: 3rem0;1574 padding: 1.65rem 0 0; 1442 1575 } 1443 1576 1444 1577 header nav li { 1445 1578 display: inline-block; 1446 padding: 2.5rem 0 1.5rem 3rem;1579 padding: 1.5rem 0 1.5rem 3rem; 1447 1580 } 1448 1581 … … 1458 1591 1459 1592 header nav a, 1593 .sub-menu a, 1460 1594 footer nav a { 1461 1595 position: relative; 1462 1596 display: inline-block; 1463 1597 text-decoration: none; 1464 color: #333; 1598 font-size: 1.4rem; 1599 line-height: 1.5455; 1600 letter-spacing: -0.015rem; 1601 letter-spacing: 0; 1465 1602 cursor: pointer; 1603 font-weight: 500; 1604 color: #333333; 1605 } 1606 1607 header nav a, 1608 footer nav a { 1609 color: #ffffff; 1466 1610 } 1467 1611 … … 1481 1625 margin-top: -0.1rem; 1482 1626 content: ''; 1483 1484 -webkit-transition: transform 0.3s ease-out; 1485 -moz-transition: transform 0.3s ease-out; 1627 1628 -webkit-filter: invert(100%); 1629 filter: invert(100%); 1630 perspective: 600; 1631 1486 1632 transition: transform 0.3s ease-out; 1487 1633 } 1488 1634 1489 1635 header .menu-item { /* add bottom dimension to main menu items */ 1490 padding-bottom: 3rem;1636 padding-bottom: 2.5rem; 1491 1637 } 1492 1638 … … 1501 1647 1502 1648 position: absolute; 1503 top: 8rem;1649 top: 7rem; 1504 1650 transform: translateY(-1rem); 1505 1651 … … 1509 1655 border-radius: 5px; 1510 1656 1511 -webkit-transition: opacity 0.6s, transform 0.6s; 1512 -moz-transition: opacity 0.6s, transform 0.6s; 1513 transition: opacity 0.6s, transform 0.6s; 1657 transition: opacity 0.6s; 1514 1658 opacity: 0; 1515 1516 1659 } 1517 1660 … … 1561 1704 } 1562 1705 1563 /** Timeline blog content **/1564 1565 .timeline {1566 position: relative;1567 padding: 0 5rem;1568 margin: 0;1569 }1570 1571 .timeline:after {1572 content: "";1573 display: table;1574 clear: both;1575 }1576 1577 .timeline * {1578 box-sizing: border-box;1579 }1580 1581 .timeline:before {1582 content: "";1583 position: absolute;1584 height: 100%;1585 width: 0.5rem;1586 background: #e9eeef;1587 left: -moz-calc(50% - 0.25rem);1588 left: -o-calc(50% - 0.25rem);1589 left: -webkit-calc(50% - 0.25rem);1590 left: calc(50% - 0.25rem);1591 }1592 1593 .timeline > li {1594 list-style-type: none;1595 text-align: right;1596 }1597 1598 .timeline > li:before {1599 position: absolute;1600 1601 display: block;1602 content: "";1603 width: 3rem;1604 height: 3rem;1605 1606 right: -moz-calc(50% - 1.5rem);1607 right: -o-calc(50% - 1.5rem);1608 right: -webkit-calc(50% - 1.5rem);1609 right: calc(50% - 1.5rem);1610 1611 border-radius: 3em;1612 1613 background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 51, color-stop(50%, white), color-stop(51%, #e9eeef));1614 background-image: -webkit-radial-gradient(white 50%, #e9eeef 51%);1615 background-image: -moz-radial-gradient(white 50%, #e9eeef 51%);1616 background-image: -o-radial-gradient(white 50%, #e9eeef 51%);1617 background-image: radial-gradient(white 50%, #e9eeef 51%);1618 }1619 1620 .timeline .content {1621 position: relative;1622 color: #323232;1623 background: white;1624 border: 1px solid #e9eeef;1625 border-radius: 3px;1626 margin-bottom: 6rem;1627 padding: 0 3rem;1628 text-align: center;1629 }1630 1631 .timeline figure {1632 text-align: center;1633 margin-bottom: 1rem;1634 }1635 1636 .timeline .time {1637 color: white;1638 background: #08c;1639 display: inline-block;1640 position: relative;1641 font-weight: bold;1642 top: -0.5rem;1643 padding-top: 0.5rem;1644 padding-bottom: 0.5rem;1645 padding-left: 10rem;1646 padding-right: 0.5rem;1647 left: -moz-calc(-50% - 4.25rem);1648 left: -o-calc(-50% - 4.25rem);1649 left: -webkit-calc(-50% - 4.25rem);1650 left: calc(-50% - 4.25rem);1651 border-right: 1px solid #08c;1652 border-left: 1px solid #08c;1653 border-radius: 2px;1654 white-space: nowrap;1655 min-width: 300px;1656 }1657 1658 .timeline h2, .timeline h3 {1659 text-align: center;1660 }1661 1662 .timeline .time::before {1663 content: "";1664 width: 0;1665 height: 0;1666 border-width: 1em;1667 border-color: transparent;1668 border-style: solid;1669 border-left-color: #08c;1670 position: absolute;1671 right: -2em;1672 top: 0;1673 }1674 1675 .timeline img {1676 max-width: 90%;1677 }1678 1679 @media (min-width: 900px) {1680 .timeline > li {1681 width: 45%;1682 }1683 1684 .timeline > li.force-clear {1685 clear: both !important;1686 }1687 1688 .timeline > li:nth-child(odd) {1689 float: left;1690 clear: left;1691 text-align: right;1692 }1693 1694 .timeline > li:nth-child(even) {1695 float: right;1696 clear: right;1697 text-align: left;1698 }1699 1700 .timeline > li:nth-child(2),1701 .timeline > li.force-clear + li {1702 margin-top: 10rem;1703 }1704 1705 .timeline li .time {1706 left: auto;1707 }1708 1709 .timeline li:nth-child(odd) .time {1710 padding-right: 0.5rem;1711 padding-left: 10rem;1712 }1713 1714 .timeline li:nth-child(even) .time {1715 padding-left: 0.5rem;1716 padding-right: 10rem;1717 }1718 1719 .timeline li:nth-child(even) .time::before {1720 border-left-color: transparent;1721 border-right-color: #08c;1722 right: auto;1723 left: -2em;1724 }1725 1726 .timeline > li:nth-child(even):before {1727 right: auto;1728 left: -moz-calc(50% - 1.5rem);1729 left: -o-calc(50% - 1.5rem);1730 left: -webkit-calc(50% - 1.5rem);1731 left: calc(50% - 1.5rem);1732 }1733 }1734 1735 @media (max-width: 900px) {1736 .timeline {1737 padding: 0 3rem;1738 }1739 1740 .timeline:before {1741 left: -moz-calc(15% - 0.25rem);1742 left: -o-calc(15% - 0.25rem);1743 left: -webkit-calc(15% - 0.25rem);1744 left: calc(15% - 0.25rem);1745 }1746 1747 .timeline > li {1748 text-align: left;1749 }1750 1751 .timeline > li:before {1752 right: -moz-calc(85% - 1.5rem);1753 right: -o-calc(85% - 1.5rem);1754 right: -webkit-calc(85% - 1.5rem);1755 right: calc(85% - 1.5rem);1756 }1757 1758 .timeline .content {1759 padding: 0 2rem;1760 }1761 1762 .timeline .time {1763 left: -moz-calc(15% + 2.25rem);1764 left: -o-calc(15% + 2.25rem);1765 left: -webkit-calc(15% + 2.25rem);1766 left: calc(15% + 2.25rem);1767 1768 text-align: left;1769 1770 padding-left: 0.5rem;1771 padding-right: 0.5rem;1772 1773 min-width: 200px;1774 }1775 1776 .timeline li .time::before {1777 border-left-color: transparent;1778 border-right-color: #08c;1779 1780 right: auto;1781 left: -2em;1782 }1783 }1784 1785 1706 /** Screen Breakpoints **/ 1786 1707 … … 1798 1719 text-align: center; 1799 1720 margin-bottom: 3rem; 1721 padding-right: 0; 1800 1722 } 1801 1723 … … 1837 1759 cursor: pointer; 1838 1760 1839 -webkit-transition: transform 0.3s ease-out;1840 -moz-transition: transform 0.3s ease-out;1841 1761 transition: transform 0.3s ease-out; 1762 1763 -webkit-filter: invert(100%); 1764 filter: invert(100%); 1765 perspective: 600; 1766 transform: translateZ(10rem); 1842 1767 } 1843 1768 … … 1860 1785 overflow: hidden; 1861 1786 box-shadow: 0px 5px 5px rgba(0,0,0,0.10); 1862 backdrop-filter: blur(10px); 1787 1788 backdrop-filter: blur(20px); 1863 1789 -webkit-backdrop-filter: blur(10px); 1864 background: rgba(255,255,255,0.8); 1790 background-color: rgba(255,255,255,0.8); 1791 } 1792 1793 header nav a { 1794 color: #333333; 1865 1795 } 1866 1796 … … 1868 1798 display: block; 1869 1799 opacity: 1; 1800 } 1801 1802 header .menu-item-has-children .label-toggle::after { 1803 -webkit-filter: invert(0%); 1804 filter: invert(0%); 1870 1805 } 1871 1806 … … 1875 1810 padding: 0 3rem 3rem; 1876 1811 box-sizing: border-box; 1877 -webkit-transition: opacity 0.6s;1878 -moz-transition: opacity 0.6s;1879 1812 transition: opacity 0.6s; 1880 1813 } … … 1899 1832 opacity: 0; 1900 1833 transform: translateY(0); 1901 -webkit-transition: opacity 0.6s;1902 -moz-transition: opacity 0.6s;1903 1834 transition: opacity 0.6s; 1904 1835 } … … 1938 1869 1939 1870 @media only screen and (max-width: 690px) { 1871 article h1 { 1872 font-size: 3.4rem; 1873 } 1874 1940 1875 .featured-tile { 1941 1876 padding: 0; … … 1957 1892 1958 1893 .tile { 1959 min-height: 3 20px;1894 min-height: 375px; 1960 1895 } 1961 1896 1962 1897 .third-tile, 1963 1898 .two-thirds-tile { 1964 width: -webkit-calc(100% - 1px);1965 width: -moz-calc(100% - 1px);1966 1899 width: calc(100% - 1px); 1967 1900 } … … 1999 1932 } 2000 1933 1934 .nextrouter-copy { 1935 font-size: 2.2rem; 1936 } 1937 2001 1938 article .scrollable { 2002 1939 overflow: auto; … … 2030 1967 .site-logo { 2031 1968 font-size: 4rem; 2032 padding-left: 6rem; 2033 } 2034 2035 .site-logo .tagline { 2036 font-size: 1.6rem; 2037 line-height: 1; 1969 padding-left: 6.4rem; 2038 1970 } 2039 1971 … … 2071 2003 right: 3rem; 2072 2004 top: 3.5rem; 2073 -webkit-transition: transform 0.3s ease-out;2074 -moz-transition: transform 0.3s ease-out;2075 2005 transition: transform 0.3s ease-out; 2076 2006 perspective: 600; … … 2106 2036 } 2107 2037 2108 @media only screen and (max-width: 415px) { 2038 @media only screen and (max-width: 415px) { 2109 2039 .table-of-contents { 2110 2040 /* Go one-column */ … … 2116 2046 margin: 0 0 3rem 0; 2117 2047 } 2048 2049 .nextrouter-copy { 2050 font-size: 1.7rem; 2051 letter-spacing: -0.016rem; 2052 } 2118 2053 } 2119 2054 2120 2055 @media only screen and (max-height: 415px) { 2121 .hero .logo, 2122 .hero .tagline, 2123 .hero .particle { 2124 display: none; 2125 } 2126 2056 2127 2057 .home .site-logo { 2128 2058 opacity: 1; … … 2130 2060 } 2131 2061 2132 .home .hero {2133 margin: 7rem 0 0;2134 }2135 2136 .home.admin-bar .hero {2137 margin-top: 12rem;2138 }2139 2140 2062 header, 2141 2063 .home header { 2142 2064 padding-top: 1rem; 2143 2065 } 2144 2145 .home header { 2146 border-bottom: 1px solid #e7e7e7; 2147 background: rgba(255,255,255,0.9); 2148 } 2149 2150 @supports ( -webkit-backdrop-filter: blur(10px) ) { 2151 .home header { 2152 backdrop-filter: blur(10px); 2153 -webkit-backdrop-filter: blur(10px); 2154 background: rgba(255,255,255,0.8); 2066 2067 @supports(padding:max(0px)) { 2068 header, 2069 header .menu, 2070 .home header, 2071 .home .hero .content, 2072 .feature-filters, 2073 #content, 2074 #nightly, 2075 footer { 2076 box-sizing: border-box; 2077 padding-left: constant(safe-area-inset-left); 2078 padding-right: constant(safe-area-inset-right); 2155 2079 } 2080 2081 header .menu .menu-item > .sub-menu { 2082 border: none; 2083 background: none; 2084 } 2085 2086 .sub-menu-layer { 2087 padding: 0 3rem; 2088 } 2089 2090 .sub-menu-layer .menu-item:first-child, 2091 .sub-menu-layer .menu-item { 2092 padding: 0 0 1.5rem 1.5rem; 2093 } 2094 2156 2095 } 2157 2096 2158 2097 .tile { 2159 min-height: 200px;2160 max-height: 400px;2161 2098 overflow: hidden; 2162 2099 } … … 2198 2135 right: 3rem; 2199 2136 top: 3.5rem; 2200 -webkit-transition: transform 0.3s ease-out;2201 -moz-transition: transform 0.3s ease-out;2202 2137 transition: transform 0.3s ease-out; 2203 2138 perspective: 600; … … 2220 2155 } 2221 2156 2222 @media only screen and (max-width: 320px) { 2223 .home .hero { 2224 position: absolute; 2225 } 2226 } 2157 #template { 2158 background-image: url('images/template.svg'); 2159 } 2160 2161 #compass { 2162 background-image: url('images/compass.svg'); 2163 } -
trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/post.php
r217614 r224757 74 74 <h1><?php echo $title; ?></h1> 75 75 <div class="summary"><?php echo $summary; ?></div> 76 <p><a href="<?php the_permalink(); ?>" ><?php echo $link; ?> ›</a></p>76 <p><a href="<?php the_permalink(); ?>" class="readmore"><?php echo $link; ?></a></p> 77 77 </div> 78 78 </div>
Note: See TracChangeset
for help on using the changeset viewer.