mirror of
				https://github.com/HackTricks-wiki/hacktricks.git
				synced 2025-10-10 18:36:50 +00:00 
			
		
		
		
	Style tables
This commit is contained in:
		
							parent
							
								
									47ba2ab451
								
							
						
					
					
						commit
						d8cff20f33
					
				| @ -70,7 +70,7 @@ def ref(matchobj): | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def add_read_time(content): | def add_read_time(content): | ||||||
|     regex = r'(# .*(?=\n))' |     regex = r'(<\/style>\n# .*(?=\n))' | ||||||
|     new_content = re.sub(regex, lambda x: x.group(0) + "\n\nReading time: {{ #reading_time }}", content) |     new_content = re.sub(regex, lambda x: x.group(0) + "\n\nReading time: {{ #reading_time }}", content) | ||||||
|     return new_content |     return new_content | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -835,7 +835,7 @@ html:not(.sidebar-resizing) .sidebar { | |||||||
|     border-top: 1px solid var(--table-border-color); |     border-top: 1px solid var(--table-border-color); | ||||||
|     margin-top: 1rem; |     margin-top: 1rem; | ||||||
|     align-content: center; |     align-content: center; | ||||||
|     z-index: 101; |     z-index: 106; | ||||||
| } | } | ||||||
| .footer .theme-wrapper { | .footer .theme-wrapper { | ||||||
|     max-width: var(--container-max-width); |     max-width: var(--container-max-width); | ||||||
|  | |||||||
| @ -343,8 +343,8 @@ | |||||||
|     --warning-border: #ff8e00; |     --warning-border: #ff8e00; | ||||||
| 
 | 
 | ||||||
|     --table-border-color: #2f2f2f; |     --table-border-color: #2f2f2f; | ||||||
|     --table-header-bg: hsl(226, 23%, 31%); |     --table-header-bg: #2f2f2f; | ||||||
|     --table-alternate-bg: hsl(226, 23%, 14%); |     --table-alternate-bg: #222222; | ||||||
| 
 | 
 | ||||||
|     --searchbar-border-color: #2f2f2f; |     --searchbar-border-color: #2f2f2f; | ||||||
|     --searchbar-bg: hsl(0, 0%, 11%); |     --searchbar-bg: hsl(0, 0%, 11%); | ||||||
| @ -429,7 +429,7 @@ | |||||||
|     --warning-border: #ff8e00; |     --warning-border: #ff8e00; | ||||||
| 
 | 
 | ||||||
|     --table-border-color: hsl(0, 0%, 95%); |     --table-border-color: hsl(0, 0%, 95%); | ||||||
|     --table-header-bg: hsl(0, 0%, 80%); |     --table-header-bg: hsl(0, 0%, 95%); | ||||||
|     --table-alternate-bg: hsl(0, 0%, 97%); |     --table-alternate-bg: hsl(0, 0%, 97%); | ||||||
| 
 | 
 | ||||||
|     --searchbar-border-color: #aaa; |     --searchbar-border-color: #aaa; | ||||||
|  | |||||||
| @ -72,7 +72,7 @@ | |||||||
|     .sidetoc-wrapper { |     .sidetoc-wrapper { | ||||||
|         position: fixed; |         position: fixed; | ||||||
|         width: 250px; |         width: 250px; | ||||||
|         height: calc(100vh - var(--menu-bar-height)  - 25px * 2); |         height: calc(100vh - var(--menu-bar-height)  - 50px * 2); | ||||||
|         overflow: auto; |         overflow: auto; | ||||||
|         display: flex; |         display: flex; | ||||||
|         flex-direction: column; |         flex-direction: column; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user