treehouse/static/css/new.css

135 lines
2.6 KiB
CSS
Raw Permalink Normal View History

2024-02-21 23:17:19 +01:00
/* Give the intro and outro some breathing room. */
section {
padding: 1em 2em;
}
/* Style all links in the last paragraph as big buttons. */
.tree th-bc>p:last-child {
--transition-duration: 0.2s;
2024-06-13 21:50:09 +02:00
margin-top: var(--8px);
margin-bottom: var(--4px);
2024-02-21 23:17:19 +01:00
&>a {
2024-02-22 16:14:02 +01:00
display: inline-block;
2024-02-21 23:17:19 +01:00
padding: 0.5em 1.5em;
color: var(--text-color);
background-color: transparent;
2024-06-13 21:50:09 +02:00
border: var(--1px) solid var(--border-1);
2024-02-21 23:17:19 +01:00
border-radius: 2em;
text-decoration: none;
transition:
color var(--transition-duration),
background-color var(--transition-duration),
border-color var(--transition-duration);
&:hover,
&:focus {
color: white;
background-color: #058ef0;
border-color: white;
}
}
}
2024-02-22 16:14:02 +01:00
.tree li>div:first-child,
.tree li>details>summary:first-child {
--margin: 2.5em;
border: none;
margin-left: var(--tree-indent-width);
width: calc(100% - var(--tree-indent-width));
margin-top: var(--margin);
margin-bottom: var(--margin);
}
.tree th-bp {
display: none;
}
.tree th-bb {
opacity: 100%;
& .branch-date {
display: block !important;
}
}
@media (max-width: 600px) {
2024-02-22 16:14:02 +01:00
.tree .branch-container {
flex-direction: column-reverse;
}
}
2024-03-03 21:23:37 +01:00
section.settings {
2024-02-21 23:17:19 +01:00
& h3 {
display: inline;
}
& details>summary {
--recursive-wght: 700;
list-style: none;
cursor: pointer;
opacity: 50%;
transition: opacity var(--transition-duration);
&::-webkit-details-marker {
display: none;
}
&::before {
--recursive-casl: 0.0;
--recursive-mono: 1.0;
--recursive-slnt: 0.0;
content: '+';
margin-right: 0.3em;
opacity: 50%;
}
&:hover {
opacity: 100%;
}
}
& details[open]>summary {
opacity: 100%;
&::before {
content: '-';
}
}
& p {
2024-06-13 21:50:09 +02:00
margin-bottom: var(--8px);
2024-02-21 23:17:19 +01:00
}
& button {
2024-06-13 21:50:09 +02:00
border: var(--1px) solid var(--border-1);
2024-02-21 23:17:19 +01:00
border-radius: 999px;
2024-06-13 21:50:09 +02:00
padding: var(--4px) var(--12px);
2024-02-21 23:17:19 +01:00
background: none;
color: var(--text-color);
font-size: 1rem;
cursor: pointer;
transition:
color var(--transition-duration),
background-color var(--transition-duration),
border-color var(--transition-duration);
&:hover {
color: white;
background-color: #058ef0;
border-color: white;
}
}
2024-03-03 21:23:37 +01:00
}