1st day patch, mobile fixes
This commit is contained in:
		
							parent
							
								
									48b954c410
								
							
						
					
					
						commit
						221c16820c
					
				
					 3 changed files with 25 additions and 2 deletions
				
			
		| 
						 | 
					@ -43,7 +43,7 @@ const iconSelector: { [key: string]: string } = {
 | 
				
			||||||
      <a href={typelink}>{ typelink_text }</a>
 | 
					      <a href={typelink}>{ typelink_text }</a>
 | 
				
			||||||
      {typename_generic &&
 | 
					      {typename_generic &&
 | 
				
			||||||
        (
 | 
					        (
 | 
				
			||||||
          <span class="type-datatype"><</span><a href={typelink_generic}>{typename_generic}</a><span class="type-datatype">></span>
 | 
					          <span class="type-generic"><span class="type-datatype"><</span><a href={typelink_generic}>{typename_generic}</a><span class="type-datatype">></span></span>
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    </span>
 | 
					    </span>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -152,7 +152,12 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.type-datatype {
 | 
					.type-datatype {
 | 
				
			||||||
  color: #808080;
 | 
					  color: #808080;
 | 
				
			||||||
  width: max-content;
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.type-generic {
 | 
				
			||||||
 | 
					  position: absolute;
 | 
				
			||||||
 | 
					  left: 0.845rem;
 | 
				
			||||||
 | 
					  top: 1.217rem;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.typeprops {
 | 
					.typeprops {
 | 
				
			||||||
| 
						 | 
					@ -319,6 +324,9 @@ html.dark .typevariants {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media (min-width: 65rem) {
 | 
					@media (min-width: 65rem) {
 | 
				
			||||||
 | 
					  .type-datatype {
 | 
				
			||||||
 | 
					    width: max-content;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  .root-nav {
 | 
					  .root-nav {
 | 
				
			||||||
    & .root-nav-entry {
 | 
					    & .root-nav-entry {
 | 
				
			||||||
      display: grid;
 | 
					      display: grid;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,6 +22,7 @@
 | 
				
			||||||
  border-radius: 6px;
 | 
					  border-radius: 6px;
 | 
				
			||||||
  transition: background-color 0.2s ease;
 | 
					  transition: background-color 0.2s ease;
 | 
				
			||||||
  padding: 0.4em;
 | 
					  padding: 0.4em;
 | 
				
			||||||
 | 
					  font-size: 1rem;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  &:hover {
 | 
					  &:hover {
 | 
				
			||||||
    background-color: hsl(var(--nav-hovered-bkg));
 | 
					    background-color: hsl(var(--nav-hovered-bkg));
 | 
				
			||||||
| 
						 | 
					@ -37,6 +38,14 @@
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.fade {
 | 
				
			||||||
 | 
					  -webkit-mask-image: linear-gradient(
 | 
				
			||||||
 | 
					    to right,
 | 
				
			||||||
 | 
					    #000 80%,
 | 
				
			||||||
 | 
					    transparent
 | 
				
			||||||
 | 
					  );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.nav-collapsible {
 | 
					.nav-collapsible {
 | 
				
			||||||
  overflow: hidden;
 | 
					  overflow: hidden;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -56,9 +65,14 @@
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      & > a {
 | 
					      & > a {
 | 
				
			||||||
 | 
					        font-size: 1rem;
 | 
				
			||||||
        border-radius: 6px 0 0 6px;
 | 
					        border-radius: 6px 0 0 6px;
 | 
				
			||||||
        padding: 0.4em;
 | 
					        padding: 0.4em;
 | 
				
			||||||
        flex-grow: 1;
 | 
					        flex-grow: 1;
 | 
				
			||||||
 | 
					        display: flex;
 | 
				
			||||||
 | 
					        align-items: center;
 | 
				
			||||||
 | 
					        justify-content: flex-start;
 | 
				
			||||||
 | 
					        overflow: hidden;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      &:hover {
 | 
					      &:hover {
 | 
				
			||||||
| 
						 | 
					@ -75,6 +89,7 @@
 | 
				
			||||||
      display: flex;
 | 
					      display: flex;
 | 
				
			||||||
      flex-direction: row;
 | 
					      flex-direction: row;
 | 
				
			||||||
      align-items: stretch;
 | 
					      align-items: stretch;
 | 
				
			||||||
 | 
					      justify-content: center;
 | 
				
			||||||
      gap: 0.1em;
 | 
					      gap: 0.1em;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      & svg {
 | 
					      & svg {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue