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

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