0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 08:59:17 -05:00
penpot/frontend/resources/styles/view/layouts/main-layout.scss
2020-03-03 13:14:37 +01:00

250 lines
3.9 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: $color-gray-50;
border-top: 1px solid $color-gray-60;
border-right: 0;
display: flex;
flex-shrink: 0;
height: 55px;
width: 100%;
@include bp(tablet) {
border-right: 1px solid $color-gray-60;
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: $color-gray-60;
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: $color-gray-20;
height: 24px;
width: 24px;
}
&:hover {
background-color: $color-gray-10;
border-color: $color-gray-60;
}
&.selected {
background-color: $color-primary;
svg {
fill: $color-white;
}
}
}
}
.view-sitemap {
background-color: $color-gray-50;
border-top: 1px solid $color-gray-60;
border-right: 0;
display: flex;
flex-direction: column;
flex-shrink: 0;
height: 155px;
width: 100%;
overflow: scroll;
.sitemap-title {
border-bottom: 1px solid $color-gray-60;
padding: $small;
font-weight: bold;
}
@include bp(tablet) {
border-right: 1px solid $color-gray-60;
border-top: 0;
height: 100%;
width: 220px;
}
}
.sitemap-list {
width: 100%;
li {
align-items: center;
border-bottom: 1px solid $color-gray-60;
cursor: pointer;
display: flex;
flex-direction: row;
padding: $small;
width: 100%;
.page-icon {
svg {
fill: $color-gray-30;
height: 15px;
margin-right: $x-small;
width: 15px;
}
}
span {
color: $color-gray-20;
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: $color-gray-60;
height: 15px;
margin-left: $x-small;
width: 15px;
&:hover {
fill: $color-gray-20;
}
}
}
}
&:hover {
.page-icon {
svg {
fill: $color-primary;
}
}
span {
color: $color-primary;
}
}
&.selected {
.page-icon {
svg {
fill: $color-primary;
}
}
span {
color: $color-primary;
font-weight: bold;
}
}
}
&:hover {
.page-actions {
display: flex;
@include animation(0s,.3s,fadeIn);
}
}
}
.view-canvas {
background-color: $color-gray-60;
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;
}
}
.interaction-bullet {
fill: $color-primary;
fill-opacity: 1;
}
.interaction-hightlight {
fill: $color-primary;
fill-opacity: 0.3;
stroke: $color-primary;
}