<div class="snapshots ">
<div class="snapshots-tab">
<form action="/new-snapshot">
<button class="btn btn-snapshot-new link link-strong" type="submit">New snapshot</button>
</form>
<div class="snapshot-nav">
<a class="btn btn-action btn-snapshot btn-snapshot-first -disabled" href="/" data-label="Current state" title="Go to current state" tabindex="-1"></a>
<a class="btn btn-action btn-snapshot btn-snapshot-prev" href="/" data-label="Previous snapshot" title="Go to previous snapshot"></a>
<span class="text"> of </span>
<a class="btn btn-action btn-snapshot btn-snapshot-next" href="/" data-label="Next snapshot" title="Go to next snapshot"></a>
</div>
</div>
</div>
<div class="snapshots {{#if inactive }}-inactive{{/if}}">
<div class="snapshots-tab">
<form action="/new-snapshot">
<button class="btn btn-snapshot-new link link-strong" type="submit" {{#if inactive}}tabindex="-1"{{/if}}>New snapshot</button>
</form>
<div class="snapshot-nav">
<a class="btn btn-action btn-snapshot btn-snapshot-first {{#unless inactive }}-disabled{{/unless}}" href="/" data-label="Current state" title="Go to current state" {{#unless inactive }}tabindex="-1"{{/unless}}></a>
<a class="btn btn-action btn-snapshot btn-snapshot-prev" href="/" data-label="Previous snapshot" title="Go to previous snapshot"></a>
<span class="text">{{ page }} of {{ total }}</span>
<a class="btn btn-action btn-snapshot btn-snapshot-next" href="/" data-label="Next snapshot" title="Go to next snapshot"></a>
</div>
</div>
</div>
/* No context defined for this component. */
.snapshots {
$tab-color: #E2E7EB;
$tab-color-inactive: #CCCDEE;
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: flex-end;
width: 100%;
border-top: 3px solid $tab-color;
&.-inactive {
border-top: 3px solid $tab-color-inactive;
.snapshots-tab {
background: $tab-color-inactive;
&::before {
background: $tab-color-inactive;
}
}
.btn-snapshot-new {
opacity: 0.5;
pointer-events: none;
}
}
.snapshots-tab {
position: relative;
z-index: 1;
display: flex;
align-items: center;
height: 13rem;
min-width: 40rem;
padding: 0 4rem;
background: $tab-color;
&::before {
content: '';
position: absolute;
left: 0;
z-index: -1;
transform: skewX(35deg);
transform-origin: left bottom;
display: block;
width: 20rem;
height: 100%;
background: $tab-color;
}
}
.btn-snapshot-new {
margin-left: 5rem;
&::before {
content: '\f030';
position: absolute;
left: -5rem;
top: 50%;
transform: translateY(-55%);
@include font-icon;
font-weight: normal;
}
}
.snapshot-nav {
margin-left: 2.5rem;
.text {
opacity: 0.66;
}
& > * {
margin-left: 1.5rem !important;
}
}
.btn-snapshot {
display: inline-block;
width: 7.5rem;
height: 7.5rem;
border: 1px solid rgba($color-irma-slate, 0.33);
border-radius: 50%;
color: $color-irma-slate;
text-align: center;
text-decoration: none;
&.-disabled {
opacity: 0.25;
pointer-events: none;
}
&::after {
display: block;
@include font-icon;
@include font-size-other(14px);
line-height: 7.5rem;
}
}
.btn-snapshot-first {
&::after {
content: '\f053\f053';
transform: translateX(-0.15em);
letter-spacing: -0.5rem;
}
}
.btn-snapshot-prev {
&::after {
content: '\f053';
transform: translateX(-0.1em);
}
}
.btn-snapshot-next {
&::after {
content: '\f054';
transform: translateX(0.1em);
}
}
}
There are no notes for this item.