Projet

Général

Profil

0001-misc-add-class-to-limit-textual-element-to-screenrea.patch

Frédéric Péters, 11 mai 2020 09:40

Télécharger (964 octets)

Voir les différences:

Subject: [PATCH] misc: add class to limit textual element to screenreaders
 (#42692)

 gadjo/static/css/_utils.scss | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
gadjo/static/css/_utils.scss
21 21
    @return #ffffff;
22 22
  }
23 23
}
24

  
25
// Only display content to screen readers
26
@mixin sr-only {
27
	position: absolute !important;
28
	width: 1px !important;
29
	height: 1px !important;
30
	padding: 0 !important;
31
	margin: -1px !important;
32
	overflow: hidden !important;
33
	clip: rect(0, 0, 0, 0) !important;
34
	white-space: nowrap !important;
35
	border: 0 !important;
36
}
37

  
38
.sr-only {
39
	@include sr-only();
40
}
24
-