mirror of
				https://github.com/zopiya/x-eden-quartz.git
				synced 2025-11-04 06:46:48 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			678 B
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			678 B
		
	
	
	
		
			SCSS
		
	
	
	
	
	
.darkmode {
 | 
						|
  cursor: pointer;
 | 
						|
  padding: 0;
 | 
						|
  position: relative;
 | 
						|
  background: none;
 | 
						|
  border: none;
 | 
						|
  width: 20px;
 | 
						|
  height: 20px;
 | 
						|
  margin: 0 10px;
 | 
						|
  text-align: inherit;
 | 
						|
 | 
						|
  & svg {
 | 
						|
    position: absolute;
 | 
						|
    width: 20px;
 | 
						|
    height: 20px;
 | 
						|
    top: calc(50% - 10px);
 | 
						|
    fill: var(--darkgray);
 | 
						|
    transition: opacity 0.1s ease;
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
:root[saved-theme="dark"] {
 | 
						|
  color-scheme: dark;
 | 
						|
}
 | 
						|
 | 
						|
:root[saved-theme="light"] {
 | 
						|
  color-scheme: light;
 | 
						|
}
 | 
						|
 | 
						|
:root[saved-theme="dark"] .darkmode {
 | 
						|
  & > #dayIcon {
 | 
						|
    display: none;
 | 
						|
  }
 | 
						|
  & > #nightIcon {
 | 
						|
    display: inline;
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
:root .darkmode {
 | 
						|
  & > #dayIcon {
 | 
						|
    display: inline;
 | 
						|
  }
 | 
						|
  & > #nightIcon {
 | 
						|
    display: none;
 | 
						|
  }
 | 
						|
}
 |