forked from saurabh/orbit4-5
160 lines
2.7 KiB
SCSS
160 lines
2.7 KiB
SCSS
@charset "utf-8";
|
|
|
|
// Group index and public
|
|
.group-index {}
|
|
|
|
.group-public {
|
|
margin: auto;
|
|
max-width: $boundary;
|
|
}
|
|
|
|
.group-card {
|
|
list-style: none;
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
.group-card-inner {
|
|
padding: 1rem 1.25rem;
|
|
position: relative;
|
|
min-height: 280px;
|
|
hr {
|
|
margin: 8px 0 10px 0;
|
|
}
|
|
}
|
|
|
|
.group-avatar {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 200px;
|
|
overflow: hidden;
|
|
background: $dark-gray;
|
|
&: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: 50%;
|
|
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;
|
|
}
|
|
|
|
@media screen and (min-width: 370px) {
|
|
.group-index {
|
|
margin-top: 50px;
|
|
width: 90%;
|
|
}
|
|
.group-card {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 600px) {
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 900px) {
|
|
.group-card {
|
|
width: 33.3%;
|
|
&:nth-child(2n+1) {
|
|
clear: none;
|
|
padding-left: 0.5rem;
|
|
}
|
|
&:nth-child(3n+1) {
|
|
clear: both;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
}
|
|
@media screen and (min-width: 1080px) {
|
|
.group-card {
|
|
width: 25%;
|
|
&:nth-child(3n+1) {
|
|
clear: none;
|
|
padding-left: 0.5rem;
|
|
}
|
|
&:nth-child(4n+1) {
|
|
clear: both;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
} |