Files
ZeroSpace/ZeroSpace/ZeroSpace.Web/Layout/MainLayout.razor.css
T

99 lines
2.1 KiB
CSS

.page {
position: relative;
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #080c14;
background-image:
radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.04) 0%, transparent 40%),
radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
}
main {
flex: 1;
min-width: 0;
}
.sidebar {
background-color: #0b0f19;
background-image: linear-gradient(180deg, #0d131f 0%, #080c14 100%);
border-right: 1px solid rgba(56, 189, 248, 0.12);
box-shadow: 2px 0 16px rgba(0, 0, 0, 0.35);
z-index: 100;
}
.top-row {
background-color: rgba(13, 19, 31, 0.8);
backdrop-filter: blur(8px);
border-bottom: 1px solid rgba(56, 189, 248, 0.15);
justify-content: flex-end;
height: 3.75rem;
display: flex;
align-items: center;
}
.top-row ::deep a, .top-row ::deep .btn-link {
white-space: nowrap;
margin-left: 1.5rem;
text-decoration: none;
color: #38bdf8;
}
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
text-decoration: underline;
color: #7dd3fc;
}
.top-row ::deep a:first-child {
overflow: hidden;
text-overflow: ellipsis;
}
@media (max-width: 640.98px) {
.top-row {
justify-content: space-between;
}
.top-row ::deep a, .top-row ::deep .btn-link {
margin-left: 0;
}
}
@media (min-width: 641px) {
.page {
flex-direction: row;
}
.sidebar {
width: 250px;
height: 100vh;
position: sticky;
top: 0;
flex-shrink: 0;
transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.collapsed {
width: 72px;
}
.top-row {
position: sticky;
top: 0;
z-index: 1;
}
.top-row.auth ::deep a:first-child {
flex: 1;
text-align: right;
width: 0;
}
article {
padding-left: 2rem !important;
padding-right: 2rem !important;
padding-top: 1.5rem !important;
padding-bottom: 2.5rem !important;
}
}