|
1 | 1 | .repository .data-table .line-num, |
2 | 2 | .repository .diff-file-box .file-body.file-code .lines-num, |
3 | | -.repository .diff-file-box .code-diff tbody tr .lines-type-marker, |
4 | | -.repository .repository-summary .segment.language-stats { |
5 | | - -webkit-touch-callout: none; |
6 | | - -webkit-user-select: none; |
| 3 | +.repository .diff-file-box .code-diff tbody tr .lines-type-marker { |
7 | 4 | user-select: none; |
8 | 5 | } |
9 | 6 |
|
|
1943 | 1940 | border-bottom: 1px solid var(--color-warning-border); |
1944 | 1941 | } |
1945 | 1942 |
|
1946 | | -.repository .ui.segment.sub-menu { |
1947 | | - padding: 7px; |
1948 | | - line-height: 0; |
1949 | | -} |
1950 | | - |
1951 | | -.repository .ui.segment.sub-menu .list { |
1952 | | - width: 100%; |
1953 | | - display: flex; |
1954 | | - align-items: stretch; |
1955 | | -} |
1956 | | - |
1957 | | -.repository .ui.segment.sub-menu .list .item { |
1958 | | - width: 100%; |
1959 | | - color: var(--color-text); |
1960 | | - display: flex; |
1961 | | - align-items: center; |
1962 | | - justify-content: center; |
1963 | | -} |
1964 | | - |
1965 | | -.repository .ui.segment.sub-menu .list .item:first-of-type { |
1966 | | - border-radius: var(--border-radius) 0 0 var(--border-radius); |
1967 | | - padding-left: 0.25rem; |
1968 | | -} |
1969 | | - |
1970 | | -.repository .ui.segment.sub-menu .list .item:last-of-type { |
1971 | | - border-radius: 0 var(--border-radius) var(--border-radius) 0; |
1972 | | - padding-right: 0.25rem; |
1973 | | -} |
1974 | | - |
1975 | | -.repository .ui.segment.sub-menu .list .item a { |
1976 | | - color: var(--color-text); |
1977 | | -} |
1978 | | - |
1979 | | -.repository .ui.segment.sub-menu .list .item a:hover { |
1980 | | - color: var(--color-primary-light-2); |
1981 | | -} |
1982 | | - |
1983 | | -.repository .ui.segment.sub-menu .list .item.active { |
1984 | | - background: var(--color-secondary); |
1985 | | -} |
1986 | | - |
1987 | 1943 | .repository .segment.reactions.dropdown .menu, |
1988 | 1944 | .repository .select-reaction.dropdown .menu { |
1989 | 1945 | right: 0 !important; |
|
2081 | 2037 | } |
2082 | 2038 |
|
2083 | 2039 | .repository .repository-summary { |
2084 | | - box-shadow: none !important; |
2085 | | -} |
2086 | | - |
2087 | | -.repository .repository-summary .segment.language-stats-details, |
2088 | | -.repository .repository-summary .segment.repository-summary { |
2089 | | - border-top: none; |
2090 | | - background: none; |
| 2040 | + box-shadow: none; |
2091 | 2041 | } |
2092 | 2042 |
|
2093 | | -.repository .repository-summary .segment.language-stats-details .item { |
2094 | | - white-space: nowrap; |
| 2043 | +.repository .repository-summary .segment.sub-menu { |
| 2044 | + border: none; |
| 2045 | + display: flex; |
| 2046 | + align-items: center; |
| 2047 | + padding: 0 0.5em; /* make the UI look better for narrow (mobile) view */ |
| 2048 | + overflow: hidden; |
2095 | 2049 | } |
2096 | 2050 |
|
2097 | | -.repository .repository-summary .segment.language-stats { |
2098 | | - padding: 0; |
2099 | | - height: 11px; |
| 2051 | +.repository .repository-summary .sub-menu .item { |
| 2052 | + flex: 1; |
| 2053 | + height: 30px; |
| 2054 | + line-height: var(--line-height-default); |
2100 | 2055 | display: flex; |
2101 | | - white-space: nowrap; |
2102 | | - width: 100%; |
2103 | | - border-radius: 0; |
| 2056 | + align-items: center; |
| 2057 | + justify-content: center; |
| 2058 | + gap: 0.25em; |
| 2059 | + padding: 0 0.25em; |
2104 | 2060 | } |
2105 | 2061 |
|
2106 | | -@media (max-width: 767.98px) { |
2107 | | - .repository .repository-summary .segment.language-stats { |
2108 | | - display: none; |
2109 | | - } |
| 2062 | +.repository .repository-summary .sub-menu .item.active { |
| 2063 | + background: var(--color-secondary); |
2110 | 2064 | } |
2111 | 2065 |
|
2112 | | -.repository .repository-summary .segment.language-stats .bar { |
2113 | | - white-space: nowrap; |
2114 | | - border: 0; |
| 2066 | +.repository .repository-summary .segment.language-stats { |
| 2067 | + display: flex; |
2115 | 2068 | padding: 0; |
2116 | | - margin: 0; |
2117 | | - height: 100%; |
2118 | | -} |
2119 | | - |
2120 | | -.repository .repository-menu { |
2121 | | - padding: 0 !important; |
2122 | | -} |
2123 | | - |
2124 | | -.repository .repository-menu .item { |
2125 | | - padding-top: 9px !important; |
2126 | | - padding-bottom: 9px !important; |
| 2069 | + height: 10px; |
| 2070 | + white-space: nowrap; |
| 2071 | + border-radius: 0 0 3px 3px !important; |
| 2072 | + overflow: hidden; |
2127 | 2073 | } |
2128 | 2074 |
|
2129 | 2075 | #cite-repo-modal #citation-panel { |
@@ -2924,18 +2870,6 @@ tbody.commit-list { |
2924 | 2870 | height: 100%; |
2925 | 2871 | } |
2926 | 2872 |
|
2927 | | -/* prevent page shaking on language bar click */ |
2928 | | -.repository-summary-language-stats { |
2929 | | - height: 48px; |
2930 | | - overflow: hidden; |
2931 | | -} |
2932 | | - |
2933 | | -@media (max-width: 767.98px) { |
2934 | | - .repository-summary-language-stats { |
2935 | | - height: auto; |
2936 | | - } |
2937 | | -} |
2938 | | - |
2939 | 2873 | .ui.form .right .ui.button { |
2940 | 2874 | margin-left: 0.25em; |
2941 | 2875 | margin-right: 0; |
|
0 commit comments