mirror of
https://github.com/jlengrand/open-source-mac-os-apps.git
synced 2026-03-10 08:31:19 +00:00
- models refactored - updated the eslint config - updated the project folders structure - prepared small TODO's list for project improving - removed unnecessary packages - implemented small components updates
190 lines
2.8 KiB
SCSS
190 lines
2.8 KiB
SCSS
@import "../css/colors.scss";
|
|
|
|
$height: 120px;
|
|
$height-hover: 200px;
|
|
|
|
.container {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
height: $height;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
.wrapper {
|
|
z-index: 100;
|
|
height: $height-hover;
|
|
transform: scale(1.05);
|
|
|
|
.image {
|
|
border-radius: 0;
|
|
width: $height-hover;
|
|
height: $height-hover;
|
|
}
|
|
|
|
.right {
|
|
grid-template-rows: 30px 1fr 60px;
|
|
}
|
|
|
|
.footer {
|
|
grid-template-rows: repeat(3, 1fr);
|
|
grid-template-columns: none;
|
|
height: 60px;
|
|
justify-content: flex-end;
|
|
|
|
.label {
|
|
display: inline-block;
|
|
}
|
|
|
|
.stars,
|
|
.forks,
|
|
.watchers {
|
|
padding: 0;
|
|
display: grid;
|
|
grid-template-columns: 1fr 70px
|
|
}
|
|
|
|
.forks {
|
|
padding: 3px 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.bottom {
|
|
.wrapper {
|
|
bottom: 0;
|
|
}
|
|
}
|
|
|
|
&.top {
|
|
.wrapper {
|
|
top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.wrapper {
|
|
height: $height;
|
|
width: 100%;
|
|
|
|
background-color: #fff;
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
left: 0;
|
|
|
|
display: grid;
|
|
grid-template-columns: $height 1fr;
|
|
box-shadow: 0px 0px 10px -5px $charcoal;
|
|
|
|
border-radius: 5px;
|
|
|
|
transform: scale(1);
|
|
transition: all 0.15s linear;
|
|
z-index: 90;
|
|
}
|
|
|
|
.left,
|
|
.right {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.left {
|
|
display: grid;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.right {
|
|
padding: 10px;
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: 30px 1fr 30px;
|
|
}
|
|
|
|
.image {
|
|
width: 110px;
|
|
height: 110px;
|
|
border-radius: 50%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
transition: height 0.15s linear, border-radius 0.15s linear;
|
|
|
|
img {
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
|
|
.header {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.description {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-size: 12px;
|
|
position: relative;
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
&:after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 10px;
|
|
background: rgb(255,255,255);
|
|
background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
|
|
}
|
|
}
|
|
|
|
.footer {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 30px;
|
|
overflow: hidden;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
font-size: 13px;
|
|
align-items: center;
|
|
padding: 0 5px;
|
|
box-sizing: border-box;
|
|
|
|
.icon {
|
|
width: 15px;
|
|
display: inline-block;
|
|
text-align: center;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.label {
|
|
display: none;
|
|
text-align: end;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
.stars,
|
|
.forks,
|
|
.watchers {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.forks {
|
|
padding: 0 3px;
|
|
}
|
|
}
|