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

233 lines
6.0 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 {
2024-02-07 10:15:47 +00:00
border-bottom: 1px solid var(--p-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 {
2024-02-07 10:15:47 +00:00
border-radius: 6px;
2023-10-13 22:09:30 +00:00
@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;
}
2024-02-07 10:15:47 +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(--p-surface-border);
width: 2rem;
height: 2rem;
transition: all .2s;
border-radius: 6px;
margin: 0;
padding: 0;
background-color: var(--p-surface-card);
cursor: pointer;
@include focus-visible();
&:hover {
border-color: var(--primary-color-default);
}
i, span {
color: var(--p-text-color);
}
}
.config-item {
background-color: var(--p-primary-color);
i {
color: var(--p-primary-color-inverse);
}
}
.config-panel {
position: absolute;
2024-02-07 12:29:48 +00:00
top: calc(100% + 2px);
2024-02-07 10:15:47 +00:00
right: 0;
width: 14rem;
padding: .75rem;
background-color: var(--p-surface-overlay);
border-radius: var(--p-border-radius);
border: 1px solid var(--p-surface-border);
transform-origin: top;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
.config-panel-content {
display: flex;
flex-direction: column;
gap: 1rem;
}
.config-panel-label {
font-size: .875rem;
color: var(--p-text-secondary-color);
font-weight: 600;
line-height: 1;
}
.config-panel-colors {
> div {
padding-top: .5rem;
display: flex;
gap: .5rem;
flex-wrap: wrap;
button {
border: none;
width: 1em;
height: 1rem;
border-radius: 50%;
cursor: pointer;
2024-02-07 12:29:48 +00:00
outline-color: transparent;
outline-width: 2px;
outline-style: solid;
outline-offset: 1px;
2024-02-07 10:15:47 +00:00
&.active-color {
2024-02-07 12:29:48 +00:00
outline-color: var(--primary-color-default);
2024-02-07 10:15:47 +00:00
}
}
}
}
.config-panel-settings {
> div {
display: flex;
align-items: center;
justify-content: space-between;
}
}
}
.version-item {
width: auto;
padding: 0.5rem;
.version-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.version-icon {
margin-left: .25rem;
color: var(--p-text-secondary-color);
}
}
.versions-panel {
padding: .25rem;
background-color: var(--p-surface-overlay);
position: absolute;
right: 0;
2024-02-07 12:29:48 +00:00
top: calc(100% + 2px);
2024-02-07 10:15:47 +00:00
border-radius: var(--p-border-radius);
border: 1px solid var(--p-surface-border);
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;
width: 8rem;
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: var(--p-border-radius);
width: 100%;
overflow: hidden;
&:hover {
background-color: var(--p-surface-hover);
}
span:first-child {
font-weight: bold;
color: var(--p-dark-surface-0, var(--p-surface-900));
}
span:last-child {
margin-left: 0.5rem;
color: var(--p-text-color);
white-space: nowrap;
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
}
2023-10-14 19:30:59 +00:00
}