0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00
penpot/resources/public/styles/partials/dashboard-grid.scss

208 lines
3.6 KiB
SCSS
Raw Normal View History

2015-06-18 19:35:50 +02:00
.dashboard-grid {
align-items: center;
display: flex;
flex-direction: column;
font-size: $fs14;
padding: $medium 250px $medium $medium;
2015-12-15 22:56:03 +01:00
.dashboard-title {
position: relative;
width: 100%;
h2 {
text-align: center;
width: 100%;
}
.edition {
align-items: center;
display: flex;
position: absolute;
right: 40px;
top: 0;
span {
cursor: pointer;
svg {
fill: $color-gray;
height: 20px;
margin: 0 10px;
width: 20px;
}
&:hover {
svg {
fill: $color-gray-darker;
}
}
}
}
}
2015-06-18 19:35:50 +02:00
.dashboard-grid-content {
align-items: center;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
2015-12-15 12:58:49 +01:00
height: 100%;
2015-06-18 19:35:50 +02:00
justify-content: center;
margin: $big;
2015-12-15 22:56:03 +01:00
max-height: 77vh;
2015-12-15 13:23:26 +01:00
min-height: 60vh;
2015-12-15 12:58:49 +01:00
overflow: scroll;
2015-12-15 22:56:03 +01:00
padding-bottom: 30px;
2015-06-18 19:35:50 +02:00
width: 100%;
.grid-item {
align-items: center;
border-radius: $br-medium;
cursor: pointer;
display: flex;
flex-direction: column;
flex-shrink: 0;
height: 150px;
2015-12-15 19:13:50 +01:00
justify-content: center;
2015-06-18 19:35:50 +02:00
margin: $medium $medium 0 $medium;
padding: $medium;
position: relative;
text-align: center;
width: 20%;
&.add-project {
border: 2px dashed $color-gray-light;
box-shadow: inset 0 0 0 transparent;
justify-content: center;
span {
background-color: $color-primary-light;
border-radius: 5px;
color: $color-white;
font-size: $fs24;
padding: $small $medium;
}
&:hover {
background-color: $color-primary-light;
border: 2px solid $color-white;
span {
color: $color-white;
}
}
}
&.project-th {
background-color: $color-white;
border-bottom: 2px solid lighten($color-gray-light, 12%);
&:hover {
border-color: $color-primary;
h3 {
color: $color-primary;
}
}
h3 {
color: $color-gray-darker;
font-weight: 400;
}
.project-th-update {
color: $color-gray-light;
}
.project-th-actions {
align-items: center;
box-sizing: border-box;
bottom: 0;
display: flex;
left: 0;
padding: $small;
position: absolute;
width: 100%;
svg {
fill: $color-gray-light;
height: 14px;
margin-right: 5px;
width: 14px;
}
span {
color: $color-gray-light;
}
.project-th-icon {
align-items: center;
display: flex;
margin-right: $small;
&.delete {
margin-left: auto;
margin-right: 0;
svg {
fill: $color-danger;
}
&:hover {
transform: scale(1.4);
}
}
2015-12-15 19:13:50 +01:00
&.edit {
&:hover {
transform: scale(1.4);
}
}
2015-06-18 19:35:50 +02:00
}
}
}
2015-12-15 19:13:50 +01:00
.grid-item-image {
svg {
height: 20%;
max-width: 120px;
width: 40%;
}
}
2015-06-18 19:35:50 +02:00
}
}
2015-12-15 12:58:49 +01:00
// STYLES FOR LIBRARIES
&.library {
padding: $medium $medium $medium 250px;
2015-12-15 22:56:03 +01:00
.dashboard-grid-content {
.grid-item {
h3 {
font-size: $fs18;
}
}
}
2015-12-15 12:58:49 +01:00
}
2015-06-18 19:35:50 +02:00
}