mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	init media.css
- combine all media queries - name zmedia to conacat at last - change some max-width values to group them
This commit is contained in:
		| @@ -42,13 +42,3 @@ | |||||||
|     color: var(--secondary); |     color: var(--secondary); | ||||||
|     font-size: 14px |     font-size: 14px | ||||||
| } | } | ||||||
|  |  | ||||||
| @media (max-width:800px) { |  | ||||||
|     .archive-month { |  | ||||||
|         flex-direction: column |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     .archive-year { |  | ||||||
|         margin-top: 20px |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -48,9 +48,3 @@ | |||||||
| .top-link:focus { | .top-link:focus { | ||||||
|     outline: 0 |     outline: 0 | ||||||
| } | } | ||||||
|  |  | ||||||
| @media screen and (max-width:800px) { |  | ||||||
|     .list .top-link { |  | ||||||
|         transform: translateY(-5rem) |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -7,12 +7,6 @@ | |||||||
|     margin: var(--gap) 0 calc(var(--gap) * 2) 0 |     margin: var(--gap) 0 calc(var(--gap) * 2) 0 | ||||||
| } | } | ||||||
|  |  | ||||||
| @media screen and (max-width:600px) { |  | ||||||
|     .first-entry { |  | ||||||
|         min-height: 260px |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .first-entry .entry-header { | .first-entry .entry-header { | ||||||
|     overflow: hidden; |     overflow: hidden; | ||||||
|     display: -webkit-box; |     display: -webkit-box; | ||||||
| @@ -53,12 +47,6 @@ | |||||||
|     transform: scale(.96) |     transform: scale(.96) | ||||||
| } | } | ||||||
|  |  | ||||||
| @media (prefers-reduced-motion) { |  | ||||||
|     .post-entry:active { |  | ||||||
|         transform: none |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .tag-entry .entry-cover { | .tag-entry .entry-cover { | ||||||
|     display: none |     display: none | ||||||
| } | } | ||||||
|   | |||||||
| @@ -335,12 +335,6 @@ | |||||||
|     transform: scale(.96) |     transform: scale(.96) | ||||||
| } | } | ||||||
|  |  | ||||||
| @media (prefers-reduced-motion) { |  | ||||||
|     .share-buttons svg:active { |  | ||||||
|         transform: none |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| h1:hover .anchor, | h1:hover .anchor, | ||||||
| h2:hover .anchor, | h2:hover .anchor, | ||||||
| h3:hover .anchor, | h3:hover .anchor, | ||||||
|   | |||||||
| @@ -28,12 +28,6 @@ | |||||||
|     pointer-events: none |     pointer-events: none | ||||||
| } | } | ||||||
|  |  | ||||||
| @media screen and (max-width:600px) { |  | ||||||
|     .profile img { |  | ||||||
|         transform: scale(.85) |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .buttons { | .buttons { | ||||||
|     flex-wrap: wrap; |     flex-wrap: wrap; | ||||||
|     max-width: 400px; |     max-width: 400px; | ||||||
| @@ -56,8 +50,3 @@ | |||||||
|     transform: scale(.96) |     transform: scale(.96) | ||||||
| } | } | ||||||
|  |  | ||||||
| @media (prefers-reduced-motion) { |  | ||||||
|     .button:active  { |  | ||||||
|         transform: none |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -129,10 +129,3 @@ img { | |||||||
| ::-webkit-scrollbar-thumb:hover { | ::-webkit-scrollbar-thumb:hover { | ||||||
|     background: var(--secondary) |     background: var(--secondary) | ||||||
| } | } | ||||||
|  |  | ||||||
| @media screen and (min-width:768px) { |  | ||||||
|     ::-webkit-scrollbar { |  | ||||||
|         width: 10px; |  | ||||||
|         height: 6px |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -43,9 +43,3 @@ | |||||||
|     transform: scale(.98); |     transform: scale(.98); | ||||||
|     border: 2px solid var(--tertiary) |     border: 2px solid var(--tertiary) | ||||||
| } | } | ||||||
|  |  | ||||||
| @media (prefers-reduced-motion) { |  | ||||||
|     #searchResults .active  { |  | ||||||
|         transform: none |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -16,9 +16,3 @@ | |||||||
|     background: var(--tertiary); |     background: var(--tertiary); | ||||||
|     transform: scale(.96) |     transform: scale(.96) | ||||||
| } | } | ||||||
|  |  | ||||||
| @media (prefers-reduced-motion) { |  | ||||||
|     .terms-tags a:active { |  | ||||||
|         transform: none |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -17,12 +17,6 @@ | |||||||
|     --border: #eee; |     --border: #eee; | ||||||
| } | } | ||||||
|  |  | ||||||
| @media screen and (max-width:600px) { |  | ||||||
|     :root { |  | ||||||
|         --gap: 14px |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .dark { | .dark { | ||||||
|     --theme: #1d1e20; |     --theme: #1d1e20; | ||||||
|     --entry: #2e2e33; |     --entry: #2e2e33; | ||||||
|   | |||||||
							
								
								
									
										72
									
								
								assets/css/zmedia.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								assets/css/zmedia.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,72 @@ | |||||||
|  | @media screen and (max-width: 768px) { | ||||||
|  |     /* theme-vars */ | ||||||
|  |     :root { | ||||||
|  |         --gap: 14px; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* profile-mode */ | ||||||
|  |     .profile img { | ||||||
|  |         transform: scale(0.85); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* post-entry */ | ||||||
|  |     .first-entry { | ||||||
|  |         min-height: 260px; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* archive */ | ||||||
|  |     .archive-month { | ||||||
|  |         flex-direction: column; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     .archive-year { | ||||||
|  |         margin-top: 20px; | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @media screen and (min-width: 768px) { | ||||||
|  |     /* reset */ | ||||||
|  |     ::-webkit-scrollbar { | ||||||
|  |         width: 10px; | ||||||
|  |         height: 6px; | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | /* footer */ | ||||||
|  | @media screen and (max-width: 900px) { | ||||||
|  |     .list .top-link { | ||||||
|  |         transform: translateY(-5rem); | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @media (prefers-reduced-motion) { | ||||||
|  |     /* terms */ | ||||||
|  |     .terms-tags a:active { | ||||||
|  |         transform: none; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* profile-mode */ | ||||||
|  |     .button:active { | ||||||
|  |         transform: none; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* post-single */ | ||||||
|  |     .share-buttons svg:active { | ||||||
|  |         transform: none; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* post-entry */ | ||||||
|  |     .post-entry:active { | ||||||
|  |         transform: none; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* footer */ | ||||||
|  |     .top-link { | ||||||
|  |         transition: none; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /* search */ | ||||||
|  |     #searchResults .active { | ||||||
|  |         transform: none; | ||||||
|  |     } | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange