-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathstyles.css
172 lines (143 loc) · 4.75 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
* Ally css.
*/
/* Initially, all ally elements are all hidden until Ally flips them on with an "ally-active" CSS class. */
.filter-ally-wrapper .ally-feedback,
.filter-ally-wrapper .ally-download,
.filter-ally-wrapper .ally-image-cover {
display: none;
}
.filter-ally-wrapper .ally-download.ally-active,
.filter-ally-wrapper .ally-feedback.ally-active,
.filter-ally-wrapper .ally-image-cover.ally-active {
display: inline-block;
}
/* Links to ally feedback and download menu. */
.filter-ally-wrapper .ally-actions a[data-ally-file-id] {
display: block;
margin: 0 2.5px;
}
.filter-ally-wrapper .ally-actions a[data-ally-file-id]:hover {
-webkit-transform: scale(1.2);
-moz-transform: scale(1.2);
-ms-transform: scale(1.2);
-o-transform: scale(1.2);
transform: scale(1.2);
}
/* Ally icons - 20x20. */
.filter-ally-wrapper .ally-actions img {
width: 20px;
height: 20px;
}
.filter-ally-wrapper .ally-feedback {
vertical-align: text-bottom; /* Fix aspect ratio issue with icon. */
}
/*
* Ally for images.
*/
/* Ally image cover. */
.filter-ally-wrapper .ally-image-cover {
position: absolute;
z-index: 1;
}
.filter-ally-wrapper .ally-image-cover .ally-image-seizure-guard {
width: 100%;
height: 100%;
}
/* "ally-feedback" items for embedded image overlays cannot be display: none because they need to retain their
dimensions for placement. Instead, we make them invisible and place them behind the image so they don't obstruct
anything until they are "active". */
.filter-ally-wrapper.ally-image-wrapper .ally-actions .ally-feedback {
position: absolute;
display: block;
width: 30px;
height: 30px;
background-color: #FFF;
visibility: hidden;
z-index: -1;
}
.filter-ally-wrapper.ally-image-wrapper .ally-actions .ally-feedback.ally-active {
visibility: visible;
z-index: 2;
}
.filter-ally-wrapper.ally-image-wrapper .ally-actions .ally-feedback a {
display: inline-block;
width: 100%;
height: 100%;
padding: 5px;
}
.filter-ally-wrapper.ally-image-wrapper .ally-actions .ally-feedback img {
vertical-align: baseline;
}
.filter-ally-wrapper.ally-image-wrapper .ally-accessibility-score-indicator {
box-sizing: border-box;
}
/*
* CSS for behat tests.
*/
/* CSS required for testing purposes only */
body.behat-site .filter-ally-wrapper .ally-image-cover,
body.behat-site .filter-ally-wrapper .ally-actions .ally-feedback,
body.behat-site .filter-ally-wrapper .ally-actions .ally-download {
border: 4px solid red;
display: inline-block;
}
body.behat-site .filter-ally-wrapper.ally-image-wrapper .ally-actions .ally-feedback {
visibility: visible;
z-index: 2;
}
@media (min-width: 767px) {
body:not(.snap-resource-card) .mform .form-group:has(.ally-score-meter-container.ally-add-tooltip) {
padding-top: 3rem!important; /* Avoid overlap with ally score indicator */
}
}
/* Allow the clickable Ally icons to be clicked, on the activities of a Course section. */
body.path-course li.activity.modtype_resource span.ally-actions {
position: relative;
z-index: 1;
}
.ally-wysiwyg-feedback-tinymce .ally-score-meter-container-toolbar {
/* Place ally toolbar (feedback indicator) outside and above the tiny mce editor */
/* ALLY-11 - fix css bugs as part of Moodle 4.3 upgrade */
overflow-y: visible;
}
.filter-ally-wrapper.ally-anchor-wrapper {
display: inline-block;
}
.filter-ally-wrapper.ally-anchor-wrapper .ally-actions {
display: inline-flex;
}
/* =====================================================*/
/* ALLY-11 - fix css bugs as part of Moodle 4.3 upgrade */
/*
* Fixes the top buttons appearing behind the accessibility header when
viewing the full-screen information.
* This seems to be caused by the Moodle message appearing at the
bottom of the editor when a draft is restored.
*/
.ally-wysiwyg-feedback-atto-fullscreen {
overflow-y: hidden !important;
}
/* End ALLY-11 fixes */
/* =====================================================*/
/* =====================================================*/
/* ALLY-14 - fix css bugs as part of Moodle 4.4 upgrade */
body .form-group.row.fitem .ally-score-meter-container-toolbar .ally-score-meter-container-toolbar {
position: relative;
padding: 0;
}
.ally-score-meter-container-toolbar > button.ally-score-meter-container {
top: 0 !important;
padding: 0!important;
margin-bottom: -2px !important;
}
.tox.tox-tinymce.ally-wysiwyg-feedback-tinymce .ally-score-meter-container-toolbar {
margin-top: -11px;
top: -8px
}
.tox.tox-tinymce.ally-wysiwyg-feedback-tinymce {
/* Required to restore the space destroyed by negative margin and top in previous selector code */
margin-top: 16px;
}
/* End ALLY-14 fixes */
/* =====================================================*/