File tree Expand file tree Collapse file tree
client/web/compose/src/components/Admin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 <b-form-file
2121 :placeholder =" $t('label.importPlaceholder')"
2222 :browse-text =" $t('label.browse')"
23- class =" font-wight-normal pointer"
2423 @change =" loadFile"
2524 />
2625
@@ -199,26 +198,3 @@ export default {
199198 },
200199}
201200 </script >
202- <style lang="scss">
203- $input-height : 42px ;
204- $line-height : 30px ;
205-
206- .custom-file-input {
207- height : $input-height ;
208- }
209-
210- .custom-file-label {
211- height : $input-height ;
212- font-family : var (--font-regular );
213-
214- & ::after {
215- height : 100% ;
216- font-family : var (--btn-font-family );
217- line-height : $line-height ;
218- background-color : var (--light );
219- color : var (--dark );
220- font-weight : 400 ;
221- padding : var (btn-padding-y ) var (--btn-padding-x );
222- }
223- }
224- </style >
Original file line number Diff line number Diff line change 326326 & [disabled ] ~ .custom-file-label ,
327327 & :disabled ~ .custom-file-label {
328328 background-color : $custom-file-disabled-bg ;
329+ cursor : not-allowed
329330 }
330331
331332 @each $lang , $value in $custom-file-text {
340341}
341342
342343.custom-file-label {
344+ cursor : pointer ;
343345 position : absolute ;
344346 top : 0 ;
345347 right : 0 ;
365367 display : block ;
366368 height : $custom-file-height-inner ;
367369 padding : $custom-file-padding-y $custom-file-padding-x ;
370+ font-family : $btn-font-family ;
368371 line-height : $custom-file-line-height ;
369372 color : $custom-file-button-color ;
370373 content : " Browse" ;
371374 @include gradient-bg ($custom-file-button-bg );
372375 border-left : inherit ;
373- @include border-radius ( 0 $custom-file-border-radius $custom-file-border-radius 0 ) ;
376+ border-radius : 0 ;
374377 }
375378}
376379
Original file line number Diff line number Diff line change 955955 text-shadow : 0 0 0 $custom-select-color ;
956956 }
957957 }
958+
959+ .custom-file-input {
960+ & :focus ~ .custom-file-label {
961+ border-color : $custom-file-focus-border-color ;
962+ box-shadow : $custom-file-focus-box-shadow ;
963+ }
964+
965+ // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
966+ & [disabled ] ~ .custom-file-label ,
967+ & :disabled ~ .custom-file-label {
968+ background-color : $custom-file-disabled-bg ;
969+ }
970+ }
971+
958972 .custom-file-label {
959973 font-family : $custom-file-font-family ;
960974 font-weight : $custom-file-font-weight ;
966980 @include box-shadow ($custom-file-box-shadow );
967981
968982 & ::after {
983+ font-family : $btn-font-family ;
969984 line-height : $custom-file-line-height ;
970985 color : $custom-file-button-color ;
971986 @include gradient-bg ($custom-file-button-bg );
972- @include border-radius (
973- 0 $custom-file-border-radius $custom-file-border-radius 0
974- );
975987 }
976988 }
977989 .custom-range {
9911003 }
9921004 }
9931005
994- & ::-moz-focus-outer {
995- border : 0 ;
996- }
997-
9981006 & ::-webkit-slider-thumb {
9991007 @include gradient-bg ($custom-range-thumb-bg );
10001008 border : $custom-range-thumb-border ;
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ $pagination-active-bg: $primary !default;
148148$pagination-border-width : 0 !default ;
149149
150150// Forms
151+ $input-font-family : $font-regular !default ;
151152$input-color : $black !default ;
152153$input-disabled-bg : $light !default ;
153154
You can’t perform that action at this time.
0 commit comments