Skip to content

Commit b8a9eee

Browse files
committed
feat(color-picker): m3 styles
1 parent 1420089 commit b8a9eee

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

src/core/components/color-picker/color-picker.less

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
width: var(--f7-color-picker-popover-width);
4343
max-width: 90vw;
4444
max-height: 80vh;
45+
.md & {
46+
.popover-inner {
47+
padding: 8px;
48+
}
49+
}
4550
.color-picker {
4651
max-height: 80vh;
4752
}
@@ -97,8 +102,16 @@
97102
}
98103
.color-picker-sb-spectrum,
99104
.color-picker-hs-spectrum {
100-
border-radius: 4px;
101105
height: var(--f7-color-picker-sb-spectrum-height);
106+
.ios & {
107+
border-radius: 4px;
108+
}
109+
.md & {
110+
border-radius: 12px;
111+
&::after {
112+
border-radius: inherit;
113+
}
114+
}
102115
}
103116
}
104117
.color-picker-sb-spectrum {
@@ -484,11 +497,11 @@
484497
.color-picker-module-brightness-slider,
485498
.color-picker-module-hex {
486499
background: var(--f7-color-picker-group-bg-color);
487-
padding: 5px;
488-
border-radius: 4px;
500+
padding: 8px;
501+
border-radius: 8px;
489502
margin-top: 16px;
490-
margin-left: 5px;
491-
margin-right: 5px;
503+
margin-left: 8px;
504+
margin-right: 8px;
492505
&:last-child {
493506
margin-bottom: 16px;
494507
}

0 commit comments

Comments
 (0)