Files
ukraine-timemap/src/scss/cardstack.scss
2022-03-20 08:16:47 +01:00

110 lines
1.9 KiB
SCSS

// @import 'burger';
@import "card";
$card-stack-header-height: 38px;
.card-stack {
position: absolute;
top: #{$card-right};
padding-top: #{$card-stack-header-height};
right: $card-right;
max-height: calc(100% - #{$timeline-height} + 60px);
height: auto;
width: $card-width;
overflow-y: scroll;
box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
z-index: $header;
color: white;
overflow-x: hidden;
overflow-y: auto;
max-width: 100vw;
&.narrative-mode {
right: $card-right;
left: auto;
top: $narrative-info-height + 32px;
height: calc(100% - #{$narrative-info-height} - #{$timeline-height} - 32px);
}
&.full-height {
max-height: calc(100% - 20px);
}
.card-stack-header {
position: fixed;
top: $card-right;
min-height: $card-stack-header-height;
line-height: $card-stack-header-height;
width: 100%;
max-width: $card-width;
box-sizing: border-box;
padding: 0 5px;
background: $black;
border-radius: 2px;
border: 1px solid $black;
font-size: $large;
transition: 0.2s ease;
text-align: left;
z-index: 20;
&:hover {
transition: 0.2s ease;
}
.header-copy {
margin: 0;
padding: 0 10px;
line-height: 20px;
text-align: right;
&.top {
padding-top: 10px;
}
&:last-child {
padding-bottom: 10px;
}
}
.side-menu-burg {
position: absolute;
left: 8px;
top: 9px;
span {
width: 20px;
}
}
}
.card-stack-content {
width: 100%;
max-width: $card-width;
ul {
padding: 0;
margin-top: 1px;
margin-bottom: 0;
}
.card-list {
height: auto;
}
}
&.folded {
.card-stack-header {
border: 0;
height: 0;
overflow: hidden;
}
.card-stack-content {
height: 0;
overflow: hidden;
}
}
}
li {
list-style-type: none;
}