2021-01-23 22:44:06 +00:00
|
|
|
// This mixin should contain ONLY positioning and layout rules.
|
|
|
|
// They will be compiled later to different targets.
|
2021-01-24 03:50:18 +00:00
|
|
|
.bluelib-skeleton {
|
2021-01-23 22:44:06 +00:00
|
|
|
// Reset the insane box-sizing default
|
2021-01-24 03:56:06 +00:00
|
|
|
// Should this be changed to something different?
|
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2021-01-23 22:44:06 +00:00
|
|
|
|
|
|
|
// === RULES ===
|
|
|
|
|
|
|
|
// --- Containers ---
|
|
|
|
|
|
|
|
.container-main {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
max-width: 1280px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// --- Panels ---
|
|
|
|
// Remember to use BOTH the panel AND the panel-* class when using a panel element!
|
|
|
|
|
|
|
|
.panel {
|
|
|
|
margin: 8px 0;
|
|
|
|
width: 100%;
|
|
|
|
|
2021-01-29 03:01:08 +00:00
|
|
|
// Remove the margins from the first and the last elements, as the padding is already good enough
|
|
|
|
> .element-paragraph, .element-title, .panel {
|
2021-01-23 22:44:06 +00:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// A generic content box
|
|
|
|
.panel-box {
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: 4px;
|
|
|
|
border-width: 2px;
|
2021-01-24 03:56:06 +00:00
|
|
|
border-style: solid;
|
2021-01-23 22:44:06 +00:00
|
|
|
background-color: rgba(0, 0, 0, 0.025); // Make the panel more noticeable on a white background
|
|
|
|
}
|
|
|
|
|
|
|
|
// Should be the same as a box, but with a quote-like border
|
|
|
|
.panel-blockquote {
|
|
|
|
.panel-box();
|
|
|
|
|
|
|
|
border-left-width: 2px;
|
|
|
|
border-top-width: 0;
|
|
|
|
border-bottom-width: 0;
|
|
|
|
border-right-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Should be the same as a box, but with smaller text and no border
|
|
|
|
.panel-aside {
|
|
|
|
.panel-box();
|
|
|
|
|
|
|
|
border-width: 0;
|
|
|
|
font-size: smaller;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Evenly split the panels contained inside
|
|
|
|
.panel-split {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 8px;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
flex-basis: 0;
|
|
|
|
}
|
2021-01-29 03:01:08 +00:00
|
|
|
|
|
|
|
> .panel {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2021-01-23 22:44:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// --- Element status ---
|
|
|
|
|
|
|
|
.status-disabled {
|
|
|
|
cursor: not-allowed;
|
2021-01-29 00:49:21 +00:00
|
|
|
opacity: 50%;
|
2021-01-23 22:44:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.status-hoverable {
|
|
|
|
cursor: help;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// --- Spoilers ---
|
|
|
|
|
|
|
|
.spoiler {
|
|
|
|
filter: blur(5px);
|
|
|
|
cursor: help;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// --- Elements ---
|
|
|
|
|
|
|
|
.element-title {
|
|
|
|
.align-center();
|
|
|
|
}
|
|
|
|
|
|
|
|
.element-paragraph {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.element-separator {
|
|
|
|
border-width: 1px;
|
2021-01-24 03:56:06 +00:00
|
|
|
border-color: dimgrey;
|
2021-01-23 22:44:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.element-list-item {
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
|
2021-01-24 03:50:18 +00:00
|
|
|
.element-anchor {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-01-23 22:44:06 +00:00
|
|
|
// --- Alignment ---
|
|
|
|
|
|
|
|
.align-left {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.align-center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.align-right {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
// --- Sizes ---
|
|
|
|
|
|
|
|
.size-xxl {
|
|
|
|
font-size: xx-large;
|
|
|
|
}
|
|
|
|
|
|
|
|
.size-xl {
|
|
|
|
font-size: x-large;
|
|
|
|
}
|
|
|
|
|
|
|
|
.size-l {
|
|
|
|
font-size: large;
|
|
|
|
}
|
|
|
|
|
|
|
|
.size-m {
|
|
|
|
font-size: medium;
|
|
|
|
}
|
|
|
|
|
|
|
|
.size-s {
|
|
|
|
font-size: small;
|
|
|
|
}
|
|
|
|
|
|
|
|
.size-xs {
|
|
|
|
font-size: x-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
.size-xxs {
|
|
|
|
font-size: xx-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
// --- Styles ---
|
|
|
|
|
|
|
|
.style-bold {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.style-italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.style-underline {
|
|
|
|
text-decoration-line: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.style-strike {
|
|
|
|
text-decoration-line: line-through;
|
|
|
|
}
|
|
|
|
|
2021-01-24 03:50:18 +00:00
|
|
|
.style-monospace {
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
|
2021-01-23 22:44:06 +00:00
|
|
|
// --- Colors ---
|
|
|
|
|
|
|
|
.color-red {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
|
|
|
|
.color-orange {
|
|
|
|
color: orange;
|
|
|
|
}
|
|
|
|
|
|
|
|
.color-yellow {
|
|
|
|
color: #dddd00; // Pure yellow isn't readable on a white background
|
|
|
|
}
|
|
|
|
|
|
|
|
.color-lime {
|
|
|
|
color: lime;
|
|
|
|
}
|
|
|
|
|
|
|
|
.color-cyan {
|
|
|
|
color: cyan;
|
|
|
|
}
|
|
|
|
|
|
|
|
.color-blue {
|
|
|
|
color: blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
.color-magenta {
|
|
|
|
color: magenta;
|
|
|
|
}
|
|
|
|
}
|