fediparty/themes/starter/source/assets/scss/modules/_index.scss

363 lines
5.1 KiB
SCSS
Raw Normal View History

2018-03-12 19:31:14 +00:00
.main__container {
2018-11-18 17:26:14 +00:00
position: absolute;
bottom: 0;
right: 0;
2018-03-12 19:31:14 +00:00
padding-top: 2em;
padding-bottom: 1.5em;
background: $black url(/img/index-bg.jpg) center center no-repeat;
background-size: cover;
2018-06-03 16:18:00 +00:00
overflow: hidden;
2018-03-12 19:31:14 +00:00
}
.i-sidebar + .main__container {
width: calc(100% - 70px);
}
.main__container:after { /* dotted overlay */
content: "";
background-image: url(/img/dots.png);
background-size: 2px;
position: fixed;
top: 0;
right: 0;
width: inherit;
height: 100%;
z-index: $zIndex--1;
}
.grid {
position: relative;
z-index: $zIndex--2;
width: inherit;
height: inherit;
}
.grid__item {
position: absolute;
width: 190px;
font-family: $font-secondary;
display: inline-flex;
border-bottom: none;
}
.grid__item__image {
width: 80px;
height: 80px;
flex: 40% 0 0;
border: 3px solid $white;
background: $white;
2018-03-12 19:31:14 +00:00
border-radius: 50%;
}
.grid__item__title {
color: $white;
flex: 60% 0 0;
margin: 0 .5em;
align-self: center;
transition: color .3s ease, text-shadow .3s ease;
font-size: 1.2rem;
}
.grid__item:hover .grid__item__title,
.grid__item:focus .grid__item__title {
text-shadow: 0 0 10px $white;
}
.f-Socialhome {
top: .7em;
2018-05-19 05:09:12 +00:00
left: 7em;
}
.f-Misskey {
top: 23%;
left: 4%;
2018-03-12 19:31:14 +00:00
}
.f-Hubzilla {
top: 9.5em;
left: 26%;
}
2018-10-21 16:15:12 +00:00
.f-Osada {
top: 76%;
left: 48%;
}
2018-03-12 19:31:14 +00:00
.f-diaspora {
2018-12-10 20:27:00 +00:00
top: 6em;
2018-03-12 19:31:14 +00:00
left: 87%;
}
.f-Pleroma {
2018-05-19 05:09:12 +00:00
top: 48%;
2018-03-12 19:31:14 +00:00
left: 8%;
}
.f-Mastodon {
top: 35%;
left: 81%;
}
.f-Friendica {
2018-12-10 20:27:00 +00:00
top: 82%;
left: 23%;
2018-03-12 19:31:14 +00:00
}
.f-GNUSocial {
top: 83%;
left: 83%;
}
2018-04-23 01:52:58 +00:00
.f-PeerTube {
top: 65%;
left: 90%;
}
2018-12-18 23:09:37 +00:00
.f-PixelFed {
top: 74%;
left: 7%;
}
2018-03-12 19:31:14 +00:00
.grid__card {
opacity: 0;
position: absolute;
width: 350px;
height: 220px;
background: $black;
color: $white;
padding: 35px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: opacity .45s ease-in;
}
.grid__item:hover + .grid__card {
opacity: 1;
}
.grid__card:after,
.intro__content:after {
content: "";
border: 1px solid $golden;
position: absolute;
top: 15px;
left: 15px;
right: 15px;
bottom: 15px;
z-index: -1;
}
.grid__card h4,
.intro__content span {
text-align: center;
color: $golden;
}
.grid__card img {
width: 50px;
height: 50px;
vertical-align: middle;
margin-right: .2em;
}
.grid__card p {
font-size: .9rem;
margin-top: .3em;
}
.intro {
cursor: pointer;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 22px;
height: 22px;
border-radius: 50%;
background-color: $golden;
box-shadow: 0 0 12px $golden;
z-index: $zIndex--4;
}
.intro:before {
content: "";
display: block;
width: 70px;
height: 70px;
background: rgba($golden, .2);
border-radius: inherit;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
animation-duration: 2s;
animation-iteration-count: infinite;
animation-name: glow;
}
.grid__item:hover ~ .intro {
opacity: 0;
}
.intro__content {
opacity: 0;
position: relative;
left: 40%;
transform: translate(-40%, -40%);
2018-11-03 18:03:48 +00:00
display: none;
2018-03-12 19:31:14 +00:00
flex-direction: column;
width: 500px;
height: 260px;
background: $black;
color: $white;
padding: 35px;
transition: opacity .45s ease-in;
}
.intro__content.open {
2018-11-03 18:03:48 +00:00
display: flex;
2018-03-12 19:31:14 +00:00
opacity: 1;
}
.intro__content svg {
width: 20px;
height: 20px;
position: absolute;
top: 1.5em;
right: 1.5em;
}
.intro__content a {
flex: 0 1 auto;
align-self: center;
color: $golden;
border-bottom: 1px solid $golden;
&:hover,
&:focus,
&:active {
color: $white;
}
}
.intro__content > a:last-child {
border: none;
font-family: $font-secondary;
margin-top: .5em;
}
@-webkit-keyframes glow {
0%,
100% {
opacity: .9;
}
0% {
opacity: 0;
}
}
@keyframes glow {
0%,
100% {
opacity: .9;
}
50% {
opacity: 0;
}
}
2018-11-03 18:03:48 +00:00
@media screen and (max-width: $mq-large) {
.grid__card {
top: 55%;
left: 58%;
}
}
2018-03-12 19:31:14 +00:00
@media screen and (max-width: $mq-medium) {
2018-06-03 16:18:00 +00:00
.main__container {
overflow-y: scroll;
}
2018-03-12 19:31:14 +00:00
.grid__item {
flex-wrap: wrap;
}
2018-10-21 16:15:12 +00:00
.grid__item__image {
width: 45px;
height: 45px;
flex: 25% 0 0;
}
2018-03-12 19:31:14 +00:00
.f-Aardwolf {
top: -1em;
left: 70%;
}
.f-diaspora {
left: 75%;
}
.f-Mastodon {
top: 39%;
}
.intro {
display: none;
}
}
@media screen and (max-width: $mq-medium) and (orientation: portrait), screen and (max-width: $mq-small) {
.grid {
display: flex;
flex-wrap: wrap;
}
.grid__item {
position: static;
2018-03-27 02:18:10 +00:00
flex: 50% 0 0;
align-items: center;
2018-03-12 19:31:14 +00:00
margin: 0 auto;
display: flex;
}
.grid__item__image {
margin-left: 2em;
}
2018-03-27 02:18:10 +00:00
.grid__item__image,
.grid__item__title {
flex: initial;
}
2018-03-12 19:31:14 +00:00
.grid__card:before {
opacity: 1;
}
}
@media screen and (max-width: $mq-xsmall) {
.grid__item {
flex: 100% 0 0;
2018-03-21 02:27:07 +00:00
align-self: flex-end;
2018-03-12 19:31:14 +00:00
}
.grid__item__image {
2018-03-21 03:03:12 +00:00
width: 30px;
height: 30px;
2018-03-12 19:31:14 +00:00
}
2018-03-21 03:03:12 +00:00
.grid__item__title {
font-size: 1rem;
}
2018-03-12 19:31:14 +00:00
.grid__card {
display: none;
}
}
@media screen and (max-width: $mq-small) and (orientation: landscape) {
.source__toggle {
display: none;
}
}