* first revision * [Frontend] Styling for sticky table headers Fixes #1481 - WIP convert mct-table layout to use flex; - TODO: fix flex layout when a small number of rows; - Rename CSS classes used as selectors by JS; * remove header height from calculations since it is outside in its own table now * [Frontend] Styling for sticky table headers Fixes #1481 - Fixed flex layout when a small number of rows; - Refined input padding and dropshadow for more compactness; * fix tests and verify tables works properly in layout and large view * add mct-scroll to header table to allow scrolling in sync with the rest of mct-table * Various fixes and polishing Fixes #2071 - Fix headers height issue; - Move inline styles to classes; - First round fix for horz overflow due to scrollbar problem; * WIP horz overflow Fixes #2071 - Commented out CSS-based scrollbar with approach in anticipation of better JS solution; * Horz overflow/scrollbar problem fixed Fixes #2071 - Added calcTableWidthPx to allow sizing-table to subtract width of scrollbar; * Remove commented code * add clear icon back into filter text boxes * Polishing on sticky table headers filtering Fixes #1481 Fixes #2071 - Now hides the magnify glass in table header filters when typing;
		
			
				
	
	
		
			146 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			146 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
/*****************************************************************************
 | 
						|
 * Open MCT, Copyright (c) 2014-2018, 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.
 | 
						|
 *****************************************************************************/
 | 
						|
 | 
						|
/************************** FEATURES */
 | 
						|
$enableImageryThumbs: true; // Set to true if historical imagery thumbnails are supported
 | 
						|
 | 
						|
/************************** VERY INFLUENTIAL GLOBAL DIMENSIONS */
 | 
						|
$bodyMargin: 10px;
 | 
						|
$interiorMargin: 5px;
 | 
						|
$interiorMarginLg: $interiorMargin * 2;
 | 
						|
$interiorMarginSm: 3px;
 | 
						|
$badgeW: 35px;
 | 
						|
 | 
						|
/************************** RATIOS */
 | 
						|
$ltGamma: 20%;
 | 
						|
$btnFontSizeToH: 0.45;
 | 
						|
 | 
						|
/************************** LAYOUT */
 | 
						|
$ueTopBarH: 24px;
 | 
						|
$ueTopBarEditH: 30px;
 | 
						|
$ueTopBarBtnH: 35px;
 | 
						|
$ueFooterH: 25px;
 | 
						|
$ueColMargin: 1.5%;
 | 
						|
$ueAppLogoW: 80px;
 | 
						|
$ueEditToolBarH: 25px;
 | 
						|
$ueCollapsedPaneEdgeM: 22px;
 | 
						|
$uePaneMiniTabH: 36px;
 | 
						|
$uePaneMiniTabW: 10px;
 | 
						|
$uePaneMiniTabFontSize: 9px;
 | 
						|
$uePaneMiniTabCollapsedW: 22px;
 | 
						|
$ueEditLeftPaneW: 75%;
 | 
						|
$treeSearchInputBarH: 25px;
 | 
						|
/*************** Panes */
 | 
						|
$ueBrowseLeftPaneTreeMinW: 150px;
 | 
						|
$ueBrowseLeftPaneTreeMaxW: 35%;
 | 
						|
$ueBrowseLeftPaneTreeW: 25%;
 | 
						|
$ueBrowseRightPaneInspectMinW: 200px;
 | 
						|
$ueBrowseRightPaneInspectMaxW: 35%;
 | 
						|
$ueBrowseRightPaneInspectW: 20%;
 | 
						|
$ueDesktopMinW: 600px;
 | 
						|
/*************** Overlay */
 | 
						|
$ovrTopBarH: 45px;
 | 
						|
$ovrFooterH: 24px;
 | 
						|
$overlayMargin: 25px;
 | 
						|
/*************** Progress Overlay */
 | 
						|
$durEntryMs: 50ms;
 | 
						|
$delayEntryMs: 100ms;
 | 
						|
/*************** Items */
 | 
						|
$ueBrowseGridItemLg: 200px;
 | 
						|
$ueBrowseGridItemTopBarH: 20px;
 | 
						|
$ueBrowseGridItemBottomBarH: 30px;
 | 
						|
$itemPadLR: 5px;
 | 
						|
/*************** Tree */
 | 
						|
$treeVCW: 16px;
 | 
						|
$treeTypeIconH: 1.4em; // was 16px
 | 
						|
$treeTypeIconHPx: 16px;
 | 
						|
$treeTypeIconW: 18px;
 | 
						|
$treeContextTriggerW: 20px;
 | 
						|
/*************** Tabular */
 | 
						|
$tabularHeaderH: 22px;
 | 
						|
$tabularTdPadLR: $itemPadLR;
 | 
						|
$tabularTdPadTB: 2px;
 | 
						|
/*************** Imagery */
 | 
						|
$imageMainControlBarH: 25px;
 | 
						|
$imageThumbsD: 100px;
 | 
						|
$imageThumbsWrapperH: 155px;
 | 
						|
$imageThumbPad: 1px;
 | 
						|
/*************** Ticks */
 | 
						|
$ticksH: 25px;
 | 
						|
$tickLblVMargin: 3px;
 | 
						|
$tickLblH: 15px;
 | 
						|
$tickLblW: 50px;
 | 
						|
$tickH: $ticksH - $tickLblVMargin - $tickLblH;
 | 
						|
$tickW: 1px;
 | 
						|
/*************** Plots */
 | 
						|
$plotYBarW: 60px;
 | 
						|
$plotYLabelMinH: 20px;
 | 
						|
$plotYLabelW: 10px;
 | 
						|
$plotXBarH: 32px;
 | 
						|
$plotLegendH: 20px;
 | 
						|
$plotSwatchD: 8px;
 | 
						|
// 1: Top, 2: right, 3: bottom, 4: left
 | 
						|
$plotDisplayArea: (0, 0, $plotXBarH, $plotYBarW);
 | 
						|
/* min plot height is based on user testing to find minimum useful height */
 | 
						|
$plotMinH: 95px;
 | 
						|
/*************** Bubbles */
 | 
						|
$bubbleArwSize: 10px;
 | 
						|
$bubblePad: $interiorMargin;
 | 
						|
$bubbleMinW: 100px;
 | 
						|
$bubbleMaxW: 300px;
 | 
						|
/*************** Forms */
 | 
						|
$reqSymbolW: 15px;
 | 
						|
$reqSymbolM: $interiorMargin * 2;
 | 
						|
$reqSymbolFontSize: 0.75em;
 | 
						|
$inputTextPTopBtm: 2px;
 | 
						|
$inputTextPLeftRight: 5px;
 | 
						|
$inputTextP: $inputTextPTopBtm $inputTextPLeftRight;
 | 
						|
/*************** Wait Spinner Defaults */
 | 
						|
$waitSpinnerD: 32px;
 | 
						|
$waitSpinnerTreeD: 20px;
 | 
						|
$waitSpinnerBorderW: 5px;
 | 
						|
$waitSpinnerTreeBorderW: 4px;
 | 
						|
 | 
						|
/************************** CONTROLS */
 | 
						|
$controlDisabledOpacity: 0.3;
 | 
						|
$formLabelW: 30%;
 | 
						|
$formInputH: 22px;
 | 
						|
$formRowCtrlsH: 14px;
 | 
						|
$formTBPad: $interiorMargin;
 | 
						|
$formLRPad: $interiorMargin;
 | 
						|
$menuLineH: 1.5rem;
 | 
						|
$menuLineHPx: 24px;
 | 
						|
$btnStdH: 25px;
 | 
						|
$btnToolbarH: $btnStdH;
 | 
						|
$controlBarH: $btnStdH;
 | 
						|
$btnFrameH: 18px;
 | 
						|
 | 
						|
/************************** PATHS */
 | 
						|
// Paths need to be relative to /platform/commonUI/theme/<theme-name>/css/ directory
 | 
						|
$dirCommonRes: '../../../../general/res/';
 | 
						|
$dirImgs: $dirCommonRes + 'images/';
 | 
						|
 | 
						|
/************************** TIMINGS */
 | 
						|
$controlFadeMs: 100ms;
 | 
						|
$browseToEditAnimMs: 400ms;
 | 
						|
$editBorderPulseMs: 500ms;
 |