Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
       🚧 True to our name, we’re still a work in progress. 🚧
   
       You’re welcome to explore, but account registration is currently invite-only as we finalize the setup. 
       Join our forum or follow Mastodon for updates. 
       Full Wiki launch coming soon!
   

Template:GuideStep/styles.css: Difference between revisions

Template page
No edit summary
 
(No difference)

Latest revision as of 08:44, 16 March 2026

/* Guide Step — inline step-by-step block for Quick Start and Tutorial pages */
/* NOTE: Do NOT add .mw-parser-output prefix — TemplateStyles adds it automatically */

.guide-step {
    margin: 0 0 16px 0;
    border-width: 1px;
    border-style: solid;
    border-top-color: var(--border-color-base);
    border-right-color: var(--border-color-base);
    border-bottom-color: var(--border-color-base);
    border-left-color: var(--border-color-base);
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-surface-1);
}

.guide-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-surface-2);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color-base);
}

.guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--wiki-primary);
    color: #fff;
    font-size: 0.82em;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
}

.guide-step-title {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--color-base);
    flex: 1;
}

.guide-step-badge {
    font-size: 0.72em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--wiki-primary-subtle);
    color: var(--wiki-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.guide-step-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step-text {
    font-size: 0.95em;
    line-height: 1.65;
    color: var(--color-base);
}

.guide-step-note {
    padding: 10px 14px;
    background: rgba(228, 100, 25, 0.08);
    border-left-width: 3px;
    border-left-style: solid;
    border-left-color: var(--wiki-primary);
    border-radius: 0 3px 3px 0;
    font-size: 0.88em;
    color: var(--color-base);
    line-height: 1.5;
}

.guide-step-warning {
    padding: 10px 14px;
    background: rgba(220, 53, 69, 0.08);
    border-left-width: 3px;
    border-left-style: solid;
    border-left-color: #dc3545;
    border-radius: 0 3px 3px 0;
    font-size: 0.88em;
    color: var(--color-base);
    line-height: 1.5;
}

.guide-step-screenshot {
    border-radius: 4px;
    overflow: hidden;
    border-width: 1px;
    border-style: solid;
    border-top-color: var(--border-color-base);
    border-right-color: var(--border-color-base);
    border-bottom-color: var(--border-color-base);
    border-left-color: var(--border-color-base);
}

.guide-step-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.guide-step-screenshot--empty {
    background: var(--color-surface-2);
    border-width: 2px;
    border-style: dashed;
    border-top-color: var(--border-color-base);
    border-right-color: var(--border-color-base);
    border-bottom-color: var(--border-color-base);
    border-left-color: var(--border-color-base);
}

.guide-screenshot-placeholder {
    padding: 28px;
    text-align: center;
    font-size: 0.88em;
    color: var(--color-base--subtle);
    font-style: italic;
}

/* Guide tabs */

.guide-tabs {
    margin-bottom: 24px;
}

.guide-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color-base);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.guide-tab-nav-item {
    padding: 9px 18px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-base--subtle);
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    background: none;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color 0.15s;
    white-space: nowrap;
    display: inline-block;
    user-select: none;
}

.guide-tab-nav-item:hover {
    color: var(--wiki-primary);
}

.guide-tab-nav-item.is-active {
    color: var(--wiki-primary);
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: var(--wiki-primary);
}

.guide-tab-panel {
    display: none;
}

.guide-tab-panel.is-active {
    display: block;
}

/* Progress indicators */

.guide-progress {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.guide-progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--color-base--subtle);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.guide-progress-step.is-current {
    color: var(--wiki-primary);
}

.guide-progress-step.is-done {
    color: #28a745;
}

.guide-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-base--subtle);
    flex-shrink: 0;
}

.guide-progress-step.is-current .guide-progress-dot {
    background: var(--wiki-primary);
}

.guide-progress-step.is-done .guide-progress-dot {
    background: #28a745;
}

.guide-progress-sep {
    font-size: 0.7em;
    color: var(--color-base--subtle);
}

/* Next/prev navigation */

.guide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: var(--border-color-base);
    flex-wrap: wrap;
    gap: 10px;
}

.guide-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 0.88em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.guide-nav-btn--next {
    background: var(--wiki-primary);
    color: #fff !important;
}

.guide-nav-btn--next:hover {
    opacity: 0.85;
}

.guide-nav-btn--prev {
    background: var(--color-surface-2);
    color: var(--color-base) !important;
    border-width: 1px;
    border-style: solid;
    border-top-color: var(--border-color-base);
    border-right-color: var(--border-color-base);
    border-bottom-color: var(--border-color-base);
    border-left-color: var(--border-color-base);
}

.guide-nav-btn--prev:hover {
    border-top-color: var(--wiki-primary);
    border-right-color: var(--wiki-primary);
    border-bottom-color: var(--wiki-primary);
    border-left-color: var(--wiki-primary);
    color: var(--wiki-primary) !important;
}

.guide-nav-center {
    font-size: 0.82em;
    color: var(--color-base--subtle);
}

/* Layout variants */

.guide-step-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Default: below (column, screenshot after content) */
.guide-step--img-below .guide-step-body {
    flex-direction: column;
}

/* Above: screenshot before content */
.guide-step--img-above .guide-step-body {
    flex-direction: column-reverse;
}

/* Left: screenshot to the left of content */
.guide-step--img-left .guide-step-body {
    flex-direction: row;
    align-items: flex-start;
}

.guide-step--img-left .guide-step-screenshot {
    width: 40%;
    flex-shrink: 0;
    order: -1;
}

.guide-step--img-left .guide-step-content {
    flex: 1;
}

/* Right: screenshot to the right of content */
.guide-step--img-right .guide-step-body {
    flex-direction: row;
    align-items: flex-start;
}

.guide-step--img-right .guide-step-screenshot {
    width: 40%;
    flex-shrink: 0;
    order: 1;
}

.guide-step--img-right .guide-step-content {
    flex: 1;
}

/* Mobile: left/right collapse to column */
@media ( max-width: 720px ) {
    .guide-step--img-left .guide-step-body,
    .guide-step--img-right .guide-step-body {
        flex-direction: column;
    }

    .guide-step--img-left .guide-step-screenshot,
    .guide-step--img-right .guide-step-screenshot {
        width: 100%;
        order: 0;
    }
}