pub.solar/_includes/styles/service.scss
Benjamin Yule Bädorf e6279896d6
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
v2: initial commit
* Separate german and english language pages
* Add a services page with details per service
* Move hakken dates into the same container as the text
* Introductory text on the homepage
2024-03-06 16:34:00 +01:00

117 lines
1.8 KiB
SCSS

.ps-service {
margin-top: 2rem;
margin-right: 1rem;
&--header {
margin: 0;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 0.25rem solid black;
};
&--title {
margin: 0;
}
&--links {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
flex-basis: 8rem;
flex-grow: 1;
max-width: 16rem;
> * {
margin-left: 2rem;
}
}
&--description {
margin: 0;
> * {
margin: 0;
margin-top: 1rem;
}
}
&--badges {
display: flex;
flex-direction: column;
align-items: flex-start;
margin-top: 1rem;
@media screen and (min-width: 700px) {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 0.5rem 1rem;
}
}
&--badge {
display: flex;
justify-content: space-between;
border-left: 0.25rem solid var(--accent);
padding-left: 1rem;
@media screen and (min-width: 700px) {
flex-basis: 50%;
}
&_yes,
&_fully-automated {
border-left-color: #009d11;
}
&_partial,
&_untested {
border-left-color: #ff8f00;
}
&_not-applicable {
border-left-color: #555;
}
&_no {
border-left-color: var(--accent);
}
}
&--badge-header {
display: flex;
justify-content: space-between;
cursor: pointer;
}
&--badge-title {
font-weight: bold;
}
&--badge-status {
display: inline-flex;
}
$b: &;
&--badge {
&_yes #{$b}--badge-status,
&_fully-automated #{$b}--badge-status {
color: #007d0e;
}
&_partial #{$b}--badge-status,
&_untested #{$b}--badge-status {
color: #ac6100;
}
&_not-applicable #{$b}--badge-status {
color: #555;
}
&_no #{$b}--badge-status {
color: var(--accent);
}
}
}