mirror of
https://github.com/penpot/penpot.git
synced 2025-01-11 01:10:28 -05:00
137 lines
2.4 KiB
SCSS
137 lines
2.4 KiB
SCSS
.libraries-window-bar {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 50%);
|
|
padding: 0.5rem;
|
|
align-items: center;
|
|
|
|
& .context-menu-items {
|
|
left: initial;
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
.libraries-window-bar-title {
|
|
color: #F0F0F0;
|
|
font-size: $fs14;
|
|
}
|
|
|
|
.libraries-window-bar-options {
|
|
font-size: 12px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0 0.5rem;
|
|
|
|
button {
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
& svg {
|
|
width: 0.7rem;
|
|
height: 0.7rem;
|
|
fill: #F0F0F0;
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
.library-tab {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.library-tab-content {
|
|
display: grid;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
height: -webkit-fill-available;
|
|
padding: 0.25rem;
|
|
overflow-y: auto;
|
|
|
|
.icons-tab & {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.images-tab & {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
.library-tab-element {
|
|
border-radius: 4px;
|
|
border: 1px solid #1F1F1F;
|
|
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
display: flex;
|
|
margin: 0.25rem;
|
|
overflow: hidden;
|
|
position: relative;
|
|
text-align: center;
|
|
|
|
& svg, & img {
|
|
height: auto;
|
|
margin: auto;
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
width: auto;
|
|
}
|
|
|
|
&:hover {
|
|
border-color: $color-primary;
|
|
|
|
& .library-tab-element-name {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
.icons-tab & {
|
|
background: $color-white;
|
|
color: $color-black;
|
|
height: 4rem;
|
|
width: 4rem;
|
|
padding: $size-3;
|
|
}
|
|
|
|
.images-tab & {
|
|
height: 4rem;
|
|
width: 6.2rem;
|
|
color: $color-white;
|
|
padding: $size-2 0;
|
|
}
|
|
|
|
&.is-dragging {
|
|
border-radius: 0;
|
|
border: none;
|
|
|
|
& .library-tab-element-name {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.library-tab-element-name {
|
|
display: none;
|
|
position: absolute;
|
|
font-size: 9px;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.library-tab-libraries {
|
|
background-color: #303236;
|
|
margin: 0.5rem;
|
|
width: 90%;
|
|
padding: 0.5rem;
|
|
box-sizing: border-box;
|
|
color: #AFB2BF;
|
|
font-size: 12px;
|
|
border: 1px solid #7c7c7c;
|
|
}
|
|
|
|
.library-tab-libraries-item {
|
|
padding: 1rem;
|
|
}
|