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

412 lines
8.6 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-08-25 01:37:38 +00:00
padding: 1.5em;
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.3;
2020-02-23 14:59:22 +00:00
}
.card__more {
position: absolute;
right: 20px;
bottom: 20px;
margin-top: .8em;
font-size: .95rem;
}
.card__more i {
display: inline-block;
vertical-align: middle;
2023-09-29 21:14:40 +00:00
height: 18px;
margin-left: 4px;
2020-02-23 14:59:22 +00:00
font-size: .7rem;
}
.card:focus .card__more {
display: none;
}
.card__content {
position: relative;
background: $white;
border-radius: inherit;
2020-08-25 01:37:38 +00:00
width: 300px;
2023-09-29 21:14:40 +00:00
height: 440px;
2020-02-23 14:59:22 +00:00
transition: .3s cubic-bezier(.175, .885, .32, 1.275);
}
.card__extra {
position: absolute;
2020-08-25 01:37:38 +00:00
width: 300px;
2023-09-29 21:14:40 +00:00
height: 440px;
2020-02-23 14:59:22 +00:00
left: 0;
top: 0;
border-radius: 0 8px 8px 0;
transition: .15s cubic-bezier(.175, .885, .32, 1);
2020-08-25 01:37:38 +00:00
transform: translateX(90%) rotateX(90deg);
2020-02-23 14:59:22 +00:00
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;
2020-08-25 01:37:38 +00:00
right: -290px;
2020-02-23 14:59:22 +00:00
box-shadow: inset 0 0 0 5px $golden;
z-index: $zIndex--5;
}
.card__content:before {
2020-08-25 01:37:38 +00:00
width: 625px;
2020-02-23 14:59:22 +00:00
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;
2020-08-25 01:37:38 +00:00
min-width: 625px;
min-height: 455px;
2020-02-23 14:59:22 +00:00
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;
2020-08-25 01:37:38 +00:00
transform: translateX(95%) rotateX(0deg);
2020-02-23 14:59:22 +00:00
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),
#data:checked ~ .misc__grid .card:not(.OpenData),
2020-04-24 22:20:08 +00:00
#reviews:checked ~ .misc__grid .card:not(.Reviews),
#games:checked ~ .misc__grid .card:not(.Games),
#extend:checked ~ .misc__grid .card:not(.Extension),
2020-04-24 22:20:08 +00:00
#libs:checked ~ .misc__grid .card:not(.Libs),
#specs:checked ~ .misc__grid .card:not(.Specs),
#dev:checked ~ .misc__grid .card:not(.Develop),
2020-04-24 22:20:08 +00:00
#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),
#forges:checked ~ .misc__grid .card:not(.Forges),
#analytics:checked ~ .misc__grid .card:not(.Analytics),
2020-04-24 22:20:08 +00:00
#other:checked ~ .misc__grid .card:not(.Other),
#forums:checked ~ .misc__grid .card:not(.Forums),
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),
2022-11-30 21:51:30 +00:00
#c:checked ~ .misc__grid .card:not(.c),
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),
2023-10-05 15:55:03 +00:00
#r:checked ~ .misc__grid .card:not(.r),
#haskell:checked ~ .misc__grid .card:not(.haskell),
#guile:checked ~ .misc__grid .card:not(.guile),
#racket:checked ~ .misc__grid .card:not(.racket),
2021-11-14 19:45:04 +00:00
#clojure:checked ~ .misc__grid .card:not(.clojure),
2022-02-04 13:56:39 +00:00
#lisp:checked ~ .misc__grid .card:not(.lisp),
2023-10-05 15:55:03 +00:00
#shell:checked ~ .misc__grid .card:not(.shell),
#hare:checked ~ .misc__grid .card:not(.hare),
#nim:checked ~ .misc__grid .card:not(.nim),
2023-10-05 15:55:03 +00:00
#scala:checked ~ .misc__grid .card:not(.scala),
2023-10-25 20:29:55 +00:00
#lua:checked ~ .misc__grid .card:not(.lua),
#agpl3:checked ~ .misc__grid .card:not(.agpl3),
#mit:checked ~ .misc__grid .card:not(.mit),
#gpl3:checked ~ .misc__grid .card:not(.gpl3),
#apache2:checked ~ .misc__grid .card:not(.apache2),
#unknown:checked ~ .misc__grid .card:not(.unknown),
#bsd3clause:checked ~ .misc__grid .card:not(.bsd3clause),
#isc:checked ~ .misc__grid .card:not(.isc),
#publicdomain:checked ~ .misc__grid .card:not(.publicdomain),
#anticapitalist14:checked ~ .misc__grid .card:not(.anticapitalist14),
#lgpl3:checked ~ .misc__grid .card:not(.lgpl3),
#gpl2:checked ~ .misc__grid .card:not(.gpl2),
#ppl3:checked ~ .misc__grid .card:not(.ppl3),
2023-10-04 20:29:11 +00:00
#blueoak:checked ~ .misc__grid .card:not(.blueoak),
#eupl:checked ~ .misc__grid .card:not(.eupl),
#apache2\/mit:checked ~ .misc__grid .card:not(.apache2\/mit) {
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-08-25 01:37:38 +00:00
cursor: default;
2020-02-23 14:59:22 +00:00
}
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%;
}
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;
2020-08-25 01:37:38 +00:00
border-radius: 8px;
2020-04-12 19:51:02 +00:00
}
.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;
2023-09-29 21:14:40 +00:00
flex: 55% 0 0;
2020-02-23 14:59:22 +00:00
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;
2020-08-25 01:37:38 +00:00
font-size: 95%;
2020-02-23 14:59:22 +00:00
}
.card__body,
.card__extra {
padding: 1.3em;
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
}