mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-04-23 15:46:45 +02:00
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
- Label and Button now can set icon on both left and right side of the text - Fix ListView dropdown bug, and allow the dropdown list to positioned correctly based on its nearest anchored element
112 lines
2.1 KiB
CSS
112 lines
2.1 KiB
CSS
.afx-list-view{
|
|
overflow:hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
|
|
afx-list-view .afx-list-item
|
|
{
|
|
display: contents;
|
|
}
|
|
afx-list-view > div.list-container{
|
|
overflow: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
afx-list-view > div.list-container > ul{
|
|
margin:0;
|
|
padding: 0;
|
|
}
|
|
|
|
afx-list-view > div.list-container > ul li{
|
|
margin:0;
|
|
min-height: 25px;
|
|
padding: 5px;
|
|
list-style: none;
|
|
position: relative;
|
|
-webkit-user-select:none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
cursor:default;
|
|
}
|
|
afx-list-view > div.list-container > ul afx-dbline-list-item li{
|
|
min-height: 40px;
|
|
}
|
|
.afx-list-view[dir='horizontal'] > div.list-container > ul
|
|
{
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 100%;
|
|
}
|
|
|
|
afx-list-view > div.list-container > ul li > i {
|
|
margin-right: 3px;
|
|
}
|
|
|
|
afx-list-view i.closable{
|
|
display: inline-block;
|
|
position:absolute;
|
|
top:0px;
|
|
right:2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
afx-list-view i.closable:before{
|
|
content: "\f00d";
|
|
font-family: "FontAwesome";
|
|
font-style: normal;
|
|
font-size: 16px;
|
|
}
|
|
|
|
afx-list-view.dropdown {
|
|
padding:0;
|
|
margin: 0;
|
|
}
|
|
afx-list-view.dropdown > div.list-container{
|
|
overflow: visible;
|
|
/*position: absolute;*/
|
|
}
|
|
afx-list-view.dropdown > div.list-container > div
|
|
{
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
afx-list-view.dropdown > div.list-container > ul{
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
max-height: 200px;
|
|
z-index: 10;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 100%;
|
|
}
|
|
|
|
afx-list-view.dropdown > div.list-container > ul li{
|
|
width:100%;
|
|
}
|
|
|
|
afx-list-view.dropdown div.list-container > div > afx-label{
|
|
padding-left:3px;
|
|
padding-right: 5px;
|
|
height: 100%;
|
|
}
|
|
afx-list-view.dropdown div.list-container > div > afx-label span
|
|
{
|
|
justify-content: flex-start;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
afx-list-view div.button_container afx-button button
|
|
{
|
|
min-width: 30px;
|
|
min-height: 30px;
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
} |