Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3a4a97

Browse files
committed
Spinbox error variant [amends#561]
1 parent88ac574 commite3a4a97

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

‎src/stylesheets/components/_fsa.spinbox.scss‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
min-width:10ch;// for browsers that support ch unit
2222
}
2323

24+
&--error {
25+
// border-color: $form-error-color;
26+
// box-shadow: 0 0 0 1px $form-error-color inset;
27+
// background-color: $form-error-color-bg;
28+
}
29+
2430
&--small {
2531
@includefont-size(2);
2632
min-width:7.2rem;
@@ -67,9 +73,16 @@
6773
display:block;
6874
width:100%;
6975
appearance:initial;
76+
background:transparent;
7077
-moz-appearance: textfield;
7178
}
7279

80+
&.fsa-input--error {
81+
.fsa-spinbox--error& {
82+
box-shadow:none;
83+
}
84+
}
85+
7386
&[disabled] {}
7487

7588
&::-webkit-inner-spin-button,

‎src/stylesheets/elements/_fsa.form-elements.affix.scss‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
display:inline-flex;
66
align-items:stretch;
77
background-color:$color-white;
8+
.fsa-spinbox--error& {
9+
border-color:$form-error-color;
10+
box-shadow:0001px$form-error-colorinset;
11+
background-color:$form-error-color-bg;
12+
}
13+
814
&:focus-within {
915
outline:3pxsolid$color-focus;
1016
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp