UNPKG

infinite-menu

Version:

Infinite Menu helps you to create a menu with infinite number of sub menus

96 lines (81 loc) 1.67 kB
@import "./Loader.css"; .MenuContainer { width: 100%; height: 100%; overflow: auto; position: relative; } .OptionHead { display: flex; justify-content: space-between; border-bottom: 1px solid #001527; cursor: pointer; } .OptionHead svg { transition: transform 0.25s ease-out; fill: currentColor; } .OptionBody { overflow: hidden; max-height: 0; transition: max-height 0.25s ease-out; } .OptionContainer.open>.OptionBody { transition: max-height 0.25s ease-in; } .OptionContainer.open>.OptionHead .ArrowIcon { transform: rotate(180deg); transition: transform 0.25s ease-in; } .IconsContainer { display: flex; justify-content: center; align-items: center; padding: 0px 5px; } .IconsContainer svg { fill: currentColor !important; height: 100%; width: 100%; } .MenuContainer .OuterLoaderContainer { position: absolute; top: 0; left: 0; height: 100%; width: 100%; padding: 20px 0px; background-color: #0000008c; justify-content: center; align-items: center; display: none; } .MenuContainer .OuterLoaderContainer.show { display: flex; } .ShowOnlyIcon { width: 100%; } .IconsContainer.ShowOnlyIcon{ padding: 0px !important; } .MenuTitleContainer{ display: flex; justify-content: left; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .MenuTitleContainer span{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .TitleOuterContainer{ padding: 10px; flex-grow: 2; display: flex; justify-content: left; cursor: pointer; }