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

205 lines
5.4 KiB
SCSS
Raw Normal View History

2020-05-12 08:31:09 +00:00
.layout-topbar {
2022-02-24 06:56:01 +00:00
padding: 0;
2022-04-07 12:57:53 +00:00
height: 5rem;
2022-02-23 11:42:11 +00:00
position: fixed;
top: 0;
left: 250px;
width: calc(100% - 250px);
z-index: 1100;
2020-07-01 19:35:12 +00:00
display: flex;
align-items: center;
2022-02-24 06:56:01 +00:00
padding: 0 4rem;
2022-02-23 13:44:06 +00:00
&.layout-topbar-sticky {
backdrop-filter: blur(12px);
}
2020-05-12 08:31:09 +00:00
2021-04-09 13:22:52 +00:00
.logo {
display: none;
}
2020-05-12 08:31:09 +00:00
.menu-button {
display: none;
2020-05-12 11:45:38 +00:00
color: var(--text-color);
2020-05-12 08:31:09 +00:00
width: 70px;
height: 70px;
line-height: 70px;
text-align: center;
transition: background-color .2s;
2020-05-12 11:45:38 +00:00
cursor: pointer;
2020-05-12 08:31:09 +00:00
&:hover {
background-color: var(--surface-hover);
2020-05-12 08:31:09 +00:00
}
i {
2020-05-12 11:45:38 +00:00
font-size: 24px;
2020-05-12 08:31:09 +00:00
line-height: inherit;
}
}
2022-02-24 06:56:01 +00:00
.logo {
&:focus {
outline: 0 none;
transition: box-shadow .2s;
box-shadow: var(--focus-ring);
}
}
2020-07-01 19:35:12 +00:00
.app-theme {
background-color: var(--primary-color);
color: var(--primary-color-text);
padding: .5rem;
border-radius: 4px;
box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
width: 39px;
height: 39px;
img {
width: 25px;
}
}
2020-05-12 08:31:09 +00:00
.topbar-menu {
list-style-type: none;
2020-07-01 19:35:12 +00:00
margin: 0;
2020-05-12 08:31:09 +00:00
padding: 0;
2020-07-01 19:35:12 +00:00
margin-left: auto;
2020-07-20 11:02:50 +00:00
display: flex;
2020-05-12 08:31:09 +00:00
> li {
2022-02-24 06:56:01 +00:00
margin-right: .5rem;
2020-05-12 08:31:09 +00:00
> a {
2022-02-24 06:56:01 +00:00
font-weight: 500;
2020-05-12 08:31:09 +00:00
text-decoration: none;
2020-05-12 11:45:38 +00:00
color: var(--text-color);
2022-02-24 06:56:01 +00:00
padding: .5rem 1.5rem;
2020-07-04 07:28:27 +00:00
display: block;
2020-05-12 08:31:09 +00:00
text-align: center;
user-select: none;
2022-02-24 06:56:01 +00:00
border-radius: 10px;
2020-07-04 07:28:27 +00:00
cursor: pointer;
2022-02-24 06:56:01 +00:00
transition: background-color .3s;
2020-05-12 08:31:09 +00:00
&:focus {
z-index: 1;
outline: 0 none;
transition: box-shadow .2s;
2022-02-24 06:56:01 +00:00
box-shadow: var(--focus-ring);
}
&:hover {
background-color: var(--surface-hover);
2020-05-12 08:31:09 +00:00
}
}
&.topbar-submenu {
position: relative;
> ul {
position: absolute;
2020-06-26 15:58:49 +00:00
transform-origin: top;
2022-04-07 12:57:53 +00:00
top: 3rem;
2020-05-12 08:31:09 +00:00
right: 0;
width: 275px;
max-height: 400px;
background-color: var(--surface-overlay);
2020-06-27 17:15:11 +00:00
box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
2020-05-12 08:31:09 +00:00
overflow: auto;
list-style-type: none;
2020-05-12 11:45:38 +00:00
padding: 1rem;
2020-05-12 08:31:09 +00:00
margin: 0;
2022-02-24 06:56:01 +00:00
border-radius: 10px;
2020-05-12 08:31:09 +00:00
> li {
line-height: 1;
&.topbar-submenu-header {
2020-06-19 09:16:03 +00:00
display: block;
color: var(--text-color-secondary);
font-weight: 600;
user-select: none;
padding: 1.5rem 0 1rem 0;
font-size: 0.857rem;
text-transform: uppercase;
2020-05-12 08:31:09 +00:00
&:first-child {
2020-06-19 09:16:03 +00:00
padding-top: 1rem;
2020-05-12 08:31:09 +00:00
}
}
}
a {
text-decoration: none;
2020-05-12 11:45:38 +00:00
color: var(--text-color);
padding: .5rem;
2020-07-04 07:28:27 +00:00
display: flex;
align-items: center;
2020-05-12 08:31:09 +00:00
user-select: none;
2022-02-24 06:56:01 +00:00
border-radius: 10px;
2020-05-12 08:31:09 +00:00
cursor: pointer;
2022-02-24 06:56:01 +00:00
width: 100%;
2020-05-12 08:31:09 +00:00
&:hover {
background-color: var(--surface-hover);
2020-05-12 08:31:09 +00:00
}
span {
2020-05-12 11:45:38 +00:00
margin-left: .5rem;
2020-05-12 08:31:09 +00:00
}
i {
2020-07-04 07:28:27 +00:00
font-size: 18px;
2020-05-12 11:45:38 +00:00
color: var(--text-color-secondary);
2020-05-12 08:31:09 +00:00
}
2020-05-12 11:45:38 +00:00
img {
width: 32px;
margin-right: .5rem;
2020-05-12 08:31:09 +00:00
}
}
}
}
}
.theme-badge {
padding: 2px 4px;
vertical-align: middle;
border-radius: 3px;
color: #ffffff;
font-weight: bold;
font-size: 11px;
position: relative;
top: -1px;
}
.theme-badge.material {
background: linear-gradient(to bottom, #2196F3, #2196F3);
}
.theme-badge.bootstrap {
background: linear-gradient(to bottom, #563D7C, #966BD8);
}
.theme-badge.darkmode {
background: linear-gradient(to bottom, #141d26, #5a6067);
}
}
2022-02-23 13:44:06 +00:00
}
.layout-wrapper-dark {
.layout-topbar {
&.layout-topbar-sticky {
background-color: rgba(0, 0, 0 , 0.3);
}
}
}
.layout-wrapper-light {
.layout-topbar {
&.layout-topbar-sticky {
background-color: rgba(255, 255, 255, 0.85);
}
}
2020-05-12 08:31:09 +00:00
}