mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 08:29:42 -05:00
238 lines
3.7 KiB
SCSS
238 lines
3.7 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) 2016 Andrey Antukh <niwi@niwi.nz>
|
|
// Copyright (c) 2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
|
|
|
.view-content {
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
height: 100vh;
|
|
width: 100%;
|
|
@include bp(tablet) {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
.view-nav {
|
|
background-color: $primary-ui-bg;
|
|
border-top: 1px solid $soft-ui-border;
|
|
border-right: 0;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
height: 55px;
|
|
width: 100%;
|
|
|
|
@include bp(tablet) {
|
|
border-right: 1px solid $soft-ui-border;
|
|
border-top: 0;
|
|
height: 100%;
|
|
width: 70px;
|
|
}
|
|
|
|
}
|
|
|
|
.view-options-btn {
|
|
align-items: center;
|
|
display: flex;
|
|
margin: auto;
|
|
|
|
@include bp(tablet) {
|
|
flex-direction: column;
|
|
}
|
|
|
|
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: 40px;
|
|
justify-content: center;
|
|
margin: $small;
|
|
position: relative;
|
|
width: 40px;
|
|
|
|
a {
|
|
padding-top: 6px;
|
|
}
|
|
|
|
svg {
|
|
fill: $intense-ui-icons;
|
|
height: 24px;
|
|
width: 24px;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: $color-white;
|
|
border-color: $soft-ui-border;
|
|
}
|
|
|
|
&.selected {
|
|
background-color: $main-ui-color;
|
|
|
|
svg {
|
|
fill: $color-white;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.view-sitemap {
|
|
background-color: $primary-ui-bg;
|
|
border-top: 1px solid $soft-ui-border;
|
|
border-right: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
height: 55px;
|
|
width: 100%;
|
|
|
|
.sitemap-title {
|
|
border-bottom: 1px solid $soft-ui-border;
|
|
padding: $small;
|
|
font-weight: bold;
|
|
}
|
|
|
|
@include bp(tablet) {
|
|
border-right: 1px solid $soft-ui-border;
|
|
border-top: 0;
|
|
height: 100%;
|
|
width: 220px;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
.sitemap-list {
|
|
width: 100%;
|
|
|
|
li {
|
|
align-items: center;
|
|
border-bottom: 1px solid $soft-ui-border;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: $small;
|
|
width: 100%;
|
|
|
|
.page-icon {
|
|
|
|
svg {
|
|
fill: $medium-ui-icons;
|
|
height: 15px;
|
|
margin-right: $x-small;
|
|
width: 15px;
|
|
}
|
|
|
|
}
|
|
|
|
span {
|
|
color: $medium-ui-text;
|
|
font-size: $fs14;
|
|
max-width: 75%;
|
|
overflow-x: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.page-actions {
|
|
align-items: center;
|
|
display: none;
|
|
margin-left: auto;
|
|
|
|
a {
|
|
|
|
svg {
|
|
fill: $soft-ui-icons;
|
|
height: 15px;
|
|
margin-left: $x-small;
|
|
width: 15px;
|
|
|
|
&:hover {
|
|
fill: $intense-ui-icons;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
.page-icon {
|
|
|
|
svg {
|
|
fill: $main-ui-color;
|
|
}
|
|
|
|
}
|
|
|
|
span {
|
|
color: $main-ui-color;
|
|
}
|
|
|
|
}
|
|
|
|
&.selected {
|
|
|
|
.page-icon {
|
|
|
|
svg {
|
|
fill: $main-ui-color;
|
|
}
|
|
|
|
}
|
|
|
|
span {
|
|
color: $main-ui-color;
|
|
font-weight: bold;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
.page-actions {
|
|
display: flex;
|
|
@include animation(0s,.3s,fadeIn);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.view-canvas {
|
|
background-color: $secondary-ui-bg;
|
|
width: 100%;
|
|
overflow: scroll;
|
|
display: flex;
|
|
.page-layout {
|
|
flex-shrink: 0;
|
|
margin: auto;
|
|
}
|
|
}
|
|
|
|
.interaction-mark {
|
|
align-items: center;
|
|
background-color: $color-primary;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
height: 20px;
|
|
width: 20px;
|
|
svg {
|
|
fill: $color-white;
|
|
height: 15px;
|
|
width: 15px;
|
|
}
|
|
}
|