Add custom style for dropdowns

This commit is contained in:
Ramon Wenger 2019-07-31 15:33:00 +02:00
parent 99c39b1b69
commit 4d300e92eb
2 changed files with 14 additions and 1 deletions

View File

@ -20,6 +20,19 @@ $icon-size: 20px;
}
.skillbox-dropdown {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
text-indent: 1px;
text-overflow: '';
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%2317A887" d="M50,74.07,6.86,30.93A2.93,2.93,0,0,1,11,26.79l39,39,39-39a2.93,2.93,0,1,1,4.15,4.15Z"/></svg>');
background-repeat: no-repeat;
background-position: 97% center;
background-size: 24px 24px;
position: relative;
}
.skillbox-textarea {
@include inputstyle;
height: 120px;

View File

@ -66,7 +66,7 @@ export const css = {
'comment': 'survey__input skillbox-input question__input',
'dropdown': {
'root': '',
'control': 'survey__input skillbox-input',
'control': 'survey__input skillbox-input skillbox-dropdown',
'other': 'sv_q_dd_other skillbox-input'
},
'html': {