mirror of
				https://github.com/notion-enhancer/notion-enhancer.git
				synced 2025-11-05 00:28:07 +11:00 
			
		
		
		
	add tag_default back
This commit is contained in:
		
							parent
							
								
									48fa479001
								
							
						
					
					
						commit
						43bcc8101c
					
				@ -500,8 +500,15 @@ function css() {
 | 
			
		||||
 | 
			
		||||
// 'light' or 'dark'
 | 
			
		||||
function vars(mode) {
 | 
			
		||||
  // add the prefixes that light gray doesn't have first to preserve the same order
 | 
			
		||||
  const sets = { text: '', highlight: '', callout: '' };
 | 
			
		||||
  // order in which variables will appear
 | 
			
		||||
  const sets = {
 | 
			
		||||
    'text': '',
 | 
			
		||||
    'highlight': '',
 | 
			
		||||
    'callout': '',
 | 
			
		||||
    // tag_default has the same color in light and dark
 | 
			
		||||
    'tag': '--theme--tag_default: rgba(206, 205, 202, 0.5);\n--theme--tag_default-text: var(--theme--text);\n',
 | 
			
		||||
    'board': ''
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  // light gray separately
 | 
			
		||||
  for (let key in lightGray[mode]) {
 | 
			
		||||
 | 
			
		||||
@ -724,6 +724,7 @@ body,
 | 
			
		||||
  border-color: var(--theme--text_secondary) !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* make sure to change in _mapColors.js as well if colors ever change */
 | 
			
		||||
.notion-body.dark [style*='background: rgb(80, 85, 88)']:not([role='button']),
 | 
			
		||||
.notion-body.dark [style*='background-color: rgb(80, 85, 88)']:not([role='button']),
 | 
			
		||||
.notion-body:not(.dark) [style*='background: rgba(206, 205, 202, 0.5)']:not([role='button']),
 | 
			
		||||
 | 
			
		||||
@ -109,6 +109,8 @@
 | 
			
		||||
  --theme--callout_red: rgb(253, 235, 236);
 | 
			
		||||
  --theme--callout_red-text: currentColor;
 | 
			
		||||
 | 
			
		||||
  --theme--tag_default: rgba(206, 205, 202, 0.5);
 | 
			
		||||
  --theme--tag_default-text: var(--theme--text);
 | 
			
		||||
  --theme--tag_light_gray: rgba(227, 226, 224, 0.5);
 | 
			
		||||
  --theme--tag_light_gray-text: rgb(50, 48, 44);
 | 
			
		||||
  --theme--tag_gray: rgb(227, 226, 224);
 | 
			
		||||
@ -295,6 +297,8 @@
 | 
			
		||||
  --theme--callout_red: rgb(94, 52, 54);
 | 
			
		||||
  --theme--callout_red-text: currentColor;
 | 
			
		||||
 | 
			
		||||
  --theme--tag_default: rgba(206, 205, 202, 0.5);
 | 
			
		||||
  --theme--tag_default-text: var(--theme--text);
 | 
			
		||||
  --theme--tag_light_gray: rgba(71, 76, 80, 0.7);
 | 
			
		||||
  --theme--tag_light_gray-text: rgba(255, 255, 255, 0.88);
 | 
			
		||||
  --theme--tag_gray: rgb(71, 76, 80);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user