|
62 | 62 | h6 {
|
63 | 63 | font-size:13px;
|
64 | 64 | }
|
| 65 | +/* Disable font boosting */ |
| 66 | +h1, h2, h3, h4, h5, h6 { |
| 67 | + max-height: 2em; |
| 68 | +} |
65 | 69 | ul {
|
66 | 70 | list-style-type:disc;
|
67 | 71 | }
|
@@ -717,52 +721,6 @@ span#page-search-link {
|
717 | 721 | background: #F8981D;
|
718 | 722 | color: #253441;
|
719 | 723 | }
|
720 |
| -button.copy-url { |
721 |
| - opacity: 80%; |
722 |
| - transition: opacity 0.2s; |
723 |
| - margin-left: 0.4em; |
724 |
| - border: none; |
725 |
| - border-radius: 3px; |
726 |
| - cursor: pointer; |
727 |
| - background: none; |
728 |
| - padding:0.3em; |
729 |
| - position: relative; |
730 |
| - top:0.13em |
731 |
| -} |
732 |
| -button.copy-url img { |
733 |
| - width: 1.2em; |
734 |
| - height: 1.2em; |
735 |
| - padding: 0.01em 0; |
736 |
| - background: none; |
737 |
| - position:relative; |
738 |
| - top: 0.15em; |
739 |
| -} |
740 |
| -div.page-search-info:hover button.copy-url { |
741 |
| - opacity: 90%; |
742 |
| -} |
743 |
| -div.page-search-info button.copy-url:hover { |
744 |
| - background-color: #dfe6f1; |
745 |
| - opacity: 100%; |
746 |
| -} |
747 |
| -button.copy-url span { |
748 |
| - color: #000000; |
749 |
| - content: attr(aria-label); |
750 |
| - font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; |
751 |
| - font-size: 85%; |
752 |
| - line-height: 1.2em; |
753 |
| - padding: 0.2em; |
754 |
| - position: relative; |
755 |
| - top: -0.18em; |
756 |
| - transition: opacity 0.1s; |
757 |
| - opacity: 0; |
758 |
| -} |
759 |
| -div.page-search-info:hover button.copy-url span { |
760 |
| - opacity: 90%; |
761 |
| -} |
762 |
| -div.page-search-info button.copy-url:active { |
763 |
| - background-color: #cfdbee; |
764 |
| - opacity: 100%; |
765 |
| -} |
766 | 724 | .module-graph span {
|
767 | 725 | display:none;
|
768 | 726 | position:absolute;
|
@@ -832,7 +790,111 @@ main a[href*="://"]:focus::after {
|
832 | 790 | 132-240 240 120 120 240-240 132 132V0z" fill="%23bb7a2a"/>\
|
833 | 791 | </svg>');
|
834 | 792 | }
|
835 |
| - |
| 793 | +/* |
| 794 | + * Styles for copy-to-clipboard buttons |
| 795 | + */ |
| 796 | +button.copy { |
| 797 | + opacity: 80%; |
| 798 | + border: none; |
| 799 | + border-radius: 3px; |
| 800 | + position: relative; |
| 801 | + background:none; |
| 802 | + transition: opacity 0.2s; |
| 803 | + cursor: pointer; |
| 804 | +} |
| 805 | +button.copy:hover, |
| 806 | +button.copy:active { |
| 807 | + opacity: 100%; |
| 808 | +} |
| 809 | +button.copy img { |
| 810 | + position: relative; |
| 811 | + background: none; |
| 812 | +} |
| 813 | +button.copy span { |
| 814 | + color: #303030; |
| 815 | + position: relative; |
| 816 | + top: -0.1em; |
| 817 | + transition: all 0.1s; |
| 818 | + font-size: 85%; |
| 819 | + line-height: 1.2em; |
| 820 | +} |
| 821 | +/* header/section copy button */ |
| 822 | +button.copy-header { |
| 823 | + margin: 0 0.2em; |
| 824 | + padding: 0 4px; |
| 825 | + height: 1.35em; |
| 826 | +} |
| 827 | +button.copy-header img { |
| 828 | + height: 1em; |
| 829 | + top: 0.1em; |
| 830 | +} |
| 831 | +button.copy-header:active { |
| 832 | + background-color: rgba(128, 128, 160, 0.2); |
| 833 | +} |
| 834 | +/* search page copy button */ |
| 835 | +button#page-search-copy { |
| 836 | + margin-left: 0.4em; |
| 837 | + padding:0.3em; |
| 838 | + top:0.13em; |
| 839 | +} |
| 840 | +button#page-search-copy img { |
| 841 | + width: 1.2em; |
| 842 | + height: 1.2em; |
| 843 | + padding: 0.01em 0; |
| 844 | + top: 0.15em; |
| 845 | +} |
| 846 | +button#page-search-copy span { |
| 847 | + color: #000000; |
| 848 | + content: attr(aria-label); |
| 849 | + line-height: 1.2em; |
| 850 | + padding: 0.2em; |
| 851 | + top: -0.18em; |
| 852 | + opacity: 0; |
| 853 | +} |
| 854 | +div.page-search-info:hover button#page-search-copy, |
| 855 | +div.page-search-info:hover button#page-search-copy span { |
| 856 | + opacity: 90%; |
| 857 | +} |
| 858 | +div.page-search-info button#page-search-copy:hover { |
| 859 | + background-color: #dfe6f1; |
| 860 | +} |
| 861 | +div.page-search-info button#page-search-copy:active { |
| 862 | + background-color: #cfdbee; |
| 863 | +} |
| 864 | +/* snippet copy button */ |
| 865 | +button.snippet-copy { |
| 866 | + position: absolute; |
| 867 | + top: 6px; |
| 868 | + right: 6px; |
| 869 | + height: 1.7em; |
| 870 | + opacity: 50%; |
| 871 | + padding: 2px; |
| 872 | +} |
| 873 | +button.snippet-copy img { |
| 874 | + width: 18px; |
| 875 | + height: 18px; |
| 876 | + padding: 0.05em 0; |
| 877 | +} |
| 878 | +button.snippet-copy span { |
| 879 | + content: attr(aria-label); |
| 880 | + line-height: 1.2em; |
| 881 | + padding: 0.2em; |
| 882 | + position: relative; |
| 883 | + top: -0.5em; |
| 884 | + display: none; |
| 885 | +} |
| 886 | +div.snippet-container:hover button.snippet-copy span { |
| 887 | + display: inline; |
| 888 | +} |
| 889 | +div.snippet-container:hover button.snippet-copy { |
| 890 | + opacity: 80%; |
| 891 | +} |
| 892 | +div.snippet-container button.snippet-copy:hover { |
| 893 | + opacity: 100%; |
| 894 | +} |
| 895 | +button.snippet-copy:active { |
| 896 | + background: #d3d3d3; |
| 897 | +} |
836 | 898 | /*
|
837 | 899 | * Styles for user-provided tables.
|
838 | 900 | *
|
@@ -1067,49 +1129,6 @@ pre.snippet {
|
1067 | 1129 | div.snippet-container {
|
1068 | 1130 | position: relative;
|
1069 | 1131 | }
|
1070 |
| -button.snippet-copy { |
1071 |
| - position: absolute; |
1072 |
| - top: 6px; |
1073 |
| - right: 6px; |
1074 |
| - height: 1.7em; |
1075 |
| - opacity: 50%; |
1076 |
| - transition: opacity 0.2s; |
1077 |
| - padding: 2px; |
1078 |
| - border: none; |
1079 |
| - cursor: pointer; |
1080 |
| - background: none; |
1081 |
| -} |
1082 |
| -button.snippet-copy img { |
1083 |
| - width: 18px; |
1084 |
| - height: 18px; |
1085 |
| - padding: 0.05em 0; |
1086 |
| - background: none; |
1087 |
| -} |
1088 |
| -div.snippet-container:hover button.snippet-copy { |
1089 |
| - opacity: 80%; |
1090 |
| -} |
1091 |
| -div.snippet-container button.snippet-copy:hover { |
1092 |
| - opacity: 100%; |
1093 |
| -} |
1094 |
| -button.snippet-copy span { |
1095 |
| - color: #3d3d3d; |
1096 |
| - content: attr(aria-label); |
1097 |
| - font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; |
1098 |
| - font-size: 85%; |
1099 |
| - line-height: 1.2em; |
1100 |
| - padding: 0.2em; |
1101 |
| - position: relative; |
1102 |
| - white-space: nowrap; |
1103 |
| - top: -0.5em; |
1104 |
| - display: none; |
1105 |
| -} |
1106 |
| -div.snippet-container:hover button.snippet-copy span { |
1107 |
| - display: inline; |
1108 |
| -} |
1109 |
| -button.snippet-copy:active { |
1110 |
| - background: #d3d3d3; |
1111 |
| - opacity: 100%; |
1112 |
| -} |
1113 | 1132 | @media screen and (max-width: 800px) {
|
1114 | 1133 | pre.snippet {
|
1115 | 1134 | padding-top: 26px;
|
|
0 commit comments