0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 10:09:03 -05:00
penpot/frontend/resources/styles/main/partials/workspace-bar.scss

362 lines
5.8 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>
2015-06-18 19:35:50 +02:00
.workspace-bar {
align-items: center;
2020-03-03 13:14:37 +01:00
background-color: $color-gray-50;
border-bottom: 1px solid $color-gray-60;
2015-06-18 19:35:50 +02:00
display: flex;
2019-12-16 13:01:17 +01:00
height: 40px;
padding: $x-small $medium $x-small 55px;
2015-06-18 19:35:50 +02:00
position: relative;
z-index: 12;
2015-06-18 19:35:50 +02:00
.workspace-menu {
position: absolute;
top: 40px;
left: 40px;
width: 230px;
z-index: 12;
@include animation(0,.2s,fadeInDown);
2020-03-20 15:55:44 +01:00
background-color: $color-white;
border-radius: $br-small;
2020-03-20 15:55:44 +01:00
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
li {
2020-03-20 15:55:44 +01:00
cursor: pointer;
font-size: $fs12;
padding: $small $x-small;
svg {
2020-03-20 15:55:44 +01:00
fill: $color-gray-60;
height: 12px;
width: 12px;
}
span {
2020-03-20 15:55:44 +01:00
color: $color-gray-60;
margin: 0 $x-small;
}
&:hover {
2020-03-20 15:55:44 +01:00
background-color: $color-primary-lighter;
}
}
}
2015-06-18 19:35:50 +02:00
.main-icon {
align-items: center;
2020-03-03 13:14:37 +01:00
background-color: $color-gray-60;
2015-06-18 19:35:50 +02:00
cursor: pointer;
display: flex;
height: 100%;
justify-content: center;
left: 0;
position: absolute;
top: 0;
width: 40px;
2015-06-18 19:35:50 +02:00
a {
2019-12-16 13:01:17 +01:00
height: 30px;
2015-06-18 19:35:50 +02:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-30;
2019-12-16 13:01:17 +01:00
height: 30px;
width: 28px;
2015-06-18 19:35:50 +02:00
}
&:hover {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-primary;
2015-06-18 19:35:50 +02:00
}
}
}
}
.menu-btn {
align-items: center;
background-color: $color-gray-60;
cursor: pointer;
border-radius: $br-small;
display: flex;
margin-right: $x-small;
padding: $x-small;
svg {
height: 15px;
fill: $color-gray-20;
width: 15px;
}
&:hover {
background-color: $color-primary;
svg {
fill: $color-gray-60;
}
}
}
2015-06-18 19:35:50 +02:00
.project-tree-btn {
align-items: center;
cursor: pointer;
display: flex;
2019-12-17 15:37:30 +01:00
padding: $x-small;
2015-06-18 19:35:50 +02:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-20;
2015-06-18 19:35:50 +02:00
height: 20px;
margin-right: $small;
width: 20px;
}
span {
color: $color-white;
2019-12-17 15:37:30 +01:00
font-size: $fs14;
2016-02-17 08:56:02 +01:00
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&.project-name {
color: $color-gray-20;
margin-right: $x-small;
}
2015-06-18 19:35:50 +02:00
}
}
.workspace-options {
display: flex;
2019-12-17 15:37:30 +01:00
margin: auto;
}
2015-06-18 19:35:50 +02:00
}
2015-06-18 19:35:50 +02:00
.zoom-input {
align-items: center;
display: flex;
position: relative;
2015-06-18 19:35:50 +02:00
span {
color: $color-gray-10;
font-size: $fs15;
margin-left: $x-small;
}
.dropdown-button {
svg {
fill: $color-gray-10;
height: 10px;
width: 10px;
}
}
.zoom-dropdown {
position: absolute;
right: 0;
z-index: 12;
width: 150px;
@include animation(0,.2s,fadeInDown);
background-color: $color-white;
border-radius: $br-small;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
li {
color: $color-gray-60;
cursor: pointer;
font-size: $fs12;
display: flex;
padding: $small;
span {
color: $color-gray-40;
font-size: $fs12;
margin-left: auto;
}
&:hover {
background-color: $color-primary-lighter;
}
}
2019-12-18 10:25:11 +01:00
}
.add-zoom,
.remove-zoom {
2019-12-18 10:25:11 +01:00
align-items: center;
background-color: $color-gray-60;
border-radius: $br-small;
cursor: pointer;
color: $color-gray-20;
2019-12-18 10:25:11 +01:00
display: flex;
opacity: 0;
flex-shrink: 0;
font-size: $fs20;
font-weight: bold;
height: 20px;
justify-content: center;
width: 20px;
2016-04-10 11:51:23 +02:00
&:hover {
color: $color-primary;
2016-04-10 11:51:23 +02:00
}
2015-06-18 19:35:50 +02:00
}
&:hover {
.add-zoom,
.remove-zoom {
opacity: 100%;
}
}
2015-06-18 19:35:50 +02:00
}
2016-06-26 12:22:34 +02:00
.options-btn {
align-items: center;
2020-03-03 13:14:37 +01:00
border-right: 4px double $color-gray-60;
2016-06-26 12:22:34 +02:00
display: flex;
margin: 0;
&:last-child {
border: none;
}
li {
align-items: center;
2020-03-03 13:14:37 +01:00
background-color: $color-gray-60;
2016-06-26 12:22:34 +02:00
border: 1px solid transparent;
border-radius: $br-small;
cursor: pointer;
display: flex;
flex-shrink: 0;
height: 30px;
justify-content: center;
margin: 0 $small;
position: relative;
width: 30px;
a {
padding-top: 6px;
}
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-20;
2016-06-26 12:22:34 +02:00
height: 18px;
width: 18px;
}
&:hover {
2020-03-03 13:14:37 +01:00
background-color: $color-gray-10;
border-color: $color-gray-60;
2016-06-26 12:22:34 +02:00
}
&.selected {
2020-03-03 13:14:37 +01:00
background-color: $color-primary;
2016-06-26 12:22:34 +02:00
svg {
fill: $color-white;
}
}
}
}
2019-12-18 10:25:11 +01:00
2019-12-19 16:09:59 +01:00
.secondary-options {
align-items: center;
display: flex;
.view-mode {
2020-03-03 13:14:37 +01:00
background-color: $color-gray-20;
2019-12-19 16:09:59 +01:00
align-items: center;
border-radius: $br-small;
cursor: pointer;
display: flex;
flex-shrink: 0;
height: 30px;
justify-content: center;
margin: 0 $small;
position: relative;
width: 30px;
a {
padding-top: 6px;
}
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2019-12-19 16:09:59 +01:00
height: 18px;
width: 18px;
}
&:hover {
2020-03-03 13:14:37 +01:00
background-color: $color-primary;
2019-12-19 16:09:59 +01:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2019-12-19 16:09:59 +01:00
}
}
}
}
2019-12-18 10:25:11 +01:00
.user-multi {
align-items: center;
cursor: pointer;
display: flex;
margin: 0;
2019-12-18 10:25:11 +01:00
li {
margin-left: $small;
position: relative;
img {
border: 3px solid #f3dd14;
border-radius: 50%;
flex-shrink: 0;
height: 25px;
width: 25px;
}
}
2019-12-18 10:40:09 +01:00
}
.multiuser-cursor {
align-items: center;
display: flex;
left: 0;
position: absolute;
top: 0;
z-index: 10000;
svg {
height: 15px;
fill: #f3dd14;
width: 15px;
}
span {
background-color: #f3dd14;
border-radius: $br-small;
color: $color-black;
font-size: $fs12;
margin-left: $small;
padding: $x-small;
}
}