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