|
1699 | 1699 | /* padding: 0rem 0.125rem 0rem 0.125rem; */ |
1700 | 1700 | } |
1701 | 1701 |
|
| 1702 | + /* Override Radix Code (rt-Code) accent coloring so inline code matches slate theme */ |
| 1703 | + code.rt-Code, |
| 1704 | + code.rt-Code.rt-variant-soft, |
| 1705 | + .rt-Code.rt-variant-soft { |
| 1706 | + color: var(--c-slate-11) !important; |
| 1707 | + background-color: var(--c-slate-3) !important; |
| 1708 | + } |
| 1709 | + |
1702 | 1710 | .code-error-style { |
1703 | 1711 | font-family: var(--font-jetbrains); |
1704 | 1712 | font-size: 0.835rem; |
|
1803 | 1811 | } |
1804 | 1812 | } |
1805 | 1813 |
|
| 1814 | + .code-block button, |
| 1815 | + .code-block > button { |
| 1816 | + border: none !important; |
| 1817 | + border-width: 0 !important; |
| 1818 | + background: transparent !important; |
| 1819 | + background-color: transparent !important; |
| 1820 | + opacity: 0 !important; |
| 1821 | + transition: opacity 0.15s ease-out !important; |
| 1822 | + pointer-events: none; |
| 1823 | + display: inline-flex !important; |
| 1824 | + align-items: center !important; |
| 1825 | + gap: 0.375rem !important; |
| 1826 | + font-size: 0.8125rem !important; |
| 1827 | + font-weight: 500 !important; |
| 1828 | + color: var(--c-slate-11) !important; |
| 1829 | + top: 8px !important; |
| 1830 | + right: 12px !important; |
| 1831 | + padding: 6px 8px !important; |
| 1832 | + } |
| 1833 | + |
| 1834 | + .code-block button::after, |
| 1835 | + .code-block > button::after { |
| 1836 | + content: "Copy"; |
| 1837 | + } |
| 1838 | + |
| 1839 | + .code-block:hover button, |
| 1840 | + .code-block:hover > button, |
| 1841 | + .code-block button:focus-visible { |
| 1842 | + opacity: 1 !important; |
| 1843 | + pointer-events: auto; |
| 1844 | + } |
| 1845 | + |
| 1846 | + .code-block button:hover, |
| 1847 | + .code-block > button:hover { |
| 1848 | + background: var(--c-slate-3) !important; |
| 1849 | + background-color: var(--c-slate-3) !important; |
| 1850 | + } |
| 1851 | + |
1806 | 1852 |
|
1807 | 1853 | .tab-style { |
1808 | 1854 | color: var(--c-slate-9); |
|
1814 | 1860 | letter-spacing: -0.01094rem; |
1815 | 1861 | } |
1816 | 1862 |
|
| 1863 | + .pill-tab-list { |
| 1864 | + display: inline-flex !important; |
| 1865 | + gap: 2px !important; |
| 1866 | + padding: 4px !important; |
| 1867 | + background: var(--c-slate-3) !important; |
| 1868 | + border-radius: 10px !important; |
| 1869 | + border-bottom: none !important; |
| 1870 | + box-shadow: none !important; |
| 1871 | + width: fit-content !important; |
| 1872 | + max-width: 100%; |
| 1873 | + overflow-x: auto; |
| 1874 | + } |
| 1875 | + |
| 1876 | + .pill-tab-list::before, |
| 1877 | + .pill-tab-list::after { |
| 1878 | + display: none !important; |
| 1879 | + content: none !important; |
| 1880 | + } |
| 1881 | + |
| 1882 | + .pill-tab { |
| 1883 | + appearance: none !important; |
| 1884 | + background: transparent !important; |
| 1885 | + background-color: transparent !important; |
| 1886 | + border: none !important; |
| 1887 | + padding: 8px 16px !important; |
| 1888 | + font-size: 0.9375rem !important; |
| 1889 | + font-weight: 450 !important; |
| 1890 | + color: var(--c-slate-11) !important; |
| 1891 | + border-radius: 7px !important; |
| 1892 | + cursor: pointer; |
| 1893 | + white-space: nowrap; |
| 1894 | + transition: color 0.12s, background-color 0.12s, box-shadow 0.12s; |
| 1895 | + letter-spacing: 0 !important; |
| 1896 | + line-height: 1.25rem !important; |
| 1897 | + box-shadow: none !important; |
| 1898 | + } |
| 1899 | + |
| 1900 | + .pill-tab::before, |
| 1901 | + .pill-tab::after, |
| 1902 | + .pill-tab:hover::before, |
| 1903 | + .pill-tab:hover::after, |
| 1904 | + .pill-tab[data-state='active']::before, |
| 1905 | + .pill-tab[data-state='active']::after, |
| 1906 | + .pill-tab[data-state='active']:hover::before, |
| 1907 | + .pill-tab[data-state='active']:hover::after { |
| 1908 | + background: transparent !important; |
| 1909 | + background-color: transparent !important; |
| 1910 | + box-shadow: none !important; |
| 1911 | + content: none !important; |
| 1912 | + display: none !important; |
| 1913 | + } |
| 1914 | + |
| 1915 | + .pill-tab:hover { |
| 1916 | + color: var(--c-slate-11) !important; |
| 1917 | + background: transparent !important; |
| 1918 | + } |
| 1919 | + |
| 1920 | + .pill-tab .rt-BaseTabListTriggerInner, |
| 1921 | + .pill-tab:hover .rt-BaseTabListTriggerInner, |
| 1922 | + .pill-tab:focus-visible .rt-BaseTabListTriggerInner, |
| 1923 | + .pill-tab:focus-visible:hover .rt-BaseTabListTriggerInner { |
| 1924 | + background-color: transparent !important; |
| 1925 | + background: transparent !important; |
| 1926 | + } |
| 1927 | + |
| 1928 | + .pill-tab[data-state='active'], |
| 1929 | + .pill-tab[data-state='active']:hover { |
| 1930 | + color: var(--c-slate-12) !important; |
| 1931 | + font-weight: 500 !important; |
| 1932 | + background: var(--c-slate-1) !important; |
| 1933 | + background-color: var(--c-slate-1) !important; |
| 1934 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important; |
| 1935 | + } |
| 1936 | + |
| 1937 | + :where(.dark, .dark *) .pill-tab[data-state='active'] { |
| 1938 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important; |
| 1939 | + } |
| 1940 | + |
| 1941 | + .tab-style:hover:not([data-state='active'])::before { |
| 1942 | + background: transparent !important; |
| 1943 | + background-color: transparent !important; |
| 1944 | + } |
| 1945 | + |
1817 | 1946 | .tab-style:hover { |
1818 | 1947 | color: var(--c-slate-11); |
1819 | 1948 | } |
|
0 commit comments