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

386 lines
7.2 KiB
SCSS
Raw Normal View History

2018-11-15 22:06:54 +00:00
.miscellaneous .hero-header {
2018-11-16 22:44:50 +00:00
max-height: 350px;
2018-11-15 22:06:54 +00:00
box-shadow: 1px 1px 4px 2px $black;
}
.misc {
background: $asphalt;
color: $white;
2018-11-16 22:44:50 +00:00
min-height: 90%;
2020-02-23 14:59:22 +00:00
padding: 2em 13% 3em;
2018-11-15 22:06:54 +00:00
}
.misc svg {
width: 13px;
height: 13px;
color: $black;
vertical-align: middle;
}
.misc h2 {
text-align: center;
2020-04-24 22:20:08 +00:00
margin-bottom: .5em;
2018-11-15 22:06:54 +00:00
}
2020-02-25 18:45:27 +00:00
.misc > h4 {
font-family: $font-primary;
font-weight: bold;
border-bottom: 1px solid $white;
2020-02-26 22:37:27 +00:00
margin-top: .5em;
2020-02-25 18:45:27 +00:00
}
2018-11-15 22:06:54 +00:00
.contents.misc p {
margin: .2em 0;
}
.misc h2,
2020-02-25 18:45:27 +00:00
.misc .option,
.misc footer {
2018-11-15 22:06:54 +00:00
color: $golden;
}
2020-02-26 22:37:27 +00:00
.misc .option span {
color: $white;
font-size: .7rem;
}
2018-11-15 22:06:54 +00:00
.misc input {
2018-11-16 22:44:50 +00:00
vertical-align: middle;
2020-02-25 18:45:27 +00:00
margin: 0 .5em 0 .25em;
2018-11-15 22:06:54 +00:00
}
.misc__grid {
display: flex;
flex-wrap: wrap;
2020-02-23 14:59:22 +00:00
margin: 3em 0 0;
2018-11-15 22:06:54 +00:00
}
2018-11-16 22:44:50 +00:00
.misc__grid a {
border: 0;
}
2020-02-23 14:59:22 +00:00
.card {
background-color: transparent;
2018-11-15 22:06:54 +00:00
color: $black;
border-radius: 8px;
2020-02-23 14:59:22 +00:00
border-color: transparent;
flex: 33% 0 0;
margin-bottom: 3em;
font-size: inherit;
text-align: left;
transition: .2s ease;
cursor: pointer;
z-index: 1;
2018-11-15 22:06:54 +00:00
}
.card p {
padding-left: .5em;
margin-bottom: .5em;
2020-02-25 18:45:27 +00:00
}
.card a {
word-wrap: break-word;
2018-11-15 22:06:54 +00:00
}
.card__title {
2020-02-23 14:59:22 +00:00
padding-top: 1.2em;
2018-11-15 22:06:54 +00:00
height: 45px;
}
.misc .title {
float: right;
width: 65%;
right: 0;
background: $golden;
padding: .1em 1em .1em .2em;
text-align: right;
}
.card__body {
2020-02-23 14:59:22 +00:00
padding: 2em;
2018-11-15 22:06:54 +00:00
}
.card__subtitle {
border-bottom: 1px solid $golden;
}
.card__title > img {
display: inline;
vertical-align: middle;
margin-left: 2em;
width: 45px;
}
2020-02-23 14:59:22 +00:00
.card__about,
.card__more {
line-height: 1.1;
}
.card__more {
position: absolute;
right: 20px;
bottom: 20px;
margin-top: .8em;
font-size: .95rem;
}
.card__more i {
display: inline-block;
vertical-align: middle;
height: 13px;
margin-left: 2px;
font-size: .7rem;
}
.card:focus .card__more {
display: none;
}
.card__content {
position: relative;
background: $white;
border-radius: inherit;
width: 270px;
height: 360px;
transition: .3s cubic-bezier(.175, .885, .32, 1.275);
}
.card__extra {
position: absolute;
width: 350px;
height: 360px;
left: 0;
top: 0;
border-radius: 0 8px 8px 0;
transition: .15s cubic-bezier(.175, .885, .32, 1);
transform: translateX(70%) rotateX(90deg);
opacity: 0;
transform-origin: top;
overflow: hidden;
padding: 1.5em;
}
.card__extra p {
transition: opacity .3s ease;
transition-delay: .2s;
opacity: 0;
}
.card__content:before,
.card__content:after {
content: "";
position: absolute;
opacity: 0;
cursor: pointer;
transition: .1s ease;
pointer-events: none;
}
.card__content:after {
width: 25px;
height: 25px;
border-radius: 20%;
background: linear-gradient(45deg, rgba(255, 255, 255, 1.0e-05) calc(50% - 2px), #fff calc(50% - 2px), #fff calc(50% + 2px), rgba(255, 255, 255, 1.0e-05) calc(50% + 2px)), linear-gradient(-45deg, rgba(255, 255, 255, 1.0e-05) calc(50% - 2px), #fff calc(50% - 2px), #fff calc(50% + 2px), rgba(255, 255, 255, 1.0e-05) calc(50% + 2px)), $golden;
top: -30px;
right: -360px;
box-shadow: inset 0 0 0 5px $golden;
z-index: $zIndex--5;
}
.card__content:before {
width: 660px;
height: 30px;
top: -35px;
left: -20px;
background: rgba(0, 0, 0, .9);
border-radius: 16px 16px 0 0;
z-index: $zIndex--5;
}
.card:focus {
outline: none;
transform: translateY(-10px) translateX(-80px);
z-index: $zIndex--4;
}
.card:focus > .card__content:before,
.card:focus > .card__content:after {
opacity: 1;
}
.card:focus:before {
content: "";
position: absolute;
min-width: 660px;
min-height: 395px;
top: -15px;
left: -100px;
background-color: rgba(0, 0, 0, .9);
border-radius: 0 0 16px 16px;
}
.card:focus .card__content {
transform: translateY(-10px) translateX(-80px);
border-radius: 8px 0 0 8px;
}
.card:focus .card__extra {
background: inherit;
transition: opacity 0s ease-in, transform .2s ease-in;
transition-delay: .1s;
transform: translateX(77%) rotateX(0deg);
opacity: 1;
}
.card:focus .card__extra p {
opacity: 1;
}
2020-02-25 18:45:27 +00:00
#sortAP:checked ~ .misc__grid .card:not(.ap),
#sortZot:checked ~ .misc__grid .card:not(.zot),
#sortDiaspora:checked ~ .misc__grid .card:not(.dia),
#sortOstatus:checked ~ .misc__grid .card:not(.os),
#snMacro:checked ~ .misc__grid .card:not(.SN-ma),
#snMicro:checked ~ .misc__grid .card:not(.SN-mi),
#blogPub:checked ~ .misc__grid .card:not(.Blog-Pub),
#media:checked ~ .misc__grid .card:not(.Media),
#links:checked ~ .misc__grid .card:not(.Links),
#evMeet:checked ~ .misc__grid .card:not(.Ev-Meet),
#files:checked ~ .misc__grid .card:not(.Files),
2020-03-01 20:53:56 +00:00
#data:checked ~ .misc__grid .card:not(.DataForge),
2020-04-24 22:20:08 +00:00
#reviews:checked ~ .misc__grid .card:not(.Reviews),
#games:checked ~ .misc__grid .card:not(.Games),
#libs:checked ~ .misc__grid .card:not(.Libs),
#specs:checked ~ .misc__grid .card:not(.Specs),
#dev:checked ~ .misc__grid .card:not(.Tools),
#utils:checked ~ .misc__grid .card:not(.Utils),
#tests:checked ~ .misc__grid .card:not(.Tests),
2020-02-25 18:45:27 +00:00
#relays:checked ~ .misc__grid .card:not(.Relays),
2020-04-24 22:20:08 +00:00
#bridges:checked ~ .misc__grid .card:not(.Bridges),
#plugins:checked ~ .misc__grid .card:not(.Plugins),
#other:checked ~ .misc__grid .card:not(.Other),
2020-02-25 18:45:27 +00:00
#python:checked ~ .misc__grid .card:not(.python),
#php:checked ~ .misc__grid .card:not(.php),
#javascript:checked ~ .misc__grid .card:not(.javascript),
#rust:checked ~ .misc__grid .card:not(.rust),
#go:checked ~ .misc__grid .card:not(.go),
#typescript:checked ~ .misc__grid .card:not(.typescript),
#elixir:checked ~ .misc__grid .card:not(.elixir),
#ruby:checked ~ .misc__grid .card:not(.ruby),
#crystal:checked ~ .misc__grid .card:not(.crystal),
#ocaml:checked ~ .misc__grid .card:not(.ocaml),
#java:checked ~ .misc__grid .card:not(.java),
2020-02-26 22:37:27 +00:00
#c\#:checked ~ .misc__grid .card:not(.c\#),
2020-02-29 21:30:24 +00:00
#c:checked ~ .misc__grid .card:not(.c),
#haskell:checked ~ .misc__grid .card:not(.haskell) {
2018-11-15 22:06:54 +00:00
display: none;
}
2019-12-04 12:12:15 +00:00
@media screen and (max-width: $mq-large) {
2020-02-23 14:59:22 +00:00
.misc__grid {
justify-content: flex-end;
}
.card {
flex: 45% 0 0;
2019-12-04 12:12:15 +00:00
}
}
2018-11-15 22:06:54 +00:00
@media screen and (max-width: $mq-medium) {
2020-02-23 14:59:22 +00:00
.misc__grid {
justify-content: flex-start;
}
.card {
flex: 95% 0 0;
outline: none;
}
2020-04-12 19:51:02 +00:00
.card:focus {
transform: none;
}
.card__content {
2020-02-23 14:59:22 +00:00
display: flex;
flex-wrap: wrap;
height: auto;
width: 100%;
border-radius: 8px;
}
2020-04-12 19:51:02 +00:00
.card__content:before,
.card__content:after,
.card:focus:before {
position: static;
content: none;
}
.card:focus .card__content {
transform: none;
}
.card:focus .card__extra {
transform: none;
}
2020-02-23 14:59:22 +00:00
.card__title {
flex: 100% 0 0;
padding-top: .5em;
}
.card__body {
flex: 40% 0 0;
}
.card__extra {
position: static;
flex: 60% 0 0;
background: inherit;
transition: opacity 0s ease-in, transform .2s ease-in;
transition-delay: .1s;
opacity: 1;
width: inherit;
height: inherit;
transform: none;
}
.card__extra p {
opacity: 1;
}
.card__more {
display: none;
}
.misc .title {
width: 45%;
2018-11-15 22:06:54 +00:00
}
}
@media screen and (max-width: $mq-small) {
2020-02-23 14:59:22 +00:00
.card {
flex: 100% 0 0;
}
.card__body,
.card__extra {
padding: 1.3em;
2018-11-15 22:06:54 +00:00
}
}
@media screen and (max-width: $mq-xsmall) {
2020-02-23 14:59:22 +00:00
.card__body,
.card__extra {
2018-11-15 22:06:54 +00:00
flex: 100% 0 0;
}
2020-02-23 14:59:22 +00:00
.card__body {
padding-bottom: 0;
}
.card__extra {
padding-top: 0;
}
2018-11-15 22:06:54 +00:00
}