mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Use sliced MaterialSymbolsRounded font (#16994)
GitOrigin-RevId: 51158acccc9967794b2192791961561d43274979
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Material Symbols Rounded';
|
font-family: 'Material Symbols Rounded';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 100 700;
|
font-weight: 400;
|
||||||
font-display: block;
|
font-display: block;
|
||||||
src: url('material-symbols/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].woff2')
|
/*
|
||||||
format('woff2');
|
Generated from MaterialSymbolsRounded[FILL,GRAD,opsz,wght].woff2 with specific values:
|
||||||
|
'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20
|
||||||
|
*/
|
||||||
|
src: url('material-symbols/MaterialSymbolsRoundedSlice.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
.material-symbols {
|
.material-symbols {
|
||||||
@@ -12,6 +15,7 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
letter-spacing: normal;
|
letter-spacing: normal;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
@@ -23,10 +27,6 @@
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
.material-symbols.material-symbols-rounded {
|
|
||||||
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
|
|
||||||
}
|
|
||||||
|
|
||||||
.material-symbols-xl {
|
.material-symbols-xl {
|
||||||
font-size: 56px;
|
font-size: 56px;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
BIN
Binary file not shown.
+1
-5
@@ -9,11 +9,7 @@ export default function ManagedUserStatus({ user }: ManagedUserStatusProps) {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const managedUserInvite = (
|
const managedUserInvite = (
|
||||||
<span className="security-state-invite-pending">
|
<span className="security-state-invite-pending">
|
||||||
<MaterialIcon
|
<MaterialIcon type="schedule" accessibilityLabel={t('pending_invite')} />
|
||||||
type="schedule"
|
|
||||||
category="outlined"
|
|
||||||
accessibilityLabel={t('pending_invite')}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{t('managed')}
|
{t('managed')}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
+1
-5
@@ -23,11 +23,7 @@ function PendingInvite() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
return (
|
return (
|
||||||
<span className="security-state-invite-pending">
|
<span className="security-state-invite-pending">
|
||||||
<MaterialIcon
|
<MaterialIcon type="schedule" accessibilityLabel={t('pending_invite')} />
|
||||||
type="schedule"
|
|
||||||
category="outlined"
|
|
||||||
accessibilityLabel={t('pending_invite')}
|
|
||||||
/>
|
|
||||||
{t('sso')}
|
{t('sso')}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -164,7 +164,7 @@ function AllHistoryList() {
|
|||||||
// eslint-disable-next-line react/jsx-key
|
// eslint-disable-next-line react/jsx-key
|
||||||
<MaterialIcon
|
<MaterialIcon
|
||||||
type="align_end"
|
type="align_end"
|
||||||
className="material-symbols-rounded history-dropdown-icon-inverted"
|
className="history-dropdown-icon-inverted"
|
||||||
/>,
|
/>,
|
||||||
<a href="https://www.overleaf.com/learn/latex/Using_the_History_feature" />, // eslint-disable-line jsx-a11y/anchor-has-content, react/jsx-key
|
<a href="https://www.overleaf.com/learn/latex/Using_the_History_feature" />, // eslint-disable-line jsx-a11y/anchor-has-content, react/jsx-key
|
||||||
]}
|
]}
|
||||||
|
|||||||
+4
-4
@@ -42,7 +42,7 @@ function CompareVersionDropdownContentAllHistory({
|
|||||||
icon={
|
icon={
|
||||||
<MaterialIcon
|
<MaterialIcon
|
||||||
type="align_start"
|
type="align_start"
|
||||||
className="material-symbols-rounded history-dropdown-icon p-1"
|
className="history-dropdown-icon p-1"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -58,7 +58,7 @@ function CompareVersionDropdownContentAllHistory({
|
|||||||
icon={
|
icon={
|
||||||
<MaterialIcon
|
<MaterialIcon
|
||||||
type="align_end"
|
type="align_end"
|
||||||
className="material-symbols-rounded history-dropdown-icon p-1"
|
className="history-dropdown-icon p-1"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -102,7 +102,7 @@ function CompareVersionDropdownContentLabelsList({
|
|||||||
icon={
|
icon={
|
||||||
<MaterialIcon
|
<MaterialIcon
|
||||||
type="align_start"
|
type="align_start"
|
||||||
className="material-symbols-rounded history-dropdown-icon p-1"
|
className="history-dropdown-icon p-1"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -118,7 +118,7 @@ function CompareVersionDropdownContentLabelsList({
|
|||||||
icon={
|
icon={
|
||||||
<MaterialIcon
|
<MaterialIcon
|
||||||
type="align_end"
|
type="align_end"
|
||||||
className="material-symbols-rounded history-dropdown-icon p-1"
|
className="history-dropdown-icon p-1"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,27 +1,18 @@
|
|||||||
import classNames from 'classnames'
|
import classNames from 'classnames'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
type IconOwnProps = {
|
type IconProps = React.ComponentProps<'i'> & {
|
||||||
type: string
|
type: string
|
||||||
category?: 'rounded' | 'outlined'
|
|
||||||
accessibilityLabel?: string
|
accessibilityLabel?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
type IconProps = IconOwnProps &
|
|
||||||
Omit<React.ComponentProps<'i'>, keyof IconOwnProps>
|
|
||||||
|
|
||||||
function MaterialIcon({
|
function MaterialIcon({
|
||||||
type,
|
type,
|
||||||
category = 'rounded',
|
|
||||||
className,
|
className,
|
||||||
accessibilityLabel,
|
accessibilityLabel,
|
||||||
...rest
|
...rest
|
||||||
}: IconProps) {
|
}: IconProps) {
|
||||||
const iconClassName = classNames(
|
const iconClassName = classNames('material-symbols', className)
|
||||||
'material-symbols',
|
|
||||||
`material-symbols-${category}`,
|
|
||||||
className
|
|
||||||
)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ history-root {
|
|||||||
background-color: @neutral-10;
|
background-color: @neutral-10;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.material-symbols-rounded {
|
span.material-symbols {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -597,7 +597,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
i.material-symbols-rounded {
|
i.material-symbols {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@@ -869,7 +869,7 @@
|
|||||||
font-family: 'DM Mono', monospace;
|
font-family: 'DM Mono', monospace;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
||||||
i.material-symbols-rounded {
|
i.material-symbols {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding-bottom: 3px;
|
padding-bottom: 3px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
|||||||
Reference in New Issue
Block a user