208 lines
No EOL
3.7 KiB
CSS
208 lines
No EOL
3.7 KiB
CSS
/* ---------------- Components ---------------- */
|
|
|
|
|
|
/* -------- General components -------- */
|
|
|
|
|
|
.flex-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: stretch;
|
|
}
|
|
|
|
|
|
/* -------- Tree components -------- */
|
|
|
|
|
|
.tree li, .tree ul li {
|
|
margin-left: 15px;
|
|
position: relative;
|
|
padding-left: 5px;
|
|
}
|
|
|
|
.tree li::before, .tree ul li::before {
|
|
content: " ";
|
|
position: absolute;
|
|
width: 1px;
|
|
background-color: var(--text-color);
|
|
top: 5px;
|
|
bottom: -12px;
|
|
left: -10px;
|
|
}
|
|
|
|
.tree>li:first-child::before {
|
|
top: 12px;
|
|
}
|
|
|
|
.tree li:not(:first-child):last-child::before, .tree ul li:not(:first-child):last-child::before {
|
|
display: none;
|
|
}
|
|
|
|
.tree li:only-child::before, .tree ul li:only-child::before {
|
|
display: list-item;
|
|
content: " ";
|
|
position: absolute;
|
|
width: 1px;
|
|
background-color: var(--text-color);
|
|
top: 5px;
|
|
bottom: 7px;
|
|
height: 7px;
|
|
left: -10px;
|
|
}
|
|
|
|
.tree li::after, .tree ul li::after {
|
|
content: " ";
|
|
position: absolute;
|
|
left: -10px;
|
|
width: 10px;
|
|
height: 1px;
|
|
background-color: var(--text-color);
|
|
top: 12px;
|
|
}
|
|
|
|
|
|
/* -------- Form components -------- */
|
|
|
|
|
|
.input-form {
|
|
display: flex;
|
|
padding: 0;
|
|
border: 1px solid var(--highlight-color);
|
|
}
|
|
|
|
.input-form input {
|
|
width: 100%;
|
|
padding: 0.5rem 1rem;
|
|
margin: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
outline: none;
|
|
transition-duration: 0.5s;
|
|
background-color: var(--bg-color);
|
|
}
|
|
|
|
.input-form input:hover,
|
|
.input-form input:focus {
|
|
background-color: rgba(var(--highlight-color-rgb), 0.15);
|
|
}
|
|
|
|
.input-form button {
|
|
padding: 0.5rem 1rem;
|
|
margin: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
outline: none;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition-duration: 0.5s;
|
|
color: var(--text-color);
|
|
background-color: rgba(var(--highlight-color-rgb), 0.15);
|
|
}
|
|
|
|
.input-form button:hover {
|
|
background-color: var(--highlight-color);
|
|
}
|
|
|
|
.input-form ::placeholder {
|
|
color: var(--text-color);
|
|
opacity: 1;
|
|
/* Firefox */
|
|
}
|
|
|
|
.input-form ::-ms-input-placeholder {
|
|
/* Edge 12 -18 */
|
|
color: var(--text-color);
|
|
}
|
|
|
|
|
|
/* -------- Button components --------*/
|
|
|
|
|
|
.button {
|
|
margin: 0.5rem;
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid var(--highlight-color);
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
cursor: pointer;
|
|
transition-duration: 0.5s;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: var(--highlight-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.hover-button:hover {
|
|
margin: 0.5rem 1rem 1rem 0.5rem;
|
|
box-shadow: 0.5rem 0.5rem 0rem rgba(var(--highlight-color-rgb), 0.3);
|
|
}
|
|
|
|
.button:active {
|
|
transition-duration: 0s;
|
|
background-color: rgba(var(--highlight-color-rgb), 0.15);
|
|
}
|
|
|
|
.copy-button {
|
|
margin: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 1;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
|
|
/* -------- Box components -------- */
|
|
|
|
|
|
.box {
|
|
margin: 0.5rem;
|
|
padding: 1rem;
|
|
border: 1px solid var(--highlight-color);
|
|
}
|
|
|
|
|
|
/* -------- Component modifiers -------- */
|
|
|
|
|
|
.float-end {
|
|
float: inline-end;
|
|
}
|
|
|
|
.float-start {
|
|
float: inline-start;
|
|
}
|
|
|
|
|
|
.box-hover {
|
|
transition-duration: 0.5s;
|
|
}
|
|
|
|
.box-hover:hover {
|
|
background-color: rgba(var(--highlight-color-rgb), 0.15);
|
|
margin: 0.5rem 1rem 1rem 0.5rem;
|
|
box-shadow: 0.5rem 0.5rem 0rem rgba(var(--highlight-color-rgb), 0.3);
|
|
}
|
|
|
|
.box-code {
|
|
position: relative;
|
|
padding: 0;
|
|
background-color: rgba(var(--highlight-color-rgb), 0.15);
|
|
}
|
|
|
|
.box-pop {
|
|
margin: 0.5rem 1rem 1rem 0.5rem;
|
|
box-shadow: 0.5rem 0.5rem 0rem rgba(var(--highlight-color-rgb), 0.3);
|
|
}
|
|
|
|
.box-fit {
|
|
width: fit-content;
|
|
height: fit-content;
|
|
}
|
|
|
|
.box-stealth {
|
|
border: 0;
|
|
box-shadow: none;
|
|
} |