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

143 lines
2.5 KiB
SCSS
Raw Normal View History

2018-11-15 22:06:54 +00:00
2019-03-10 20:29:56 +00:00
2018-11-15 22:06:54 +00:00
.miscellaneous .hero-header {
2018-11-16 22:44:50 +00:00
height: 100%;
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%;
2018-11-15 22:06:54 +00:00
}
.misc svg {
width: 13px;
height: 13px;
color: $black;
vertical-align: middle;
}
.misc h2 {
text-align: center;
margin-bottom: 1em;
}
.contents.misc p {
margin: .2em 0;
}
.misc h2,
.misc p {
color: $golden;
}
.misc input {
2018-11-16 22:44:50 +00:00
vertical-align: middle;
margin: 0 1em 0 .2em;
2018-11-15 22:06:54 +00:00
}
2019-03-10 20:29:56 +00:00
.misc p:nth-of-type(n+5):nth-of-type(-n+16) {
2018-11-15 22:06:54 +00:00
color: $white;
}
.misc__grid {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 1.2em 0;
}
2018-11-16 22:44:50 +00:00
.misc__grid a {
border: 0;
}
2018-11-15 22:06:54 +00:00
.misc__grid .card {
background-color: $white;
color: $black;
border-radius: 8px;
flex: 30% 0 0;
margin-bottom: 2em;
}
.card p {
padding-left: .5em;
margin-bottom: .5em;
color: $black;
}
.card__title {
margin-top: 1.2em;
height: 45px;
}
.card__title p {
color: $black;
}
.misc .title {
float: right;
width: 65%;
right: 0;
background: $golden;
padding: .1em 1em .1em .2em;
text-align: right;
}
.card__body {
padding: 1em 2em 2em;
}
.card__subtitle {
border-bottom: 1px solid $golden;
}
.card__title > img {
display: inline;
vertical-align: middle;
margin-left: 2em;
width: 45px;
}
.option {
display: inline-block;
}
2018-11-16 22:44:50 +00:00
.option + #sortAP:checked ~ .misc__grid .card:not(.ap),
.option + #sortZot:checked ~ .misc__grid .card:not(.zot),
.option + #sortDiaspora:checked ~ .misc__grid .card:not(.dia),
.option + #sortOstatus:checked ~ .misc__grid .card:not(.os),
.option + #snMacro:checked ~ .misc__grid .card:not(.SN-ma),
.option + #snMicro:checked ~ .misc__grid .card:not(.SN-mi),
.option + #blogPub:checked ~ .misc__grid .card:not(.Blog-Pub),
.option + #media:checked ~ .misc__grid .card:not(.Media),
.option + #links:checked ~ .misc__grid .card:not(.Links),
.option + #evMeet:checked ~ .misc__grid .card:not(.Ev-Meet),
.option + #files:checked ~ .misc__grid .card:not(.Files),
.option + #dev:checked ~ .misc__grid .card:not(.DevTools),
.option + #econ:checked ~ .misc__grid .card:not(.Econ),
.option + #coop:checked ~ .misc__grid .card:not(.Coop),
2019-03-10 20:29:56 +00:00
.option + #plugins:checked ~ .misc__grid .card:not(.Plugins),
.option + #relays:checked ~ .misc__grid .card:not(.Relays) {
2018-11-15 22:06:54 +00:00
display: none;
}
@media screen and (max-width: $mq-medium) {
.misc__grid .card {
flex: 45% 0 0;
}
}
@media screen and (max-width: $mq-small) {
.misc__grid .card {
flex: 49% 0 0;
}
}
@media screen and (max-width: $mq-xsmall) {
.misc__grid .card {
flex: 100% 0 0;
}
}