0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00
penpot/frontend/resources/styles/main/partials/viewer-header.scss

304 lines
5.1 KiB
SCSS
Raw Normal View History

2020-04-02 17:08:24 +02:00
.viewer-header {
align-items: center;
background-color: $color-gray-50;
border-bottom: 1px solid $color-gray-60;
display: flex;
height: 40px;
padding: 0 $medium 0 55px;
2020-04-02 17:08:24 +02:00
position: relative;
z-index: 12;
justify-content: space-between;
a {
font-size: $fs13;
}
2020-04-02 17:08:24 +02:00
.main-icon {
align-items: center;
background-color: $color-gray-60;
cursor: pointer;
display: flex;
height: 100%;
justify-content: center;
left: 0;
position: absolute;
top: 0;
width: 40px;
a {
height: 30px;
svg {
fill: $color-gray-30;
height: 30px;
width: 28px;
}
&:hover {
svg {
fill: $color-primary;
}
}
}
}
2020-04-27 14:31:57 +02:00
.header-icon {
align-items: center;
cursor: pointer;
display: flex;
justify-content: center;
a {
height: 16px;
width: 16px;
svg {
fill: $color-gray-30;
height: 16px;
width: 16px;
}
&:hover {
svg {
fill: $color-primary;
}
}
}
}
2020-04-02 17:08:24 +02:00
.sitemap-zone {
align-items: center;
cursor: pointer;
display: flex;
padding: $x-small;
svg {
fill: $color-gray-20;
height: 20px;
margin-right: $small;
width: 20px;
}
span {
color: $color-gray-20;
margin-right: $x-small;
font-size: $fs14;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&.frame-name {
color: $color-white;
}
}
.dropdown-button {
svg {
fill: $color-white;
height: 10px;
width: 10px;
}
}
.page-name {
color: $color-white;
}
.counters {
margin-left: $size-3;
}
}
.mode-zone {
display: flex;
height: 100%;
.mode-zone-button {
background: inherit;
border: none;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 40px;
svg {
fill: $color-gray-20;
2020-11-13 09:51:53 +01:00
width: 20px;
height: 20px;
}
&.active {
background: $color-gray-60;
svg {
fill: $color-primary;
}
}
}
}
2020-04-02 17:08:24 +02:00
.options-zone {
align-items: center;
display: flex;
2020-10-19 13:33:34 +02:00
width: 384px;
justify-content: flex-end;
position: relative;
> * {
margin-left: $big;
}
.btn-share {
display: flex;
align-items: center;
justify-content: center;
width: 25px;
height: 25px;
cursor: pointer;
svg {
fill: $color-gray-20;
width: 20px;
height: 20px;
}
}
2020-04-02 17:08:24 +02:00
}
.share-link-dropdown {
background-color: $color-white;
border-radius: $br-small;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
display: flex;
flex-direction: column;
left: -135px;
position: absolute;
padding: 1rem;
top: 45px;
width: 400px;
.share-link-title {
color: $color-black;
font-size: $fs15;
padding-bottom: 1rem;
}
.share-link-subtitle {
color: $color-gray-40;
padding-bottom: 1rem;
}
.share-link-buttons {
display: flex;
justify-content: center;
align-items: center;
2020-05-06 08:45:15 +02:00
.btn-warning,
.btn-primary {
width: 50%;
}
}
.share-link-input {
border: 1px solid $color-gray-20;
border-radius: 3px;
display: flex;
height: 40px;
justify-content: space-between;
margin-bottom: 1rem;
padding: 9px $small;
overflow: hidden;
.link {
color: $color-gray-50;
line-height: 1.5;
user-select: all;
overflow: hidden;
}
.link-button {
color: $color-primary-dark;
2020-04-02 17:08:24 +02:00
cursor: pointer;
flex-shrink: 0;
font-size: $fs15;
2020-04-02 17:08:24 +02:00
&:hover {
color: $color-black;
2020-04-02 17:08:24 +02:00
}
}
}
&:before {
background-color: $color-white;
content: "";
height: 16px;
left: 53%;
position: absolute;
transform: rotate(45deg);
top: -5px;
width: 16px;
2020-04-02 17:08:24 +02:00
}
}
2020-04-02 17:08:24 +02:00
2020-04-27 14:31:57 +02:00
.custom-select-dropdown {
position: absolute;
left: 0;
z-index: 12;
2020-11-03 19:44:01 +01:00
max-height: 31rem;
2020-04-27 14:31:57 +02:00
min-width: 7rem;
overflow-y: auto;
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: $fs14;
display: flex;
2020-11-03 19:44:01 +01:00
padding: $small $medium $small 25px;
2020-04-27 14:31:57 +02:00
&.selected {
background-image: url(/images/icons/tick.svg);
background-repeat: no-repeat;
background-position: 5% 48%;
background-size: 10px;
font-weight: bold;
}
&:hover {
background-color: $color-primary-lighter;
}
}
}
.zoom-dropdown {
2020-10-19 13:33:34 +02:00
left : 116px;
top: 45px;
2020-04-02 17:08:24 +02:00
}
.users-zone {
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;
}
}
}
}