2015-05-13 23:42:35 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* Open MCT Web, Copyright (c) 2014-2015, United States Government
|
|
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
|
|
* Administration. All rights reserved.
|
|
|
|
*
|
|
|
|
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*
|
|
|
|
* Open MCT Web includes source code licensed under additional open source
|
|
|
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
|
|
* this source code distribution or the Licensing information page available
|
|
|
|
* at runtime from the About dialog for additional information.
|
|
|
|
*****************************************************************************/
|
2015-07-07 20:02:40 +00:00
|
|
|
|
2015-02-25 19:25:20 +00:00
|
|
|
@mixin absPosDefault($offset: 0px, $overflowHidden: hidden) {
|
|
|
|
overflow: $overflowHidden;
|
|
|
|
position: absolute;
|
2015-08-20 23:09:35 +00:00
|
|
|
top: $offset;
|
|
|
|
right: $offset;
|
|
|
|
bottom: $offset;
|
|
|
|
left: $offset;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2015-02-25 19:25:20 +00:00
|
|
|
}
|
|
|
|
|
2015-07-01 16:48:35 +00:00
|
|
|
@mixin ancillaryIcon($d, $c) {
|
2015-08-20 23:09:35 +00:00
|
|
|
// Used for small icons used in combination with larger icons,
|
|
|
|
// like the link and alert icons in tree items.
|
|
|
|
color: $c;
|
|
|
|
font-size: $d;
|
|
|
|
line-height: $d;
|
|
|
|
height: $d;
|
|
|
|
width: $d;
|
2015-07-01 16:48:35 +00:00
|
|
|
}
|
|
|
|
|
2015-10-24 03:06:38 +00:00
|
|
|
@mixin trans-prop-nice($props, $dur: 500ms, $delay: 0) {
|
|
|
|
// Multiple $props must be in parans like this: (left, right)
|
|
|
|
@if $dur == 0 {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include transition-property(none);
|
|
|
|
} @else {
|
|
|
|
@include transition-property($props);
|
2015-10-24 03:06:38 +00:00
|
|
|
@include transition-duration($dur);
|
2015-08-20 23:09:35 +00:00
|
|
|
@include transition-timing-function(ease-in-out);
|
2015-10-23 17:52:28 +00:00
|
|
|
@include transition-delay($delay);
|
2015-08-20 23:09:35 +00:00
|
|
|
}
|
2015-06-09 23:44:18 +00:00
|
|
|
}
|
|
|
|
|
2015-10-24 03:06:38 +00:00
|
|
|
@mixin trans-prop-nice-fade($dur: 500ms, $delay: 0) {
|
|
|
|
@if $dur == 0 {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include transition-property(none);
|
|
|
|
} @else {
|
2015-10-23 17:52:28 +00:00
|
|
|
@include transition-property(opacity, background-color, border-color, color);
|
2015-10-24 03:06:38 +00:00
|
|
|
@include transition-duration($dur);
|
2015-08-20 23:09:35 +00:00
|
|
|
@include transition-timing-function(ease-in-out);
|
2015-10-23 17:52:28 +00:00
|
|
|
@include transition-delay($delay);
|
2015-08-20 23:09:35 +00:00
|
|
|
}
|
2015-02-25 19:25:20 +00:00
|
|
|
}
|
|
|
|
|
2015-10-20 18:39:28 +00:00
|
|
|
@mixin trans-prop-nice-resize($t: 0.5s, $tf: ease-in-out) {
|
2015-10-20 21:41:02 +00:00
|
|
|
@include transition-property(height, width, top, right, bottom, left, opacity);
|
2015-10-20 18:39:28 +00:00
|
|
|
@include transition-duration($t);
|
|
|
|
@include transition-timing-function($tf);
|
|
|
|
}
|
|
|
|
|
2015-10-24 03:06:38 +00:00
|
|
|
@mixin trans-prop-nice-resize-h($dur: 500ms, $delay: 0) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include transition-property(height, bottom, top);
|
2015-10-24 03:06:38 +00:00
|
|
|
@include transition-duration($dur);
|
2015-08-20 23:09:35 +00:00
|
|
|
@include transition-timing-function(ease-in-out);
|
2015-10-23 17:52:28 +00:00
|
|
|
@include transition-delay($delay);
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
2015-10-24 03:06:38 +00:00
|
|
|
@mixin trans-prop-nice-resize-w($dur: 500ms, $delay: 0) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include transition-property(width, left, right);
|
2015-10-24 03:06:38 +00:00
|
|
|
@include transition-duration($dur);
|
2015-08-20 23:09:35 +00:00
|
|
|
@include transition-timing-function(ease-in-out);
|
2015-10-23 17:52:28 +00:00
|
|
|
@include transition-delay($delay);
|
2015-06-09 23:44:18 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 18:43:01 +00:00
|
|
|
@mixin triangle-right($size, $color) {
|
2015-08-20 23:09:35 +00:00
|
|
|
$size: $size/2;
|
|
|
|
$ratio: 1;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-top: $size/$ratio solid transparent;
|
|
|
|
border-left: $size solid $color;
|
|
|
|
border-bottom: $size/$ratio solid transparent;
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin triangle-down($size, $color) {
|
2015-08-20 23:09:35 +00:00
|
|
|
$size: $size/2;
|
|
|
|
$ratio: 1;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-left: $size/$ratio solid transparent;
|
|
|
|
border-top: $size solid $color;
|
|
|
|
border-right: $size/$ratio solid transparent;
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
2015-06-05 23:48:58 +00:00
|
|
|
@mixin triangle($dir: "left", $size: 5px, $ratio: 1, $color: red) {
|
2015-08-20 23:09:35 +00:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
$slopedB: $size/$ratio solid transparent;
|
|
|
|
$straightB: $size solid $color;
|
|
|
|
@if $dir == "up" {
|
|
|
|
border-left: $slopedB;
|
|
|
|
border-right: $slopedB;
|
|
|
|
border-bottom: $straightB;
|
|
|
|
} @else if $dir == "right" {
|
|
|
|
border-top: $slopedB;
|
|
|
|
border-bottom: $slopedB;
|
|
|
|
border-left: $straightB;
|
|
|
|
} @else if $dir == "down" {
|
|
|
|
border-left: $slopedB;
|
|
|
|
border-right: $slopedB;
|
|
|
|
border-top: $straightB;
|
|
|
|
} @else {
|
|
|
|
border-top: $slopedB;
|
|
|
|
border-bottom: $slopedB;
|
|
|
|
border-right: $straightB;
|
|
|
|
}
|
2015-06-05 23:48:58 +00:00
|
|
|
}
|
|
|
|
|
2015-02-25 19:25:20 +00:00
|
|
|
@mixin bgDiagonalStripes($c: yellow, $a: 0.1, $d: 40px) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include background-image(linear-gradient(-45deg,
|
|
|
|
rgba($c, $a) 25%, transparent 25%,
|
|
|
|
transparent 50%, rgba($c, $a) 50%,
|
|
|
|
rgba($c, $a) 75%, transparent 75%,
|
|
|
|
transparent 100%
|
|
|
|
));
|
|
|
|
background-repeat: repeat;
|
|
|
|
background-size: $d $d;
|
2015-02-25 19:25:20 +00:00
|
|
|
}
|
|
|
|
|
2015-10-30 23:20:57 +00:00
|
|
|
@mixin bgVertStripes($c: yellow, $a: 0.1, $d: 40px) {
|
|
|
|
@include background-image(linear-gradient(-90deg,
|
|
|
|
rgba($c, $a) 0%, rgba($c, $a) 50%,
|
|
|
|
transparent 50%, transparent 100%
|
|
|
|
));
|
|
|
|
background-repeat: repeat;
|
|
|
|
background-size: $d $d;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin bgVertFuzzyStripes($c: yellow, $a: 0.1, $d: 40px) {
|
|
|
|
@include background-image(linear-gradient(-90deg,
|
|
|
|
rgba($c, $a) 0%, transparent 50%,
|
|
|
|
transparent 50%, rgba($c, $a) 100%
|
|
|
|
));
|
|
|
|
background-repeat: repeat;
|
|
|
|
background-size: $d $d;
|
|
|
|
}
|
|
|
|
|
2015-02-25 23:53:02 +00:00
|
|
|
@mixin bgTicks($c: $colorBodyFg, $repeatDir: 'x') {
|
2015-08-20 23:09:35 +00:00
|
|
|
$deg: 90deg;
|
|
|
|
@if ($repeatDir != 'x') {
|
|
|
|
$deg: 0deg;
|
|
|
|
$repeatDir: repeat-y;
|
|
|
|
} @else {
|
|
|
|
$repeatDir: repeat-x;
|
|
|
|
}
|
2015-02-25 23:53:02 +00:00
|
|
|
|
2015-08-20 23:09:35 +00:00
|
|
|
@include background-image(linear-gradient($deg,
|
|
|
|
$c 1px, transparent 1px,
|
|
|
|
transparent 100%
|
|
|
|
));
|
|
|
|
background-repeat: $repeatDir;
|
2015-02-25 19:25:20 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 18:43:01 +00:00
|
|
|
@mixin sliderTrack($bg: $scrollbarTrackColorBg) {
|
2015-09-09 22:55:12 +00:00
|
|
|
//$b: 1px solid lighten($bg, 30%);
|
2014-12-31 18:43:01 +00:00
|
|
|
@include border-radius(2px);
|
|
|
|
@include box-sizing(border-box);
|
|
|
|
@include boxIncised(0.7);
|
|
|
|
background-color: $bg;
|
2015-09-09 22:55:12 +00:00
|
|
|
//border-bottom: $b;
|
|
|
|
//border-right: $b;
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin controlGrippy($b, $direction: horizontal, $w: 1px, $style: dotted) {
|
2015-10-23 01:28:25 +00:00
|
|
|
//&:before {
|
2015-10-24 03:06:38 +00:00
|
|
|
//@include trans-prop-nice("border-color", 25ms);
|
2015-10-23 01:28:25 +00:00
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
//height: auto;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
@if $direction == "horizontal" {
|
|
|
|
border-top: $w $style darken($b, 15%);
|
|
|
|
top: 2px;
|
|
|
|
left: 5px;
|
|
|
|
right: 5px;
|
|
|
|
height: 1px;
|
|
|
|
|
|
|
|
} @else if $direction == "vertical" {
|
|
|
|
border-left: $w $style darken($b, 15%);
|
|
|
|
left: 2px;
|
|
|
|
bottom: 5px;
|
|
|
|
top: 5px;
|
|
|
|
width: 1px;
|
2015-08-20 23:09:35 +00:00
|
|
|
}
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
2015-09-09 22:55:12 +00:00
|
|
|
@mixin boxIncised($sVal: 0.6, $inset: 5px) {
|
|
|
|
@include box-shadow(inset rgba(black, $sVal) 0 1px $inset);
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin boxOutline($c: lighten($colorBodyBg, 20%)) {
|
|
|
|
border: 1px solid $c;
|
|
|
|
}
|
|
|
|
|
2015-09-04 23:39:16 +00:00
|
|
|
@mixin boxShdw($sVal: rgba(black, 0.4) 0 0 3px) {
|
|
|
|
@if $sVal != 'none' {
|
|
|
|
@include box-shadow($sVal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-12 17:00:51 +00:00
|
|
|
@mixin boxShdwSubtle($sVal: 0.2) {
|
2015-09-04 23:39:16 +00:00
|
|
|
@if $sVal != 'none' {
|
|
|
|
@include box-shadow(rgba(black, $sVal) 0 1px 2px);
|
|
|
|
}
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin boxShdwLarge($sVal: 0.7) {
|
2015-09-04 23:39:16 +00:00
|
|
|
@if $sVal != 'none' {
|
|
|
|
@include box-shadow(rgba(black, $sVal) 0 3px 10px);
|
|
|
|
}
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin outerGlow($color: #fff, $sVal: 0.3) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include box-shadow(rgba($color, $sVal) 0 0 30px);
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
2015-06-02 23:12:19 +00:00
|
|
|
@mixin linearGlow($deg: 0, $c: red, $a: 0.4) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include background-image(linear-gradient($deg, rgba($c, 0), rgba($c, $a) 100%));
|
2015-06-02 23:12:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin subtleGrad($deg: 0, $c: red, $a0: 0.2, $a1: 0.3) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include background-image(linear-gradient($deg, rgba($c, $a0), rgba($c, $a1) 100%));
|
2015-06-02 23:12:19 +00:00
|
|
|
}
|
|
|
|
|
2015-09-05 01:06:18 +00:00
|
|
|
@mixin txtShdw($sVal) {
|
2015-09-10 22:01:51 +00:00
|
|
|
//@if $sVal != 'none' {
|
2015-09-05 01:06:18 +00:00
|
|
|
@include text-shadow($sVal);
|
2015-09-10 22:01:51 +00:00
|
|
|
//}
|
2015-09-05 01:06:18 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 18:43:01 +00:00
|
|
|
@mixin txtShdwSubtle($sVal: 0.1) {
|
2015-09-04 23:39:16 +00:00
|
|
|
@if $sVal != 'none' {
|
|
|
|
@include text-shadow(rgba(black, $sVal) 0 1px 2px);
|
|
|
|
}
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
2015-08-20 23:09:35 +00:00
|
|
|
|
2015-01-26 18:18:23 +00:00
|
|
|
@mixin txtShdwLarge($sVal: 0.7) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include text-shadow(rgba(black, $sVal) 0 3px 7px);
|
2015-01-26 18:18:23 +00:00
|
|
|
}
|
2014-12-31 18:43:01 +00:00
|
|
|
|
2015-09-04 23:39:16 +00:00
|
|
|
@function pullForward($c, $p: 20%) {
|
2015-09-03 22:34:39 +00:00
|
|
|
// For dark interfaces, lighter things come forward
|
|
|
|
@return lighten($c, $p);
|
|
|
|
}
|
|
|
|
|
2015-09-04 23:39:16 +00:00
|
|
|
@function pushBack($c, $p: 20%) {
|
2015-09-03 22:34:39 +00:00
|
|
|
// For dark interfaces, darker things move back
|
|
|
|
@return darken($c, $p);
|
|
|
|
}
|
|
|
|
|
2015-09-04 23:39:16 +00:00
|
|
|
@function percentToDecimal($p) {
|
|
|
|
@return $p / 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@function decimalToPercent($d) {
|
|
|
|
@return percentage($d);
|
|
|
|
}
|
|
|
|
|
2015-10-29 17:09:47 +00:00
|
|
|
@function splitterHandleInset($splitterD: 21px, $splitterHandleD: 1px) {
|
|
|
|
// Space to either side of the handle
|
|
|
|
@return ($splitterD - $splitterHandleD) * 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-09-10 00:25:10 +00:00
|
|
|
/*********************************************** CONTROLS, FORM ELEMENTS */
|
|
|
|
|
|
|
|
@mixin containerBase($bg: $colorBodyBg, $fg: $colorBodyFg) {
|
|
|
|
background-color: $bg;
|
|
|
|
@include border-radius($controlCr);
|
|
|
|
@include box-sizing(border-box);
|
|
|
|
color: $fg;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btnBase($bg: $colorBodyBg, $bgHov: none, $fg: $colorBodyFg, $ic: $colorBtnIcon) {
|
|
|
|
@include user-select(none);
|
2015-09-10 22:58:00 +00:00
|
|
|
@include transition(background, .25s);
|
2015-09-10 00:25:10 +00:00
|
|
|
.icon {
|
|
|
|
color: $ic;
|
|
|
|
}
|
|
|
|
@include desktop {
|
|
|
|
@if $bgHov != none {
|
|
|
|
&:not(.disabled):hover {
|
2015-12-17 20:24:57 +00:00
|
|
|
@include background-image($bgHov);
|
2015-09-10 00:25:10 +00:00
|
|
|
>.icon {
|
|
|
|
color: lighten($ic, $ltGamma);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-09 22:55:12 +00:00
|
|
|
|
2015-11-17 01:20:15 +00:00
|
|
|
@mixin input-base($bg: $colorInputBg, $fg: $colorInputFg, $shdw: rgba(black, 0.6) 0 1px 3px) {
|
2015-09-09 22:55:12 +00:00
|
|
|
@include appearance(none);
|
|
|
|
@include border-radius($controlCr);
|
|
|
|
@include box-sizing(border-box);
|
2015-11-17 01:20:15 +00:00
|
|
|
@include box-shadow(inset $shdw);
|
2015-09-09 22:55:12 +00:00
|
|
|
background: $bg;
|
|
|
|
border: none;
|
|
|
|
color: $fg;
|
|
|
|
outline: none;
|
|
|
|
&.error {
|
|
|
|
background: rgba(red, 0.5);
|
|
|
|
}
|
2015-08-17 22:11:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-17 01:20:15 +00:00
|
|
|
@mixin nice-input($bg: $colorInputBg, $fg: $colorInputFg) {
|
2015-09-09 22:55:12 +00:00
|
|
|
@include input-base($bg, $fg);
|
|
|
|
padding: 0 $interiorMarginSm;
|
|
|
|
}
|
|
|
|
|
2015-09-16 23:59:27 +00:00
|
|
|
@mixin contextArrow() {
|
|
|
|
@include text-shadow(none);
|
|
|
|
content: '\76';
|
|
|
|
display: inline-block;
|
|
|
|
font-family: 'symbolsfont';
|
|
|
|
margin-left: $interiorMarginSm;
|
|
|
|
vertical-align: top;
|
2015-08-17 22:11:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin nice-textarea($bg: $colorBodyBg, $fg: $colorBodyFg) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include input-base($bg, $fg);
|
|
|
|
padding: $interiorMargin;
|
2015-08-17 22:11:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin subdued-input($bg: $colorBodyBg, $fg: $colorBodyFg) {
|
2015-08-20 23:09:35 +00:00
|
|
|
@include nice-input($bg, $fg);
|
|
|
|
background: lighten($bg, 3%);
|
|
|
|
border-bottom: 1px solid lighten($bg, 10%);
|
2015-08-17 22:11:27 +00:00
|
|
|
}
|
2014-12-31 18:43:01 +00:00
|
|
|
|
|
|
|
@mixin menuUlReset() {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
li {
|
|
|
|
list-style-type: none;
|
2015-08-20 23:09:35 +00:00
|
|
|
margin: 0;
|
2014-12-31 18:43:01 +00:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-28 00:05:50 +00:00
|
|
|
@mixin webkitProp($name, $val) {
|
|
|
|
#{$name}: #{$val};
|
|
|
|
-webkit-#{$name}: #{$val};
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin webkitVal($name, $val) {
|
|
|
|
#{$name}: #{$val};
|
|
|
|
#{$name}: -webkit-#{$val};
|
|
|
|
}
|
|
|
|
|
2015-08-20 23:09:35 +00:00
|
|
|
@mixin verticalCenter {
|
|
|
|
/* This doesn't work on an element inside an element with absolute positioning that has height: auto */
|
|
|
|
//position: relative;
|
|
|
|
top: 50%;
|
2015-10-29 04:34:01 +00:00
|
|
|
@include transform(translateY(-50%));
|
2015-08-20 23:09:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin verticalCenterBlock($holderH, $itemH) {
|
2015-08-21 01:36:44 +00:00
|
|
|
top: floor(($holderH - $itemH) / 2);
|
2015-08-20 23:09:35 +00:00
|
|
|
bottom: auto;
|
|
|
|
height: $itemH;
|
2014-12-31 18:43:01 +00:00
|
|
|
}
|
|
|
|
|
2015-02-25 19:25:20 +00:00
|
|
|
@mixin ellipsize() {
|
2015-08-20 23:09:35 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2015-02-25 19:25:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin scrollH($showBar: auto) {
|
|
|
|
overflow-x: $showBar;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin scrollV($showBar: auto) {
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: $showBar;
|
|
|
|
}
|
|
|
|
|
2014-12-31 18:43:01 +00:00
|
|
|
@mixin test($c: #ffcc00, $a: 0.2) {
|
2015-09-24 21:20:25 +00:00
|
|
|
background-color: rgba($c, $a) !important;
|
2015-02-25 19:25:20 +00:00
|
|
|
}
|
|
|
|
|
2015-08-21 22:09:23 +00:00
|
|
|
@mixin tmpBorder($c: #ffcc00, $a: 0.75) {
|
2015-09-22 17:57:30 +00:00
|
|
|
@include box-sizing(border-box);
|
2015-08-21 22:09:23 +00:00
|
|
|
border: 1px dotted rgba($c, $a);
|
|
|
|
}
|
|
|
|
|
2015-02-25 19:25:20 +00:00
|
|
|
@mixin testObj($w: 2000px, $h: 1000px, $c: black, $a: 0.1) {
|
|
|
|
&:after {
|
|
|
|
@include box-sizing(border-box);
|
|
|
|
@include bgDiagonalStripes($c, $a);
|
|
|
|
color: rgba(white, 0.3);
|
|
|
|
font-style: italic;
|
|
|
|
content: "Test Object";
|
|
|
|
display: block;
|
|
|
|
padding: 20px;
|
|
|
|
position: relative;
|
|
|
|
width: $w;
|
|
|
|
height: $h;
|
|
|
|
transform: scaleX(1) scaleY(1) scaleZ(1);
|
|
|
|
transform-origin: 50% 50% 0;
|
|
|
|
}
|
2015-06-02 23:12:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin s-stale($a: 0.5) {
|
2015-08-20 23:09:35 +00:00
|
|
|
color: rgba($colorTelemFresh, $a) !important;
|
|
|
|
font-style: italic;
|
2015-09-22 17:57:30 +00:00
|
|
|
}
|