0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00
penpot/frontend/resources/styles/main/partials/viewer-header.scss

235 lines
3.9 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: grid;
grid-template-columns: 1fr 130px 1fr;
2021-04-29 15:13:46 +02:00
height: 48px;
2021-10-05 10:16:44 +02:00
padding: 0 $size-4 0 55px;
top: 0;
position: absolute;
2020-04-02 17:08:24 +02:00
justify-content: space-between;
2022-06-08 12:12:23 +02:00
width: 100vw;
2020-04-02 17:08:24 +02:00
a {
2021-10-05 12:59:00 +02:00
font-size: $fs12;
}
.nav-zone {
justify-content: flex-start;
2022-06-08 12:12:23 +02:00
width: 100%;
}
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;
position: absolute;
left: 0;
2020-04-02 17:08:24 +02:00
top: 0;
2021-04-29 15:13:46 +02:00
width: 48px;
2020-04-02 17:08:24 +02:00
a {
height: 30px;
svg {
fill: $color-gray-30;
height: 30px;
width: 28px;
}
&:hover {
svg {
fill: $color-primary;
}
}
}
}
2021-08-16 15:46:02 +02:00
.options-zone {
align-items: center;
display: flex;
justify-content: flex-end;
position: relative;
z-index: 10;
2020-04-27 14:31:57 +02:00
2021-08-16 15:46:02 +02:00
> * {
2021-10-05 10:16:44 +02:00
margin-left: $size-5;
2022-06-08 12:12:23 +02:00
@media only screen and (max-width: 1366px) {
margin-left: 0.5rem;
}
2021-08-16 15:46:02 +02:00
}
2021-08-16 15:46:02 +02:00
.btn-primary {
flex-shrink: 0;
2022-06-08 12:12:23 +02:00
svg {
display: none;
}
@media only screen and (max-width: 1366px) {
padding: 0 0.5rem;
svg {
display: inline-block;
}
span {
display: none;
}
}
&:hover {
svg {
fill: $color-gray-20;
}
}
2020-04-27 14:31:57 +02:00
}
2020-11-18 17:36:14 +01:00
2021-08-16 15:46:02 +02:00
.view-options {
2021-05-25 16:28:59 +02:00
align-items: center;
cursor: pointer;
display: flex;
2021-09-30 16:24:52 +02:00
position: relative;
2021-05-25 16:28:59 +02:00
2021-08-16 15:46:02 +02:00
> span {
color: $color-gray-10;
2021-10-05 12:59:00 +02:00
font-size: $fs14;
2021-10-05 10:16:44 +02:00
margin-right: $size-1;
2021-05-25 16:28:59 +02:00
}
2021-08-16 15:46:02 +02:00
> .icon {
align-items: center;
cursor: pointer;
display: flex;
justify-content: center;
svg {
fill: $color-gray-10;
height: 12px;
width: 12px;
}
&:hover {
> svg {
fill: $color-primary;
}
}
2021-05-25 16:28:59 +02:00
}
2020-04-27 14:31:57 +02:00
2021-08-16 15:46:02 +02:00
.dropdown {
2021-09-30 16:24:52 +02:00
min-width: 295px;
2021-08-16 15:46:02 +02:00
top: 45px;
left: -25px;
}
}
}
2020-04-02 17:08:24 +02:00
.sitemap-zone {
align-items: center;
cursor: pointer;
display: flex;
2021-10-05 10:16:44 +02:00
padding: $size-1;
2021-08-16 15:46:02 +02:00
position: relative;
2022-06-08 12:12:23 +02:00
width: 100%;
2020-04-02 17:08:24 +02:00
2021-08-16 15:46:02 +02:00
.icon {
display: flex;
justify-content: center;
align-items: center;
2020-04-02 17:08:24 +02:00
2021-08-16 15:46:02 +02:00
svg {
fill: $color-gray-20;
height: 12px;
2021-10-05 10:16:44 +02:00
margin-right: $size-2;
2021-08-16 15:46:02 +02:00
width: 12px;
2020-04-02 17:08:24 +02:00
}
}
2022-06-08 12:12:23 +02:00
.breadcrumb {
display: grid;
grid-template-columns: auto 10px auto 10px auto;
}
.breadcrumb,
.current-frame {
2021-08-16 15:46:02 +02:00
position: relative;
2020-04-02 17:08:24 +02:00
2021-08-16 15:46:02 +02:00
> span {
color: $color-gray-20;
2021-10-05 10:16:44 +02:00
margin-right: $size-1;
2021-08-16 15:46:02 +02:00
font-size: $fs14;
2022-07-15 10:57:53 +02:00
overflow: hidden;
2021-08-16 15:46:02 +02:00
text-overflow: ellipsis;
white-space: nowrap;
}
> .dropdown {
top: 45px;
right: 10px;
}
2020-04-02 17:08:24 +02:00
}
2021-08-16 15:46:02 +02:00
.current-frame {
2022-06-08 12:12:23 +02:00
display: grid;
grid-template-columns: 14px 1fr;
2021-08-16 15:46:02 +02:00
span {
color: $color-white;
2021-10-05 10:16:44 +02:00
margin-right: $size-1;
2021-08-16 15:46:02 +02:00
}
.counters {
color: $color-gray-20;
}
2020-04-02 17:08:24 +02:00
}
}
.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%;
2021-04-29 15:13:46 +02:00
width: 48px;
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
.users-zone {
align-items: center;
cursor: pointer;
display: flex;
margin: 0;
li {
2021-10-05 10:16:44 +02:00
margin-left: $size-2;
2020-04-02 17:08:24 +02:00
position: relative;
img {
border: 3px solid #f3dd14;
border-radius: 50%;
flex-shrink: 0;
height: 25px;
width: 25px;
}
}
}
}