ode-csslib 4.0.13-develop-b2school.202306281712 → 4.1.1-dev.202308281558

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- entcore-css-lib=4.0-dev-SNAPSHOT 28/06/2023 17:13:18
1
+ entcore-css-lib=4.1-dev-SNAPSHOT 28/08/2023 15:58:28
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.0.13-develop-b2school.202306281712",
3
+ "version": "4.1.1-dev.202308281558",
4
4
  "description": "Open Digital Education Legacy CSS framework",
5
5
  "scripts": {
6
6
  "copy-fonts": "cpr node_modules/entcore-generic-icons/fonts/ assets/fonts/generic-icons/ -o",
@@ -156,9 +156,9 @@
156
156
  @include grid-cell-left(12);
157
157
  }
158
158
 
159
- /* .zero-mobile {
159
+ .zero-mobile {
160
160
  display: none !important;
161
- } */
161
+ }
162
162
 
163
163
  .one-mobile {
164
164
  @include grid-cell-width(1);
@@ -47,7 +47,7 @@ calendar .week-switcher .date-picker-icon {
47
47
  margin-left: 0 !important;
48
48
  }
49
49
 
50
- .calendar {
50
+ .cdt {
51
51
  .week-switcher {
52
52
  .date-picker-icon {
53
53
  left:42px;
@@ -58,7 +58,7 @@
58
58
  fill: white;
59
59
  }
60
60
  }
61
- &.REJECTED, &.CANCELED {
61
+ &.REJECTED, &.CANCELED, &.ARCHIVED {
62
62
  background: $red;
63
63
  >i:after{
64
64
  content: '\e866';
@@ -13,7 +13,7 @@
13
13
  position: sticky;
14
14
  background: linear-gradient(to bottom right, $formulaire-grey-lighter, $formulaire-grey-very-light) fixed;
15
15
  z-index: 3;
16
- top: 64px;
16
+ top: 0;
17
17
 
18
18
  @media screen and (max-width: $formulaire-screen-tablet) {
19
19
  top: 49px;
@@ -30,6 +30,7 @@
30
30
  flex-direction: column;
31
31
  align-content: space-between;
32
32
 
33
+
33
34
  .question-item .domino:not(.disabled) > .grab,
34
35
  .section-top:not(.disabled) > .grab {
35
36
  cursor: grab;
@@ -117,6 +118,22 @@
117
118
  display: flex;
118
119
  align-items: center;
119
120
 
121
+ .form-image {
122
+ position: relative;
123
+ margin: 15px 10px 15px 10px;
124
+ i.i-close {
125
+ position: absolute;
126
+ top: -20px;
127
+ left: -20px;
128
+ margin: auto 1%;
129
+ }
130
+ &-upload {
131
+ display: flex;
132
+ width: 25%;
133
+ margin: 10px;
134
+ }
135
+ }
136
+
120
137
  select {
121
138
  margin-left: 6%;
122
139
  }
@@ -131,9 +148,6 @@
131
148
  }
132
149
  }
133
150
 
134
- i.i-cancel {
135
- margin: auto 1%;
136
- }
137
151
  }
138
152
 
139
153
  textarea {
@@ -148,6 +162,39 @@
148
162
  flex-direction: column;
149
163
  align-items: center;
150
164
  }
165
+
166
+ question-type-singleanswer, question-type-multipleanswer {
167
+
168
+ /* Ajuster la taille de <image-select> */
169
+ .image-select {
170
+ width: 100px;
171
+ height: 100px;
172
+ }
173
+
174
+ /* Ajuster la taille de l'image dans la directive <image-select> */
175
+ .image-select .initialFloat.cell img {
176
+ width: 100px;
177
+ height: 100px;
178
+ }
179
+
180
+ /* Ajuster la taille de l'image affichée dans la balise <img> */
181
+ img {
182
+ width: 100px;
183
+ height: 100px;
184
+ object-fit: cover;
185
+ }
186
+
187
+ .image-container {
188
+ position: relative;
189
+ width: 125px;
190
+ }
191
+
192
+ .image-container .i-close {
193
+ position: absolute;
194
+ top: 0;
195
+ right: 0;
196
+ }
197
+ }
151
198
  }
152
199
 
153
200
  .question-bottom, .section-bottom {
@@ -236,4 +236,15 @@ i {
236
236
  font-family: 'formulaire-mdi';
237
237
  content: "\F99A";
238
238
  }
239
+
240
+ &.i-image::before {
241
+ font-family: 'formulaire-mdi';
242
+ content: "\F2E9";
243
+ color: $formulaire-orange;
244
+ }
245
+
246
+ &.i-close::before {
247
+ font-family: 'formulaire-mdi';
248
+ content: "\F159";
249
+ }
239
250
  }
@@ -18,7 +18,7 @@
18
18
  &-main {
19
19
  display: flex;
20
20
  flex-direction: column;
21
- font-size: 12px;
21
+ font-size: 14px;
22
22
 
23
23
  textarea {
24
24
  width: 100%;
@@ -50,6 +50,44 @@
50
50
  justify-content: end !important;
51
51
  }
52
52
  }
53
+
54
+ .image-container {
55
+ display: flex;
56
+ flex-direction: row;
57
+ justify-content: space-around;
58
+ flex-flow: wrap;
59
+
60
+ img {
61
+ width: 150px;
62
+ height: 150px;
63
+ object-fit: cover;
64
+ margin-top: 15px;
65
+ }
66
+
67
+ input[type="text"] {
68
+ margin-top: 10px;
69
+ }
70
+
71
+ .choice-image {
72
+ display: flex;
73
+ flex-direction: column;
74
+ margin-bottom: 15px;
75
+
76
+ .choice-text {
77
+ display: flex;
78
+ align-items: center;
79
+
80
+ .notCustomChoice {
81
+ height: 27.89px; // Too match the height of ODE inout text
82
+ }
83
+
84
+ .customInput {
85
+ margin-top: 0;
86
+ margin-bottom: 0;
87
+ }
88
+ }
89
+ }
90
+ }
53
91
  }
54
92
 
55
93
  .respond-question .section, .result-element .section {
@@ -33,13 +33,13 @@ body.mediacentre-v2 {
33
33
  }
34
34
 
35
35
  section.main {
36
- top: 64px !important;
36
+ top: 0px !important;
37
37
  padding: 0 !important;
38
38
  }
39
39
 
40
40
  @media (max-width: $tablette) {
41
41
  section.main {
42
- top: 50px !important;
42
+ top: 0px !important;
43
43
  }
44
44
  }
45
45