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); | ||||||
| @ -19,14 +18,19 @@ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .mt-body { | .mt-body { | ||||||
| 	height: 100%; |   height: 100%; | ||||||
| 	overflow-y: auto; |   overflow-y: auto; | ||||||
|   white-space: pre-wrap; |   white-space: pre-wrap; | ||||||
|   word-wrap: break-word; |   word-wrap: break-word; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .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 */ | ||||||
| @ -152,30 +156,30 @@ text-align: center; | |||||||
| 
 | 
 | ||||||
| /* Loading-spinner */ | /* Loading-spinner */ | ||||||
| .loading-spinner { | .loading-spinner { | ||||||
| 	height: 100%; |   height: 100%; | ||||||
|     background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' viewBox='0 0 128 128' %3E%3Cg%3E%3Cpath d='M64 128A64 64 0 0 1 18.34 19.16L21.16 22a60 60 0 1 0 52.8-17.17l.62-3.95A64 64 0 0 1 64 128z' fill='%23404040'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='1000ms' repeatCount='indefinite'%3E%3C/animateTransform%3E%3C/g%3E%3C/svg%3E"); |   background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' viewBox='0 0 128 128' %3E%3Cg%3E%3Cpath d='M64 128A64 64 0 0 1 18.34 19.16L21.16 22a60 60 0 1 0 52.8-17.17l.62-3.95A64 64 0 0 1 64 128z' fill='%23404040'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='1000ms' repeatCount='indefinite'%3E%3C/animateTransform%3E%3C/g%3E%3C/svg%3E"); | ||||||
|     background-repeat: no-repeat; |   background-repeat: no-repeat; | ||||||
|     background-position: center center; |   background-position: center center; | ||||||
|     background-color: transparent; |   background-color: transparent; | ||||||
|     background-size: min(2.5rem, calc(100% - 0.5rem)); |   background-size: min(2.5rem, calc(100% - 0.5rem)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* 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; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* Hidden element */ | /* Hidden element */ | ||||||
| .visually-hidden { | .visually-hidden { | ||||||
| 	position: absolute !important; |   position: absolute !important; | ||||||
| 	width: 1px !important; |   width: 1px !important; | ||||||
| 	height: 1px !important; |   height: 1px !important; | ||||||
| 	padding: 0 !important; |   padding: 0 !important; | ||||||
| 	margin: -1px !important; |   margin: -1px !important; | ||||||
| 	overflow: hidden !important; |   overflow: hidden !important; | ||||||
| 	clip: rect(0, 0, 0, 0) !important; |   clip: rect(0, 0, 0, 0) !important; | ||||||
| 	white-space: nowrap !important; |   white-space: nowrap !important; | ||||||
| 	border: 0 !important; |   border: 0 !important; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 idotj
						idotj