ode-csslib 4.0.8 → 4.0.9

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 +3 -3
  2. package/dist/index.css.map +1 -1
  3. package/dist/version.txt +1 -1
  4. package/package.json +1 -1
  5. package/scss/specifics/crre/_crre.scss +43 -3
  6. package/scss/specifics/crre/components/_icons.scss +16 -0
  7. package/scss/specifics/crre/components/_index.scss +2 -1
  8. package/scss/specifics/crre/fragments/_status-circle.scss +1 -1
  9. package/scss/specifics/lystore/_lystore.scss +3 -0
  10. package/scss/specifics/lystore/components/_index.scss +3 -1
  11. package/scss/specifics/lystore/components/directives/_equipment-card.scss +29 -0
  12. package/scss/specifics/lystore/components/directives/_equipment-detail.scss +11 -0
  13. package/scss/specifics/lystore/components/parameter/_parameter-active-structure.scss +16 -15
  14. package/scss/specifics/magneto/components/_icons.scss +11 -0
  15. package/scss/specifics/magneto/components/containers/_board-read.scss +12 -0
  16. package/scss/specifics/magneto/components/containers/_board.scss +2 -1
  17. package/scss/specifics/magneto/components/directives/_board-manage-lightbox.scss +18 -0
  18. package/scss/specifics/magneto/components/directives/_card-collection-lightbox.scss +18 -0
  19. package/scss/specifics/magneto/components/directives/_card-comment.scss +69 -0
  20. package/scss/specifics/magneto/components/directives/_card-item-comments.scss +32 -0
  21. package/scss/specifics/magneto/components/directives/_card-list-item-options.scss +2 -2
  22. package/scss/specifics/magneto/components/directives/_card-list-item.scss +32 -27
  23. package/scss/specifics/magneto/components/directives/_card-list.scss +5 -3
  24. package/scss/specifics/magneto/components/directives/_card-manage-lightbox.scss +4 -0
  25. package/scss/specifics/magneto/components/directives/_comments-panel.scss +72 -0
  26. package/scss/specifics/magneto/components/directives/_index.scss +4 -1
  27. package/scss/specifics/magneto/components/directives/_section-list.scss +0 -1
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.9 27/03/2023 11:34:46
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
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",
@@ -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,44 @@ body.crre {
1758
1758
  display : flex;
1759
1759
  }
1760
1760
 
1761
+ .crre {
1762
+ &-order-waiting {
1763
+ &-header {
1764
+ display: flex;
1765
+ flex-direction: row;
1766
+ justify-content: space-between;
1767
+ align-items: flex-end;
1768
+ }
1769
+
1770
+ &-table {
1771
+ &-header {
1772
+ &-column {
1773
+ display: flex;
1774
+ flex-direction: row;
1775
+ flex-wrap: wrap;
1776
+ justify-content: center;
1777
+
1778
+ &-order {
1779
+ &-icon {
1780
+ width: 30px;
1781
+ }
1782
+ }
1783
+ }
1784
+ }
1785
+ }
1786
+ }
1787
+ }
1788
+
1789
+ .crre-display-hover-element {
1790
+ .crre-hover-element {
1791
+ transition: 0.2s;
1792
+ opacity: 0;
1793
+ }
1794
+ }
1795
+
1796
+ .crre-display-hover-element:hover {
1797
+ .crre-hover-element {
1798
+ opacity: 1;
1799
+ }
1800
+ }
1761
1801
  }
@@ -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 {
@@ -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,6 @@
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";
@@ -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;
@@ -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);
@@ -1,6 +1,7 @@
1
1
  .card-list-item {
2
2
 
3
- height: 250px;
3
+ height: fit-content;
4
+
4
5
  width: 230px;
5
6
  border-radius: 10px;
6
7
  padding: 5px 5px 0px 5px;
@@ -27,12 +28,11 @@
27
28
 
28
29
  @include mobile {
29
30
  width: 170px;
30
- height: 200px;
31
+ height: fit-content;
31
32
  }
32
33
 
33
34
  &-header {
34
35
  height: 15%;
35
- gap: 5px;
36
36
  align-items: center;
37
37
  display: flex;
38
38
 
@@ -41,7 +41,8 @@
41
41
  }
42
42
 
43
43
  &-creation {
44
- margin-right: 20px;
44
+ width: 80%;
45
+ margin-left: 8px;
45
46
  display: flex;
46
47
  flex-direction: column;
47
48
 
@@ -63,7 +64,7 @@
63
64
  text-align: center;
64
65
 
65
66
  .type-icon {
66
- height: 80%;
67
+ height: 13vh;
67
68
  margin: auto;
68
69
  object-fit: contain;
69
70
  }
@@ -71,14 +72,13 @@
71
72
 
72
73
  &-preview {
73
74
  position: relative;
74
- height: 55%;
75
+ height: 18vh;
75
76
 
76
77
  img {
77
- width: 100%;
78
- height: 100%;
79
78
  margin-left: auto;
80
79
  margin-right: auto;
81
80
  object-fit: cover;
81
+ min-height: 64%;
82
82
  }
83
83
 
84
84
  &-image, &-file {
@@ -101,14 +101,14 @@
101
101
  @include noTextOverflow(999);
102
102
  margin-left: auto;
103
103
  margin-right: auto;
104
- height: 100%;
105
104
  }
106
105
  }
107
106
 
108
107
  &-type {
109
- background-color: $magneto-white;
110
- border: 5px solid $magneto-white;
108
+ background-color: $magneto-lighter-light-grey;
109
+ border: 5px solid $magneto-lighter-light-grey;
111
110
  border-top-right-radius: 10px;
111
+ border-bottom-left-radius: 10px;
112
112
  position: absolute;
113
113
  bottom: 0;
114
114
  left: 0;
@@ -130,12 +130,12 @@
130
130
  }
131
131
 
132
132
  &-infos {
133
- height: 20%;
134
133
 
135
134
  &-title {
136
135
  font-size: 16px;
137
- height: 10% !important;
138
136
  font-weight: bold;
137
+ margin-bottom: 5px;
138
+ height: 3vh;
139
139
 
140
140
  &-ellipsis {
141
141
  @include noTextOverflow(1);
@@ -146,20 +146,26 @@
146
146
  }
147
147
  }
148
148
 
149
- &-locked {
150
- position: absolute;
151
- bottom: 5px;
152
- right: 5px;
153
- font-size: 20px;
154
- }
155
- }
149
+ &-footer {
156
150
 
157
- &-caption {
158
- color: $magneto-black;
159
- font-style: italic;
160
- font-size: 0.9em;
161
- width: 90%;
162
- @include noTextOverflow(2);
151
+ height: 3vh;
152
+
153
+ &-caption {
154
+ color: $magneto-black;
155
+ font-style: italic;
156
+ font-size: 0.9em;
157
+ width: 90%;
158
+ @include noTextOverflow(1);
159
+ }
160
+
161
+ &-locked {
162
+ position: relative;
163
+ font-size: 20px;
164
+ display: flex;
165
+ justify-content: flex-end;
166
+ height: 3vh;
167
+ }
168
+ }
163
169
  }
164
170
 
165
171
  &-description {
@@ -175,7 +181,6 @@
175
181
 
176
182
  i.magneto-card-settings {
177
183
  font-size: 25px;
178
- position: absolute;
179
184
  right: 5px;
180
185
  }
181
186
  }
@@ -2,15 +2,17 @@
2
2
  &.no-background-image {
3
3
  background: $magneto-lighter-light-grey;
4
4
  }
5
- gap: 16px;
6
- flex-wrap: wrap;
5
+ display: grid;
6
+ grid-gap: 10px;
7
+ grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
8
+ grid-auto-rows: 0;
7
9
 
8
10
  &-free {
9
11
  justify-content: center;
10
12
  }
11
13
 
12
14
  &-vertical {
13
- justify-content: center;
15
+ justify-items: center;
14
16
  overflow-y: auto;
15
17
  overflow-x: hidden;
16
18
  height: 85vh;
@@ -2,6 +2,10 @@
2
2
 
3
3
  @include lightboxWidth(80%);
4
4
 
5
+ .content > :first-child {
6
+ min-height: 60vh;
7
+ }
8
+
5
9
  .content {
6
10
 
7
11
  .card-manage-lightbox-head {
@@ -0,0 +1,72 @@
1
+ .magneto-comments-panel {
2
+
3
+ &.opened {
4
+ width: 320px;
5
+ height: 80%;
6
+
7
+ .magneto-comments-panel-button {
8
+ position: absolute;
9
+ right: 0;
10
+ bottom: 0;
11
+ padding: 12px;
12
+ }
13
+ }
14
+
15
+
16
+ position: absolute;
17
+ right: 0;
18
+ bottom: 0;
19
+ padding: 12px;
20
+ background: $magneto-white;
21
+ cursor: pointer;
22
+ box-shadow: -2px -2px 4px rgb(0 0 0 / 12%);
23
+
24
+ display: flex;
25
+ flex-direction: column;
26
+
27
+ &-button {
28
+ font-size: 20px;
29
+ }
30
+
31
+ &-list {
32
+
33
+ display: flex;
34
+ flex-direction: column;
35
+ height: 100%;
36
+
37
+ &-header {
38
+
39
+ display: flex;
40
+ justify-content: space-between;
41
+
42
+ i.magneto-close {
43
+ font-size: 24px;
44
+ padding: 4px;
45
+ }
46
+
47
+ &-title {
48
+ font-size: 20px;
49
+ padding: 8px;
50
+ }
51
+
52
+ }
53
+
54
+ &-items {
55
+
56
+ max-height: 80%;
57
+ overflow-y: auto !important;
58
+
59
+ &-item {
60
+ padding: 8px;
61
+ margin: 8px;
62
+ }
63
+ }
64
+
65
+ .comment-input {
66
+ bottom: 0;
67
+ position: absolute;
68
+ }
69
+ }
70
+
71
+
72
+ }