UNPKG

censa_front_end_library

Version:

React components library project for censa Design System

355 lines (317 loc) 7.08 kB
.VerticalNav { display: inline-flex; flex-direction: column; } .VerticalNav--expanded { width: 240px; } .VerticalNav-section { text-transform: capitalize; padding-left: var(--spacing-2); padding-top: var(--spacing-l); padding-bottom: 6px; margin-top: var(--spacing); font-weight: var(--font-weight-normal); } .VerticalNav-section--border { /* border-top: var(--spacing-xs) solid var(--secondary-light); */ color: var(--placeholder); font-size: var(--font-size); } .MenuItem { text-decoration: none; box-sizing: border-box; display: flex; align-items: center; cursor: pointer; transition: var(--duration--fast-01) var(--standard-productive-curve); width: 220px; } .MenuItem--horizontal { height: var(--spacing-3); padding-right: var(--spacing-l); padding-left: var(--spacing-l); border-radius: var(--spacing-2); margin: 0 var(--spacing-xs); } .MenuItem--vertical { margin-top: var(--spacing-m); margin-bottom: var(--spacing-m); } .MenuItem--collapsed { height: 30px; width: 30px; margin-left: 10px; margin-right: 10px; justify-content: center; border-radius: 8px; cursor: pointer; } .MenuItem--expanded { padding-left: var(--spacing-2); padding-top: var(--spacing-m); padding-bottom: var(--spacing-m); margin-right: var(--spacing); justify-content: space-between; /*border-radius: 0px var(--spacing-2) var(--spacing-2) 0px;*/ } .MenuItem--disabled { pointer-events: none; } .MenuItem:hover { background: var(--secondary); text-decoration: none; border-radius: 8px; font-weight: normal; } .MenuItem .Icon { font-size: 18px !important; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20 !important; } .MenuItem--active i { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20 !important; } .MenuItem:active { background: var(--secondary-dark); } .MenuItem:focus { box-shadow: var(--shadow-spread) var(--secondary-shadow); outline: none; } .MenuItem--disabled:focus { box-shadow: none; } .MenuItem--active { background: var(--primary-lightest); border-radius: 8px; } .MenuItem--active:hover { background: var(--primary-lighter); border-radius: 8px; } .MenuItem--active:active { background: var(--primary-lighter); color: var(--primary-darker); } .MenuItem--active:active .MenuItem-Text { color: var(--primary-darker); } .MenuItem--active:focus { box-shadow: var(--shadow-spread) var(--primary-shadow); outline: none; } .MenuItem--rounded { border-radius: var(--spacing-2); } .MenuItem--subMenu { padding-left: 40px; } .MenuItem .Text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .MenuItem-count { margin-right: var(--spacing-m); } .MenuItem-count--disabled { opacity: 0.6; color: var(--text); } .censa-img { width: 76px; margin-left: 10px; } .cursor-pointer { font-size: 25px !important; width: 25px !important; } .Icon.mr-5 { font-size: var(--font-size-I); fontvariationsettings: normal !important; } .Collapsible-body { background-color: var(--white); } .Collapsible-footer { display: none; } .VerticalNav-section .Text--subtle { font-weight: 500; } /* .MenuItem--expanded.color-inverse ~ .MenuItem--active { background-color:var(--stone-lighter); } */ /* Responsive CSS */ /* For tablet and smaller screens */ /* .overlay { display: none; position: fixed; top: 40px; left: 20px; width: 30%; height: 100%; background-color: rgba(0, 0, 0, 0.5); } .overlay.show { display: block; z-index: 999; } */ @media (max-width: 480px) { .VerticalNav--expanded { width: 60% !important; } } /* @media (max-width: 768px) { /* .MenuItem--expanded { display: none; } } */ /* CSS to position the list as an overlay on tablet and mobile screens */ /* CSS to position the list as an overlay on tablet and mobile screens */ /* CSS to position the menu items as an overlay on tablet and mobile screens */ /* Base styles */ /* Default styles for the collapsed state */ .vertical-nav { display: none; } /* Styles for the expanded state on desktop */ @media (min-width: 992px) { .vertical-nav { display: block; } .close-iconin { display: none; } } @media (max-width: 767px) { .vh-100.flat-collapse { height: auto !important; } .Collapsible { height: auto !important; } .VerticalNav--expanded .MenuItem--expanded { padding-left: 4px; } .positioncollapse { left: 0; top: 0; position: absolute; } .VerticalNav--expanded { /* position: fixed; top: 40px; left: 5%; width: 30%; background-color: #fff; z-index: 999; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */ } .MenuItem--collapsed { display: none; } .expandedCollapsible { position: fixed; top: 40px; left: 5%; width: 30%; background-color: #fff; z-index: 999; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } } /* @media (max-width: 767px) { .MenuItem--collapsed { display: none; } .censa-img { display: none; } } */ @media only screen and (max-width: 992px) { .vh-100.flat-collapse { height: auto !important; } .Collapsible { height: auto !important; } .flex-margin { margin-bottom: 20px; } .MenuItem--collapsed { display: none; } /* .VerticalNav--expanded { width: 20px; } */ .expandedCollapsible { position: fixed; top: 28%; left: 0; width: 30%; /* background-color: #fff; */ z-index: 999; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.5); } .VerticalNav--expanded { } .positioncollapse { left: 0; top: 0; position: absolute; } .VerticalNav--expanded .MenuItem--expanded { padding-left: 4px; } .box-shadow-open { box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Adjust shadow properties as needed */ } .positioncollapse .Collapsible-body { padding: 10px; } .positioncollapse.iconleft { top: 12px; left: 10px; } .bg-overlay { background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black */ top: 0; left: 0; z-index: 99; /* Ensure overlay is behind the menu but above other content */ } .flat-collapse .position-fixed { position: fixed !important; left: 16px; top: 16px; } } /* @media (min-width: 768px) { .MenuItem--expanded { display: none; } .MenuItem--expanded { display: block; } } */ @media (max-width: 767px) { .VerticalNav--expanded { } .box-shadow-open { box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Adjust shadow properties as needed */ } } @media (min-width: 992px) { .vertical-nav { display: block; } }