0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00
penpot/frontend/resources/styles/main/partials/sidebar-document-history.scss

140 lines
2.1 KiB
SCSS
Raw Normal View History

2016-03-01 20:39:13 +02:00
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
2022-09-20 23:23:22 +02:00
// Copyright (c) KALEIDOS INC
2016-02-20 23:45:35 +01:00
2023-01-09 13:29:27 +01:00
.history-debug-overlay {
background: $color-gray-50;
bottom: 0;
max-height: 500px;
overflow-y: auto;
position: absolute;
width: 500px;
z-index: 1000;
}
2020-09-15 11:37:54 +02:00
.history-toolbox {
display: flex;
flex-direction: column;
2020-09-15 11:37:54 +02:00
}
2016-02-20 23:45:35 +01:00
2020-09-15 11:37:54 +02:00
.history-toolbox-title {
color: $color-gray-10;
font-size: $fs14;
padding: 0.5rem;
2020-09-15 11:37:54 +02:00
}
2016-02-20 23:45:35 +01:00
.history-entry-empty {
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
.history-entry-empty-icon {
margin-bottom: 1rem;
svg {
width: 32px;
height: 32px;
fill: $color-gray-40;
}
}
.history-entry-empty-msg {
color: $color-gray-30;
2020-09-15 11:37:54 +02:00
font-size: $fs12;
}
}
2016-02-20 23:45:35 +01:00
.history-entries {
font-size: $fs12;
color: $color-gray-20;
fill: $color-gray-20;
2022-02-03 11:15:50 +01:00
height: 100%;
overflow-x: hidden;
overflow-y: auto;
}
2016-02-20 23:45:35 +01:00
.history-entry {
border: 1px solid $color-gray-60;
border-radius: $br4;
margin: 0.5rem;
display: flex;
flex-direction: column;
padding: 0.5rem;
cursor: pointer;
2016-02-20 23:45:35 +01:00
transition: border 0.2s;
&.disabled {
opacity: 0.5;
}
&.current {
background-color: $color-gray-60;
}
&.hover {
border-color: $color-primary;
}
}
.history-entry-summary {
display: flex;
flex-direction: row;
align-items: center;
* {
display: flex;
}
}
.history-entry-summary-icon {
svg {
width: 16px;
height: 16px;
}
}
.history-entry-summary-text {
flex: 1;
margin: 0 0.5rem;
margin-top: 2px;
}
.history-entry-summary-button {
opacity: 0;
transition: transform 0.2s;
svg {
width: 12px;
height: 12px;
}
.show-detail &,
.hover & {
opacity: 1;
}
.show-detail & {
transform: rotate(90deg);
}
}
.history-entry-detail {
display: none;
.show-detail & {
display: block;
padding: 1rem 0 0.5rem 0;
}
.history-entry-details-list {
margin: 0;
2016-02-20 23:45:35 +01:00
li {
margin-bottom: 0.5rem;
2020-09-15 11:37:54 +02:00
}
}
2016-02-20 23:45:35 +01:00
}