ode-csslib 4.0.3 → 4.0.5

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.
Files changed (27) hide show
  1. package/dist/index.css +5 -5
  2. package/dist/index.css.map +1 -1
  3. package/dist/version.txt +1 -1
  4. package/package.json +2 -2
  5. package/scss/_app.scss +17 -0
  6. package/scss/icons/_pictos.scss +37 -1
  7. package/scss/modules/_lists.scss +4 -0
  8. package/scss/modules/_modules.scss +1 -0
  9. package/scss/modules/_profil.scss +85 -0
  10. package/scss/specifics/calendar/_calendar.scss +14 -5
  11. package/scss/specifics/calendar/components/_icons.scss +12 -0
  12. package/scss/specifics/calendar/components/sidebar.scss +19 -0
  13. package/scss/specifics/class-admin/components/_choose-class.scss +0 -5
  14. package/scss/specifics/competences/components/_slider.scss +2 -4
  15. package/scss/specifics/exercizer/_exercizer.scss +0 -3
  16. package/scss/specifics/formulaire/_formulaire.scss +3 -3
  17. package/scss/specifics/formulaire/components/_dominos.scss +2 -2
  18. package/scss/specifics/formulaire/components/_edit-form.scss +5 -1
  19. package/scss/specifics/formulaire/components/_index.scss +2 -1
  20. package/scss/specifics/formulaire/components/containers/_index.scss +1 -0
  21. package/scss/specifics/formulaire/components/containers/cursor/_index.scss +1 -0
  22. package/scss/specifics/formulaire/components/containers/cursor/_question-type-cursor.scss +202 -0
  23. package/scss/specifics/incidents/components/incidents/_sniplets.scss +2 -2
  24. package/scss/specifics/magneto/components/_index.scss +1 -0
  25. package/scss/specifics/magneto/components/_toasts.scss +103 -0
  26. package/scss/specifics/presences/components/containers/_register.scss +5 -4
  27. package/scss/specifics/presences/components/material/_radio.scss +3 -3
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- entcore-css-lib=4.0.2 09/12/2022 14:24:22
1
+ entcore-css-lib=4.0.2 13/01/2023 16:11:43
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
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",
@@ -43,7 +43,7 @@
43
43
  "sass": "^1.49.9"
44
44
  },
45
45
  "dependencies": {
46
- "entcore-generic-icons": "git+https://github.com/opendigitaleducation/generic-icons.git"
46
+ "entcore-generic-icons": "git+https://github.com/opendigitaleducation/generic-icons.git#master"
47
47
  },
48
48
  "files": ["assets", "scss", "dist"]
49
49
  }
package/scss/_app.scss CHANGED
@@ -73,6 +73,23 @@ html.print {
73
73
  cursor: pointer;
74
74
  }
75
75
 
76
+ .back-lightbox {
77
+ margin: 0;
78
+ display: flex;
79
+ color: #4A4A4A;
80
+ align-items: center;
81
+
82
+ .icon-left {
83
+ fill: #4A4A4A;
84
+ margin-right: 5px;
85
+ margin-top: 3px;
86
+ }
87
+
88
+ span {
89
+ font-size: 14px;
90
+ }
91
+ }
92
+
76
93
  .lightbox-view {
77
94
  @include lightbox-window;
78
95
  width: 800px;
@@ -528,7 +528,7 @@ i.website,
528
528
  i.website-large {
529
529
  @include fonticon;
530
530
  &::before {
531
- content: "\e94a";
531
+ content: "\e90a";
532
532
  }
533
533
  }
534
534
 
@@ -587,3 +587,39 @@ i.recurrent {
587
587
  content: "\e958";
588
588
  }
589
589
  }
590
+
591
+ i.forms,
592
+ i.forms-large,
593
+ i.formulaire,
594
+ i.formulaire-large {
595
+ @include fonticon;
596
+ &::before {
597
+ content: "\e95c";
598
+ }
599
+ }
600
+
601
+ i.presences,
602
+ i.presences-large,
603
+ i.absences,
604
+ i.absences-large {
605
+ @include fonticon;
606
+ &::before {
607
+ content: "\e95d";
608
+ }
609
+ }
610
+
611
+ i.competences,
612
+ i.competences-large {
613
+ @include fonticon;
614
+ &::before {
615
+ content: "\e927";
616
+ }
617
+ }
618
+
619
+ i.web-conference,
620
+ i.web-conference-large {
621
+ @include fonticon;
622
+ &::before {
623
+ content: "\e957";
624
+ }
625
+ }
@@ -1,3 +1,7 @@
1
+ .list-ctn {
2
+ overflow-x: scroll;
3
+ }
4
+
1
5
  .list-view {
2
6
  margin-top: 15px;
3
7
 
@@ -66,6 +66,7 @@
66
66
  @import "pick-files";
67
67
  @import "pills";
68
68
  @import "popover";
69
+ @import "profil";
69
70
  @import "progress-bar";
70
71
  @import "pull-down-menu";
71
72
  @import "pulsar";
@@ -0,0 +1,85 @@
1
+ @media screen and (min-width: $wide-screen) {
2
+ .profil-flex {
3
+ .email-ellipsis {
4
+ @include cell-ellipsis;
5
+ max-width: 410px;
6
+ }
7
+ }
8
+ }
9
+
10
+ @media screen and (min-width: $fat-tablette) and (max-width: $wide-screen) {
11
+ .profil-flex {
12
+ .email-ellipsis {
13
+ @include cell-ellipsis;
14
+ max-width: 310px;
15
+ }
16
+ }
17
+ }
18
+
19
+ @media screen and (min-width: $tablette) and (max-width: $fat-tablette) {
20
+ .profil-flex {
21
+ .email-ellipsis {
22
+ @include cell-ellipsis;
23
+ max-width: 180px;
24
+ }
25
+ }
26
+ }
27
+
28
+ @media screen and (min-width: $fat-mobile) and (max-width: $tablette) {
29
+ .profil-flex {
30
+ .email-ellipsis {
31
+ @include cell-ellipsis;
32
+ max-width: 250px;
33
+ }
34
+ }
35
+ }
36
+
37
+ @media screen and (max-width: $fat-mobile) {
38
+ .profil-flex {
39
+ .email-ellipsis {
40
+ @include cell-ellipsis;
41
+ max-width: 150px;
42
+ }
43
+ }
44
+ }
45
+
46
+ .h2-hobbies {
47
+ margin-bottom: 10px!important;
48
+ }
49
+
50
+ .bloc-hobbies {
51
+ display: flex;
52
+ align-items: center;
53
+ margin-bottom: 15px;
54
+ }
55
+
56
+ .profil-flex {
57
+ display: flex;
58
+ justify-content: space-between;
59
+ align-items: center;
60
+
61
+ .flex-flow {
62
+ flex-flow: wrap;
63
+ }
64
+
65
+ em {
66
+ color: #8c939e;
67
+ }
68
+
69
+ .one {
70
+ display: flex;
71
+ justify-content: center;
72
+ }
73
+
74
+ .email-ellipsis {
75
+ margin-right: 20px;
76
+ }
77
+
78
+ .email-ellipsis + .icon-verified {
79
+ margin-right: 20px;
80
+ }
81
+
82
+ input[type=text]:placeholder-shown {
83
+ text-overflow: ellipsis;
84
+ }
85
+ }
@@ -1,10 +1,19 @@
1
- body.calendar {
1
+ @font-face {
2
+ font-family: 'calendar-material-icons';
3
+ src: url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.eot');
4
+ src: url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.eot') format('embedded-opentype'),
5
+ url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.woff2') format('woff2'),
6
+ url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.woff2') format('woff'),
7
+ url('/calendar/public/font/material-design/fonts/materialdesignicons-webfont.ttf') format('truetype');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
2
11
 
12
+ body.calendar {
3
13
  @import "mixins";
4
- @import 'components/index';
14
+ @import "components/index";
5
15
 
6
16
  .calendar.widget {
7
-
8
17
  span.last-events-widget {
9
18
  white-space: nowrap;
10
19
  overflow: hidden;
@@ -35,5 +44,5 @@ body.calendar {
35
44
  }
36
45
 
37
46
  calendar .week-switcher .date-picker-icon {
38
- margin-left: 0;
39
- }
47
+ margin-left: 0 !important;
48
+ }
@@ -1,9 +1,21 @@
1
1
  i {
2
2
  &.attachment::before {
3
3
  content: "\e805";
4
+ font-family: 'generic-icons';
4
5
  }
5
6
 
6
7
  &.cross::before {
7
8
  content: "\e866";
9
+ font-family: 'generic-icons';
10
+ }
11
+
12
+ &.sync::before {
13
+ content: "\F04E6";
14
+ font-family: 'calendar-material-icons';
15
+ }
16
+
17
+ &.loading::before {
18
+ content: '\e85a';
19
+ font-family: 'generic-icons';
8
20
  }
9
21
  }
@@ -8,6 +8,21 @@
8
8
  font-weight: normal;
9
9
  color: $calendar-white;
10
10
  padding-left: 10px !important;
11
+
12
+ &-sync {
13
+ transform: rotate(-45deg);
14
+ opacity: 1 !important;
15
+ }
16
+
17
+ &-sync-in-progress {
18
+ text-indent: unset !important;
19
+ opacity: 1 !important;
20
+ }
21
+
22
+ &-center-text {
23
+ text-align: center;
24
+ }
25
+
11
26
  }
12
27
  }
13
28
 
@@ -52,6 +67,10 @@
52
67
  top: 100%;
53
68
  left: 15%;
54
69
  }
70
+
71
+ &-text {
72
+ font-weight: initial !important;
73
+ }
55
74
  }
56
75
 
57
76
  }
@@ -1,11 +1,6 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');
2
2
 
3
3
  .choose-class {
4
- h2 {
5
- color: $grey-black;
6
- font-family: 'Comfortaa';
7
- }
8
-
9
4
  .step-hint {
10
5
  color: $grey-black;
11
6
  line-height: 24px;
@@ -140,7 +140,7 @@ body.vsco--global {
140
140
  background-color: $primary;
141
141
  z-index: 3;
142
142
  @include rounded(calc($handleSize/2));
143
- @include box-shadow(rgba(0, 0, 0, 0.26) 0 1px 3px);
143
+ @include box-shadow(rgba(0,0,0,0.26) 0 1px 3px);
144
144
  // -webkit-transition:all linear 0.15s;
145
145
  // -moz-transition:all linear 0.15s;
146
146
  // -o-transition:all linear 0.15s;
@@ -206,9 +206,7 @@ body.vsco--global {
206
206
  position: absolute;
207
207
  top: 0;
208
208
  left: 0;
209
- margin-left: calc(
210
- $handleSize / 2 - $ticksWidth / 2
211
- ); // for centering*padding:
209
+ margin-left: calc($handleSize / 2 - $ticksWidth / 2); // for centering*padding:
212
210
  padding: 0;
213
211
  &.rz-selected {
214
212
  background: $selectedTicksColor;
@@ -1,5 +1,3 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap");
2
-
3
1
  body.exercizer {
4
2
  -webkit-text-size-adjust: 100%;
5
3
  -ms-text-size-adjust: 100%;
@@ -92,7 +90,6 @@ body.exercizer {
92
90
 
93
91
  .lightbox > .content h2 {
94
92
  font-size: 1.125rem;
95
- color: $grey-black;
96
93
  }
97
94
 
98
95
  button {
@@ -330,6 +330,6 @@ body.formulaire section.main {
330
330
  }
331
331
  }
332
332
 
333
- body.formulaire section.lightbox {
334
- z-index: 10003;
335
- }
333
+ popover {
334
+ z-index: 2;
335
+ }
@@ -29,11 +29,11 @@
29
29
  align-items: center;
30
30
  justify-content: center;
31
31
  background: $formulaire-white;
32
-
32
+
33
33
  &.empty {
34
34
  background: $formulaire-blue;
35
35
  }
36
-
36
+
37
37
  img {
38
38
  max-height: 135px;
39
39
  }
@@ -12,8 +12,12 @@
12
12
  &-fixed {
13
13
  position: sticky;
14
14
  background: linear-gradient(to bottom right, $formulaire-grey-lighter, $formulaire-grey-very-light) fixed;
15
+ z-index: 3;
15
16
  top: 64px;
16
- z-index: 10003;
17
+
18
+ @media screen and (max-width: $formulaire-screen-tablet) {
19
+ top: 49px;
20
+ }
17
21
  }
18
22
 
19
23
  &-title {
@@ -8,4 +8,5 @@
8
8
  @import "prop-form";
9
9
  @import "respond-question";
10
10
  @import "result-form";
11
- @import "sortable";
11
+ @import "sortable";
12
+ @import 'containers/index';
@@ -0,0 +1 @@
1
+ @import 'cursor/index';
@@ -0,0 +1 @@
1
+ @import './question-type-cursor';
@@ -0,0 +1,202 @@
1
+ .formulaire-cursor {
2
+
3
+ &-form {
4
+ display: flex;
5
+ flex-direction: column;
6
+
7
+ .cursor-line {
8
+ display: flex;
9
+
10
+ @media screen and (max-width: $formulaire-screen-tablet) {
11
+ flex-direction: column;
12
+ margin-top: 3%;
13
+ }
14
+
15
+ .cursor-value-min, .cursor-value-max, .cursor-value-step {
16
+ display: flex;
17
+
18
+ @media screen and (min-width: $formulaire-screen-tablet) {
19
+ width: 20%;
20
+ }
21
+ }
22
+ }
23
+
24
+ em {
25
+ color: $formulaire-red;
26
+ }
27
+
28
+ input[type="number"] {
29
+ width: 40px;
30
+ height: 20px;
31
+ text-align: center;
32
+ -moz-appearance: textfield;
33
+ margin-left: 10px;
34
+ }
35
+
36
+ input::-webkit-outer-spin-button,
37
+ input::-webkit-inner-spin-button {
38
+ -webkit-appearance: none;
39
+ margin: 0;
40
+ }
41
+ }
42
+
43
+ &-input {
44
+ &-wrapper {
45
+ display: flex;
46
+ justify-content: space-between;
47
+ margin-bottom: 2%;
48
+ }
49
+
50
+ &-range {
51
+ display: flex;
52
+ flex-direction: column;
53
+ flex-grow: 1;
54
+ margin: 0 2%;
55
+
56
+ .range-slider {
57
+ position: relative;
58
+
59
+ &::before {
60
+ content: var(--min);
61
+ pointer-events: none;
62
+ position: absolute;
63
+ bottom: 0;
64
+ left: 0;
65
+ }
66
+
67
+ &::after {
68
+ content: var(--max);
69
+ pointer-events: none;
70
+ position: absolute;
71
+ bottom: 0;
72
+ right: 0;
73
+ }
74
+ }
75
+
76
+ /***** Remove old Styles *****/
77
+ input[type="range"] {
78
+ -webkit-appearance: none;
79
+ appearance: none;
80
+ background: transparent;
81
+ }
82
+
83
+ /***** Track Styles *****/
84
+ /* Chrome, Safari, Opera, and Edge Chromium */
85
+ input[type="range"]::-webkit-slider-runnable-track {
86
+ background: transparent;
87
+ z-index: 5;
88
+ }
89
+
90
+ /* Firefox */
91
+ input[type="range"]::-moz-range-track {
92
+ background: transparent;
93
+ z-index: 5;
94
+ }
95
+
96
+
97
+ /***** Thumb Styles *****/
98
+ /* Chrome, Safari, Opera, and Edge Chromium */
99
+ input[type="range"]::-webkit-slider-thumb, {
100
+ -webkit-appearance: none; /* Override default look */
101
+ appearance: none;
102
+ margin-top: -4px; /* Centers thumb on the track with formula (track height in pixels / 2) - (thumb height in pixels /2) - border size*/
103
+ background-color: $formulaire-grey-very-light;
104
+ border: $formulaire-grey-dark 1px solid;
105
+ border-radius: 100px;
106
+ height: 16px;
107
+ width: 16px;
108
+ cursor: grabbing;
109
+ z-index: 2;
110
+ }
111
+
112
+ /* Firefox */
113
+ input[type="range"]::-moz-range-thumb {
114
+ background-color: $formulaire-grey-very-light;
115
+ border: $formulaire-grey-dark 1px solid;
116
+ border-radius: 100px;
117
+ height: 16px;
118
+ width: 16px;
119
+ cursor: grabbing;
120
+ z-index: 2;
121
+ }
122
+
123
+ /***** Removes default focus *****/
124
+ /* Removes default focus */
125
+ input[type="range"]:focus {
126
+ outline: none;
127
+ }
128
+
129
+ /* Chrome, Safari, Opera, and Edge Chromium */
130
+ input[type="range"]:focus::-webkit-slider-thumb {
131
+ outline: none;
132
+ }
133
+
134
+ /* Firefox */
135
+ input[type="range"]:focus::-moz-range-thumb {
136
+ outline: none;
137
+ }
138
+
139
+ /***** Pin cursor styles *****/
140
+ .pin {
141
+ position: absolute;
142
+ left: calc((((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%) - 10px);
143
+ bottom: 35px;
144
+ width: 20px;
145
+ height: 20px;
146
+ background-color: $formulaire-blue;
147
+
148
+ &-content {
149
+ text-align: center;
150
+ font-size: 10px;
151
+ color: white;
152
+ }
153
+
154
+ &::after {
155
+ position: absolute;
156
+ left: 0;
157
+ top: 20px;
158
+ width: 0;
159
+ height: 0;
160
+ border-left: 10px solid transparent;
161
+ border-right: 10px solid transparent;
162
+ border-top: 10px solid $formulaire-blue;
163
+ content: '';
164
+ }
165
+ }
166
+
167
+ /***** Progress bar styles *****/
168
+ .filler {
169
+ &::before {
170
+ position: absolute;
171
+ height: 10px;
172
+ width: calc(((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%);
173
+ bottom: 9px;
174
+ left: 3px;
175
+ background-color: $formulaire-blue;
176
+ border-radius: 5px;
177
+ content: '';
178
+ z-index: 2;
179
+ }
180
+
181
+ &::after {
182
+ position: absolute;
183
+ height: 10px;
184
+ width: calc(100% - 3px);
185
+ bottom: 8px;
186
+ left: 3px;
187
+ background-color: #efefef;
188
+ border-radius: 5px;
189
+ border: #4a4a4a 1px solid;
190
+ content: '';
191
+ z-index: 1;
192
+ }
193
+ }
194
+
195
+ &-values {
196
+ display: flex;
197
+ justify-content: space-between;
198
+ margin: 0 5px;
199
+ }
200
+ }
201
+ }
202
+ }
@@ -1,11 +1,11 @@
1
1
  &.incidents {
2
- .incident-sniplet {
2
+ .incident-sniplet {
3
3
  &-form {
4
4
  display: flex;
5
5
  align-items: center;
6
6
  button {
7
7
  background-color: $orange;
8
- margin: 0 ($spacing-M + $spacing-M);
8
+ margin: 0 calc($spacing-M + $spacing-M);
9
9
  &:disabled{
10
10
  background: $disabled-color;
11
11
  }
@@ -3,4 +3,5 @@
3
3
  @import 'switch';
4
4
  @import 'buttons';
5
5
  @import 'icons';
6
+ @import 'toasts';
6
7
  @import 'lightbox';