primevue-mirror/assets/styles/layout/_topbar.scss

157 lines
3.6 KiB
SCSS
Raw Normal View History

2023-02-28 08:29:30 +00:00
.layout-topbar {
position: fixed;
top: 0;
2023-10-07 14:34:18 +00:00
left: 0;
width: calc(100% - var(--scrollbar-width, 0px));
2023-02-28 08:29:30 +00:00
z-index: 1100;
2023-10-19 19:09:48 +00:00
transition: background-color .5s, border-color .5s;
border-bottom: 1px solid transparent;
2023-10-07 19:43:10 +00:00
&.layout-topbar-sticky {
2023-10-19 19:09:48 +00:00
border-bottom: 1px solid var(--surface-border);
2023-10-14 19:30:59 +00:00
background-color: var(--topbar-sticky-bg);
2023-10-07 19:43:10 +00:00
backdrop-filter: blur(8px);
}
2023-10-10 18:19:29 +00:00
}
2023-10-07 14:34:18 +00:00
2023-10-10 18:19:29 +00:00
.layout-topbar-inner {
height: 4rem;
padding: 0 4rem;
display: flex;
align-items: center;
justify-content: space-between;
2023-10-10 08:38:49 +00:00
2023-10-07 15:46:59 +00:00
.layout-topbar-logo-container {
width: 250px;
margin-right: 4rem;
2023-10-10 18:19:29 +00:00
}
2023-02-28 08:29:30 +00:00
2023-10-13 22:09:30 +00:00
.layout-topbar-logo,
.layout-topbar-icon {
border-radius: var(--border-radius);
@include focus-visible();
svg {
width: 120px;
}
}
2023-10-10 18:19:29 +00:00
.layout-topbar-logo {
2023-10-13 22:09:30 +00:00
display: inline-flex;
2023-10-10 18:19:29 +00:00
svg {
width: 120px;
2023-10-09 07:21:14 +00:00
}
2023-10-10 18:19:29 +00:00
}
2023-10-09 07:21:14 +00:00
2023-10-10 18:19:29 +00:00
.layout-topbar-icon {
display: none;
2023-10-09 07:21:14 +00:00
2023-10-10 18:19:29 +00:00
svg {
width: 25px;
2023-10-07 19:43:10 +00:00
}
2023-02-28 08:29:30 +00:00
}
2023-10-13 08:20:56 +00:00
2023-02-28 08:29:30 +00:00
.menu-button {
display: none;
}
2025-01-15 12:31:56 +00:00
.topbar-items {
display: flex;
list-style-type: none;
margin: 0;
padding: 0;
gap: 0.5rem;
align-items: center;
li {
position: relative;
}
.topbar-item {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
border: 1px solid var(--surface-border);
width: 2rem;
height: 2rem;
transition: outline-color .2s, border-color .2s;
border-radius: 6px;
margin: 0;
padding: 0;
outline-color: transparent;
background-color: var(--surface-0);
cursor: pointer;
@include focus-visible();
&:hover {
border-color: var(--primary-color);
}
i,
span {
color: var(--text-color);
}
}
.version-item {
width: auto;
padding: 0.5rem;
.version-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.version-icon {
margin-inline-start: .25rem;
color: var(--text-secondary-color);
}
}
.versions-panel {
padding: .25rem;
background-color: var(--overlay-background);
position: absolute;
inset-inline-end: 0;
top: calc(100% + 2px);
border-radius: 6px;
border: 1px solid var(--border-color);
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
transform-origin: top;
ul {
padding: 0;
margin: 0;
list-style-type: none;
display: flex;
flex-direction: column;
gap: 4px;
li {
margin: 2px;
}
a {
display: inline-flex;
padding: 0.5rem .75rem;
border-radius: 6px;
width: 100%;
overflow: hidden;
color: var(--text-color);
white-space: nowrap;
&:hover {
background-color: var(--hover-background);
}
}
}
}
}
}