0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-07 14:58:38 -05:00
penpot/frontend/resources/styles/main/partials/workspace-bar.scss

348 lines
5.7 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;
2016-02-17 08:56:02 +01:00
background-color: $primary-ui-bg;
2016-02-19 19:41:33 +01:00
border-bottom: 1px solid $soft-ui-border;
2015-06-18 19:35:50 +02:00
display: flex;
2019-12-16 13:01:17 +01:00
height: 40px;
2015-06-18 19:35:50 +02:00
padding: $x-small $medium $x-small 65px;
position: relative;
z-index: 11;
.main-icon {
align-items: center;
2016-02-17 08:56:02 +01:00
background-color: $secondary-ui-bg;
2015-06-18 19:35:50 +02:00
cursor: pointer;
display: flex;
height: 100%;
justify-content: center;
left: 0;
position: absolute;
top: 0;
width: 50px;
a {
2019-12-16 13:01:17 +01:00
height: 30px;
2015-06-18 19:35:50 +02:00
svg {
2016-02-19 19:41:33 +01:00
fill: $medium-ui-icons;
2019-12-16 13:01:17 +01:00
height: 30px;
width: 30px;
2015-06-18 19:35:50 +02:00
}
&:hover {
svg {
2016-02-17 08:56:02 +01:00
fill: $main-ui-color;
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 {
2016-02-19 19:41:33 +01:00
fill: $intense-ui-icons;
2015-06-18 19:35:50 +02:00
height: 20px;
margin-right: $small;
width: 20px;
}
span {
2019-12-17 15:37:30 +01:00
color: $soft-ui-text;
font-size: $fs14;
2016-02-17 08:56:02 +01:00
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
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
.options-btn {
align-items: center;
2016-02-20 21:41:49 +01:00
border-right: 4px double $soft-ui-border;
2015-06-18 19:35:50 +02:00
display: flex;
margin: 0;
&:last-child {
border: none;
}
li {
align-items: center;
2019-12-16 13:01:17 +01:00
background-color: transparent;
2016-02-17 08:56:02 +01:00
border: 1px solid transparent;
2015-06-18 19:35:50 +02:00
border-radius: $br-small;
cursor: pointer;
display: flex;
flex-shrink: 0;
2015-06-18 19:35:50 +02:00
height: 30px;
justify-content: center;
margin: 0 $small;
position: relative;
width: 30px;
a {
padding-top: 6px;
}
svg {
2016-02-19 19:41:33 +01:00
fill: $intense-ui-icons;
2015-06-18 19:35:50 +02:00
height: 18px;
width: 18px;
}
&:hover {
2019-12-16 13:01:17 +01:00
background-color: $color-primary;
svg {
fill: $color-gray-50;
}
2015-06-18 19:35:50 +02:00
}
&.selected {
svg {
2019-12-16 13:01:17 +01:00
fill: $color-primary;
2015-06-18 19:35:50 +02:00
}
2019-12-17 16:50:50 +01:00
&:hover {
svg {
fill: $soft-ui-icons;
}
}
2015-06-18 19:35:50 +02:00
}
}
}
2019-12-18 10:25:11 +01:00
}
.options-view {
align-items: center;
display: flex;
justify-content: content;
margin: 0;
li {
2016-04-10 11:51:23 +02:00
align-items: center;
display: flex;
2019-12-18 10:25:11 +01:00
flex-shrink: 0;
height: 30px;
margin: 0 $small;
position: relative;
width: 60px;
2016-04-10 11:51:23 +02:00
2019-12-18 10:25:11 +01:00
&.zoom-input {
width: 85px;
padding: 0 25px;
2016-04-10 11:51:23 +02:00
position: relative;
2019-12-18 10:25:11 +01:00
.add-zoom,
.remove-zoom {
align-items: center;
border-radius: 50%;
border: 1px solid $intense-ui-border;
cursor: pointer;
color: $intense-ui-border;
display: none;
flex-shrink: 0;
font-size: $fs20;
font-weight: bold;
height: 20px;
justify-content: center;
position: absolute;
top: 5px;
width: 20px;
2016-04-10 17:37:03 +02:00
2019-12-18 10:25:11 +01:00
&:hover {
border-color: $color-primary;
color: $color-primary;
2016-04-10 11:51:23 +02:00
}
2019-12-18 10:25:11 +01:00
}
2016-04-10 11:51:23 +02:00
2019-12-18 10:25:11 +01:00
.add-zoom {
left: -5px;
}
2016-04-10 11:51:23 +02:00
2019-12-18 10:25:11 +01:00
.remove-zoom {
padding-top: 4px;
right: -5px;
}
2016-04-10 11:51:23 +02:00
2019-12-18 10:25:11 +01:00
&:hover {
2016-04-10 11:51:23 +02:00
2019-12-18 10:25:11 +01:00
.add-zoom,
.remove-zoom {
display: flex;
@include animation(0s,.3s,fadeIn);
2016-04-10 11:51:23 +02:00
}
}
}
}
2015-06-18 19:35:50 +02:00
}
}
2016-06-26 12:22:34 +02:00
.options-btn {
align-items: center;
border-right: 4px double $soft-ui-border;
display: flex;
margin: 0;
&:last-child {
border: none;
}
li {
align-items: center;
background-color: $secondary-ui-bg;
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 {
fill: $intense-ui-icons;
height: 18px;
width: 18px;
}
&:hover {
background-color: $dark-ui-bg;
2016-06-26 12:22:34 +02:00
border-color: $soft-ui-border;
}
&.selected {
background-color: $main-ui-color;
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 {
background-color: $intense-ui-icons;
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 {
fill: $secondary-ui-bg;
height: 18px;
width: 18px;
}
&:hover {
background-color: $main-ui-color;
svg {
fill: $soft-ui-icons;
}
}
}
}
2019-12-18 10:25:11 +01:00
.user-multi {
align-items: center;
cursor: pointer;
display: flex;
margin: 0;
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;
}
2019-12-18 10:25:11 +01:00
}