fix: add dropdown chevron to account switcher
This commit is contained in:
@@ -99,14 +99,14 @@ function plugin_switchIdent_addCbElastic($wrapper, $sw) {
|
||||
}
|
||||
|
||||
$sw.css({
|
||||
'background': 'transparent',
|
||||
'background-color': 'transparent',
|
||||
'border': 'none',
|
||||
'font-weight': 'bold',
|
||||
'color': 'inherit',
|
||||
'box-shadow': 'none',
|
||||
'max-width': '200px',
|
||||
'text-overflow': 'ellipsis',
|
||||
'padding': '0 0.25em'
|
||||
'padding': '0 1.2em 0 0.25em'
|
||||
});
|
||||
|
||||
// Hide original username text and elements
|
||||
|
||||
@@ -15,6 +15,18 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Account switcher <select>: hide native arrow, show SVG chevron */
|
||||
.ident-switch-wrapper select {
|
||||
cursor: pointer;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ccc'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 0.3em center;
|
||||
background-size: 10px 6px;
|
||||
}
|
||||
|
||||
/* Unread badge */
|
||||
.ident-switch-badge {
|
||||
flex-shrink: 0;
|
||||
|
||||
Reference in New Issue
Block a user