- Timestamp:
- 11/02/2018 11:52:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/style.css
r43842 r43860 57 57 * since its edges can look jagged due to lack of antialiasing. In this case, we are several 58 58 * layers of box-shadow to add the border visually, which will render the border smoother. */ 59 /* Calculates maximum width for post content */ 59 60 /* Normalize */ 60 61 /*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */ … … 959 960 } 960 961 961 .main-navigation .main-menu > li.menu-item-has-children :not(:last-child).mobile-submenu-expand,962 .main-navigation .main-menu > li.menu-item-has-children :not(:last-child).desktop-submenu-expand {962 .main-navigation .main-menu > li.menu-item-has-children .mobile-submenu-expand, 963 .main-navigation .main-menu > li.menu-item-has-children .desktop-submenu-expand { 963 964 margin-right: 0.5rem; 964 965 } … … 1015 1016 } 1016 1017 1017 .main-navigation .sub-menu > li.menu-item-has-children :not(:last-child).mobile-submenu-expand,1018 .main-navigation .sub-menu > li.menu-item-has-children :not(:last-child).desktop-submenu-expand {1018 .main-navigation .sub-menu > li.menu-item-has-children .mobile-submenu-expand, 1019 .main-navigation .sub-menu > li.menu-item-has-children .desktop-submenu-expand { 1019 1020 margin-right: 0; 1020 1021 } … … 1083 1084 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover, 1084 1085 .main-navigation .main-menu .menu-item-has-children .sub-menu:focus { 1085 display: table;1086 margin-top: 0;1087 opacity: 1;1088 1086 /* Non-mobile position */ 1089 1087 } … … 1094 1092 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover, 1095 1093 .main-navigation .main-menu .menu-item-has-children .sub-menu:focus { 1094 display: table; 1095 margin-top: 0; 1096 opacity: 1; 1096 1097 position: absolute; 1097 1098 left: 0; … … 1479 1480 /* Alignments */ 1480 1481 .alignleft { 1482 /*rtl:ignore*/ 1481 1483 float: left; 1482 1484 margin-right: 1rem; … … 1484 1486 1485 1487 .alignright { 1488 /*rtl:ignore*/ 1486 1489 float: right; 1487 1490 margin-left: 1rem; … … 1540 1543 } 1541 1544 1545 .site-header.featured-image { 1546 display: flex; 1547 flex-direction: column; 1548 justify-content: space-between; 1549 min-height: 90vh; 1550 } 1551 1552 .site-header.featured-image .site-branding-container { 1553 margin-bottom: auto; 1554 } 1555 1542 1556 @media only screen and (min-width: 768px) { 1543 1557 .site-header { … … 1546 1560 } 1547 1561 .site-header.featured-image { 1548 display: flex;1549 1562 min-height: 100vh; 1550 flex-direction: column;1551 justify-content: space-between;1552 1563 margin-bottom: 3rem; 1553 }1554 .site-header.featured-image .site-branding-container {1555 margin-bottom: auto;1556 1564 } 1557 1565 } … … 1755 1763 1756 1764 .site-header.featured-image .site-featured-image .entry-header { 1765 margin-top: calc( 4 * 1rem); 1757 1766 margin-bottom: 0; 1758 1767 margin-left: 0; … … 2402 2411 } 2403 2412 2413 .comment-list .pingback .comment-body { 2414 color: #767676; 2415 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 2416 font-size: 0.71111em; 2417 font-weight: 500; 2418 margin-bottom: 1rem; 2419 } 2420 2421 .comment-list .pingback .comment-body a:not(.comment-edit-link) { 2422 font-weight: bold; 2423 font-size: 19.55556px; 2424 line-height: 1.5; 2425 padding-right: 0.5rem; 2426 display: block; 2427 } 2428 2429 .comment-list .pingback .comment-body .comment-edit-link { 2430 color: #767676; 2431 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 2432 font-weight: 500; 2433 } 2434 2404 2435 .comment-reply { 2405 2436 left: calc(1rem + 100%); … … 2430 2461 } 2431 2462 2432 .comment:hover > .comment-body > .comment-meta > .comment-metadata > .edit-link-sep,2433 .comment:hover > .comment-body > .comment-meta > .comment-metadata > .edit-link {2434 opacity: 1;2435 }2436 2437 2463 .comment .comment-body { 2438 2464 margin: calc(2 * 1rem) 0; … … 2444 2470 2445 2471 @media only screen and (min-width: 768px) { 2472 .comment .comment-meta { 2473 display: flex; 2474 } 2475 } 2476 2477 @media only screen and (min-width: 768px) { 2446 2478 .comment .comment-author { 2447 display: inline-block;2479 flex: 0 0 auto; 2448 2480 vertical-align: baseline; 2449 2481 } … … 2513 2545 @media only screen and (min-width: 768px) { 2514 2546 .comment .comment-metadata { 2515 display: inline-block;2547 flex: 1 0 auto; 2516 2548 margin-left: 1rem; 2517 2549 position: relative; … … 2546 2578 color: #767676; 2547 2579 margin: 0 0.2em; 2548 opacity: 0;2549 transition: opacity 200ms ease-in-out;2550 2580 vertical-align: baseline; 2551 2581 } … … 2553 2583 .comment .comment-metadata .edit-link { 2554 2584 color: #767676; 2555 transition: opacity 200ms ease-in-out;2556 opacity: 0;2557 2585 } 2558 2586 … … 2838 2866 color: #767676; 2839 2867 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 2840 font-size: calc(22px * 1. 6875);2868 font-size: calc(22px * 1.125); 2841 2869 font-weight: bold; 2842 2870 line-height: 1.2; … … 2876 2904 .entry-content > *, 2877 2905 .entry-summary > * { 2906 max-width: calc(100vw - (2 * 1rem)); 2878 2907 margin: 32px 1rem; 2879 max-width: calc(100vw - (2 * 1rem));2880 2908 /* 2881 2909 // Set top margins for headings … … 2894 2922 .entry-content > *, 2895 2923 .entry-summary > * { 2896 margin: 32px calc(2 * (100vw / 12));2897 2924 max-width: calc(8 * (100vw / 12)); 2898 2925 } … … 2903 2930 .entry-summary > * { 2904 2931 max-width: calc(6 * (100vw / 12)); 2932 } 2933 } 2934 2935 @media only screen and (min-width: 768px) { 2936 .entry-content > *, 2937 .entry-summary > * { 2938 margin: 32px calc(2 * (100vw / 12)); 2905 2939 } 2906 2940 } … … 3023 3057 max-width: 385.44px; 3024 3058 } 3059 } 3060 3061 .entry-content .wp-block-audio.aligncenter { 3062 margin: 32px calc(2 * (100vw / 12)); 3063 max-width: calc(6 * (100vw / 12)); 3025 3064 } 3026 3065 … … 3087 3126 color: #767676; 3088 3127 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 3089 font-size: calc(22px * 1. 6875);3128 font-size: calc(22px * 1.125); 3090 3129 font-weight: bold; 3091 3130 line-height: 1.2; … … 3363 3402 } 3364 3403 3404 .entry-content .wp-block-cover-image.aligncenter, 3405 .entry-content .wp-block-cover.aligncenter { 3406 margin: 32px calc(2 * (100vw / 12)); 3407 max-width: calc(6 * (100vw / 12)); 3408 } 3409 3365 3410 .entry-content .wp-block-cover-image.has-left-content, 3366 3411 .entry-content .wp-block-cover.has-left-content { … … 3406 3451 margin: 0; 3407 3452 padding: 0.5rem; 3408 text-align: left;3453 text-align: center; 3409 3454 } 3410 3455 … … 3413 3458 margin-bottom: 2rem; 3414 3459 margin-top: 2rem; 3460 text-align: left; 3415 3461 /* Remove duplicate rule-line when a separator 3416 3462 * is followed by an H1, or H2 */ … … 3434 3480 .entry-content hr + h2:before { 3435 3481 display: none; 3482 } 3483 3484 .entry-content .wp-block-separator.is-style-dots, 3485 .entry-content hr.is-style-dots { 3486 max-width: calc(100vw - (2 * 1rem)); 3487 text-align: center; 3488 } 3489 3490 @media only screen and (min-width: 768px) { 3491 .entry-content .wp-block-separator.is-style-dots, 3492 .entry-content hr.is-style-dots { 3493 max-width: calc(8 * (100vw / 12)); 3494 } 3495 } 3496 3497 @media only screen and (min-width: 1168px) { 3498 .entry-content .wp-block-separator.is-style-dots, 3499 .entry-content hr.is-style-dots { 3500 max-width: calc(6 * (100vw / 12)); 3501 } 3436 3502 } 3437 3503 … … 3494 3560 .entry-content .wp-block-code code { 3495 3561 font-size: 1.125em; 3562 white-space: pre-wrap; 3563 word-break: break-word; 3496 3564 } 3497 3565 … … 3592 3660 } 3593 3661 3594 .wp-caption .wp-caption-text {3595 margin: calc(0.875 * 1rem) 0;3596 }3597 3598 3662 .wp-caption-text { 3663 color: #767676; 3664 font-size: 0.71111em; 3665 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 3666 line-height: 1.6; 3667 margin: 0; 3668 padding: 0.5rem; 3599 3669 text-align: center; 3600 3670 }
Note: See TracChangeset
for help on using the changeset viewer.