Change css properties for .invisible class (wcag compatible)
This commit is contained in:
		
							parent
							
								
									d66717a138
								
							
						
					
					
						commit
						26cd6781c4
					
				| @ -2,7 +2,6 @@ | ||||
| /* More info at: */ | ||||
| /* https://gitlab.com/idotj/mastodon-embed-feed-timeline */ | ||||
| 
 | ||||
| 
 | ||||
| /* Main container */ | ||||
| .mt-timeline { | ||||
|   height: calc(100% - 4rem); | ||||
| @ -26,7 +25,12 @@ | ||||
| } | ||||
| 
 | ||||
| .mt-body .invisible { | ||||
|   display: none; | ||||
|   font-size: 0; | ||||
|   line-height: 0; | ||||
|   display: inline-block; | ||||
|   width: 0; | ||||
|   height: 0; | ||||
|   position: absolute; | ||||
| } | ||||
| 
 | ||||
| /* Toot container */ | ||||
| @ -79,8 +83,8 @@ | ||||
| .toot-text { | ||||
|   margin-bottom: 0.25rem; | ||||
| } | ||||
| .toot-text .ellipsis::after{ | ||||
|   content:'...'; | ||||
| .toot-text .ellipsis::after { | ||||
|   content: "..."; | ||||
| } | ||||
| .mt-error { | ||||
|   color: darkred; | ||||
| @ -93,12 +97,12 @@ | ||||
| .toot-poll { | ||||
|   margin-bottom: 0.25rem; | ||||
| } | ||||
| .toot-poll ul{ | ||||
| .toot-poll ul { | ||||
|   list-style: none; | ||||
|   padding: 0; | ||||
|   margin: 0; | ||||
| } | ||||
| .toot-poll ul li:not(:last-child){ | ||||
| .toot-poll ul li:not(:last-child) { | ||||
|   margin-bottom: 0.25rem; | ||||
| } | ||||
| .toot-poll ul li:before { | ||||
| @ -130,18 +134,18 @@ | ||||
|   left: 0; | ||||
| } | ||||
| .img-ratio14_7 { | ||||
| position: relative; | ||||
| padding-top: 48.95%; /* 14:7 */ | ||||
| width: 100%; | ||||
|   position: relative; | ||||
|   padding-top: 48.95%; /* 14:7 */ | ||||
|   width: 100%; | ||||
| } | ||||
| .img-ratio14_7 > img { | ||||
| width: 100%; | ||||
| height: auto; | ||||
| position: absolute; | ||||
| top: 50%; | ||||
| left: 50%; | ||||
| transform: translate(-50%, -50%); | ||||
| text-align: center; | ||||
|   width: 100%; | ||||
|   height: auto; | ||||
|   position: absolute; | ||||
|   top: 50%; | ||||
|   left: 50%; | ||||
|   transform: translate(-50%, -50%); | ||||
|   text-align: center; | ||||
| } | ||||
| 
 | ||||
| /* Date */ | ||||
| @ -161,7 +165,7 @@ text-align: center; | ||||
| } | ||||
| 
 | ||||
| /* See more btn */ | ||||
| .mt-seeMore{ | ||||
| .mt-seeMore { | ||||
|   margin: 2rem auto; | ||||
|   padding: 0 2rem; | ||||
|   text-align: center; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 idotj
						idotj