forked from saurabh/orbit4-5
227 lines
3.6 KiB
SCSS
227 lines
3.6 KiB
SCSS
@charset "utf-8";
|
|
@import "group-variables";
|
|
|
|
// Group index and public
|
|
#main-wrap .wrap-inner {
|
|
padding: 80px 20px 20px;
|
|
}
|
|
|
|
.group-public,
|
|
.group-index {
|
|
margin: auto;
|
|
max-width: 1500px;
|
|
}
|
|
|
|
.group-card {
|
|
list-style: none;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.group-card-action {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 6px;
|
|
z-index: 200;
|
|
|
|
.group-card-dropdown-toggle {
|
|
border: 1px solid darken($gray, 6%);
|
|
border-radius: $general;
|
|
|
|
&:hover {
|
|
border-radius: $general;
|
|
}
|
|
}
|
|
.group-card-dropdown {}
|
|
}
|
|
|
|
.group-card-inner {
|
|
padding: 2.6rem 0.8rem;
|
|
position: relative;
|
|
min-height: 280px;
|
|
|
|
hr {
|
|
margin: 8px 0 10px 0;
|
|
}
|
|
}
|
|
|
|
.group-avatar {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 200px;
|
|
overflow: hidden;
|
|
background: $dark-gray;
|
|
z-index: 100;
|
|
|
|
&:hover .action {
|
|
z-index: 600;
|
|
opacity: 1;
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 500;
|
|
margin: auto;
|
|
}
|
|
|
|
.action {
|
|
opacity: 0;
|
|
background: rgba($blue, 0.9);
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
margin: auto;
|
|
}
|
|
|
|
.edit {
|
|
color: $white;
|
|
font-size: 25px;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 45%;
|
|
transform: translate(-50%, -50%);
|
|
margin: auto;
|
|
}
|
|
|
|
.trash {
|
|
color: $red;
|
|
font-size: 25px;
|
|
position: absolute;
|
|
top: 49%;
|
|
left: 60%;
|
|
transform: translate(-50%, -50%);
|
|
margin: auto;
|
|
}
|
|
}
|
|
|
|
.group-info {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.group-mail {
|
|
color: $dark-gray;
|
|
font-family: $sub-font;
|
|
}
|
|
|
|
.group-roles {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: $sub-font;
|
|
|
|
.label {
|
|
font-family: $main-font;
|
|
text-transform: capitalize;
|
|
text-shadow: none;
|
|
}
|
|
|
|
.label.private {
|
|
background-color: $red;
|
|
}
|
|
|
|
.label.public {
|
|
background-color: #74c25d;
|
|
}
|
|
}
|
|
|
|
.group-privacy {
|
|
color: $dark-gray;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.group-description {
|
|
overflow: hidden;
|
|
max-height: 150px;
|
|
}
|
|
|
|
.group-name {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
// 370px
|
|
@media screen and (min-width: 23.125rem) {
|
|
.group-index {
|
|
width: 90%;
|
|
}
|
|
|
|
.group-card {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
// 600px
|
|
@media screen and (min-width: 37.5rem) {
|
|
.group-index {
|
|
margin-top: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.group-card {
|
|
float: left;
|
|
padding: 0 0.5rem;
|
|
width: 50%;
|
|
|
|
&:nth-child(2n+1) {
|
|
clear: both;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 900px
|
|
@media screen and (min-width: 56.25rem) {
|
|
.group-card {
|
|
width: 33.3%;
|
|
|
|
&:nth-child(2n+1) {
|
|
clear: none;
|
|
padding-left: 0.5rem;
|
|
}
|
|
|
|
&:nth-child(3n+1) {
|
|
clear: both;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 1080px
|
|
@media screen and (min-width: 67.5rem) {
|
|
.group-card {
|
|
width: 25%;
|
|
|
|
&:nth-child(3n+1) {
|
|
clear: none;
|
|
padding-left: 0.5rem;
|
|
}
|
|
|
|
&:nth-child(4n+1) {
|
|
clear: both;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 1400px
|
|
@media screen and (min-width: 87.5rem) {
|
|
.group-card {
|
|
width: 20%;
|
|
|
|
&:nth-child(4n+1) {
|
|
clear: none;
|
|
padding-left: 0.5rem;
|
|
}
|
|
|
|
&:nth-child(5n+1) {
|
|
clear: both;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
} |