0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-04 21:38:53 -05:00
penpot/resources/styles/partials/dashboard-grid.scss

227 lines
3.9 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;
2016-02-20 22:26:07 +01:00
height: 100%;
padding: $medium;
// ACTIVITY BAR PADDING
//padding: $medium 250px $medium $medium;
2015-06-18 19:35:50 +02:00
2015-12-15 22:56:03 +01:00
.dashboard-title {
2016-02-20 22:26:07 +01:00
margin: $medium 0;
2015-12-15 22:56:03 +01:00
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-12-16 10:15:16 +01:00
2015-12-15 22:56:03 +01:00
}
}
}
}
2015-06-18 19:35:50 +02:00
.dashboard-grid-content {
align-items: center;
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;
2015-12-15 13:23:26 +01:00
min-height: 60vh;
2015-12-15 12:58:49 +01:00
overflow: scroll;
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;
2016-02-20 22:26:07 +01:00
width: 18%;
2015-06-18 19:35:50 +02:00
2015-12-16 10:15:16 +01:00
&.small-item {
max-width: 12%;
2016-02-20 22:26:07 +01:00
min-width: 190px;
2015-12-16 10:15:16 +01:00
}
2015-06-18 19:35:50 +02:00
&.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 {
2016-02-17 08:56:02 +01:00
border-color: $main-ui-color;
2015-06-18 19:35:50 +02:00
h3 {
2016-02-17 08:56:02 +01:00
color: $main-ui-color;
2015-06-18 19:35:50 +02:00
}
}
h3 {
color: $color-gray-darker;
font-weight: 400;
}
.project-th-update {
color: $color-gray-light;
}
.project-th-actions {
align-items: center;
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-12-16 10:15:16 +01:00
.color-swatch {
border-top-left-radius: $br-medium;
border-top-right-radius: $br-medium;
height: 25%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.color-data {
color: $color-gray;
margin-top: 15px;
}
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
}