forked from mirrors/gecko-dev
		
	Bug 1854599 - Fix Cards sub-headings and spacing to spec r=desktop-theme-reviewers,fxview-reviewers,kcochrane,jules,dao
- Increase vertical padding for card subheaders - Updated device headers to font size 15px - Decreased space between rows to 6px - Fix vertical alightment of headers and rows - Update device headers to fontweight 500 Differential Revision: https://phabricator.services.mozilla.com/D193848
This commit is contained in:
		
							parent
							
								
									8b09bf9d4f
								
							
						
					
					
						commit
						e20ef934b5
					
				
					 4 changed files with 8 additions and 4 deletions
				
			
		|  | @ -18,7 +18,7 @@ | ||||||
| 
 | 
 | ||||||
| .card-container-header { | .card-container-header { | ||||||
|   display: inline-flex; |   display: inline-flex; | ||||||
|   gap: 16px; |   gap: 14px; | ||||||
|   width: 100%; |   width: 100%; | ||||||
|   align-items: center; |   align-items: center; | ||||||
|   cursor: pointer; |   cursor: pointer; | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
|   outline-offset: 4px; |   outline-offset: 4px; | ||||||
|   padding: 6px; |   padding: 6px; | ||||||
|   padding-inline-end: 0; |   padding-inline-end: 0; | ||||||
|  |   margin-block-end: 6px; | ||||||
|  |   height: 24px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .card-container-header[withViewAll] { | .card-container-header[withViewAll] { | ||||||
|  |  | ||||||
|  | @ -28,6 +28,8 @@ | ||||||
| 
 | 
 | ||||||
|   /* copy over newtab background color from activity-stream-[os].css files */ |   /* copy over newtab background color from activity-stream-[os].css files */ | ||||||
|   --newtab-background-color: #F9F9FB; |   --newtab-background-color: #F9F9FB; | ||||||
|  | 
 | ||||||
|  |   --fxview-card-header-font-weight: 500; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
| .fxview-tab-list { | .fxview-tab-list { | ||||||
|   display: grid; |   display: grid; | ||||||
|   grid-template-columns: min-content 3fr 2fr 1fr 1fr min-content; |   grid-template-columns: min-content 3fr 2fr 1fr 1fr min-content; | ||||||
|   gap: 8px; |   gap: 6px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| :host([compactRows]) .fxview-tab-list { | :host([compactRows]) .fxview-tab-list { | ||||||
|  |  | ||||||
|  | @ -35,7 +35,8 @@ h3.device-header { | ||||||
|   display: grid; |   display: grid; | ||||||
|   align-items: center; |   align-items: center; | ||||||
|   cursor: inherit; |   cursor: inherit; | ||||||
|   font-weight: 600; |   font-weight: var(--fxview-card-header-font-weight); | ||||||
|  |   font-size: 1em; | ||||||
|   grid-template-columns: min-content 1fr; |   grid-template-columns: min-content 1fr; | ||||||
|   gap: 0 16px; |   gap: 0 16px; | ||||||
|   margin: 0; |   margin: 0; | ||||||
|  | @ -44,7 +45,6 @@ h3.device-header { | ||||||
| h3.device-header:not([slot=header]) { | h3.device-header:not([slot=header]) { | ||||||
|   margin-block: 0.7em; |   margin-block: 0.7em; | ||||||
|   margin-inline: 0.5em 0; |   margin-inline: 0.5em 0; | ||||||
|   font-size: 1em; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| h3.device-header:not([slot=header]):not(:first-child) { | h3.device-header:not([slot=header]):not(:first-child) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Nikki Sharpley
						Nikki Sharpley