hub.sr.ht/scss/main.scss

174 lines
2.3 KiB
SCSS
Raw Normal View History

2020-03-24 15:26:15 +01:00
@import "base";
2020-12-16 14:51:59 +01:00
$darker: darken($gray-900, 6);
2020-03-24 15:26:15 +01:00
.btn-white {
@extend .btn;
padding: 0.25rem 0;
font-size: 0.9rem;
2020-12-16 14:51:59 +01:00
2020-03-24 15:26:15 +01:00
border-color: $gray-500;
2020-12-16 14:51:59 +01:00
background: $white;
2020-03-24 15:26:15 +01:00
color: $gray-900 !important;
&:hover {
background: $white;
color: $black !important;
text-decoration: none;
2020-04-27 18:43:08 +02:00
border-color: $gray-900;
2020-03-24 15:26:15 +01:00
}
2020-04-27 18:43:08 +02:00
2020-12-16 14:51:59 +01:00
@media(prefers-color-scheme: dark) {
background: $darker;
color: $white !important;
&:hover {
background: $gray-900;
color: $white !important;
border-color: $gray-400;
}
}
&.btn-sm {
padding: 0.2rem 0.25rem;
}
2020-04-27 18:43:08 +02:00
transition: border-color 0.2s linear;
2020-03-24 15:26:15 +01:00
}
.service-list {
.col-md-4 {
margin-bottom: 1rem;
}
}
.project-events {
display: flex;
justify-content: space-between;
align-items: stretch;
flex-wrap: wrap;
.view-more {
flex-grow: 1;
text-align: right;
}
.event {
width: calc(50% - 1rem);
margin: 0;
pre {
background: transparent;
margin-bottom: 0;
}
2020-04-20 23:11:58 +02:00
code {
font-size: 0.95rem;
}
2020-03-24 15:26:15 +01:00
p {
margin-bottom: 0;
2020-04-29 16:42:37 +02:00
white-space: nowrap;
text-overflow: ellipsis;
overflow-x: hidden;
2020-03-24 15:26:15 +01:00
}
}
}
.resource-list {
.btn, .btn-white {
padding: 0.25rem 0.75rem;
}
.col-md-4 {
margin-bottom: 1rem;
}
}
.checklist {
list-style: none;
padding-left: 0;
li:not(:last-child) {
margin-bottom: 0.5rem;
}
.icon {
max-width: 0.9rem;
min-width: 0.9rem;
}
small {
padding-left: 1.2rem;
display: inline-block;
2020-03-24 15:26:15 +01:00
}
}
.nav-tabs {
.nav-item .btn-primary {
color: white;
&:hover {
color: white !important;
}
}
}
.select-resource {
h3 {
border: none;
margin-bottom: 0;
}
}
2020-04-28 17:12:11 +02:00
.inline-legend {
float: left;
margin-right: 1rem;
display: inline;
width: inherit;
}
.project-summary {
h2, h3, h4 {
&:not(:first-child) {
margin-top: 2rem;
}
}
img {
max-width: 100%;
}
}
2020-08-14 16:28:15 +02:00
.feature-list {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1rem;
.event {
margin: 0;
}
}
2020-09-12 21:15:22 +02:00
.tags {
a {
@extend .text-muted;
}
.tag:not(:last-child) {
margin-right: 0.5rem;
}
}
.event-list .event p {
margin-bottom: 0;
}
h5 .tags {
font-weight: normal;
font-size: 0.9rem;
}
.readme > pre {
background: transparent;
}