fix(docs-infra): fix broken toc ul styles (#32124)
Fixes #32027 PR Close #32124
This commit is contained in:
		
							parent
							
								
									8af85d812d
								
							
						
					
					
						commit
						984d23f687
					
				| @ -50,140 +50,140 @@ | |||||||
|         background: $lightgray; |         background: $lightgray; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |   } | ||||||
| 
 | 
 | ||||||
|     &.toc-heading { |   &.toc-heading { | ||||||
|       mat-icon.rotating-icon { |     mat-icon.rotating-icon { | ||||||
|         height: 18px; |       height: 18px; | ||||||
|         width: 18px; |       width: 18px; | ||||||
|         position: relative; |       position: relative; | ||||||
|         left: -4px; |       left: -4px; | ||||||
|         top: 5px; |       top: 5px; | ||||||
|       } |  | ||||||
| 
 |  | ||||||
|       &:hover:not(.embedded) { |  | ||||||
|         color: $accentblue; |  | ||||||
|       } |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     &.toc-more-items { |     &:hover:not(.embedded) { | ||||||
|       color: $mediumgray; |       color: $accentblue; | ||||||
|       top: 10px; |     } | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   &.toc-more-items { | ||||||
|  |     color: $mediumgray; | ||||||
|  |     top: 10px; | ||||||
|  |     position: relative; | ||||||
|  | 
 | ||||||
|  |     &:hover { | ||||||
|  |       color: $accentblue; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     &::after { | ||||||
|  |       content: 'expand_less'; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     &.collapsed::after { | ||||||
|  |       content: 'more_horiz'; | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   .mat-icon { | ||||||
|  |     &.collapsed { | ||||||
|  |       @include rotate(0deg); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     &:not(.collapsed) { | ||||||
|  |       @include rotate(90deg); | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   ul.toc-list { | ||||||
|  |     list-style-type: none; | ||||||
|  |     margin: 0; | ||||||
|  |     padding: 0 8px 0 0; | ||||||
|  |      | ||||||
|  |     @media (max-width: 800px) { | ||||||
|  |       width: auto; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     li { | ||||||
|  |       box-sizing: border-box; | ||||||
|  |       @include font-size(12); | ||||||
|  |       @include line-height(16); | ||||||
|  |       padding: 3px 0 3px 12px; | ||||||
|       position: relative; |       position: relative; | ||||||
|  |       transition: all 0.3s ease-in-out; | ||||||
|  | 
 | ||||||
|  |       &.h1:after { | ||||||
|  |         content: ''; | ||||||
|  |         display: block; | ||||||
|  |         height: 1px; | ||||||
|  |         width: 40%; | ||||||
|  |         margin: 7px 0 4px 0; | ||||||
|  |         background: $lightgray; | ||||||
|  |         clear: both; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       &.h3 { | ||||||
|  |         padding-left: 24px; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       a { | ||||||
|  |         color: lighten($darkgray, 10); | ||||||
|  |         overflow: visible; | ||||||
|  |         @include font-size(12); | ||||||
|  |         display: table-cell; | ||||||
|  |       } | ||||||
| 
 | 
 | ||||||
|       &:hover { |       &:hover { | ||||||
|         color: $accentblue; |         * { | ||||||
|       } |           color: $accentblue; | ||||||
| 
 |  | ||||||
|       &::after { |  | ||||||
|         content: 'expand_less'; |  | ||||||
|       } |  | ||||||
| 
 |  | ||||||
|       &.collapsed::after { |  | ||||||
|         content: 'more_horiz'; |  | ||||||
|       } |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .mat-icon { |  | ||||||
|       &.collapsed { |  | ||||||
|         @include rotate(0deg); |  | ||||||
|       } |  | ||||||
| 
 |  | ||||||
|       &:not(.collapsed) { |  | ||||||
|         @include rotate(90deg); |  | ||||||
|       } |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     ul.toc-list { |  | ||||||
|       list-style-type: none; |  | ||||||
|       margin: 0; |  | ||||||
|       padding: 0 8px 0 0; |  | ||||||
| 
 |  | ||||||
|       @media (max-width: 800px) { |  | ||||||
|         width: auto; |  | ||||||
|       } |  | ||||||
| 
 |  | ||||||
|       li { |  | ||||||
|         box-sizing: border-box; |  | ||||||
|         @include font-size(12); |  | ||||||
|         @include line-height(16); |  | ||||||
|         padding: 3px 0 3px 12px; |  | ||||||
|         position: relative; |  | ||||||
|         transition: all 0.3s ease-in-out; |  | ||||||
| 
 |  | ||||||
|         &.h1:after { |  | ||||||
|           content: ''; |  | ||||||
|           display: block; |  | ||||||
|           height: 1px; |  | ||||||
|           width: 40%; |  | ||||||
|           margin: 7px 0 4px 0; |  | ||||||
|           background: $lightgray; |  | ||||||
|           clear: both; |  | ||||||
|         } |         } | ||||||
|  |       } | ||||||
| 
 | 
 | ||||||
|         &.h3 { |       &.active { | ||||||
|           padding-left: 24px; |         * { | ||||||
|         } |           color: $blue; | ||||||
|  |           font-weight: 500; | ||||||
| 
 | 
 | ||||||
|         a { |           &:before { | ||||||
|           color: lighten($darkgray, 10); |             content: ''; | ||||||
|           overflow: visible; |             border-radius: 50%; | ||||||
|           @include font-size(12); |             left: -3px; | ||||||
|           display: table-cell; |             top: 12px; | ||||||
|         } |             background: $blue; | ||||||
| 
 |             position: absolute; | ||||||
|         &:hover { |             width: 6px; | ||||||
|           * { |             height: 6px; | ||||||
|             color: $accentblue; |  | ||||||
|           } |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         &.active { |  | ||||||
|           * { |  | ||||||
|             color: $blue; |  | ||||||
|             font-weight: 500; |  | ||||||
| 
 |  | ||||||
|             &:before { |  | ||||||
|               content: ''; |  | ||||||
|               border-radius: 50%; |  | ||||||
|               left: -3px; |  | ||||||
|               top: 12px; |  | ||||||
|               background: $blue; |  | ||||||
|               position: absolute; |  | ||||||
|               width: 6px; |  | ||||||
|               height: 6px; |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|       &:not(.embedded) li { |     &:not(.embedded) li { | ||||||
|         &:before { |       &:before { | ||||||
|           border-left: 1px solid $lightgray; |         border-left: 1px solid $lightgray; | ||||||
|           bottom: 0; |         bottom: 0; | ||||||
|           content: ''; |         content: ''; | ||||||
|           left: 0; |         left: 0; | ||||||
|           position: absolute; |         position: absolute; | ||||||
|           top: 0; |         top: 0; | ||||||
|         } |       } | ||||||
| 
 | 
 | ||||||
|         &:first-child:before { |       &:first-child:before { | ||||||
|           top: 13px; |         top: 13px; | ||||||
|         } |       } | ||||||
| 
 | 
 | ||||||
|         &:last-child:before { |       &:last-child:before { | ||||||
|           bottom: calc(100% - 14px); |         bottom: calc(100% - 14px); | ||||||
|         } |       } | ||||||
| 
 | 
 | ||||||
|         &:not(.active):hover a:before { |       &:not(.active):hover a:before { | ||||||
|           content: ''; |         content: ''; | ||||||
|           border-radius: 50%; |         border-radius: 50%; | ||||||
|           left: -3px; |         left: -3px; | ||||||
|           top: 12px; |         top: 12px; | ||||||
|           background: $lightgray; |         background: $lightgray; | ||||||
|           position: absolute; |         position: absolute; | ||||||
|           width: 6px; |         width: 6px; | ||||||
|           height: 6px; |         height: 6px; | ||||||
|         } |  | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user