UNPKG

@aleph-us/header-components

Version:
331 lines (314 loc) 6.13 kB
/*-*-*-*-**-*-*-*-**-*-*-*-**-*-*-*-* Header Content *-*-*-*-**-*-*-*-**-*-*-*-**-*-*-*-*/ .headercontainer { width: 100%; background-color: var(--main-blue); height: 60px; } .header { height: 60px; padding: 0 40px; padding-left: 0px !important; display: flex; align-items: center; display: flex; justify-content: space-between; } .header-logo { margin-top: 8px; display: flex; align-items: center; justify-content: center; justify-items: center; align-content: center; } .header-logo svg { width: 160px; margin-bottom: 4px; } .header-center span { font-size: 22px; color: var(--clr-always-white); } .header img { max-width: 180px; vertical-align: middle; } .header-logout { margin-top: 2px; display: flex; width: 160px; align-items: center; justify-content: right; line-height: 1; } .header-logout span { font-size: 18px; color: var(--clr-always-white); margin-right: 6px; } .header-logout a { font-size: 23px; color: white; text-decoration: none; margin-top: 4px; line-height: 1; } .showWhenSmall { display: none; } @media screen and (max-width: 610px) { .header { padding: 0px 20px; } .toggle-wrapper { margin-right: 2px !important; } .header-logout a { font-size: 18px; } .toggle-wrapper i { font-size: 18px !important; } .header-logout { max-width: 160px; width: auto; } .header-logo svg { width: 120px; } .showWhenSmall { display: block; } .hideWhenSmall { display: none; } } @media screen and (max-width: 470px) { .header { padding: 0px 10px; } } .toggle-wrapper { margin-right: 8px; } .toggle-wrapper i { cursor: pointer; font-size: 24px; color: var(--clr-always-white); } .positionCenterText { position: absolute; top: 52%; left: 50%; font-size: 20px; transform: translate(-50%, -50%); } .hideTop { position: absolute; top: -100px !important; right: 0; transition: top 0.3s ease; } .chevronAbsolute { z-index: 100; position: absolute; top: 70px; right: 35px; transition: top 0.3s ease; font-size: 21px; color: var(--clr-always-white); text-decoration: none; cursor: pointer; padding: 8px; background-color: var(--main-blue); border-radius: 50%; } .chevronAbsoluteDown { z-index: 100; position: absolute; top: 10px; right: 35px; transition: top 0.3s ease; font-size: 21px; color: var(--clr-always-white); text-decoration: none; cursor: pointer; padding: 8px; background-color: var(--main-blue); border-radius: 50%; } .positionAbsolute { position: absolute; width: 100%; top: 0; transition: top 0.3s ease; } .spacer { height: 60px; visibility: visible; transition: height 0.3s ease-out, visibility 0.3s ease-out; } .spacer.hidden { height: 0; visibility: hidden; } .header .dot { height: 23px; width: 23px; border-radius: 50%; display: inline-block; margin-left: 4px; box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16); border: 1px solid white; margin-top: 0px; } .header .dot.stopped { background-color: #ff6b6b; margin-left: 6px; vertical-align: text-bottom; } .header .dot.paused { background-color: orange; margin-left: 6px; vertical-align: text-bottom; } .header .dot.success { background-color: #61c654; margin-left: 6px; vertical-align: text-bottom; } /*-*-*-*-**-*-*-*-**-*-*-*-**-*-*-*-* Tooltip *-*-*-*-**-*-*-*-**-*-*-*-**-*/ .header .tooltip-container { position: relative; display: inline-block; } .header .tooltip-content { visibility: hidden; background-color: var(--clr-always-white); width: auto; min-width: 150px; color: #3d3c3b; font-size: 14px; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; text-align: left; border-radius: 6px; padding: 8px; position: absolute; z-index: 100000; bottom: -35px; left: -50px; margin-left: -6px; opacity: 0; transition: opacity 0.3s; } .header .tooltip-content ul { list-style-type: none; } .header .tooltip-container:hover .tooltip-content { visibility: visible; opacity: 1; } .header .tooltip-container.sm .tooltip-content { width: 70px !important; left: 0px; } .header .tooltip-container.sm span { width: 70px !important; display: block; } /*-*-*-*-**-*-*-*-**-*-*-*-**-*-*-*-* Sidebar *-*-*-*-**-*-*-*-**-*-*-*-**-*/ .sidebar-button { padding: 15px; background-color: transparent; border: none; cursor: pointer; background-color: var(--main-blue); border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; } .sidebar-button i { color: white; font-size: 14px; } .app-sidebar-container { position: absolute; height: calc(100vh - 60px); transition: transform 0.5s; transform: translateX(calc(-100% - 30px)); z-index: 100; background-color: #faf9f8; top: 60px; } .app-sidebar-container.open { transform: translateX(0); } .app-sidebar { position: relative; width: 100%; height: 100%; border-right: 1px solid lightgray; } .close-sidebar-button { position: absolute; left: calc(100% + 10px); top: 10px; appearance: none; cursor: pointer; background-color: transparent; border: none; } .rct-tree-item-button { font-size: 15px !important; user-select: none; text-decoration: none; } .tree-item-icon { width: 20px; z-index: 50; } @media screen and (max-width: 610px) { .app-sidebar-container { width: 100%; } .close-sidebar-button { left: initial; right: 10px; } } .alert-modal { display: flex; flex-direction: column; row-gap: 20px; } .alert-modal span { display: flex; justify-content: center; align-items: center; position: relative; font-size: 1.6rem; } .alert-modal button { border-radius: 4px; cursor: pointer; border: none; transition: all 0.3s; font-size: 16px; padding: 1rem 1.2rem; background-color: var(--main-blue); color: white; box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; } .dark-theme .alert-modal span { color: black !important; } .alert-portal { position: absolute; z-index: 100; } .rct-tree-item-button { color: black !important; }