mediawiki-skins-Citizen/resources/variables.less

186 lines
5.3 KiB
Plaintext
Raw Normal View History

2019-08-15 17:40:13 +00:00
/*
* Citizen - Navigation Styles
* https://starcitizen.tools
*/
// Import MediaWiki-supplied mixins
@import "mediawiki.mixins";
/*
* 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;
/*
* Colors
*/
// Wikimedia colors
@base-0: #000;
@base-10: #222;
@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;
@color-link-visited: #6b4ba1;
@color-link-visited-active: #886eb3;
// Citizen colors
@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;
/*
* Transitions
*/
@transition-color-quick: color 0.2s ease;
@transition-transform: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
@transition-transform-quick: transform 0.2s cubic-bezier(0.77,0.2,0.05,1.0);
@transition-width: width 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
@transition-height: height 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
@transition-margin: margin 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
2019-08-16 06:35:44 +00:00
@transition-padding: padding 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
2019-08-15 17:40:13 +00:00
@transition-background-quick: background 0.2s ease;
@transition-background: background 0.55s ease;
@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;
2019-08-16 02:48:10 +00:00
@transition-filter: filter 0.55s ease;
2019-08-15 17:40:13 +00:00
/*
* Fonts
*/
2019-08-15 17:40:13 +00:00
/**
* System font stack for sans-serif fonts
*
* `Roboto` Default font, Android 4.0+ system font, OFL licensed
* `-apple-system` ('San Francisco' font) Support Safari 9+ macOS and iOS, Firefox macOS
* `BlinkMacSystemFont` ('San Francisco' font) Chrome 48+ macOS and iOS
* `Segoe UI` Windows Vista & newer
* `Oxygen` - Linux, KDE
* `Ubuntu` - Linux, Ubuntu
* `Cantarell` - Linux, GNOME
* `Helvetica, Arial, sans-serif` (Generic) Web fallback
* Note that standard `system-ui` value has resulted in unresolved side-effects in certain OS/language combinations as of now and is therefore not included.
*/
@fonts: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
/**
* Citizen font stack
*
* `Titillium Web` Futuristic, Closet to Univia Pro, OFL licensed
* `Univia Pro` - Fallback font if Univia Pro is present
* 'Monoid' - Code font, OFL licensed
* Fallback using primary fonts
*/
@fonts-secondary: 'Titillium Web', 'Univia Pro', @fonts;
/**
* System font stack for monospace fonts
*
* `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
*/
@fonts-monospace: 'Menlo', 'Roboto Mono', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
/*
* 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;
@content-h3-size: 2.0rem * @content-scaling;
@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;
@content-quote-primary-size: 2.0rem * @content-scaling;
@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
*/
@screen0: @page-width - @margin-side * 7; // 720px
@screen1: @page-width + @margin-side * 2; // 900px
2019-08-16 17:53:59 +00:00
@screen2: @footer-width; // 1290px
2019-08-20 05:23:28 +00:00
@screen3: @footer-width + @margin-side * 8; // 1450px
2019-08-19 04:33:07 +00:00
@screen4: @footer-width - (@negative-margin * 2); // 1720px