set content un years panel. Styles problems
This commit is contained in:
parent
92625d2fb9
commit
76b98eb2e3
6 changed files with 130 additions and 18 deletions
|
|
@ -1,12 +1,13 @@
|
|||
#main-header {
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
z-index: 3;
|
||||
top: 0;
|
||||
left: 0;
|
||||
box-sizing: border-box;
|
||||
width: 100vw;
|
||||
height: calc(var(--unit--vertical) * 5);
|
||||
height: calc(var(--unit--vertical) * 4);
|
||||
padding: var(--unit--vertical) var(--unit--horizontal);
|
||||
padding-bottom: 0;
|
||||
transition: height 0.2s ease-in-out;
|
||||
}
|
||||
#logo {
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
#entries {
|
||||
/* ================= ENTRIES BTNS ================= */
|
||||
#entry-btns {
|
||||
position: sticky;
|
||||
top: calc(var(--unit--vertical) * 8);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.entry-btn {
|
||||
transition: all 0.5s var(--curve-sine);
|
||||
}
|
||||
|
||||
[data-template="linear"] #entries {
|
||||
[data-template="linear"] #entry-btns {
|
||||
transform: translateY(calc(0rem - var(--unit--vertical-relative) * 4));
|
||||
}
|
||||
|
||||
|
|
@ -25,17 +27,67 @@
|
|||
margin-right: var(--unit--horizontal);
|
||||
}
|
||||
|
||||
#entries.minimized {
|
||||
#entry-btns.minimized {
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
#entries.minimized .entry-btn::before,
|
||||
#entries.minimized .entry-btn::after {
|
||||
#entry-btns.minimized .entry-btn::before,
|
||||
#entry-btns.minimized .entry-btn::after {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#entries.minimized .entry-btn--left {
|
||||
#entry-btns.minimized .entry-btn--left {
|
||||
margin-left: calc(-4px - var(--width));
|
||||
}
|
||||
#entries.minimized .entry-btn--right {
|
||||
#entry-btns.minimized .entry-btn--right {
|
||||
margin-right: calc(-4px - var(--width));
|
||||
}
|
||||
|
||||
/* ================= PANELS ================= */
|
||||
.panel {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100svh;
|
||||
top: 0;
|
||||
background-color: #000;
|
||||
outline: 1px solid #fff;
|
||||
transition: all 0.5s var(--curve-sine);
|
||||
z-index: 2;
|
||||
padding: 0 var(--unit--horizontal);
|
||||
padding-top: calc(var(--unit--vertical) * 5);
|
||||
box-sizing: border-box;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.panel--left {
|
||||
left: calc(-100% - var(--unit--horizontal) * 2 - 1px);
|
||||
}
|
||||
.panel--right {
|
||||
right: calc(-100% - var(--unit--horizontal) * 2 - 1px);
|
||||
}
|
||||
|
||||
.panel--right.open {
|
||||
right: 0;
|
||||
}
|
||||
.panel--left.open {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.panel-close {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
border: none;
|
||||
outline: none;
|
||||
height: 100svh;
|
||||
width: calc(var(--unit--horizontal) * 2);
|
||||
font-size: 0.8rem;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.panel--left .panel-close {
|
||||
right: 0;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.panel-close::after {
|
||||
content: "◀";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue