diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /vendor/oojs/oojs-ui/src/themes/mediawiki/common.less | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'vendor/oojs/oojs-ui/src/themes/mediawiki/common.less')
-rw-r--r-- | vendor/oojs/oojs-ui/src/themes/mediawiki/common.less | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/vendor/oojs/oojs-ui/src/themes/mediawiki/common.less b/vendor/oojs/oojs-ui/src/themes/mediawiki/common.less new file mode 100644 index 00000000..ab63c022 --- /dev/null +++ b/vendor/oojs/oojs-ui/src/themes/mediawiki/common.less @@ -0,0 +1,69 @@ +// Base variables and mixins +@import '../../styles/common'; + +// Theme variables + +@active: #999; +@background: #ffffff; + +@select: #d8e6fe; + +@progressive: #347bff; +@progressive-hover: #2962CC; +@progressive-selected: #1F4999; +@progressive-fade: rgba(52,123,255,0.1); + +@constructive: #00af89; +@constructive-hover: #008064; +@constructive-selected: #005946; +@constructive-fade: rgba(0,171,137,0.1); + +@destructive: #d11d13; +@destructive-hover: #8C130D; +@destructive-selected: #73100A; +@destructive-fade: rgba(209,29,19,0.1); + +@text: #555555; +@pressed-text: #444444; +@pressed-color: #d0d0d0; // Used for borders and backgrounds +@disabled-text: #cccccc; +@disabled-framed-text: #ffffff; +@disabled-background: #dddddd; + +@neutral-button-border: 1px solid #cdcdcd; + +@oo-ui-default-image-path: 'themes/mediawiki/images'; + +@input-border-color: #777; +@input-active-color: #ddd; +@input-disabled-color: #eee; +@input-hover-border-bottom-width: 3px; +@input-focus-border-width: 2px; +@input-size: 1.6em; +@border-radius: 2px; + +@icon-size: unit(24 / 16 / 0.8, em); +@indicator-size: unit(12 / 16 / 0.8, em); + +// Theme animation variables +@quick-ease: 0.1s ease-in-out; +@medium-ease-out-back: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); +@medium-ease-out-sine: 0.2s cubic-bezier(0.39, 0.575, 0.565, 1); + +// Theme mixins + +// Workaround for Safari 8 bug. Combining a selector like `input[type="checkbox"]:checked + span` +// with transition on background-size, background-color, and a single background-image using SVG +// causes the selector to sometimes not be applied. (T89309) +// +// * Syntax mimics the core mixin .oo-ui-background-image-svg(). +// * No-op in distributions other than 'vector'. +// * Using -webkit- prefix to limit this stupidity from impacting other browsers. Alas, some +// non-Safari ones also parse the -webkit- prefix (Chrome, Opera). +// * We take the payload size hit of the unnecessary /* @embed */ hint across the board. It should +// be mostly mitigated by using gzip compression. +// * Upstream bug report: https://bugs.webkit.org/show_bug.cgi?id=141789 +.oo-ui-background-image-safari( @url-without-extension ) when ( @oo-ui-distribution = vector ) { + @svg: '@{url-without-extension}.svg'; + background-image: -webkit-linear-gradient(transparent, transparent), e('/* @embed */') url(@svg); +} |