mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 14:42:31 +01:00
219 lines
2.8 KiB
SCSS
219 lines
2.8 KiB
SCSS
.flox {
|
||
position: relative;
|
||
width: 100%;
|
||
min-height: calc(100vh + 120px);
|
||
float: left;
|
||
padding: 0 0 120px 0;
|
||
}
|
||
|
||
.box {
|
||
float: left;
|
||
width: 100%;
|
||
padding: 60px 0;
|
||
position: relative;
|
||
|
||
&:nth-child(2) {
|
||
background: #242424;
|
||
}
|
||
}
|
||
|
||
.box-headline {
|
||
font-size: 22px;
|
||
color: #555;
|
||
|
||
&:hover,
|
||
&:hover {
|
||
background: $main;
|
||
color: #fff;
|
||
}
|
||
}
|
||
|
||
.box-options {
|
||
float: right;
|
||
|
||
i {
|
||
float: left;
|
||
cursor: pointer;
|
||
margin: 0 0 0 20px;
|
||
opacity: .8;
|
||
|
||
&:active {
|
||
opacity: .6;
|
||
}
|
||
}
|
||
}
|
||
|
||
.icon-time {
|
||
|
||
&.active {
|
||
@extend .icon-time-active;
|
||
}
|
||
}
|
||
|
||
.icon-star {
|
||
|
||
&.active {
|
||
@extend .icon-star-active;
|
||
}
|
||
}
|
||
|
||
.items {
|
||
float: left;
|
||
width: 100%;
|
||
min-height: 400px;
|
||
}
|
||
|
||
.item {
|
||
float: left;
|
||
width: 185px;
|
||
margin: 50px 33px 0 0;
|
||
position: relative;
|
||
|
||
&:nth-child(5n) {
|
||
margin: 50px 0 0 0;
|
||
}
|
||
|
||
&:hover .icon-edit-wrap {
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
.icon-edit-wrap {
|
||
padding: 10px;
|
||
background: $main;
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
z-index: 50;
|
||
display: none;
|
||
cursor: pointer;
|
||
opacity: .85;
|
||
transition: opacity .2s ease-in-out 0s;
|
||
|
||
i {
|
||
float: left;
|
||
}
|
||
|
||
&:hover {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
.rating {
|
||
float: right;
|
||
width: 10px;
|
||
height: 270px;
|
||
opacity: .9;
|
||
background: silver;
|
||
|
||
.item-image-big & {
|
||
height: 450px;
|
||
}
|
||
}
|
||
|
||
.rating-1 { background: #ac1b1b; }
|
||
.rating-2 { background: #c15e33; }
|
||
.rating-3 { background: #dea621; }
|
||
.rating-4 { background: #73a01c; }
|
||
.rating-5 { background: $main; }
|
||
|
||
.item-image {
|
||
background-color: #101010;
|
||
float: left;
|
||
width: 185px;
|
||
height: 270px;
|
||
position: relative;
|
||
top: 0;
|
||
opacity: 1;
|
||
|
||
transition: top .4s ease-in-out 0s, opacity .4s ease-in-out 0s;
|
||
|
||
.loading & {
|
||
top: -5px;
|
||
opacity: 0;
|
||
}
|
||
}
|
||
|
||
.item-image-big {
|
||
width: 300px;
|
||
height: 450px;
|
||
}
|
||
|
||
.item-content {
|
||
float: left;
|
||
margin: 20px 0 0 0;
|
||
padding: 0 5px;
|
||
width: 100%;
|
||
}
|
||
|
||
.icon-no-image {
|
||
position: absolute;
|
||
top: 95px;
|
||
left: 60px;
|
||
|
||
.item-image-big & {
|
||
top: 175px;
|
||
left: 120px;
|
||
}
|
||
}
|
||
|
||
.item-date {
|
||
float: left;
|
||
clear: both;
|
||
color: #555;
|
||
font-size: 15px;
|
||
}
|
||
|
||
.item-title {
|
||
float: left;
|
||
clear: both;
|
||
font-size: 17px;
|
||
color: #909090;
|
||
border-bottom: 1px solid transparent;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 100%;
|
||
|
||
&:hover,
|
||
&:active {
|
||
background: $main;
|
||
color: #fff;
|
||
}
|
||
}
|
||
|
||
.icon-content-load,
|
||
.icon-box-load {
|
||
background: url(../img/content-load.gif) no-repeats;
|
||
width: 32px;
|
||
height: 32px;
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50vh;
|
||
transform: translateX(-50%);
|
||
}
|
||
|
||
.icon-box-load {
|
||
top: 280px;
|
||
}
|
||
|
||
.show-item-wrap {
|
||
float: left;
|
||
width: 100%;
|
||
margin: 50px 0 0 0;
|
||
}
|
||
|
||
.image-wrap {
|
||
float: left;
|
||
width: 350px;
|
||
}
|
||
|
||
.show-content {
|
||
float: left;
|
||
width: 710px;
|
||
|
||
h2 {
|
||
color: $main;
|
||
font-size: 32px;
|
||
}
|
||
} |