ode-csslib 4.0.8 → 4.0.10-dev.202304211435

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 (46) hide show
  1. package/assets/fonts/generic-icons/generic-icons.svg +2 -0
  2. package/assets/fonts/generic-icons/generic-icons.ttf +0 -0
  3. package/assets/fonts/generic-icons/generic-icons.woff +0 -0
  4. package/dist/fonts/generic-icons/generic-icons.svg +2 -0
  5. package/dist/fonts/generic-icons/generic-icons.ttf +0 -0
  6. package/dist/fonts/generic-icons/generic-icons.woff +0 -0
  7. package/dist/index.css +4 -4
  8. package/dist/index.css.map +1 -1
  9. package/dist/version.txt +1 -1
  10. package/package.json +1 -1
  11. package/scss/specifics/calendar/components/calendar.scss +6 -6
  12. package/scss/specifics/crre/_crre.scss +54 -3
  13. package/scss/specifics/crre/components/_icons.scss +16 -0
  14. package/scss/specifics/crre/components/_index.scss +2 -1
  15. package/scss/specifics/crre/fragments/_status-circle.scss +1 -1
  16. package/scss/specifics/formulaire/components/_edit-form.scss +10 -2
  17. package/scss/specifics/formulaire/components/_icon.scss +14 -1
  18. package/scss/specifics/formulaire/components/_main.scss +3 -0
  19. package/scss/specifics/formulaire/components/_result-form.scss +12 -0
  20. package/scss/specifics/formulaire/components/containers/cursor/_question-type-cursor.scss +15 -8
  21. package/scss/specifics/lystore/_lystore.scss +3 -0
  22. package/scss/specifics/lystore/components/_index.scss +5 -1
  23. package/scss/specifics/lystore/components/directives/_campaign-titles-card.scss +21 -0
  24. package/scss/specifics/lystore/components/directives/_equipment-card.scss +29 -0
  25. package/scss/specifics/lystore/components/directives/_equipment-detail.scss +11 -0
  26. package/scss/specifics/lystore/components/parameter/_parameter-active-structure.scss +16 -15
  27. package/scss/specifics/lystore/components/title/_title-delete-lightbox.scss +6 -0
  28. package/scss/specifics/magneto/components/_icons.scss +11 -0
  29. package/scss/specifics/magneto/components/containers/_board-read.scss +12 -0
  30. package/scss/specifics/magneto/components/containers/_board.scss +2 -1
  31. package/scss/specifics/magneto/components/directives/_board-manage-lightbox.scss +18 -0
  32. package/scss/specifics/magneto/components/directives/_card-collection-lightbox.scss +18 -0
  33. package/scss/specifics/magneto/components/directives/_card-comment.scss +69 -0
  34. package/scss/specifics/magneto/components/directives/_card-item-comments.scss +32 -0
  35. package/scss/specifics/magneto/components/directives/_card-list-item-options.scss +2 -2
  36. package/scss/specifics/magneto/components/directives/_card-list-item.scss +32 -27
  37. package/scss/specifics/magneto/components/directives/_card-list.scss +5 -3
  38. package/scss/specifics/magneto/components/directives/_card-manage-lightbox.scss +4 -0
  39. package/scss/specifics/magneto/components/directives/_comments-panel.scss +72 -0
  40. package/scss/specifics/magneto/components/directives/_index.scss +4 -1
  41. package/scss/specifics/magneto/components/directives/_section-list.scss +0 -1
  42. package/scss/specifics/support/_mixins.scss +48 -0
  43. package/scss/specifics/support/_support.scss +1 -0
  44. package/scss/specifics/support/generic/_edit-event.scss +73 -0
  45. package/scss/specifics/support/generic/_icons.scss +21 -0
  46. package/scss/specifics/support/generic/_index.scss +2 -0
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- entcore-css-lib=4.0.8 06/03/2023 11:15:59
1
+ entcore-css-lib=4.0.10 21/04/2023 14:35:49
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.0.8",
3
+ "version": "4.0.10-dev.202304211435",
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",
@@ -26,7 +26,7 @@
26
26
  background-color: #ec6045 !important;
27
27
  }
28
28
  .color-selector .cyan, .row .cyan , nav.vertical ul li a.cyan, .calendarTooltip>.cyan {
29
- background-color: $calendar-blue !important;
29
+ background-color: $calendar-blue;
30
30
  }
31
31
  .color-selector .grey, .row .grey, nav.vertical ul li a.grey, .calendarTooltip>.grey {
32
32
  background-color: #b7b8ba !important;
@@ -156,10 +156,14 @@ calendar {
156
156
  }
157
157
  }
158
158
 
159
- legend, .legend>.month-day, button.cyan {
159
+ legend, .legend>.month-day {
160
160
  background: $calendar-blue !important;
161
161
  }
162
162
 
163
+ button.cyan {
164
+ background: $calendar-blue;
165
+ }
166
+
163
167
  button.previous-timeslots, button.next-timeslots {
164
168
  margin-right: 0px;
165
169
  margin-left: 0px;
@@ -187,10 +191,6 @@ calendar {
187
191
  }
188
192
  }
189
193
 
190
- h1 a {
191
- color: $calendar-blue !important;
192
- }
193
-
194
194
  .top-spacing-four {
195
195
  margin-top: 0px !important;
196
196
  }
@@ -1403,13 +1403,13 @@ body.crre {
1403
1403
  color: white;
1404
1404
  }
1405
1405
 
1406
- input[type="radio"]:checked + .labeltab, {
1406
+ input[type="radio"]:checked + .labeltab {
1407
1407
  background: rgb(251, 251, 251);
1408
1408
  color: black;
1409
1409
  font-size: 18px;
1410
1410
  }
1411
1411
 
1412
- input[type="radio"]:checked + .labeltabOrder, {
1412
+ input[type="radio"]:checked + .labeltabOrder {
1413
1413
  background: rgb(251, 251, 251);
1414
1414
  color: black;
1415
1415
  font-size: 18px;
@@ -1621,7 +1621,7 @@ body.crre {
1621
1621
 
1622
1622
  .float {
1623
1623
  position: fixed;
1624
- bottom: 20px;
1624
+ bottom: 70px;
1625
1625
  right: 20px;
1626
1626
  overflow-x: hidden;
1627
1627
  overflow-y: auto;
@@ -1758,4 +1758,55 @@ body.crre {
1758
1758
  display : flex;
1759
1759
  }
1760
1760
 
1761
+ .crre {
1762
+ &-display-duplicate-basket {
1763
+ display: flex;
1764
+ flex-wrap: nowrap;
1765
+ gap: 4px;
1766
+ }
1767
+
1768
+ &-display-duplicate-basket::before {
1769
+ content: "\2022"; /* code unicode pour le point */
1770
+ margin-right: 10px;
1771
+ }
1772
+
1773
+ &-order-waiting {
1774
+ &-header {
1775
+ display: flex;
1776
+ flex-direction: row;
1777
+ justify-content: space-between;
1778
+ align-items: flex-end;
1779
+ }
1780
+
1781
+ &-table {
1782
+ &-header {
1783
+ &-column {
1784
+ display: flex;
1785
+ flex-direction: row;
1786
+ flex-wrap: wrap;
1787
+ justify-content: center;
1788
+
1789
+ &-order {
1790
+ &-icon {
1791
+ width: 30px;
1792
+ }
1793
+ }
1794
+ }
1795
+ }
1796
+ }
1797
+ }
1798
+ }
1799
+
1800
+ .crre-display-hover-element {
1801
+ .crre-hover-element {
1802
+ transition: 0.2s;
1803
+ opacity: 0;
1804
+ }
1805
+ }
1806
+
1807
+ .crre-display-hover-element:hover {
1808
+ .crre-hover-element {
1809
+ opacity: 1;
1810
+ }
1811
+ }
1761
1812
  }
@@ -0,0 +1,16 @@
1
+ i {
2
+ &.crre-mdi-arrow-down::before {
3
+ font-family: 'material-icons';
4
+ content: "\f045";
5
+ }
6
+
7
+ &.crre-mdi-arrow-up::before {
8
+ font-family: 'material-icons';
9
+ content: "\f05d";
10
+ }
11
+
12
+ &.crre-mdi-swap-vertical::before {
13
+ font-family: 'material-icons';
14
+ content: "\f4e2";
15
+ }
16
+ }
@@ -3,4 +3,5 @@
3
3
  @import 'toasts';
4
4
  @import 'search-and-select';
5
5
  @import "tabs";
6
- @import "loader";
6
+ @import "loader";
7
+ @import "icons";
@@ -35,7 +35,7 @@
35
35
  }
36
36
  }
37
37
 
38
- &.IN_PROGRESS, &.PARTIALLYVALIDED, &.PARTIALLYREJECTED, &.RESUBMIT, &.PARTIALLYRESUBMIT {
38
+ &.IN_PROGRESS, &.PARTIALLYVALIDED, &.PARTIALLYREJECTED, &.RESUBMIT, &.PARTIALLYRESUBMIT, &.PARTIALLYSENT {
39
39
  background: $yellow;
40
40
 
41
41
  > i {
@@ -105,9 +105,11 @@
105
105
  }
106
106
 
107
107
  .question-type {
108
- font-size: 12px;
108
+ question-type-date, question-type-time, question-type-file {
109
+ font-size: 12px;
110
+ }
109
111
 
110
- h4 {
112
+ h4, .add-choice {
111
113
  font-size: 16px;
112
114
  }
113
115
 
@@ -140,6 +142,12 @@
140
142
  resize: none;
141
143
  background: none;
142
144
  }
145
+
146
+ .add-choice {
147
+ display: flex;
148
+ flex-direction: column;
149
+ align-items: center;
150
+ }
143
151
  }
144
152
 
145
153
  .question-bottom, .section-bottom {
@@ -82,9 +82,17 @@ i {
82
82
  }
83
83
  }
84
84
 
85
+ &.cursor {
86
+ &-pointer {
87
+ &:hover {
88
+ cursor: pointer;
89
+ }
90
+ }
91
+ }
92
+
85
93
  // Icons content
86
94
 
87
- &.dropbtn::before{
95
+ &.dropbtn::before {
88
96
  content: '\e912';
89
97
  }
90
98
 
@@ -218,4 +226,9 @@ i {
218
226
  font-family: 'formulaire-mdi';
219
227
  content: "\F453";
220
228
  }
229
+
230
+ &.i-restore::before {
231
+ font-family: 'formulaire-mdi';
232
+ content: "\F99A";
233
+ }
221
234
  }
@@ -0,0 +1,3 @@
1
+ .margin-auto {
2
+ margin: auto;
3
+ }
@@ -98,6 +98,10 @@
98
98
  &-camembert, &-histogram {
99
99
  display: flex;
100
100
  justify-content: center;
101
+
102
+ &-cursor {
103
+ flex-direction: column;
104
+ }
101
105
  }
102
106
 
103
107
  .apexcharts-toolbar {
@@ -105,6 +109,14 @@
105
109
  }
106
110
  }
107
111
 
112
+ .custom-answers {
113
+ margin-top: 2%;
114
+
115
+ &-title {
116
+ font-style: italic;
117
+ }
118
+ }
119
+
108
120
  .buttons {
109
121
  display: flex;
110
122
  justify-content: space-between;
@@ -16,7 +16,7 @@
16
16
  display: flex;
17
17
 
18
18
  @media screen and (min-width: $formulaire-screen-tablet) {
19
- width: 20%;
19
+ width: 30%;
20
20
  }
21
21
  }
22
22
  }
@@ -44,7 +44,7 @@
44
44
  &-wrapper {
45
45
  display: flex;
46
46
  justify-content: space-between;
47
- margin-bottom: 2%;
47
+ margin: 2% 0;
48
48
  }
49
49
 
50
50
  &-label {
@@ -108,6 +108,8 @@
108
108
  height: 16px;
109
109
  width: 16px;
110
110
  cursor: grabbing;
111
+ position: relative;
112
+ bottom: -3px;
111
113
  z-index: 2;
112
114
  }
113
115
 
@@ -118,6 +120,8 @@
118
120
  height: 16px;
119
121
  width: 16px;
120
122
  cursor: grabbing;
123
+ position: relative;
124
+ bottom: -3px;
121
125
  z-index: 2;
122
126
  }
123
127
 
@@ -140,9 +144,11 @@
140
144
  /***** Pin cursor styles *****/
141
145
  .pin {
142
146
  position: absolute;
143
- left: calc((((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%) - 10px);
147
+ left: calc(((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%
148
+ - calc(((var(--value) - var(--min)) / (var(--max) - var(--min))) * 15px)
149
+ - 2px);
144
150
  bottom: 35px;
145
- width: 23px;
151
+ width: 22px;
146
152
  height: 20px;
147
153
  background-color: $formulaire-blue;
148
154
 
@@ -170,9 +176,10 @@
170
176
  &::before {
171
177
  position: absolute;
172
178
  height: 10px;
173
- width: calc(((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%);
179
+ width: calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%
180
+ - calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 15px));
174
181
  bottom: 8px;
175
- left: 3px;
182
+ left: 9px;
176
183
  background-color: $formulaire-blue;
177
184
  border-radius: 5px;
178
185
  content: '';
@@ -182,9 +189,9 @@
182
189
  &::after {
183
190
  position: absolute;
184
191
  height: 10px;
185
- width: calc(100% - 3px);
192
+ width: calc(100% - 16px);
186
193
  bottom: 8px;
187
- left: 3px;
194
+ left: 9px;
188
195
  background-color: #efefef;
189
196
  border-radius: 5px;
190
197
  content: '';
@@ -1196,6 +1196,9 @@ input[type=number].numberWithoutArrow {
1196
1196
  max-width: 300px;
1197
1197
  }
1198
1198
  }
1199
+ .initial-value-h4{
1200
+ margin-top: 10px!important;
1201
+ }
1199
1202
 
1200
1203
  tfoot .tabElem{
1201
1204
  padding: 10px;
@@ -9,4 +9,8 @@
9
9
  @import "./tabs";
10
10
  @import "./parameter/parameter";
11
11
  @import "./icons";
12
- @import "./directives/order-preview";
12
+ @import "./directives/order-preview";
13
+ @import "./directives/equipment-card";
14
+ @import "./directives/equipment-detail";
15
+ @import "./directives/campaign-titles-card";
16
+ @import "./title/title-delete-lightbox";
@@ -0,0 +1,21 @@
1
+ .campaign-titles-card{
2
+ &-elem{
3
+ margin-right: 2px;
4
+ padding: 5px 30px 5px 10px;
5
+ border-radius: 10px;
6
+ margin-bottom: 5px;
7
+ background-color: #e9ebef;
8
+ color: #8c939e;
9
+ transition: all .25s ease-in-out;
10
+ position: relative;
11
+ font-size: 12px;
12
+ font-weight: bold;
13
+ &:hover{
14
+ border: orange solid 1px;
15
+ }
16
+ &-selected {
17
+ background-color: #8c939e;
18
+ color: $white;
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,29 @@
1
+ .equipment-card{
2
+ &-status{
3
+ background-color: $white;
4
+ width: 80%;
5
+ margin-left: 10%;
6
+ border: 1px solid $black;
7
+ }
8
+ &-price-ht{
9
+ margin-bottom: 4px;
10
+ }
11
+ &-price-ttc{
12
+ color: $lystore-light-grey;
13
+ font-size: 16px;
14
+ margin-left: 5%;
15
+ margin-bottom: 4px;
16
+ }
17
+ &-tax{
18
+ color: $lystore-light-grey;
19
+ font-size: 14px;
20
+ margin-left: 5%;
21
+ margin-bottom: 4px;
22
+ }
23
+ &-equipment {
24
+ &-name {
25
+ display: block;
26
+ margin: 10px 0 5px 0;
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,11 @@
1
+ .equipment-detail{
2
+ padding : 1em;
3
+ &-recap{
4
+ &-ht{
5
+ color: $lystore-light-grey;
6
+ }
7
+ &-price-total{
8
+ margin-bottom: 0!important;
9
+ }
10
+ }
11
+ }
@@ -21,25 +21,26 @@
21
21
  }
22
22
  }
23
23
  }
24
- }
25
-
26
- .button-puce{
27
- width: 40px;
28
- height: 40px;
29
- background: #FF8500;
30
- border-radius: 15px 0 0 15px;
31
- i.param{
32
- &:before{
33
- content: '\e854';
34
- font-size: 25px;
35
- color: white;
36
- position: absolute;
37
- margin-left: 10px;
38
- margin-top: 6.5px;
24
+ & .button-puce{
25
+ width: 40px;
26
+ height: 40px;
27
+ background: #FF8500;
28
+ border-radius: 15px 0 0 15px;
29
+ i.param{
30
+ &:before{
31
+ content: '\e854';
32
+ font-size: 25px;
33
+ color: white;
34
+ position: absolute;
35
+ margin-left: 10px;
36
+ margin-top: 6.5px;
37
+ }
39
38
  }
40
39
  }
41
40
  }
42
41
 
42
+
43
+
43
44
  &-table::-webkit-scrollbar{
44
45
  width: 9px;
45
46
  background-color: #F5F5F5;
@@ -0,0 +1,6 @@
1
+ .title-delete-lightbox{
2
+ &-ul{
3
+ margin-top: 4px;
4
+ margin-bottom: 1em;
5
+ }
6
+ }
@@ -219,4 +219,15 @@ i {
219
219
  font-family: 'magneto-mdi';
220
220
  content: '\F0009';
221
221
  }
222
+
223
+ &.magneto-comment-outline::before {
224
+ font-family: 'magneto-mdi';
225
+ content: '\F0182';
226
+ }
227
+
228
+ &.magneto-close::before {
229
+ font-family: 'magneto-mdi';
230
+ content: '\F0156';
231
+ }
232
+
222
233
  }
@@ -27,6 +27,12 @@
27
27
  right: 20px;
28
28
  z-index: 1;
29
29
  color: $magneto-black;
30
+
31
+ &:before {
32
+ background-color: $magneto-white;
33
+ border-radius: 50%;
34
+ opacity: 0.9;
35
+ }
30
36
  }
31
37
 
32
38
  .nav-left {
@@ -36,6 +42,12 @@
36
42
  left: 20px;
37
43
  z-index: 1;
38
44
  color: $magneto-black;
45
+
46
+ &:before {
47
+ background-color: $magneto-white;
48
+ border-radius: 50%;
49
+ opacity: 0.9;
50
+ }
39
51
  }
40
52
 
41
53
  .button-icon {
@@ -67,6 +67,7 @@
67
67
  border-top: solid 1px $magneto-white-blue;
68
68
  border-bottom: solid 1px $magneto-white-blue;
69
69
  background-size: cover;
70
+ min-height: 84vh;
70
71
  &.no-background-image {
71
72
  background: $magneto-lighter-light-grey;
72
73
  }
@@ -81,7 +82,7 @@
81
82
  }
82
83
 
83
84
  &-list {
84
- min-height: 80vh;
85
+ min-height: 650px;
85
86
  width: 100%;
86
87
  overflow-x: auto;
87
88
 
@@ -27,10 +27,28 @@
27
27
 
28
28
  &-inputs {
29
29
  margin: 0 25px 25px !important;
30
+ display: flex;
31
+ flex-direction: column;
30
32
 
31
33
  textarea {
32
34
  resize: none;
33
35
  }
36
+
37
+ &-options {
38
+ display: flex;
39
+ flex-direction: column;
40
+ margin-bottom: 32px;
41
+
42
+ h2 {
43
+ color: $magneto-black;
44
+ }
45
+ }
46
+
47
+ .board-layout-type {
48
+ h2 {
49
+ color: $magneto-black;
50
+ }
51
+ }
34
52
  }
35
53
 
36
54
  &-layout-container {
@@ -44,5 +44,23 @@
44
44
  display: flex;
45
45
  flex-direction: column;
46
46
  gap: 10px;
47
+
48
+ .card-list {
49
+
50
+ grid-gap: 11px;
51
+ grid-auto-rows: auto !important;
52
+
53
+ &-item-infos {
54
+ height: 10vh;
55
+ }
56
+
57
+
58
+ &-item-preview {
59
+ height: 14vh;
60
+ }
61
+ }
62
+
63
+
64
+
47
65
  }
48
66
  }
@@ -0,0 +1,69 @@
1
+ .card-comment {
2
+
3
+ &:hover {
4
+ i.magneto-card-settings {
5
+ opacity: 1;
6
+ }
7
+ }
8
+
9
+ &-infos {
10
+ display: flex;
11
+
12
+ &-header {
13
+ display: flex;
14
+
15
+ .card-list-item-options {
16
+ transform: inherit !important;
17
+ }
18
+
19
+
20
+ &-user {
21
+ display: flex;
22
+ align-items: center;
23
+ margin-bottom: 8px;
24
+
25
+ &-avatar {
26
+ margin-right: 8px;
27
+ margin-top: 0;
28
+ padding: 5px 0;
29
+ border-radius: 50%;
30
+ border: 1px solid rgba(0,0,0,0);
31
+ width: 30px;
32
+ height: 30px;
33
+ vertical-align: middle;
34
+ }
35
+ &-infos {
36
+ display: flex;
37
+ flex-direction: column;
38
+
39
+ &-name {
40
+ font-weight: bold;
41
+ @include noTextOverflow(1);
42
+ }
43
+ &-date {
44
+ color: $magneto-light-grey;
45
+ font-size: 12px;
46
+ line-height: 12px;
47
+ }
48
+ }
49
+ }
50
+
51
+ i.magneto-card-settings {
52
+ opacity: 0;
53
+ font-size: 20px;
54
+ display: flex;
55
+ justify-content: flex-end;
56
+
57
+ &:hover {
58
+ cursor: pointer;
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ &-content {
65
+ line-height: 18px;
66
+ margin-left: 40px;
67
+ }
68
+
69
+ }
@@ -0,0 +1,32 @@
1
+ .card-item-comments {
2
+ .divider {
3
+ border-top: 1px $magneto-light-grey;
4
+ border-top-style: ridge;
5
+ padding: 0;
6
+ }
7
+
8
+ &-counter {
9
+ display: flex;
10
+ justify-content: flex-end;
11
+ font-size: 16px;
12
+ color: $magneto-black-light;
13
+
14
+ i.magneto-comment-outline {
15
+ margin-right: 4px;
16
+ }
17
+ }
18
+
19
+ &-content {
20
+ display: flex;
21
+ }
22
+
23
+ &-last {
24
+ margin-bottom: 24px;
25
+
26
+ .card-comment {
27
+ &-content {
28
+ @include noTextOverflow(3);
29
+ }
30
+ }
31
+ }
32
+ }
@@ -1,9 +1,9 @@
1
1
  .card-list-item-options {
2
+ transform: translateX(5px) translateY(-26px);
3
+ z-index: 2;
2
4
  nav {
3
5
  .nav, .sub-nav {
4
6
  position: absolute;
5
- top: 0;
6
- left: 100%;
7
7
  z-index: 2;
8
8
  background-color: $magneto-white;
9
9
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);