0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00
penpot/resources/styles/partials/workspace-bar.scss

148 lines
2.6 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;
2016-02-20 22:26:07 +01:00
height: 50px;
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 {
height: 35px;
svg {
2016-02-19 19:41:33 +01:00
fill: $medium-ui-icons;
2015-06-18 19:35:50 +02:00
height: 35px;
width: 35px;
}
&: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;
2016-02-17 08:56:02 +01:00
background-color: $secondary-ui-bg;
2015-06-18 19:35:50 +02:00
border-radius: $br-small;
cursor: pointer;
display: flex;
2016-02-23 22:12:30 +01:00
padding: $x-small $x-small $x-small $medium;
width: 164px;
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 {
2016-02-19 19:41:33 +01:00
color: $intense-ui-text;
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
}
&:hover {
2016-02-17 08:56:02 +01:00
background-color: $main-ui-color;
svg {
fill: $color-white;
}
span {
color: $color-white;
}
2015-06-18 19:35:50 +02:00
}
}
.workspace-options {
display: flex;
.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;
2016-03-17 19:17:55 +01:00
background-color: $secondary-ui-bg;
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 {
background-color: $color-white;
2016-02-19 19:41:33 +01:00
border-color: $soft-ui-border;
2015-06-18 19:35:50 +02:00
}
&.selected {
2016-02-17 08:56:02 +01:00
background-color: $main-ui-color;
2015-06-18 19:35:50 +02:00
svg {
fill: $color-white;
}
}
}
}
}
}