Skip to content

Commit 26de223

Browse files
committed
feat: more color branding work
1 parent 332224f commit 26de223

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/components/input/input.mat.styl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ input.q-input-target
4747
&:-ms-input-placeholder /* IE 10+ */
4848
color $form-dark !important
4949

50-
&::selection
51-
background black
52-
color white
53-
5450
.q-if-dark
5551
.q-input-target-placeholder
5652
color #979797 !important
@@ -62,10 +58,6 @@ input.q-input-target
6258
&:-ms-input-placeholder /* IE 10+ */
6359
color #979797 !important
6460

65-
&::selection
66-
background white
67-
color black
68-
6961
.q-if-inverted:not(.q-if-inverted-light)
7062
.q-input-target-placeholder
7163
color #ddd !important
@@ -77,10 +69,6 @@ input.q-input-target
7769
&:-ms-input-placeholder /* IE 10+ */
7870
color #ddd !important
7971

80-
&::selection
81-
background white
82-
color black
83-
8472
.q-input-shadow
8573
overflow hidden
8674
visibility hidden

src/utils/colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export function textToRgb (color) {
149149
export function lighten (color, percent) {
150150
const rgb = textToRgb(color),
151151
t = percent < 0 ? 0 : 255,
152-
p = (percent < 0 ? percent * -1 : percent) / 100,
152+
p = Math.abs(percent) / 100,
153153
R = rgb.r,
154154
G = rgb.g,
155155
B = rgb.b

0 commit comments

Comments
 (0)