0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-11 01:10:28 -05:00
penpot/frontend/resources/styles/main/partials/sidebar-document-history.scss
2020-03-03 13:14:37 +01:00

133 lines
2.4 KiB
SCSS

// 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/.
//
// Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
.document-history {
.history-tabs {
background-color: $color-gray-60;
display: flex;
width: 100%;
li {
background: darken($color-gray-60, 12%);
border-top-right-radius: $br-small;
border-top-left-radius: $br-small;
color: $color-gray-60;
cursor: pointer;
font-size: $fs14;
font-weight: bold;
justify-content: center;
margin: $x-small $x-small 0 $x-small;
padding: $x-small $small;
text-align: center;
width: 50%;
&.selected {
background-color: $color-gray-50;
color: $color-primary;
}
}
}
.history-content {
display: flex;
flex-direction: column;
width: 100%;
li {
align-items: center;
border-bottom: 1px solid $color-gray-60;
cursor: pointer;
display: flex;
font-size: $fs14;
width: 100%;
padding: $small;
.page-actions {
align-items: center;
display: flex;
margin-left: auto;
a {
svg {
fill: $color-gray-60;
height: 15px;
margin-left: $x-small;
width: 15px;
&:hover {
fill: $color-gray-20;
}
}
}
}
.pin-icon {
cursor: pointer;
svg {
fill: $color-gray-60;
height: 12px;
margin-right: $small;
width: 12px;
&:hover {
fill: $color-gray-20;
}
}
&.selected {
svg {
fill: $color-gray-20;
}
}
}
&:hover {
color: $color-primary;
}
&.current {
color: $color-primary;
font-weight: bold;
span {
align-items: center;
display: flex;
&::before {
background-color: $color-primary;
border-radius: 50%;
content: "";
height: 6px;
flex-shrink: 0;
margin: $x-small;
width: 6px;
}
}
}
.btn-primary {
width: 100%;
}
}
}
}