Squashes #1103, fixes #1047. Squashed commit of the following: commit0e060f174dAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Fri Jul 29 14:55:34 2016 -0700 [Frontend] Added button to .s-button Fixes #1047 commit9f74395a79Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Fri Jul 29 14:43:36 2016 -0700 [Frontend] Fixing problems from circleci Fixes #1047 commit7278c9534cAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Fri Jul 29 14:37:21 2016 -0700 [Frontend] CSS fixes for s-status classes Fixes #1047 Fixed .s-status-editing and s-status-pending; commit4606d617d1Merge:d5bff5559436f7Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Fri Jul 29 13:58:51 2016 -0700 Merge remote-tracking branch 'origin/master' into frontend-1047 commitd5bff555e0Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 19:09:33 2016 -0700 [Frontend] Updated glyphs used by plot view switcher Fixes #1047 commitb72d82baefAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 19:09:00 2016 -0700 [Frontend] Tree styles in left pane and selector-list Fixes #1047 commitaf36b9996dAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 18:32:34 2016 -0700 [Frontend] Form validation styling Fixes #1047 <mct-form> must now include class 'validates' to display validation glyph icons; removed 'no-validate' from markup; cleaned up validation scss; commit69dc893b4bAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 17:11:52 2016 -0700 [Frontend] Glyphs to classes, mobile Fixes #1047 Fixes and enhancements for mobile, particularly in tree; Removed `display: inline-block` from containerSubtle mixin; commit7bca18b186Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 11:36:19 2016 -0700 [Frontend] Rename .s-menu-btn, remove unused Fixes #1047 .s-menu-btn > .s-menu-button; .create-btn > .create-button; removed unused l-btn, t-btn, t-btns-zoom from markup commit5d229198b7Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 11:25:36 2016 -0700 [Frontend] Rename .s-clickable-icon to .s-icon-button Fixes #1047 commit36479e2e8bAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 11:20:30 2016 -0700 [Frontend] Rename .s-btn to .s-button Fixes #1047 commit89e4f06de9Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 11:12:07 2016 -0700 [Frontend] Apply clickable-icon class Fixes #1047 commite65ca1cb8bAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Thu Jul 28 10:52:35 2016 -0700 [Frontend] Updated icons Fixes #1047 - Clock, timer, plots updated commit3e7eb98ac2Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Wed Jul 27 18:05:06 2016 -0700 [Frontend] Standardizing styles Fixes #1047 - Finessing mini-tab and making able to control per theme; s-clickable and s-toggle-icon classes cleaned up commit18e08074a8Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Wed Jul 27 16:33:25 2016 -0700 [Frontend] Tweaks to sass code Fixes #1047 - Splitter and mini-tab-icon elements commit44fda8d68fAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Wed Jul 27 09:24:53 2016 -0700 [Frontend] Multiple UI fixes and tweaks Fixes #1047 mini-tabs, splitters and bg-splash updated; moved position of Inspector collapse mini-tab to allow position transition; splitter-sm class added for Timelines; commit2aee8bc0d8Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jul 26 15:53:32 2016 -0700 [Frontend] Updated splash image Fixes #1047 commit624f09777fMerge:ce7591f4d2f159Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jul 26 15:02:55 2016 -0700 Merge remote-tracking branch 'origin/master' into frontend-1047 commitce7591f642Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jul 26 11:22:23 2016 -0700 [Frontend] Fixed clock indicator Fixes #1047 Restored no-collapse and float-right properties; commit5324c8edbaAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 18:14:38 2016 -0700 [Frontend] New font and project file Fixes #1047 New font files that were missed in last commit; updated icomoon proj file; fixed missing char codes in glyphs.scss; commita3b2628883Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 17:54:00 2016 -0700 [Frontend] Revised and new icon art Fixes #1047 New icons for overlay and stacked plots; revised art and new description for Fixed Position object; commit8a41c6dbc7Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 17:52:41 2016 -0700 [Frontend] Removing glyph definitions Fixes #1047 Updated comment commiteb293b21ebAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 11:56:18 2016 -0700 [Frontend] Removing glyph definitions Fixes #1047 Removed commented code commitd8b1fb7781Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 11:17:45 2016 -0700 [Frontend] Removing glyph definitions; updating tests Fixes #1047 Search and removal of "glyph" definitions in bundle and other JS files; updating tests accordingly; commit650fbcc921Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 25 10:20:33 2016 -0700 [Frontend] Removing glyph definitions; updating tests Fixes #1047 Search and removal of "glyph" definitions in bundle and other JS files; updating tests accordingly; commit574b8bd5c1Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Fri Jul 22 19:11:56 2016 -0700 [Frontend] Updated tests for glyph refactoring Fixes #1047 Fixing test cases commitdd84177441Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Fri Jul 22 18:47:45 2016 -0700 [Frontend] Updated tests and examples for glyph refactoring Fixes #1047 WIP: Fixing test cases: fixed test in Timers that was expecting glyph return; commit2231f8e124Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 17:45:20 2016 -0700 [Frontend] Updated tests for glyph refactoring Fixes #1047 Fixing test cases: fixed test in Timers that was expecting glyph return; commitae59ecfa97Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 17:38:45 2016 -0700 [Frontend] Fixed style Fixes #1047 WIP: fixed line-height issue for t-item-icon class commitd43bff1445Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 17:07:49 2016 -0700 [Frontend] Fixed colors Fixes #1047 WIP: fixed colors and style defs related to clickable icons commitc2db6f8805Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 16:32:17 2016 -0700 [Frontend] Fixed colors Fixes #1047 WIP: fixed colors related to changes to btnSubtle mixin; new constants for clickable icons commita4753c44d1Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 15:23:58 2016 -0700 [Frontend] Added new icon-brackets to symbols font Fixes #1047 WIP commit2704640b94Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 15:11:28 2016 -0700 [Frontend] Normalize color constants Fixes #1047 Normalize color constant values for themes; consolidated and cleaned up btn-related mixins; fixed hover color issues commit421286c7e4Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 14:10:13 2016 -0700 [Frontend] Convert new Fixed Position Display from glyphs Fixes #1047 WIP commita4111f3855Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 14:07:38 2016 -0700 [Frontend] Refactoring Timeline glyphs, s-btn fixes Fixes #1047 WIP: Timeline-related glyph refactoring; s-btn styles and hover color fixes commit883f999215Merge:9d9cabb14f1a1fAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jul 21 08:53:23 2016 -0700 Merge remote-tracking branch 'origin/master' into frontend-1047 commit9d9cabb760Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jul 19 16:20:20 2016 -0700 [Frontend] Glyph refactoring Fixes #1047 WIP: search, toolbar buttons; mods to flex archetypes commit28b663ce41Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 18 14:58:40 2016 -0700 [Frontend] Glyph-related style changes to toolbars and buttons Fixes #1047 Glyph refactoring WIP for toolbar buttons; Timeline glyph refactoring continued commita9326f572fAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 18 13:36:45 2016 -0700 [Frontend] Glyph-related style changes to Timelines Fixes #1047 Timeline glyph refactoring; Resource Graph icons in swimlanes now display grayed-out version when not added to the Resource Graph; minor color tweaks commitd6e1737803Merge:88054e56176ca2Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Mon Jul 18 10:29:32 2016 -0700 [Frontend] Merge master into frontend-1047 Fixes #1047 Resolved conflict in icomoon.json file commit88054e5e8eAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 30 16:55:40 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: significant mods to pane collapse/expand buttons and symbols, minor tweaks to splitter look, limits glyph definitions commit7c47343f5cAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 30 16:52:21 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: updated font files glyphs, mostly for pane collapse icons commitfd00bdce54Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 30 12:20:55 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: search menu commit272b4b649eAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 30 12:11:25 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: moved limits classes out of _contants and into _glyphs; timers, entanglement context menu items, form validation, date picker. commit95d26e6fe7Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Wed Jun 29 14:18:12 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; limits commit26b30d96dbAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 28 17:16:18 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; overlay close, search inputs, messages and message banners, ui-symbol removal in-progress. commit4e2a01ad85Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 28 16:21:05 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; .labeled added to .s-btn, removed .s-icon-btn commit521db3c3feAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 28 16:10:54 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; plot options, imagery buttons, cleanups in buttons.scss, edit-action buttons, .s-btn .no-label class added. commit8bb8db69e6Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 28 14:47:52 2016 -0700 [Frontend] Refactoring glyphs to classes Fixes #1047 In-progress; indicators, notifications, actions, tests commit53ed0bfb22Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 17:01:45 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress, really: view icons, timer/clock commit47dc7f2f6bAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 16:13:31 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In progress: grid items commit2bd34f71beAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 15:00:46 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Context menus and associated actions, custom checkboxes, tree item being edited commitb561d4f60eAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 14:27:56 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progess: glyphs.scss now uses $vars to allow other scss to use a var instead of string literals; commit0cf4089620Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 14:13:59 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progess: tree-labels, unknown objects, object header commit46cae10905Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 11:41:06 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progess, menus and Create menu fixes commitfe3097707fMerge:7d69ae4652a50cAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Mon Jun 27 11:20:55 2016 -0700 Merge remote-tracking branch 'origin/master' into frontend-1047 commit7d69ae401bAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 23 15:59:56 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progress, converting types, mods to Create Menu template commit18d9f3d6b2Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 23 15:14:22 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Very much In-progess: convert some controls; commite93a90a782Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 23 11:28:07 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Very much In-progess, classes for all symbols added to glyphs.scss; .menu cleaned up; commitdc670b22a6Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Thu Jun 23 08:55:27 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Very much In-progess, "icon-" selector, browse bar buttons commit8b29ccf3afAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Wed Jun 22 23:15:24 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 Very much In-progess, s-btn and s-btn-menu refactoring commitf574ffed16Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Wed Jun 22 14:37:34 2016 -0700 [Frontend] Refactoring glyphs to classes fixes #1047 In-progess, e900 > e904 commitbc62ee4565Author: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Wed Jun 22 13:28:15 2016 -0700 [Frontend] Complete revamp of unicodes fixes #1047 New font files; no re-mapping yet in the app. commit614f0c6e9fAuthor: Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> Date: Wed Jun 22 13:23:18 2016 -0700 [Frontend] Complete revamp of unicodes fixes #1047 Moved all glyphs into PUA area of font, and re-organized by category. commit47bd4031d5Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 21 18:39:48 2016 -0700 [Frontend] Renaming symbols font files Fixes #1047 - Modified sass to point to renamed font files; - Added new 12px symbols font files to sass; commit22a51d6bbbAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 21 18:22:33 2016 -0700 [Frontend] Updating Icomoon project files Fixes #1047 - Renamed main project file; - Added new 12px symbols project file; commit13ded2fd84Author: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 21 18:19:27 2016 -0700 [Frontend] Added new 12px symbols font files Fixes #1047 commitaef5660dfdAuthor: Charles Hacskaylo <charlesh88@gmail.com> Date: Tue Jun 21 18:16:56 2016 -0700 [Frontend] Renaming symbols font files Fixes #1047
596 lines
15 KiB
SCSS
596 lines
15 KiB
SCSS
/*****************************************************************************
|
|
* Open MCT, Copyright (c) 2014-2016, United States Government
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
* Administration. All rights reserved.
|
|
*
|
|
* Open MCT 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 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.
|
|
*****************************************************************************/
|
|
|
|
.accordion {
|
|
$accordionHeadH: 18px;
|
|
margin-top: $interiorMargin;
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
.accordion-head {
|
|
$op: 0.2;
|
|
border-radius: $basicCr * 0.75;
|
|
box-sizing: border-box;
|
|
background: rgba($colorBodyFg, $op);
|
|
cursor: pointer;
|
|
font-size: 0.75em;
|
|
line-height: $accordionHeadH;
|
|
margin-bottom: $interiorMargin;
|
|
padding: 0 $interiorMargin;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: auto;
|
|
left: 0;
|
|
width: auto;
|
|
height: $accordionHeadH;
|
|
text-transform: uppercase;
|
|
&:hover {
|
|
background: rgba($colorBodyFg, $op * 2);
|
|
}
|
|
&:after {
|
|
content: "^";
|
|
display: block;
|
|
font-family: 'symbolsfont';
|
|
font-size: 0.9em;
|
|
position: absolute;
|
|
right: $interiorMargin;
|
|
text-transform: none;
|
|
top: 0;
|
|
}
|
|
&:not(.expanded):after {
|
|
content: "v";
|
|
}
|
|
}
|
|
.accordion-contents {
|
|
position: absolute;
|
|
top: $accordionHeadH + $interiorMargin;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
}
|
|
|
|
.s-icon-button {
|
|
// Clickable icon elements that have hover
|
|
@extend .ui-symbol;
|
|
color: $colorClickIcon;
|
|
&:hover {
|
|
color: $colorClickIconHov;
|
|
}
|
|
}
|
|
|
|
.s-toggle-icon {
|
|
// Has default (in-active) and .active states
|
|
@extend .s-icon-button;
|
|
color: $colorToggleIcon;
|
|
&:hover { color: rgba($colorToggleIconHov, 0.5); }
|
|
&.active { color: $colorToggleIconActive; }
|
|
}
|
|
|
|
.l-composite-control {
|
|
vertical-align: middle;
|
|
&:not(.l-inline) {
|
|
margin-bottom: $interiorMargin;
|
|
}
|
|
&.l-inline {
|
|
display: inline-block;
|
|
}
|
|
&.l-checkbox {
|
|
.composite-control-label {
|
|
line-height: 18px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.l-control-group {
|
|
// Buttons that have a conceptual grouping - internal space between, and a divider between groups.
|
|
box-sizing: border-box;
|
|
border-left: 1px solid $colorInteriorBorder;
|
|
display: inline-block;
|
|
padding: 0 $interiorMargin;
|
|
position: relative;
|
|
&:first-child {
|
|
border-left: none;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
.l-local-controls {
|
|
// Control shown when hovering over an object, like plots and imagery
|
|
// Default position is upper right
|
|
$p: $interiorMargin;
|
|
position: absolute;
|
|
top: $p;
|
|
right: $p;
|
|
z-index: 5;
|
|
}
|
|
|
|
.s-local-controls {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
/******************************************************** CUSTOM CHECKBOXES */
|
|
label.checkbox.custom,
|
|
label.radio.custom {
|
|
$bg: pullForward($colorBodyBg, 10%);
|
|
$d: $formRowCtrlsH;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
line-height: 120%;
|
|
margin-right: $interiorMargin * 4;
|
|
padding-left: $d + $interiorMargin;
|
|
position: relative;
|
|
em {
|
|
color: $colorBodyFg;
|
|
display: inline-block;
|
|
height: $d;
|
|
width: $d;
|
|
&:before {
|
|
border-radius: $basicCr * .75;
|
|
background: $bg;
|
|
box-shadow: inset rgba(black, 0.4) 0 1px 2px;
|
|
box-sizing: border-box;
|
|
content: "";
|
|
font-family: 'symbolsfont';
|
|
font-size: 0.7em;
|
|
display: inline-block;
|
|
height: $d;
|
|
width: $d;
|
|
left: 0;
|
|
top: 0;
|
|
position: absolute;
|
|
text-align: center;
|
|
}
|
|
}
|
|
&.no-text {
|
|
overflow: hidden;
|
|
margin-right: 0;
|
|
padding-left: 0;
|
|
height: $d;
|
|
width: $d;
|
|
em {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
input {
|
|
display: none;
|
|
&:checked ~ em:before {
|
|
background: $colorCheck;
|
|
color: lighten($colorCheck, 50%);
|
|
}
|
|
}
|
|
}
|
|
|
|
label.checkbox.custom input:checked ~ em:before { content: $glyph-icon-check; }
|
|
label.radio.custom input:checked ~ em:before { content: $glyph-icon-bullet; }
|
|
|
|
.s-menu-button label.checkbox.custom {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.item .checkbox {
|
|
&.checked label {
|
|
box-shadow: none;
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
label.form-control.checkbox {
|
|
input {
|
|
margin-right: $interiorMargin;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
|
|
/******************************************************** INPUTS */
|
|
input[type="text"],
|
|
input[type="search"] {
|
|
@include nice-input();
|
|
&.numeric {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
.l-input-lg input[type="text"] { width: 100% !important; }
|
|
.l-input-med input[type="text"] { width: 200px !important; }
|
|
.l-input-sm input[type="text"] { width: 50px !important; }
|
|
.l-numeric input[type="text"] { text-align: right; }
|
|
|
|
.input-labeled {
|
|
// Used in toolbar
|
|
margin-left: $interiorMargin;
|
|
label {
|
|
display: inline-block;
|
|
margin-right: $interiorMarginSm;
|
|
}
|
|
&.inline {
|
|
display: inline-block;
|
|
}
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
/******************************************************** SELECTS */
|
|
.select {
|
|
@include btnSubtle($bg: $colorSelectBg);
|
|
@extend .icon-arrow-down; // Context arrow
|
|
@if $shdwBtns != none {
|
|
margin: 0 0 2px 0; // Needed to avoid dropshadow from being clipped by parent containers
|
|
}
|
|
display: inline-block;
|
|
padding: 0 $interiorMargin;
|
|
overflow: hidden;
|
|
position: relative;
|
|
line-height: $formInputH;
|
|
select {
|
|
@include appearance(none);
|
|
box-sizing: border-box;
|
|
background: none;
|
|
color: $colorSelectFg;
|
|
cursor: pointer;
|
|
border: none !important;
|
|
padding: 4px 25px 2px 0px;
|
|
width: 130%;
|
|
option {
|
|
margin: $interiorMargin 0; // Firefox
|
|
}
|
|
}
|
|
&:before {
|
|
//@include contextArrow();
|
|
pointer-events: none;
|
|
color: rgba($colorSelectFg, percentToDecimal($contrastInvokeMenuPercent));
|
|
display: block;
|
|
position: absolute;
|
|
right: $interiorMargin; top: 0;
|
|
}
|
|
}
|
|
|
|
/******************************************************** OBJECT-HEADER */
|
|
.object-header {
|
|
font-size: 1em;
|
|
|
|
> .type-icon {
|
|
color: $colorObjHdrIc;
|
|
font-size: 120%;
|
|
float: left;
|
|
margin-right: $interiorMargin;
|
|
}
|
|
|
|
.l-elem-wrapper {
|
|
mct-representation {
|
|
// Holds the context-available item
|
|
// Must have min-width to make flex work properly
|
|
// in Safari
|
|
min-width: 0.7em;
|
|
}
|
|
}
|
|
|
|
.action {
|
|
margin-right: $interiorMargin;
|
|
}
|
|
|
|
.title-label {
|
|
color: $colorObjHdrTxt;
|
|
@include ellipsize();
|
|
@include webkitProp(flex, '0 1 auto');
|
|
padding-right: 0.35em; // For context arrow. Done with em's so pad is relative to the scale of the text.
|
|
}
|
|
|
|
.context-available-w {
|
|
z-index: 5;
|
|
}
|
|
|
|
.context-available {
|
|
font-size: 0.7em;
|
|
@include flex(0 0 1);
|
|
}
|
|
}
|
|
|
|
/******************************************************** PROGRESS BAR */
|
|
@include keyframes(progress) {
|
|
100% { background-position: $progressBarStripeW center; }
|
|
}
|
|
|
|
@mixin bgProgressAnim($c: yellow, $a: 0.1, $d: 20px) {
|
|
@include background-image(linear-gradient(-90deg,
|
|
rgba($c, $a) 0%, transparent 50%,
|
|
transparent 50%, rgba($c, $a) 100%
|
|
));
|
|
background-position: 0 center;
|
|
background-repeat: repeat-x;
|
|
background-size: $d 40%;
|
|
}
|
|
|
|
.l-progress-bar {
|
|
// Assume will be determinate by default
|
|
display: inline-block;
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
.progress-amt-holder {
|
|
@include absPosDefault(1px);
|
|
}
|
|
.progress-amt,
|
|
.progress-amt:before,
|
|
.progress-amt:after {
|
|
@include absPosDefault();
|
|
display: block;
|
|
content: '';
|
|
}
|
|
|
|
.progress-amt {
|
|
right: auto; // Allow inline width to control }
|
|
}
|
|
|
|
&.indeterminate {
|
|
.progress-amt {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.s-progress-bar {
|
|
border-radius: $basicCr;
|
|
@include boxIncised(0.3, 4px);
|
|
background: $colorProgressBarOuter;
|
|
.progress-amt {
|
|
border-radius: $basicCr;
|
|
@include boxShdw();
|
|
border-radius: $basicCr - 1;
|
|
@include trans-prop-nice(width);
|
|
&:before {
|
|
background-color: $colorProgressBarAmt;
|
|
}
|
|
&:after {
|
|
// Sheen
|
|
@include background-image(linear-gradient(
|
|
transparent 5%, rgba(#fff,0.25) 30%, transparent 100%
|
|
));
|
|
}
|
|
}
|
|
|
|
&:not(.indeterminate) {
|
|
.progress-amt:before {
|
|
// More subtle anim for determinate progress
|
|
@include animation(progress .4s linear infinite);
|
|
@include bgProgressAnim(#fff, 0.1, $progressBarStripeW);
|
|
}
|
|
}
|
|
|
|
&.indeterminate .progress-amt {
|
|
&:before {
|
|
// More visible std diag stripe anim for indeterminate progress
|
|
@include animation(progress .6s linear infinite);
|
|
@include bgDiagonalStripes(#fff, 0.2, $progressBarStripeW);
|
|
}
|
|
&:after { display: none; }
|
|
}
|
|
}
|
|
|
|
/******************************************************** SLIDERS */
|
|
.slider {
|
|
$knobH: 100%;
|
|
.slot {
|
|
width: auto;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
.knob {
|
|
@include trans-prop-nice-fade(.25s);
|
|
background-color: $sliderColorKnob;
|
|
&:hover {
|
|
background-color: $sliderColorKnobHov;
|
|
}
|
|
position: absolute;
|
|
height: $knobH;
|
|
width: $sliderKnobW;
|
|
top: 0;
|
|
auto: 0;
|
|
bottom: auto;
|
|
left: auto;
|
|
}
|
|
.knob-l {
|
|
@include border-left-radius($sliderKnobR);
|
|
cursor: w-resize;
|
|
}
|
|
.knob-r {
|
|
@include border-right-radius($sliderKnobR);
|
|
cursor: e-resize;
|
|
}
|
|
.range {
|
|
@include trans-prop-nice-fade(.25s);
|
|
background-color: $sliderColorRange;
|
|
cursor: ew-resize;
|
|
position: absolute;
|
|
top: 0;
|
|
right: auto;
|
|
bottom: 0;
|
|
left: auto;
|
|
height: auto;
|
|
width: auto;
|
|
&:hover {
|
|
background-color: $sliderColorRangeHov;
|
|
}
|
|
}
|
|
}
|
|
|
|
/******************************************************** DATETIME PICKER */
|
|
.l-datetime-picker {
|
|
$r1H: 15px;
|
|
@include user-select(none);
|
|
font-size: 0.8rem;
|
|
padding: $interiorMarginLg !important;
|
|
.l-month-year-pager {
|
|
$pagerW: 20px;
|
|
height: $r1H;
|
|
margin-bottom: $interiorMargin;
|
|
position: relative;
|
|
.pager,
|
|
.val {
|
|
@extend .abs;
|
|
}
|
|
.pager {
|
|
width: $pagerW;
|
|
@extend .ui-symbol;
|
|
&.prev {
|
|
@extend .icon-arrow-left;
|
|
right: auto;
|
|
}
|
|
&.next {
|
|
@extend .icon-arrow-right;
|
|
left: auto;
|
|
text-align: right;
|
|
}
|
|
}
|
|
.val {
|
|
text-align: center;
|
|
left: $pagerW + $interiorMargin;
|
|
right: $pagerW + $interiorMargin;
|
|
}
|
|
}
|
|
.l-calendar,
|
|
.l-time-selects {
|
|
border-top: 1px solid $colorInteriorBorder
|
|
}
|
|
.l-time-selects {
|
|
line-height: inherit;
|
|
}
|
|
}
|
|
|
|
/******************************************************** CALENDAR */
|
|
.l-calendar {
|
|
$colorMuted: pushBack($colorMenuFg, 30%);
|
|
ul.l-cal-row {
|
|
@include display(flex);
|
|
@include flex-flow(row nowrap);
|
|
margin-top: 1px;
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
li {
|
|
@include flex(1 0);
|
|
margin-left: 1px;
|
|
padding: $interiorMargin;
|
|
text-align: center;
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
&.l-header li {
|
|
color: $colorMuted;
|
|
}
|
|
&.l-body li {
|
|
@include trans-prop-nice(background-color, .25s);
|
|
cursor: pointer;
|
|
&.in-month {
|
|
background-color: $colorCalCellInMonthBg;
|
|
}
|
|
.sub {
|
|
color: $colorMuted;
|
|
font-size: 0.8em;
|
|
}
|
|
&.selected {
|
|
background: $colorCalCellSelectedBg;
|
|
color: $colorCalCellSelectedFg;
|
|
.sub {
|
|
color: inherit;
|
|
}
|
|
}
|
|
&:hover {
|
|
background-color: $colorCalCellHovBg;
|
|
color: $colorCalCellHovFg;
|
|
.sub {
|
|
color: inherit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@include phone {
|
|
.l-datetime-picker {
|
|
padding: $interiorMargin !important;
|
|
}
|
|
.l-calendar {
|
|
ul.l-cal-row {
|
|
li {
|
|
padding: 2px $interiorMargin;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/******************************************************** TEXTAREA */
|
|
textarea {
|
|
@include nice-textarea($colorInputBg, $colorInputFg);
|
|
position: absolute;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
/******************************************************** MISC */
|
|
.context-available {
|
|
@extend .icon-arrow-down;
|
|
color: $colorKey;
|
|
&:hover {
|
|
color: $colorKeyHov;
|
|
}
|
|
}
|
|
|
|
.view-switcher {
|
|
@include trans-prop-nice-fade($controlFadeMs);
|
|
}
|
|
|
|
/******************************************************** BROWSER ELEMENTS */
|
|
body.desktop {
|
|
::-webkit-scrollbar {
|
|
box-sizing: border-box;
|
|
box-shadow: inset $scrollbarTrackShdw;
|
|
background-color: $scrollbarTrackColorBg;
|
|
height: $scrollbarTrackSize;
|
|
width: $scrollbarTrackSize;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
box-sizing: border-box;
|
|
background: $scrollbarThumbColor;
|
|
&:hover { background: $scrollbarThumbColorHov; }
|
|
}
|
|
|
|
.overlay ::-webkit-scrollbar-thumb {
|
|
$lr: 15%;
|
|
background: $scrollbarThumbColorOverlay;
|
|
&:hover { background: $scrollbarThumbColorOverlayHov; }
|
|
}
|
|
|
|
::-webkit-scrollbar-corner {
|
|
background: $scrollbarTrackColorBg;
|
|
}
|
|
}
|