forked from mirrors/gecko-dev
		
	Bug 1406415 - Create a devtools-components bundle; r=gl.
				
					
				
			MozReview-Commit-ID: 5jEsz5oBB9F --HG-- extra : rebase_source : 31639e8b1fb7c0fed04f9c1e5e70dab20cfdeb43
This commit is contained in:
		
							parent
							
								
									da9941ddbc
								
							
						
					
					
						commit
						f3d82f3792
					
				
					 3 changed files with 1155 additions and 0 deletions
				
			
		
							
								
								
									
										79
									
								
								devtools/client/shared/components/devtools-components.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								devtools/client/shared/components/devtools-components.css
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,79 @@ | ||||||
|  | /* This Source Code Form is subject to the terms of the Mozilla Public | ||||||
|  |  * License, v. 2.0. If a copy of the MPL was not distributed with this | ||||||
|  |  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||||||
|  | 
 | ||||||
|  | .tree { | ||||||
|  |   overflow: auto; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree.inline { | ||||||
|  |   display: inline-block; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree.nowrap { | ||||||
|  |   white-space: nowrap; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree.noselect { | ||||||
|  |   -webkit-user-select: none; | ||||||
|  |   -moz-user-select: none; | ||||||
|  |   -ms-user-select: none; | ||||||
|  |   -o-user-select: none; | ||||||
|  |   user-select: none; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree button { | ||||||
|  |   display: block; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree .tree-node { | ||||||
|  |   display: flex; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree-indent { | ||||||
|  |   display: inline-block; | ||||||
|  |   width: 12px; | ||||||
|  |   margin-inline-start: 5px; | ||||||
|  |   border-inline-start: 1px solid #A2D1FF; | ||||||
|  |   flex-shrink: 0; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Align with expandables siblings (where we have the arrow) */ | ||||||
|  | .tree-node[data-expandable="false"] .tree-indent:last-of-type { | ||||||
|  |   margin-inline-end: 15px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree .tree-node[data-expandable="true"] { | ||||||
|  |   cursor: default; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree .tree-node:not(.focused):hover { | ||||||
|  |   background-color: #F0F9FE; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree .tree-node.focused { | ||||||
|  |   color: white; | ||||||
|  |   background-color: var(--theme-selection-background, #0a84ff); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .tree-node.focused .arrow svg { | ||||||
|  |   fill: currentColor; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .arrow svg { | ||||||
|  |   fill: var(--theme-splitter-color, #9B9B9B); | ||||||
|  |   transition: transform 0.125s ease; | ||||||
|  |   width: 10px; | ||||||
|  |   margin-inline-end: 5px; | ||||||
|  |   transform: rotate(-90deg); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | html[dir="rtl"] .arrow svg, | ||||||
|  | .arrow svg:dir(rtl), | ||||||
|  | .arrow svg:-moz-locale-dir(rtl) { | ||||||
|  |   transform: rotate(90deg); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .arrow.expanded.expanded svg { | ||||||
|  |   transform: rotate(0deg); | ||||||
|  | } | ||||||
							
								
								
									
										1074
									
								
								devtools/client/shared/components/devtools-components.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1074
									
								
								devtools/client/shared/components/devtools-components.js
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							|  | @ -13,6 +13,8 @@ DIRS += [ | ||||||
| 
 | 
 | ||||||
| DevToolsModules( | DevToolsModules( | ||||||
|     'AutoCompletePopup.js', |     'AutoCompletePopup.js', | ||||||
|  |     'devtools-components.css', | ||||||
|  |     'devtools-components.js', | ||||||
|     'Frame.js', |     'Frame.js', | ||||||
|     'HSplitBox.js', |     'HSplitBox.js', | ||||||
|     'NotificationBox.css', |     'NotificationBox.css', | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Nicolas Chevobbe
						Nicolas Chevobbe