57 lines
		
	
	
		
			901 B
		
	
	
	
		
			Vue
		
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			901 B
		
	
	
	
		
			Vue
		
	
	
	
| <script setup>
 | |
| import DefaultTheme from 'vitepress/theme'
 | |
| const { Theme } = DefaultTheme
 | |
| </script>
 | |
| 
 | |
| <template>
 | |
|   <Theme>
 | |
|     <template>
 | |
|     </template>
 | |
|   </Theme>
 | |
| </template>
 | |
| 
 | |
| <style>
 | |
| :root {
 | |
|   --vp-sidebar-width: 250px;
 | |
| }
 | |
| 
 | |
| .Layout {
 | |
|   background-color: light-dark(white, black);
 | |
| }
 | |
| 
 | |
| .VPNavBarTitle .title {
 | |
|   font-size: 14px;
 | |
| }
 | |
| 
 | |
| .language-template:has(~.preview){
 | |
|   flex-grow:1;
 | |
|   &~.preview{
 | |
|     flex-grow:0;
 | |
|   }
 | |
| }
 | |
| 
 | |
| .preview,
 | |
| .vp-doc .preview {
 | |
|   padding: 16px 0;
 | |
|   flex-grow: 1;
 | |
|   border-radius: 8px;
 | |
|   justify-content: start;
 | |
|   --vp-code-block-bg: transparent;
 | |
| 
 | |
|   &:not(.transparent){
 | |
|     background-color:var(--background-color);
 | |
|     box-shadow: 0px 0px 16px 16px var(--background-color);
 | |
|     margin:16px 0;
 | |
|     padding:0;
 | |
| 
 | |
|   }
 | |
| 
 | |
|   /* .preview overrides the cascade coming from .vp-docs and other containers
 | |
|   that may leak rules here */
 | |
|   p {
 | |
|     margin: 0;
 | |
|     line-height: normal
 | |
|   }
 | |
| }
 | |
| </style>
 |