work on frontpage mobile view
This commit is contained in:
		
							parent
							
								
									aed59a3f75
								
							
						
					
					
						commit
						325be308bd
					
				
					 4 changed files with 22 additions and 9 deletions
				
			
		| 
						 | 
					@ -31,7 +31,7 @@ const codeHTML = await processMarkdown(codeString);
 | 
				
			||||||
      </span>
 | 
					      </span>
 | 
				
			||||||
    </section>
 | 
					    </section>
 | 
				
			||||||
    <section class="feature-showcase">
 | 
					    <section class="feature-showcase">
 | 
				
			||||||
      <video class="feature-video" style="height: 21rem" preload="metadata" controls={false} autoplay loop>
 | 
					      <video preload="metadata" controls={false} autoplay loop>
 | 
				
			||||||
        <source src="/assets/simple-shell-livereload.mp4" type="video/mp4"/>
 | 
					        <source src="/assets/simple-shell-livereload.mp4" type="video/mp4"/>
 | 
				
			||||||
      </video>
 | 
					      </video>
 | 
				
			||||||
    </section>
 | 
					    </section>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,9 +3,8 @@
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.featurelist {
 | 
					.featurelist {
 | 
				
			||||||
  max-width: 40rem;
 | 
					 | 
				
			||||||
  list-style: none;
 | 
					  list-style: none;
 | 
				
			||||||
  margin: 1rem 1.618rem;
 | 
					  margin: 0.25rem 0.5rem;
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  flex-direction: column;
 | 
					  flex-direction: column;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -68,8 +67,17 @@ html.dark .feature-text {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.feature-showcase {
 | 
					.feature-showcase {
 | 
				
			||||||
  height: 21rem;
 | 
					  max-height: 21rem;
 | 
				
			||||||
  aspect-ratio: 16 / 9;
 | 
					  aspect-ratio: 16 / 9;
 | 
				
			||||||
 | 
					  width: 100%;
 | 
				
			||||||
 | 
					  display: flex;
 | 
				
			||||||
 | 
					  justify-content: center;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  & video {
 | 
				
			||||||
 | 
					    height: 100%;
 | 
				
			||||||
 | 
					    aspect-ratio: 16 / 9;
 | 
				
			||||||
 | 
					    border-radius: 0.681rem;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
html:not(.dark) .feature-showcase .shiki,
 | 
					html:not(.dark) .feature-showcase .shiki,
 | 
				
			||||||
| 
						 | 
					@ -77,10 +85,6 @@ html:not(.dark) .feature-showcase .shiki span {
 | 
				
			||||||
  background-color: #ffffff;
 | 
					  background-color: #ffffff;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.feature-video {
 | 
					 | 
				
			||||||
  border-radius: 0.681rem;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.feature-cloud {
 | 
					.feature-cloud {
 | 
				
			||||||
  position: relative;
 | 
					  position: relative;
 | 
				
			||||||
  margin: auto;
 | 
					  margin: auto;
 | 
				
			||||||
| 
						 | 
					@ -137,9 +141,16 @@ html:not(.dark) .feature-showcase .shiki span {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@media (min-width: 40rem) {
 | 
				
			||||||
 | 
					  .feature-showcase {
 | 
				
			||||||
 | 
					    height: 21rem;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media (min-width: 68rem) {
 | 
					@media (min-width: 68rem) {
 | 
				
			||||||
  .featurelist {
 | 
					  .featurelist {
 | 
				
			||||||
    max-width: 75rem;
 | 
					    max-width: 75rem;
 | 
				
			||||||
 | 
					    margin: 1rem 1.618rem;
 | 
				
			||||||
    width: auto;
 | 
					    width: auto;
 | 
				
			||||||
    align-items: center;
 | 
					    align-items: center;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -39,6 +39,7 @@ html {
 | 
				
			||||||
  --bg-900: var(--white) 5 16;
 | 
					  --bg-900: var(--white) 5 16;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* docs */
 | 
					  /* docs */
 | 
				
			||||||
 | 
					  --background: var(--bg-500);
 | 
				
			||||||
  --text: var(--white) 0 0;
 | 
					  --text: var(--white) 0 0;
 | 
				
			||||||
  --text-dark: var(--white) 0 18;
 | 
					  --text-dark: var(--white) 0 18;
 | 
				
			||||||
  --text-darker: var(--white) 0 30;
 | 
					  --text-darker: var(--white) 0 30;
 | 
				
			||||||
| 
						 | 
					@ -94,6 +95,7 @@ html.dark {
 | 
				
			||||||
  --bg-900: var(--blue) 82 3;
 | 
					  --bg-900: var(--blue) 82 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* docs */
 | 
					  /* docs */
 | 
				
			||||||
 | 
					  --background: var(--bg-900);
 | 
				
			||||||
  --text: var(--white) 0 100;
 | 
					  --text: var(--white) 0 100;
 | 
				
			||||||
  --text-dark: var(--white) 0 70;
 | 
					  --text-dark: var(--white) 0 70;
 | 
				
			||||||
  --text-darker: var(--white) 0 40;
 | 
					  --text-darker: var(--white) 0 40;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,7 +26,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.baselayout,
 | 
					.baselayout,
 | 
				
			||||||
.docslayout {
 | 
					.docslayout {
 | 
				
			||||||
  background-color: hsl(var(--bg-500));
 | 
					  background-color: hsl(var(--background));
 | 
				
			||||||
  color: hsl(var(--secondary-900));
 | 
					  color: hsl(var(--secondary-900));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue