Открыть боковую панель
Teknokomo
universo-react
Коммиты
35e7b41c
Не подтверждена
Коммит
35e7b41c
создал
Янв 22, 2024
по автору
Cats Juice
Просмотр файлов
fix(component): adjust the style of Switch to match the design (#5636)
closes #5635
владелец
fccdf8ed
Изменения
1
Скрыть пробелы
Построчно
Рядом
packages/frontend/component/src/ui/switch/index.css.ts
Просмотр файла @
35e7b41c
...
...
@@ -14,7 +14,7 @@ export const switchStyle = style({
position
:
'
relative
'
,
width
:
'
46px
'
,
height
:
'
26px
'
,
background
:
'
var(--affine-
icon
-color)
'
,
background
:
'
var(--affine-
toggle-disable-background
-color)
'
,
borderRadius
:
'
37px
'
,
transition
:
'
200ms all
'
,
border
:
'
1px solid var(--affine-black-10)
'
,
...
...
@@ -29,7 +29,7 @@ export const switchStyle = style({
borderRadius
:
'
50%
'
,
top
:
'
50%
'
,
border
:
'
1px solid var(--affine-black-10)
'
,
background
:
'
var(--affine-
white
)
'
,
background
:
'
var(--affine-
toggle-circle-background-color
)
'
,
transform
:
'
translate(1px, -50%)
'
,
},
},
...
...
@@ -38,7 +38,7 @@ export const switchCheckedStyle = style({
background
:
'
var(--affine-primary-color)
'
,
selectors
:
{
'
&:before
'
:
{
b
ackground
:
'
var(--affine-
toggle-circl
e-back
ground-color
)
'
,
b
orderColor
:
'
var(--affine-
pur
e-b
l
ack
-10
)
'
,
transform
:
'
translate(21px,-50%)
'
,
},
},
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать