2019-08-15 17:40:13 +00:00
|
|
|
|
/*
|
|
|
|
|
* Citizen - Navigation Styles
|
|
|
|
|
* https://starcitizen.tools
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Import MediaWiki-supplied mixins
|
2019-12-26 10:21:50 +00:00
|
|
|
|
@import 'mediawiki.mixins';
|
2019-08-15 17:40:13 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Framework
|
|
|
|
|
*/
|
|
|
|
|
@html-font-size: 100%;
|
|
|
|
|
@margin-side: 20px;
|
|
|
|
|
@page-width: 860px;
|
|
|
|
|
@footer-width: 1290px;
|
|
|
|
|
@icon-size: 18px;
|
|
|
|
|
@icon-box-size: @icon-size + @icon-margin * 2;
|
|
|
|
|
@icon-margin: 3px;
|
|
|
|
|
@icon-padding: 15px;
|
|
|
|
|
@header-height: 56px;
|
|
|
|
|
@sidebar-sitename-height: 69px;
|
|
|
|
|
@drawer-width: 300px;
|
|
|
|
|
@padding-menu-item: 10px 15px;
|
|
|
|
|
@padding-menu-item-big: 10px 20px;
|
|
|
|
|
@negative-margin: (@footer-width - @page-width) / -2;
|
|
|
|
|
|
2020-06-09 01:00:27 +00:00
|
|
|
|
@search-bar-width: 500px;
|
2020-06-08 23:12:03 +00:00
|
|
|
|
@search-bar-height: 42px;
|
|
|
|
|
|
2020-06-08 20:26:51 +00:00
|
|
|
|
@border-radius-small: 4px;
|
|
|
|
|
@border-radius-medium: @border-radius-small * 2;
|
|
|
|
|
@border-radius-large: @border-radius-small * 3;
|
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
|
/*
|
|
|
|
|
* Colors
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Wikimedia colors
|
|
|
|
|
@base-0: #000;
|
2020-06-25 21:06:38 +00:00
|
|
|
|
@base-10: #202122;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@base-20: #54595d;
|
|
|
|
|
@base-30: #72777d;
|
|
|
|
|
@base-50: #a2a9b1;
|
2019-11-19 03:56:40 +00:00
|
|
|
|
@base-70: #c8ccd1;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@base-80: #eaecf0;
|
|
|
|
|
@base-90: #f8f9fa;
|
|
|
|
|
@base-100: #fff;
|
|
|
|
|
|
|
|
|
|
@accent-10: #2a4b8d;
|
|
|
|
|
@accent-50: #36c;
|
2019-11-27 19:08:42 +00:00
|
|
|
|
@accent-90: #eaf3ff;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
|
|
|
|
|
@red-30: #b32424;
|
|
|
|
|
@red-50: #d33;
|
|
|
|
|
@red-90: #fee7e6;
|
|
|
|
|
|
|
|
|
|
@green-30: #14866d;
|
|
|
|
|
@green-50: #00af89;
|
|
|
|
|
@green-90: #d5fdf4;
|
|
|
|
|
|
|
|
|
|
@yellow-30: #ac6600;
|
|
|
|
|
@yellow-50: #fc3;
|
|
|
|
|
@yellow-90: #fef6e7;
|
|
|
|
|
|
|
|
|
|
@menu-background: @base-100;
|
|
|
|
|
@opacity-icon: 0.3;
|
|
|
|
|
@opacity-icon-active: 0.5;
|
|
|
|
|
@color-item-text: @base-30;
|
|
|
|
|
@color-item-text-hover: @base-20;
|
2019-11-27 19:08:42 +00:00
|
|
|
|
@color-item-text-active: @accent-50;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@color-item-header: @base-10;
|
2019-11-27 19:08:42 +00:00
|
|
|
|
@menu-item-link-hover: @base-80;
|
|
|
|
|
@menu-item-link-active: @accent-90;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
|
|
|
|
|
@color-content-text: @base-20;
|
|
|
|
|
@color-content-header: @base-10;
|
|
|
|
|
@color-content-caption: @base-30;
|
|
|
|
|
|
|
|
|
|
@color-link: #3366cc;
|
|
|
|
|
@color-link-active: #5b84d6;
|
|
|
|
|
@color-link-new: #dd3333;
|
|
|
|
|
@color-link-new-active: #e35b5b;
|
2019-12-02 21:24:50 +00:00
|
|
|
|
// @color-link-visited: #6b4ba1;
|
|
|
|
|
// @color-link-visited-active: #886eb3;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
|
|
|
|
|
// Citizen colors
|
2020-06-07 05:30:54 +00:00
|
|
|
|
@header-background-color-light: @base-100;
|
|
|
|
|
@header-background-color-dark: @dark-bg-0;
|
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@color-footer-background-40: #0f1418;
|
|
|
|
|
@color-footer-background-50: #131a21;
|
|
|
|
|
@color-footer-background-60: #1a252d;
|
|
|
|
|
@color-footer-text: #979c9f;
|
|
|
|
|
@color-footer-link: #cfdee8;
|
|
|
|
|
@color-footer-link-active: @base-80;
|
|
|
|
|
|
2019-12-02 21:05:23 +00:00
|
|
|
|
// Dark mode colors
|
|
|
|
|
@dark-bg-0: #11151d;
|
|
|
|
|
@dark-bg-10: #1d2129;
|
|
|
|
|
@dark-bg-20: #22262d;
|
|
|
|
|
@dark-bg-30: #24272f;
|
|
|
|
|
@dark-bg-40: #2b2f36;
|
|
|
|
|
@dark-bg-50: #33363d;
|
|
|
|
|
@dark-bg-60: #34383f;
|
|
|
|
|
|
|
|
|
|
@dark-text-100: #e0e1e2;
|
|
|
|
|
@dark-text-90: #c1c2c5;
|
|
|
|
|
@dark-text-80: #a0a1a5;
|
|
|
|
|
@dark-text-70: #86888c;
|
|
|
|
|
@dark-text-60: #6c6e73;
|
|
|
|
|
|
|
|
|
|
@dark-color-link: @color-link-active;
|
|
|
|
|
@dark-color-link-new: @color-link-new-active;
|
2019-12-02 21:24:50 +00:00
|
|
|
|
// @dark-color-link-visited: @color-link-visited-active;
|
2019-12-02 21:05:23 +00:00
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
|
/*
|
|
|
|
|
* Transitions
|
|
|
|
|
*/
|
2020-03-21 04:41:45 +00:00
|
|
|
|
@transition-color: color 0.55s ease;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@transition-color-quick: color 0.2s ease;
|
2019-12-26 10:21:50 +00:00
|
|
|
|
@transition-transform: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
|
|
|
|
|
@transition-transform-quick: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
|
|
|
|
|
@transition-width: width 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
|
2020-03-21 04:41:45 +00:00
|
|
|
|
@transition-width-quick: width 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
|
2019-12-26 10:21:50 +00:00
|
|
|
|
@transition-height: height 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
|
2020-03-21 04:41:45 +00:00
|
|
|
|
@transition-height-quick: height 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
|
2019-12-26 10:21:50 +00:00
|
|
|
|
@transition-margin: margin 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
|
2020-03-21 04:41:45 +00:00
|
|
|
|
@transition-margin-quick: margin 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
|
2019-12-26 10:21:50 +00:00
|
|
|
|
@transition-padding: padding 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
|
2020-03-21 04:41:45 +00:00
|
|
|
|
@transition-padding-quick: padding 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@transition-background: background 0.55s ease;
|
2020-03-21 04:41:45 +00:00
|
|
|
|
@transition-background-quick: background 0.2s ease;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@transition-opacity: opacity 0.55s ease;
|
|
|
|
|
@transition-opacity-quick: opacity 0.2s ease;
|
|
|
|
|
@transition-border: border 0.55s ease;
|
|
|
|
|
@transition-border-quick: border 0.2s ease;
|
|
|
|
|
@transition-box-shadow: box-shadow 0.55s ease;
|
|
|
|
|
@transition-box-shadow-quick: box-shadow 0.2s ease;
|
|
|
|
|
@transition-border-color: border-color 0.55s ease;
|
2020-03-21 04:41:45 +00:00
|
|
|
|
@transition-border-color-quick: border-color 0.2s ease;
|
2019-08-16 02:48:10 +00:00
|
|
|
|
@transition-filter: filter 0.55s ease;
|
2020-03-21 04:41:45 +00:00
|
|
|
|
@transition-filter-quick: filter 0.2s ease;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Fonts
|
|
|
|
|
*/
|
2019-12-02 05:55:40 +00:00
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
|
/**
|
2020-08-07 05:45:24 +00:00
|
|
|
|
* Citizen font stack for sans-serif fonts
|
2019-08-15 17:40:13 +00:00
|
|
|
|
*
|
2020-08-07 05:45:24 +00:00
|
|
|
|
* `Roboto` – Default font
|
|
|
|
|
* system-ui - System UI font stack
|
|
|
|
|
* `-apple-system` - Firefox fallback for System UI font stack
|
2019-08-15 17:40:13 +00:00
|
|
|
|
*/
|
2020-08-07 05:45:24 +00:00
|
|
|
|
@fonts: 'Roboto', system-ui, -apple-system, sans-serif;
|
2020-02-06 19:44:28 +00:00
|
|
|
|
/**
|
|
|
|
|
* Citizen serif font stack
|
|
|
|
|
*
|
2020-02-06 19:48:13 +00:00
|
|
|
|
* `Georgia` – Windows, Mac
|
2020-02-06 19:44:28 +00:00
|
|
|
|
* `serif` – (Generic) web font fallback
|
|
|
|
|
*/
|
2020-02-06 19:48:13 +00:00
|
|
|
|
@fonts-serif: Georgia, serif;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
/**
|
|
|
|
|
* System font stack for monospace fonts
|
|
|
|
|
*
|
2020-08-07 05:45:24 +00:00
|
|
|
|
* `SFMono-Regular` - macOS 10.12+
|
2019-08-15 17:40:13 +00:00
|
|
|
|
* `Menlo` – macOS 10.6+
|
|
|
|
|
* `Roboto Mono` - Android 4.0+
|
|
|
|
|
* `Consolas` – Windows Vista & newer
|
|
|
|
|
* `Liberation Mono` – Fedora, Ubuntu, … OFL licensed
|
|
|
|
|
* `'Courier New', monospace` – (Generic) web font fallback
|
|
|
|
|
*/
|
2020-08-07 05:45:24 +00:00
|
|
|
|
@fonts-monospace: 'SFMono-Regular', 'Menlo', 'Roboto Mono', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Text hierarchy
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Scaling for content text
|
|
|
|
|
@content-scaling: 0.625;
|
|
|
|
|
@toc-scaling: 0.75;
|
|
|
|
|
|
|
|
|
|
// Wikimedia scale - https://design.wikimedia.org/style-guide/visual-style_typography.html
|
|
|
|
|
@content-h1-size: 3.2rem * @content-scaling;
|
|
|
|
|
@content-h2-size: 2.4rem * @content-scaling;
|
2019-12-26 10:21:50 +00:00
|
|
|
|
@content-h3-size: 2rem * @content-scaling;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@content-h4-size: 1.8rem * @content-scaling;
|
|
|
|
|
@content-h5-size: 1.6rem * @content-scaling;
|
|
|
|
|
@content-h6-size: 1.6rem * @content-scaling;
|
|
|
|
|
@content-body-size: 1.6rem * @content-scaling;
|
|
|
|
|
@content-lead-paragraph-size: 1.8rem * @content-scaling;
|
2019-12-26 10:21:50 +00:00
|
|
|
|
@content-quote-primary-size: 2rem * @content-scaling;
|
2019-08-15 17:40:13 +00:00
|
|
|
|
@content-quote-secondary-size: 1.4rem * @content-scaling;
|
|
|
|
|
@content-caption-size: 1.3rem * @content-scaling;
|
|
|
|
|
@content-small-text-size: 1.3rem * @content-scaling;
|
|
|
|
|
@content-monospace-size: 1.4rem * @content-scaling;
|
|
|
|
|
@content-line-height: 1.6;
|
|
|
|
|
@content-margin-top: 0.8rem;
|
|
|
|
|
|
|
|
|
|
@ui-menu-text: 14px;
|
|
|
|
|
@ui-menu-text-big: 15px;
|
|
|
|
|
@ui-menu-header: 16px;
|
|
|
|
|
|
|
|
|
|
@footer-line-height: 1.4;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Viewports
|
|
|
|
|
*/
|
|
|
|
|
|
2019-12-02 21:05:23 +00:00
|
|
|
|
@screen0: @page-width - @margin-side * 7; // 720px
|
|
|
|
|
@screen1: @page-width + @margin-side * 2; // 900px
|
|
|
|
|
@screen2: @footer-width; // 1290px
|
|
|
|
|
@screen3: @footer-width + @margin-side * 8; // 1450px
|
2019-12-26 10:21:50 +00:00
|
|
|
|
@screen4: @footer-width - (@negative-margin * 2); // 1720px
|